public KalturaDocumentEntry AddFromFlavorAsset(string sourceFlavorAssetId, KalturaDocumentEntry documentEntry)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("sourceFlavorAssetId", sourceFlavorAssetId);
            if (documentEntry != null)
            {
                kparams.Add("documentEntry", documentEntry.ToParams());
            }
            _Client.QueueServiceCall("document_documents", "addFromFlavorAsset", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaDocumentEntry)KalturaObjectFactory.Create(result));
        }
        public KalturaDocumentEntry AddFromUploadedFile(KalturaDocumentEntry documentEntry, string uploadTokenId)
        {
            KalturaParams kparams = new KalturaParams();

            if (documentEntry != null)
            {
                kparams.Add("documentEntry", documentEntry.ToParams());
            }
            kparams.AddStringIfNotNull("uploadTokenId", uploadTokenId);
            _Client.QueueServiceCall("document_documents", "addFromUploadedFile", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaDocumentEntry)KalturaObjectFactory.Create(result));
        }
示例#3
0
        public KalturaDocumentEntry Update(string entryId, KalturaDocumentEntry documentEntry)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaDocumentEntry)KalturaObjectFactory.Create(result));
        }
 public KalturaDocumentEntry AddFromEntry(string sourceEntryId, KalturaDocumentEntry documentEntry)
 {
     return(this.AddFromEntry(sourceEntryId, documentEntry, Int32.MinValue));
 }