Exemplo n.º 1
0
        public KalturaPlaylist Add(KalturaPlaylist playlist, bool updateStats)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaPlaylist)KalturaObjectFactory.Create(result));
        }
Exemplo n.º 2
0
        public KalturaPlaylist Clone(string id, KalturaPlaylist newPlaylist)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("id", id);
            if (newPlaylist != null)
            {
                kparams.Add("newPlaylist", newPlaylist.ToParams());
            }
            _Client.QueueServiceCall("playlist", "clone", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

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