public KalturaUiConfTypeInfo(XmlElement node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                string txt = propertyNode.InnerText;
                switch (propertyNode.Name)
                {
                case "type":
                    this.Type = (KalturaUiConfObjType)ParseEnum(typeof(KalturaUiConfObjType), txt);
                    continue;

                case "versions":
                    this.Versions = new List <KalturaString>();
                    foreach (XmlElement arrayNode in propertyNode.ChildNodes)
                    {
                        this.Versions.Add((KalturaString)KalturaObjectFactory.Create(arrayNode));
                    }
                    continue;

                case "directory":
                    this.Directory = txt;
                    continue;

                case "filename":
                    this.Filename = txt;
                    continue;
                }
            }
        }
Beispiel #2
0
        public IList <KalturaReportGraph> GetGraphs(KalturaReportType reportType, KalturaReportInputFilter reportInputFilter, string dimension, string objectIds)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddEnumIfNotNull("reportType", reportType);
            if (reportInputFilter != null)
            {
                kparams.Add("reportInputFilter", reportInputFilter.ToParams());
            }
            kparams.AddStringIfNotNull("dimension", dimension);
            kparams.AddStringIfNotNull("objectIds", objectIds);
            _Client.QueueServiceCall("report", "getGraphs", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();
            IList <KalturaReportGraph> list = new List <KalturaReportGraph>();

            foreach (XmlElement node in result.ChildNodes)
            {
                list.Add((KalturaReportGraph)KalturaObjectFactory.Create(node));
            }
            return(list);
        }
        public KalturaOperationResource(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                string txt = propertyNode.InnerText;
                switch (propertyNode.Name)
                {
                case "resource":
                    this.Resource = (KalturaContentResource)KalturaObjectFactory.Create(propertyNode);
                    continue;

                case "operationAttributes":
                    this.OperationAttributes = new List <KalturaOperationAttributes>();
                    foreach (XmlElement arrayNode in propertyNode.ChildNodes)
                    {
                        this.OperationAttributes.Add((KalturaOperationAttributes)KalturaObjectFactory.Create(arrayNode));
                    }
                    continue;

                case "assetParamsId":
                    this.AssetParamsId = ParseInt(txt);
                    continue;
                }
            }
        }
Beispiel #4
0
        public KalturaMultiResponse DoMultiRequest()
        {
            XmlElement multiRequestResult = DoQueue();

            KalturaMultiResponse multiResponse = new KalturaMultiResponse();

            if (multiRequestResult == null)
            {
                return(multiResponse);
            }
            int i = 0;

            foreach (XmlElement arrayNode in multiRequestResult.ChildNodes)
            {
                XmlElement error = arrayNode["error"];
                if (error != null && error["code"] != null && error["message"] != null)
                {
                    multiResponse.Add(new KalturaAPIException(error["code"].InnerText, error["message"].InnerText));
                }
                else if (arrayNode["objectType"] != null)
                {
                    multiResponse.Add(KalturaObjectFactory.Create(arrayNode, _MultiRequestReturnType[i]));
                }
                else
                {
                    multiResponse.Add(arrayNode.InnerText);
                }
                i++;
            }

            _MultiRequestReturnType.Clear();
            _MultiRequestReturnType = null;
            return(multiResponse);
        }
        public KalturaCaptionAssetItem(XmlElement node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                string txt = propertyNode.InnerText;
                switch (propertyNode.Name)
                {
                case "asset":
                    this.Asset = (KalturaCaptionAsset)KalturaObjectFactory.Create(propertyNode);
                    continue;

                case "entry":
                    this.Entry = (KalturaBaseEntry)KalturaObjectFactory.Create(propertyNode);
                    continue;

                case "startTime":
                    this.StartTime = ParseInt(txt);
                    continue;

                case "endTime":
                    this.EndTime = ParseInt(txt);
                    continue;

                case "content":
                    this.Content = txt;
                    continue;
                }
            }
        }
        private KalturaMultiResponse ParseMultiRequestResult(XmlElement childNode, bool incrementI)
        {
            int i = 0;
            KalturaMultiResponse multiResponse = new KalturaMultiResponse();

            foreach (XmlElement arrayNode in childNode.ChildNodes)
            {
                XmlElement error = arrayNode["error"];
                if (error != null && error["code"] != null && error["message"] != null)
                {
                    multiResponse.Add(new KalturaAPIException(error["code"].InnerText, error["message"].InnerText));
                }
                else if (arrayNode["objectType"] != null)
                {
                    multiResponse.Add(KalturaObjectFactory.Create(arrayNode, _MultiRequestReturnType[i]));
                }
                else if (arrayNode["item"] != null)
                {
                    multiResponse.Add(ParseMultiRequestResult(arrayNode, false));
                }
                else
                {
                    multiResponse.Add(arrayNode.InnerText);
                }
                if (incrementI)
                {
                    i++;
                }
            }

            return(multiResponse);
        }
Beispiel #7
0
        public KalturaConfigurableDistributionProfile(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                string txt = propertyNode.InnerText;
                switch (propertyNode.Name)
                {
                case "fieldConfigArray":
                    this.FieldConfigArray = new List <KalturaDistributionFieldConfig>();
                    foreach (XmlElement arrayNode in propertyNode.ChildNodes)
                    {
                        this.FieldConfigArray.Add((KalturaDistributionFieldConfig)KalturaObjectFactory.Create(arrayNode));
                    }
                    continue;

                case "itemXpathsToExtend":
                    this.ItemXpathsToExtend = new List <KalturaString>();
                    foreach (XmlElement arrayNode in propertyNode.ChildNodes)
                    {
                        this.ItemXpathsToExtend.Add((KalturaString)KalturaObjectFactory.Create(arrayNode));
                    }
                    continue;
                }
            }
        }
        public KalturaMultiResponse DoMultiRequest()
        {
            XmlElement multiRequestResult = DoQueue();

            KalturaMultiResponse multiResponse = new KalturaMultiResponse();

            if (multiRequestResult == null)
            {
                return(multiResponse);
            }
            foreach (XmlElement arrayNode in multiRequestResult.ChildNodes)
            {
                if (arrayNode["error"] != null)
                {
                    multiResponse.Add(new KalturaAPIException(arrayNode["error"]["code"].InnerText, arrayNode["error"]["message"].InnerText));
                }
                else if (arrayNode["objectType"] != null)
                {
                    multiResponse.Add(KalturaObjectFactory.Create(arrayNode));
                }
                else
                {
                    multiResponse.Add(arrayNode.InnerText);
                }
            }

            return(multiResponse);
        }
Beispiel #9
0
        public KalturaCaptionAssetItemListResponse Search(KalturaBaseEntryFilter entryFilter, KalturaCaptionAssetItemFilter captionAssetItemFilter, KalturaFilterPager captionAssetItemPager)
        {
            KalturaParams kparams = new KalturaParams();

            if (entryFilter != null)
            {
                kparams.Add("entryFilter", entryFilter.ToParams());
            }
            if (captionAssetItemFilter != null)
            {
                kparams.Add("captionAssetItemFilter", captionAssetItemFilter.ToParams());
            }
            if (captionAssetItemPager != null)
            {
                kparams.Add("captionAssetItemPager", captionAssetItemPager.ToParams());
            }
            _Client.QueueServiceCall("captionsearch_captionassetitem", "search", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaCaptionAssetItemListResponse)KalturaObjectFactory.Create(result));
        }
        public KalturaHuluDistributionProfile(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                string txt = propertyNode.InnerText;
                switch (propertyNode.Name)
                {
                case "sftpHost":
                    this.SftpHost = txt;
                    continue;

                case "sftpLogin":
                    this.SftpLogin = txt;
                    continue;

                case "sftpPass":
                    this.SftpPass = txt;
                    continue;

                case "seriesChannel":
                    this.SeriesChannel = txt;
                    continue;

                case "seriesPrimaryCategory":
                    this.SeriesPrimaryCategory = txt;
                    continue;

                case "seriesAdditionalCategories":
                    this.SeriesAdditionalCategories = new List <KalturaString>();
                    foreach (XmlElement arrayNode in propertyNode.ChildNodes)
                    {
                        this.SeriesAdditionalCategories.Add((KalturaString)KalturaObjectFactory.Create(arrayNode));
                    }
                    continue;

                case "seasonNumber":
                    this.SeasonNumber = txt;
                    continue;

                case "seasonSynopsis":
                    this.SeasonSynopsis = txt;
                    continue;

                case "seasonTuneInInformation":
                    this.SeasonTuneInInformation = txt;
                    continue;

                case "videoMediaType":
                    this.VideoMediaType = txt;
                    continue;
                }
            }
        }
        public KalturaPartner GetInfo()
        {
            KalturaParams kparams = new KalturaParams();

            _Client.QueueServiceCall("partner", "getInfo", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaPartner)KalturaObjectFactory.Create(result));
        }
Beispiel #12
0
 public KalturaDistributionValidationErrorMissingThumbnail(XmlElement node) : base(node)
 {
     foreach (XmlElement propertyNode in node.ChildNodes)
     {
         string txt = propertyNode.InnerText;
         switch (propertyNode.Name)
         {
         case "dimensions":
             this.Dimensions = (KalturaDistributionThumbDimensions)KalturaObjectFactory.Create(propertyNode);
             continue;
         }
     }
 }
        public KalturaConversionProfile GetDefault()
        {
            KalturaParams kparams = new KalturaParams();

            _Client.QueueServiceCall("conversionprofile", "getDefault", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaConversionProfile)KalturaObjectFactory.Create(result));
        }
        public KalturaCuePoint Get(string id)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("id", id);
            _Client.QueueServiceCall("cuepoint_cuepoint", "get", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaCuePoint)KalturaObjectFactory.Create(result));
        }
Beispiel #15
0
        public KalturaUiConf Clone(int id)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("id", id);
            _Client.QueueServiceCall("uiconf", "clone", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaUiConf)KalturaObjectFactory.Create(result));
        }
Beispiel #16
0
        public KalturaCaptionParams Get(int id)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("id", id);
            _Client.QueueServiceCall("caption_captionparams", "get", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaCaptionParams)KalturaObjectFactory.Create(result));
        }
Beispiel #17
0
        public KalturaShortLink Delete(string id)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("id", id);
            _Client.QueueServiceCall("shortlink_shortlink", "delete", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaShortLink)KalturaObjectFactory.Create(result));
        }
Beispiel #18
0
        public KalturaThumbAsset Get(string thumbAssetId)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("thumbAssetId", thumbAssetId);
            _Client.QueueServiceCall("thumbasset", "get", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaThumbAsset)KalturaObjectFactory.Create(result));
        }
Beispiel #19
0
        public KalturaMetadataProfileFieldListResponse ListFields(int metadataProfileId)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("metadataProfileId", metadataProfileId);
            _Client.QueueServiceCall("metadata_metadataprofile", "listFields", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaMetadataProfileFieldListResponse)KalturaObjectFactory.Create(result));
        }
Beispiel #20
0
        public KalturaRemotePathListResponse GetRemotePaths(string id)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("id", id);
            _Client.QueueServiceCall("thumbasset", "getRemotePaths", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaRemotePathListResponse)KalturaObjectFactory.Create(result));
        }
Beispiel #21
0
        public KalturaMediaEntry CancelReplace(string entryId)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("entryId", entryId);
            _Client.QueueServiceCall("media", "cancelReplace", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaMediaEntry)KalturaObjectFactory.Create(result));
        }
Beispiel #22
0
        public KalturaEntryDistribution Validate(int id)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("id", id);
            _Client.QueueServiceCall("contentdistribution_entrydistribution", "validate", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaEntryDistribution)KalturaObjectFactory.Create(result));
        }
Beispiel #23
0
        public KalturaDropFolder Delete(int dropFolderId)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("dropFolderId", dropFolderId);
            _Client.QueueServiceCall("dropfolder_dropfolder", "delete", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaDropFolder)KalturaObjectFactory.Create(result));
        }
        public KalturaVirusScanProfile Delete(int virusScanProfileId)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("virusScanProfileId", virusScanProfileId);
            _Client.QueueServiceCall("virusscan_virusscanprofile", "delete", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaVirusScanProfile)KalturaObjectFactory.Create(result));
        }
        public KalturaGenericDistributionProviderAction Get(int id)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("id", id);
            _Client.QueueServiceCall("contentdistribution_genericdistributionprovideraction", "get", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaGenericDistributionProviderAction)KalturaObjectFactory.Create(result));
        }
Beispiel #26
0
        public KalturaUploadResponse GetUploadedFileTokenByFileName(string fileName)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("fileName", fileName);
            _Client.QueueServiceCall("upload", "getUploadedFileTokenByFileName", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaUploadResponse)KalturaObjectFactory.Create(result));
        }
        public KalturaBulkUpload Abort(int id)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("id", id);
            _Client.QueueServiceCall("bulkupload", "abort", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaBulkUpload)KalturaObjectFactory.Create(result));
        }
        public KalturaUserRole Delete(int userRoleId)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("userRoleId", userRoleId);
            _Client.QueueServiceCall("userrole", "delete", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaUserRole)KalturaObjectFactory.Create(result));
        }
Beispiel #29
0
        public KalturaUploadToken Get(string uploadTokenId)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("uploadTokenId", uploadTokenId);
            _Client.QueueServiceCall("uploadtoken", "get", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaUploadToken)KalturaObjectFactory.Create(result));
        }
Beispiel #30
0
        public KalturaMetadataProfile Get(int id)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("id", id);
            _Client.QueueServiceCall("metadata_metadataprofile", "get", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

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