Пример #1
0
        public KalturaBaseEntry Add(KalturaBaseEntry entry, KalturaEntryType type)
        {
            KalturaParams kparams = new KalturaParams();

            if (entry != null)
            {
                kparams.Add("entry", entry.ToParams());
            }
            kparams.AddStringEnumIfNotNull("type", type);
            _Client.QueueServiceCall("baseentry", "add", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaBaseEntry)KalturaObjectFactory.Create(result));
        }
Пример #2
0
        public KalturaBaseEntry Update(string entryId, KalturaBaseEntry baseEntry)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaBaseEntry)KalturaObjectFactory.Create(result));
        }
Пример #3
0
 public KalturaBaseEntry AddFromUploadedFile(KalturaBaseEntry entry, string uploadTokenId)
 {
     return(this.AddFromUploadedFile(entry, uploadTokenId, null));
 }
Пример #4
0
 public KalturaBaseEntry Add(KalturaBaseEntry entry)
 {
     return(this.Add(entry, null));
 }