示例#1
0
        public KalturaAnnotation Update(string id, KalturaAnnotation annotation)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaAnnotation)KalturaObjectFactory.Create(result));
        }
示例#2
0
        public IList <KalturaUiConfTypeInfo> GetAvailableTypes()
        {
            KalturaParams kparams = new KalturaParams();

            _Client.QueueServiceCall("uiconf", "getAvailableTypes", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();
            IList <KalturaUiConfTypeInfo> list = new List <KalturaUiConfTypeInfo>();

            foreach (XmlElement node in result.ChildNodes)
            {
                list.Add((KalturaUiConfTypeInfo)KalturaObjectFactory.Create(node));
            }
            return(list);
        }
        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));
        }
示例#4
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));
        }
示例#5
0
        public KalturaShortLink Update(string id, KalturaShortLink shortLink)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaShortLink)KalturaObjectFactory.Create(result));
        }
        public KalturaLiveStreamAdminEntry Add(KalturaLiveStreamAdminEntry liveStreamEntry, KalturaSourceType sourceType)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaLiveStreamAdminEntry)KalturaObjectFactory.Create(result));
        }
        public KalturaUserRole Update(int userRoleId, KalturaUserRole userRole)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("userRoleId", userRoleId);
            if (userRole != null)
            {
                kparams.Add("userRole", userRole.ToParams());
            }
            _Client.QueueServiceCall("userrole", "update", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaUserRole)KalturaObjectFactory.Create(result));
        }
        public KalturaConversionProfile Update(int id, KalturaConversionProfile conversionProfile)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("id", id);
            if (conversionProfile != null)
            {
                kparams.Add("conversionProfile", conversionProfile.ToParams());
            }
            _Client.QueueServiceCall("conversionprofile", "update", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaConversionProfile)KalturaObjectFactory.Create(result));
        }
        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 KalturaFlavorAsset Add(string entryId, KalturaFlavorAsset flavorAsset)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaFlavorAsset)KalturaObjectFactory.Create(result));
        }
示例#11
0
        public KalturaPermissionItem Update(int permissionItemId, KalturaPermissionItem permissionItem)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("permissionItemId", permissionItemId);
            if (permissionItem != null)
            {
                kparams.Add("permissionItem", permissionItem.ToParams());
            }
            _Client.QueueServiceCall("permissionitem", "update", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaPermissionItem)KalturaObjectFactory.Create(result));
        }
示例#12
0
        public KalturaPartner Update(KalturaPartner partner, bool allowEmpty)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaPartner)KalturaObjectFactory.Create(result));
        }
示例#13
0
        public KalturaPartner Register(KalturaPartner partner, string cmsPassword)
        {
            KalturaParams kparams = new KalturaParams();

            if (partner != null)
            {
                kparams.Add("partner", partner.ToParams());
            }
            kparams.AddStringIfNotNull("cmsPassword", cmsPassword);
            _Client.QueueServiceCall("partner", "register", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaPartner)KalturaObjectFactory.Create(result));
        }
示例#14
0
        public KalturaBaseSyndicationFeed Update(string id, KalturaBaseSyndicationFeed syndicationFeed)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaBaseSyndicationFeed)KalturaObjectFactory.Create(result));
        }
        public KalturaVirusScanProfile Update(int virusScanProfileId, KalturaVirusScanProfile virusScanProfile)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("virusScanProfileId", virusScanProfileId);
            if (virusScanProfile != null)
            {
                kparams.Add("virusScanProfile", virusScanProfile.ToParams());
            }
            _Client.QueueServiceCall("virusscan_virusscanprofile", "update", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaVirusScanProfile)KalturaObjectFactory.Create(result));
        }
示例#16
0
        public KalturaModerationFlagListResponse ListFlags(string entryId, KalturaFilterPager pager)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaModerationFlagListResponse)KalturaObjectFactory.Create(result));
        }
示例#17
0
        public KalturaDropFolder Update(int dropFolderId, KalturaDropFolder dropFolder)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("dropFolderId", dropFolderId);
            if (dropFolder != null)
            {
                kparams.Add("dropFolder", dropFolder.ToParams());
            }
            _Client.QueueServiceCall("dropfolder_dropfolder", "update", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaDropFolder)KalturaObjectFactory.Create(result));
        }
示例#18
0
        public KalturaBaseEntry AddContent(string entryId, KalturaResource resource)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaBaseEntry)KalturaObjectFactory.Create(result));
        }
        public KalturaLiveStreamAdminEntry Update(string entryId, KalturaLiveStreamAdminEntry liveStreamEntry)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaLiveStreamAdminEntry)KalturaObjectFactory.Create(result));
        }
示例#20
0
        public KalturaEntryContextDataResult GetContextData(string entryId, KalturaEntryContextDataParams contextDataParams)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaEntryContextDataResult)KalturaObjectFactory.Create(result));
        }
示例#21
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));
        }
示例#22
0
        public KalturaThumbAsset SetContent(string id, KalturaContentResource contentResource)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaThumbAsset)KalturaObjectFactory.Create(result));
        }
示例#23
0
        public KalturaGenericDistributionProvider Update(int id, KalturaGenericDistributionProvider genericDistributionProvider)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("id", id);
            if (genericDistributionProvider != null)
            {
                kparams.Add("genericDistributionProvider", genericDistributionProvider.ToParams());
            }
            _Client.QueueServiceCall("contentdistribution_genericdistributionprovider", "update", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaGenericDistributionProvider)KalturaObjectFactory.Create(result));
        }
示例#24
0
        public KalturaThumbAsset Update(string id, KalturaThumbAsset thumbAsset)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaThumbAsset)KalturaObjectFactory.Create(result));
        }
示例#25
0
        public KalturaCaptionParams Update(int id, KalturaCaptionParams captionParams)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("id", id);
            if (captionParams != null)
            {
                kparams.Add("captionParams", captionParams.ToParams());
            }
            _Client.QueueServiceCall("caption_captionparams", "update", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaCaptionParams)KalturaObjectFactory.Create(result));
        }
        public KalturaAccessControl Update(int id, KalturaAccessControl accessControl)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("id", id);
            if (accessControl != null)
            {
                kparams.Add("accessControl", accessControl.ToParams());
            }
            _Client.QueueServiceCall("accesscontrol", "update", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaAccessControl)KalturaObjectFactory.Create(result));
        }
示例#27
0
        public KalturaUiConf Update(int id, KalturaUiConf uiConf)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("id", id);
            if (uiConf != null)
            {
                kparams.Add("uiConf", uiConf.ToParams());
            }
            _Client.QueueServiceCall("uiconf", "update", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaUiConf)KalturaObjectFactory.Create(result));
        }
示例#28
0
        public KalturaEntryDistribution Update(int id, KalturaEntryDistribution entryDistribution)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("id", id);
            if (entryDistribution != null)
            {
                kparams.Add("entryDistribution", entryDistribution.ToParams());
            }
            _Client.QueueServiceCall("contentdistribution_entrydistribution", "update", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaEntryDistribution)KalturaObjectFactory.Create(result));
        }
示例#29
0
        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 KalturaPermission Update(string permissionName, KalturaPermission permission)
        {
            KalturaParams kparams = new KalturaParams();

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

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