Ejemplo n.º 1
0
        public KalturaMediaEntry Add(KalturaMediaEntry entry)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaMediaEntry)KalturaObjectFactory.Create(result));
        }
Ejemplo n.º 2
0
        public KalturaMediaEntry AddFromUrl(KalturaMediaEntry mediaEntry, string url)
        {
            KalturaParams kparams = new KalturaParams();

            if (mediaEntry != null)
            {
                kparams.Add("mediaEntry", mediaEntry.ToParams());
            }
            kparams.AddStringIfNotNull("url", url);
            _Client.QueueServiceCall("media", "addFromUrl", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaMediaEntry)KalturaObjectFactory.Create(result));
        }
Ejemplo n.º 3
0
        public KalturaMediaEntry Update(string entryId, KalturaMediaEntry mediaEntry)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaMediaEntry)KalturaObjectFactory.Create(result));
        }
Ejemplo n.º 4
0
        public KalturaMediaEntry AddFromFlavorAsset(string sourceFlavorAssetId, KalturaMediaEntry mediaEntry)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaMediaEntry)KalturaObjectFactory.Create(result));
        }
Ejemplo n.º 5
0
        public KalturaMediaEntry AddFromSearchResult(KalturaMediaEntry mediaEntry, KalturaSearchResult searchResult)
        {
            KalturaParams kparams = new KalturaParams();

            if (mediaEntry != null)
            {
                kparams.Add("mediaEntry", mediaEntry.ToParams());
            }
            if (searchResult != null)
            {
                kparams.Add("searchResult", searchResult.ToParams());
            }
            _Client.QueueServiceCall("media", "addFromSearchResult", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaMediaEntry)KalturaObjectFactory.Create(result));
        }
        public KalturaMediaEntry AddMediaEntry(KalturaMediaEntry mediaEntry, string uploadTokenId, int emailProfId, string fromAddress, string emailMsgId)
        {
            KalturaParams kparams = new KalturaParams();

            if (mediaEntry != null)
            {
                kparams.Add("mediaEntry", mediaEntry.ToParams());
            }
            kparams.AddStringIfNotNull("uploadTokenId", uploadTokenId);
            kparams.AddIntIfNotNull("emailProfId", emailProfId);
            kparams.AddStringIfNotNull("fromAddress", fromAddress);
            kparams.AddStringIfNotNull("emailMsgId", emailMsgId);
            _Client.QueueServiceCall("emailingestionprofile", "addMediaEntry", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaMediaEntry)KalturaObjectFactory.Create(result));
        }