Beispiel #1
0
        public KalturaMediaEntry AddContent(string entryId, KalturaResource resource)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaMediaEntry)KalturaObjectFactory.Create(result));
        }
        public KalturaBaseEntry UpdateContent(string entryId, KalturaResource resource, int conversionProfileId)
        {
            KalturaParams kparams = new KalturaParams();

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

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