示例#1
0
        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);
        }
示例#2
0
        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);
            }
        }
示例#3
0
 public static MixingCountRequestBuilder Count(MediaEntryFilter filter = null)
 {
     return(new MixingCountRequestBuilder(filter));
 }
示例#4
0
 public MixingCountRequestBuilder(MediaEntryFilter filter)
     : this()
 {
     this.Filter = filter;
 }