예제 #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));
        }