batqert.blogg.se

Netflix silverlight
Netflix silverlight













Public class DataRequestEventArgs : EventArgs The listing below represents the class in its entirety: using System To wrap up these responses, the oMovies application implements two custom event args classes: DataRequestEventArgs and SingleValueEventArgs.ĭataRequestEventArgs is responsible for wrapping up paged collections of data that come back from the server. Other times the data coming back is the result of a request for a total count of a collection, where the response is a single integer value. Some data coming back is in the form of a collection of the Genre or Title classes. When interfacing with the Netflix service the data that is returned from the server is prepared for the application in order to make working with the data an easy process.

netflix silverlight

The oMovies browser uses the Genre and Title classes to model the data being requested from Netflix. After adding into the address bar, click Go and the dialog will display a representation of the data.Ĭlick OK and now your project has a reference to the service location. This exposes a dialog that will allow you to make the connection to the feed.

netflix silverlight

To do this, right-click on References in your project (in this case NetAdvNetFlix.Models) and select Add Service Reference… The first step required when working with the Netflix oData data catalog is to create a service reference to the oData feed.

netflix silverlight

Here is a screenshot of Solution Explorer with the everything expanded: Note: In reality you could collapse NetAdvNetFlix.Models in with the NetAdvNetFlix project, but in an effort to keep non-UI concerns from the interface layer of the application non-ui elements exist in a separate project.















Netflix silverlight