コード例 #1
0
        public KalturaLiveStreamAdminEntry Add(KalturaLiveStreamAdminEntry liveStreamEntry, KalturaSourceType sourceType)
        {
            KalturaParams kparams = new KalturaParams();

            if (liveStreamEntry != null)
            {
                kparams.Add("liveStreamEntry", liveStreamEntry.ToParams());
            }
            kparams.AddEnumIfNotNull("sourceType", sourceType);
            _Client.QueueServiceCall("livestream", "add", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaLiveStreamAdminEntry)KalturaObjectFactory.Create(result));
        }
コード例 #2
0
        public KalturaLiveStreamAdminEntry Update(string entryId, KalturaLiveStreamAdminEntry liveStreamEntry)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("entryId", entryId);
            if (liveStreamEntry != null)
            {
                kparams.Add("liveStreamEntry", liveStreamEntry.ToParams());
            }
            _Client.QueueServiceCall("livestream", "update", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaLiveStreamAdminEntry)KalturaObjectFactory.Create(result));
        }
コード例 #3
0
 public KalturaLiveStreamAdminEntry Add(KalturaLiveStreamAdminEntry liveStreamEntry)
 {
     return(this.Add(liveStreamEntry, (KalturaSourceType)(Int32.MinValue)));
 }