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; } } }
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; } } }
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); }
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); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }
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)); }