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)); }
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)); }