static void Main(string[] args) { Configuration config = new Configuration(); config.ServiceUrl = "https://www.kaltura.com/"; Client client = new Client(config); int partnerId = YOUR_PARTNER_ID; string secret = ""; string userId = ""; SessionType type = SessionType.ADMIN; int expiry = 86400; string privileges = ""; client.KS = client.GenerateSession(partnerId, secret, userId, type, expiry, privileges); MediaEntryFilter filter = new MediaEntryFilter(); FilterPager pager = new FilterPager(); OnCompletedHandler <ListResponse <MediaEntry> > handler = new OnCompletedHandler <ListResponse <MediaEntry> >( (ListResponse <MediaEntry> result, Exception e) => Console.WriteLine(result)); MediaService.List(filter, pager) .SetCompletion(handler) .Execute(client); }
static void Main(string[] args) { Client client = CodeExample.createKalturaClient(); bool done = false; MediaEntryFilter filter = new MediaEntryFilter(); FilterPager pager = new FilterPager(); OnCompletedHandler <ListResponse <MediaEntry> > handler = new OnCompletedHandler <ListResponse <MediaEntry> >( (ListResponse <MediaEntry> result, Exception e) => { CodeExample.PrintObject(result); done = true; }); MediaService.List(filter, pager) .SetCompletion(handler) .Execute(client); while (!done) { Thread.Sleep(100); } }
public static MixingCountRequestBuilder Count(MediaEntryFilter filter = null) { return(new MixingCountRequestBuilder(filter)); }
public MixingCountRequestBuilder(MediaEntryFilter filter) : this() { this.Filter = filter; }