public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddIntIfNotNull("genericProviderId", this.GenericProviderId); if (this.SubmitAction != null) { kparams.Add("submitAction", this.SubmitAction.ToParams()); } if (this.UpdateAction != null) { kparams.Add("updateAction", this.UpdateAction.ToParams()); } if (this.DeleteAction != null) { kparams.Add("deleteAction", this.DeleteAction.ToParams()); } if (this.FetchReportAction != null) { kparams.Add("fetchReportAction", this.FetchReportAction.ToParams()); } kparams.AddStringIfNotNull("updateRequiredEntryFields", this.UpdateRequiredEntryFields); kparams.AddStringIfNotNull("updateRequiredMetadataXPaths", this.UpdateRequiredMetadataXPaths); return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddStringIfNotNull("playlistContent", this.PlaylistContent); if (this.Filters != null) { if (this.Filters.Count == 0) { kparams.Add("filters:-", ""); } else { int i = 0; foreach (KalturaMediaEntryFilterForPlaylist item in this.Filters) { kparams.Add("filters:" + i + ":objectType", item.GetType().Name); kparams.Add("filters:" + i, item.ToParams()); i++; } } } kparams.AddIntIfNotNull("totalResults", this.TotalResults); kparams.AddEnumIfNotNull("playlistType", this.PlaylistType); kparams.AddIntIfNotNull("plays", this.Plays); kparams.AddIntIfNotNull("views", this.Views); kparams.AddIntIfNotNull("duration", this.Duration); return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddStringIfNotNull("sftpHost", this.SftpHost); kparams.AddStringIfNotNull("sftpLogin", this.SftpLogin); kparams.AddStringIfNotNull("sftpPass", this.SftpPass); kparams.AddStringIfNotNull("seriesChannel", this.SeriesChannel); kparams.AddStringIfNotNull("seriesPrimaryCategory", this.SeriesPrimaryCategory); if (this.SeriesAdditionalCategories != null) { if (this.SeriesAdditionalCategories.Count == 0) { kparams.Add("seriesAdditionalCategories:-", ""); } else { int i = 0; foreach (KalturaString item in this.SeriesAdditionalCategories) { kparams.Add("seriesAdditionalCategories:" + i + ":objectType", item.GetType().Name); kparams.Add("seriesAdditionalCategories:" + i, item.ToParams()); i++; } } } kparams.AddStringIfNotNull("seasonNumber", this.SeasonNumber); kparams.AddStringIfNotNull("seasonSynopsis", this.SeasonSynopsis); kparams.AddStringIfNotNull("seasonTuneInInformation", this.SeasonTuneInInformation); kparams.AddStringIfNotNull("videoMediaType", this.VideoMediaType); return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddIntIfNotNull("metadataProfileId", this.MetadataProfileId); kparams.AddStringIfNotNull("feedUrl", this.FeedUrl); kparams.AddStringIfNotNull("feedTitle", this.FeedTitle); kparams.AddStringIfNotNull("feedLink", this.FeedLink); kparams.AddStringIfNotNull("feedDescription", this.FeedDescription); kparams.AddStringIfNotNull("feedLastBuildDate", this.FeedLastBuildDate); kparams.AddStringIfNotNull("itemLink", this.ItemLink); if (this.CPlatformTvSeries != null) { if (this.CPlatformTvSeries.Count == 0) { kparams.Add("cPlatformTvSeries:-", ""); } else { int i = 0; foreach (KalturaKeyValue item in this.CPlatformTvSeries) { kparams.Add("cPlatformTvSeries:" + i + ":objectType", item.GetType().Name); kparams.Add("cPlatformTvSeries:" + i, item.ToParams()); i++; } } } kparams.AddStringIfNotNull("cPlatformTvSeriesField", this.CPlatformTvSeriesField); return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); if (this.Resource != null) { kparams.Add("resource", this.Resource.ToParams()); } if (this.OperationAttributes != null) { if (this.OperationAttributes.Count == 0) { kparams.Add("operationAttributes:-", ""); } else { int i = 0; foreach (KalturaOperationAttributes item in this.OperationAttributes) { kparams.Add("operationAttributes:" + i + ":objectType", item.GetType().Name); kparams.Add("operationAttributes:" + i, item.ToParams()); i++; } } } kparams.AddIntIfNotNull("assetParamsId", this.AssetParamsId); return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddIntIfNotNull("id", this.Id); kparams.AddIntIfNotNull("partnerId", this.PartnerId); kparams.AddStringIfNotNull("name", this.Name); kparams.AddStringIfNotNull("systemName", this.SystemName); kparams.AddStringIfNotNull("description", this.Description); kparams.AddIntIfNotNull("createdAt", this.CreatedAt); kparams.AddEnumIfNotNull("isSystemDefault", this.IsSystemDefault); kparams.AddStringIfNotNull("tags", this.Tags); if (this.RequiredPermissions != null) { if (this.RequiredPermissions.Count == 0) { kparams.Add("requiredPermissions:-", ""); } else { int i = 0; foreach (KalturaString item in this.RequiredPermissions) { kparams.Add("requiredPermissions:" + i + ":objectType", item.GetType().Name); kparams.Add("requiredPermissions:" + i, item.ToParams()); i++; } } } return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddStringIfNotNull("fieldName", this.FieldName); kparams.AddStringIfNotNull("userFriendlyFieldName", this.UserFriendlyFieldName); kparams.AddStringIfNotNull("entryMrssXslt", this.EntryMrssXslt); kparams.AddEnumIfNotNull("isRequired", this.IsRequired); kparams.AddBoolIfNotNull("updateOnChange", this.UpdateOnChange); if (this.UpdateParams != null) { if (this.UpdateParams.Count == 0) { kparams.Add("updateParams:-", ""); } else { int i = 0; foreach (KalturaString item in this.UpdateParams) { kparams.Add("updateParams:" + i + ":objectType", item.GetType().Name); kparams.Add("updateParams:" + i, item.ToParams()); i++; } } } kparams.AddBoolIfNotNull("isDefault", this.IsDefault); return(kparams); }
public void QueueServiceCall(string service, string action, string fallbackClass, KalturaParams kparams, KalturaFiles kfiles) { Object value; foreach (string param in requestConfiguration.Keys) { value = requestConfiguration[param]; if (value is KalturaObjectBase) { kparams.Add(param, ((KalturaObjectBase)value).ToParams()); } else { kparams.Add(param, value.ToString()); } } KalturaServiceActionCall call = new KalturaServiceActionCall(service, action, kparams, kfiles); if (_MultiRequestReturnType != null) { _MultiRequestReturnType.Add(fallbackClass); } this._CallsQueue.Add(call); }
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 override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddStringIfNotNull("offlineMessage", this.OfflineMessage); kparams.AddStringIfNotNull("streamRemoteId", this.StreamRemoteId); kparams.AddStringIfNotNull("streamRemoteBackupId", this.StreamRemoteBackupId); if (this.Bitrates != null) { if (this.Bitrates.Count == 0) { kparams.Add("bitrates:-", ""); } else { int i = 0; foreach (KalturaLiveStreamBitrate item in this.Bitrates) { kparams.Add("bitrates:" + i + ":objectType", item.GetType().Name); kparams.Add("bitrates:" + i, item.ToParams()); i++; } } } kparams.AddStringIfNotNull("primaryBroadcastingUrl", this.PrimaryBroadcastingUrl); kparams.AddStringIfNotNull("secondaryBroadcastingUrl", this.SecondaryBroadcastingUrl); kparams.AddStringIfNotNull("streamName", this.StreamName); return(kparams); }
public void AddIfNotNull <T>(string key, IList <T> array) where T : KalturaObjectBase { if (array == null) { return; } KalturaParams arrayParams = new KalturaParams() { isArray = true }; if (array.Count == 0) { arrayParams.Add("-", ""); } else { int i = 0; foreach (KalturaObjectBase item in array) { arrayParams.Add(i.ToString(), item); i++; } } this.Add(key, arrayParams); }
public string GetUrlForReportAsCsv(string reportTitle, string reportText, string headers, KalturaReportType reportType, KalturaReportInputFilter reportInputFilter, string dimension, KalturaFilterPager pager, string order, string objectIds) { KalturaParams kparams = new KalturaParams(); kparams.AddStringIfNotNull("reportTitle", reportTitle); kparams.AddStringIfNotNull("reportText", reportText); kparams.AddStringIfNotNull("headers", headers); kparams.AddEnumIfNotNull("reportType", reportType); if (reportInputFilter != null) { kparams.Add("reportInputFilter", reportInputFilter.ToParams()); } kparams.AddStringIfNotNull("dimension", dimension); if (pager != null) { kparams.Add("pager", pager.ToParams()); } kparams.AddStringIfNotNull("order", order); kparams.AddStringIfNotNull("objectIds", objectIds); _Client.QueueServiceCall("report", "getUrlForReportAsCsv", kparams); if (this._Client.IsMultiRequest) { return(null); } XmlElement result = _Client.DoQueue(); return(result.InnerText); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddEnumIfNotNull("type", this.Type); if (this.Versions != null) { if (this.Versions.Count == 0) { kparams.Add("versions:-", ""); } else { int i = 0; foreach (KalturaString item in this.Versions) { kparams.Add("versions:" + i + ":objectType", item.GetType().Name); kparams.Add("versions:" + i, item.ToParams()); i++; } } } kparams.AddStringIfNotNull("directory", this.Directory); kparams.AddStringIfNotNull("filename", this.Filename); return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddIntIfNotNull("id", this.Id); kparams.AddStringIfNotNull("name", this.Name); kparams.AddStringIfNotNull("website", this.Website); kparams.AddStringIfNotNull("notificationUrl", this.NotificationUrl); kparams.AddIntIfNotNull("appearInSearch", this.AppearInSearch); kparams.AddIntIfNotNull("createdAt", this.CreatedAt); kparams.AddStringIfNotNull("adminName", this.AdminName); kparams.AddStringIfNotNull("adminEmail", this.AdminEmail); kparams.AddStringIfNotNull("description", this.Description); kparams.AddEnumIfNotNull("commercialUse", this.CommercialUse); kparams.AddStringIfNotNull("landingPage", this.LandingPage); kparams.AddStringIfNotNull("userLandingPage", this.UserLandingPage); kparams.AddStringIfNotNull("contentCategories", this.ContentCategories); kparams.AddEnumIfNotNull("type", this.Type); kparams.AddStringIfNotNull("phone", this.Phone); kparams.AddStringIfNotNull("describeYourself", this.DescribeYourself); kparams.AddBoolIfNotNull("adultContent", this.AdultContent); kparams.AddStringIfNotNull("defConversionProfileType", this.DefConversionProfileType); kparams.AddIntIfNotNull("notify", this.Notify); kparams.AddEnumIfNotNull("status", this.Status); kparams.AddIntIfNotNull("allowQuickEdit", this.AllowQuickEdit); kparams.AddIntIfNotNull("mergeEntryLists", this.MergeEntryLists); kparams.AddStringIfNotNull("notificationsConfig", this.NotificationsConfig); kparams.AddIntIfNotNull("maxUploadSize", this.MaxUploadSize); kparams.AddIntIfNotNull("partnerPackage", this.PartnerPackage); kparams.AddStringIfNotNull("secret", this.Secret); kparams.AddStringIfNotNull("adminSecret", this.AdminSecret); kparams.AddStringIfNotNull("cmsPassword", this.CmsPassword); kparams.AddIntIfNotNull("allowMultiNotification", this.AllowMultiNotification); kparams.AddIntIfNotNull("adminLoginUsersQuota", this.AdminLoginUsersQuota); kparams.AddStringIfNotNull("adminUserId", this.AdminUserId); kparams.AddStringIfNotNull("firstName", this.FirstName); kparams.AddStringIfNotNull("lastName", this.LastName); kparams.AddStringIfNotNull("country", this.Country); kparams.AddStringIfNotNull("state", this.State); if (this.AdditionalParams != null) { if (this.AdditionalParams.Count == 0) { kparams.Add("additionalParams:-", ""); } else { int i = 0; foreach (KalturaKeyValue item in this.AdditionalParams) { kparams.Add("additionalParams:" + i + ":objectType", item.GetType().Name); kparams.Add("additionalParams:" + i, item.ToParams()); i++; } } } return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddStringIfNotNull("id", this.Id); kparams.AddStringIfNotNull("name", this.Name); kparams.AddStringIfNotNull("description", this.Description); kparams.AddIntIfNotNull("partnerId", this.PartnerId); kparams.AddStringIfNotNull("userId", this.UserId); kparams.AddStringIfNotNull("tags", this.Tags); kparams.AddStringIfNotNull("adminTags", this.AdminTags); kparams.AddStringIfNotNull("categories", this.Categories); kparams.AddStringIfNotNull("categoriesIds", this.CategoriesIds); kparams.AddStringEnumIfNotNull("status", this.Status); kparams.AddEnumIfNotNull("moderationStatus", this.ModerationStatus); kparams.AddIntIfNotNull("moderationCount", this.ModerationCount); kparams.AddStringEnumIfNotNull("type", this.Type); kparams.AddIntIfNotNull("createdAt", this.CreatedAt); kparams.AddIntIfNotNull("updatedAt", this.UpdatedAt); kparams.AddFloatIfNotNull("rank", this.Rank); kparams.AddIntIfNotNull("totalRank", this.TotalRank); kparams.AddIntIfNotNull("votes", this.Votes); kparams.AddIntIfNotNull("groupId", this.GroupId); kparams.AddStringIfNotNull("partnerData", this.PartnerData); kparams.AddStringIfNotNull("downloadUrl", this.DownloadUrl); kparams.AddStringIfNotNull("searchText", this.SearchText); kparams.AddEnumIfNotNull("licenseType", this.LicenseType); kparams.AddIntIfNotNull("version", this.Version); kparams.AddStringIfNotNull("thumbnailUrl", this.ThumbnailUrl); kparams.AddIntIfNotNull("accessControlId", this.AccessControlId); kparams.AddIntIfNotNull("startDate", this.StartDate); kparams.AddIntIfNotNull("endDate", this.EndDate); kparams.AddStringIfNotNull("referenceId", this.ReferenceId); kparams.AddStringIfNotNull("replacingEntryId", this.ReplacingEntryId); kparams.AddStringIfNotNull("replacedEntryId", this.ReplacedEntryId); kparams.AddStringEnumIfNotNull("replacementStatus", this.ReplacementStatus); kparams.AddIntIfNotNull("partnerSortValue", this.PartnerSortValue); kparams.AddIntIfNotNull("conversionProfileId", this.ConversionProfileId); kparams.AddStringIfNotNull("rootEntryId", this.RootEntryId); if (this.OperationAttributes != null) { if (this.OperationAttributes.Count == 0) { kparams.Add("operationAttributes:-", ""); } else { int i = 0; foreach (KalturaOperationAttributes item in this.OperationAttributes) { kparams.Add("operationAttributes:" + i + ":objectType", item.GetType().Name); kparams.Add("operationAttributes:" + i, item.ToParams()); i++; } } } return(kparams); }
public KalturaParams GetParamsForMultiRequest(int multiRequestNumber) { _Params.Add("service", this._Service); _Params.Add("action", this._Action); KalturaParams multiRequestParams = new KalturaParams(); multiRequestParams.Add(multiRequestNumber.ToString(), this._Params); return(multiRequestParams); }
public KalturaParams GetParamsForMultiRequest(int multiRequestNumber) { KalturaParams multiRequestParams = new KalturaParams(); multiRequestParams.Add(multiRequestNumber + ":service", this._Service); multiRequestParams.Add(multiRequestNumber + ":action", this._Action); foreach (KeyValuePair <string, string> param in this._Params) { multiRequestParams.Add(multiRequestNumber + ":" + param.Key, param.Value); } return(multiRequestParams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddIntIfNotNull("id", this.Id); kparams.AddIntIfNotNull("bulkUploadJobId", this.BulkUploadJobId); kparams.AddIntIfNotNull("lineIndex", this.LineIndex); kparams.AddIntIfNotNull("partnerId", this.PartnerId); kparams.AddEnumIfNotNull("action", this.Action); kparams.AddStringIfNotNull("entryId", this.EntryId); kparams.AddStringIfNotNull("objectId", this.ObjectId); kparams.AddStringEnumIfNotNull("bulkUploadResultObjectType", this.BulkUploadResultObjectType); kparams.AddIntIfNotNull("entryStatus", this.EntryStatus); kparams.AddStringIfNotNull("rowData", this.RowData); kparams.AddStringIfNotNull("title", this.Title); kparams.AddStringIfNotNull("description", this.Description); kparams.AddStringIfNotNull("tags", this.Tags); kparams.AddStringIfNotNull("url", this.Url); kparams.AddStringIfNotNull("contentType", this.ContentType); kparams.AddIntIfNotNull("conversionProfileId", this.ConversionProfileId); kparams.AddIntIfNotNull("accessControlProfileId", this.AccessControlProfileId); kparams.AddStringIfNotNull("category", this.Category); kparams.AddIntIfNotNull("scheduleStartDate", this.ScheduleStartDate); kparams.AddIntIfNotNull("scheduleEndDate", this.ScheduleEndDate); kparams.AddStringIfNotNull("thumbnailUrl", this.ThumbnailUrl); kparams.AddBoolIfNotNull("thumbnailSaved", this.ThumbnailSaved); kparams.AddStringIfNotNull("partnerData", this.PartnerData); kparams.AddStringIfNotNull("errorDescription", this.ErrorDescription); if (this.PluginsData != null) { if (this.PluginsData.Count == 0) { kparams.Add("pluginsData:-", ""); } else { int i = 0; foreach (KalturaBulkUploadPluginData item in this.PluginsData) { kparams.Add("pluginsData:" + i + ":objectType", item.GetType().Name); kparams.Add("pluginsData:" + i, item.ToParams()); i++; } } } kparams.AddStringIfNotNull("sshPrivateKey", this.SshPrivateKey); kparams.AddStringIfNotNull("sshPublicKey", this.SshPublicKey); kparams.AddStringIfNotNull("sshKeyPassphrase", this.SshKeyPassphrase); return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddIntIfNotNull("id", this.Id); kparams.AddIntIfNotNull("createdAt", this.CreatedAt); kparams.AddIntIfNotNull("updatedAt", this.UpdatedAt); kparams.AddIntIfNotNull("submittedAt", this.SubmittedAt); kparams.AddStringIfNotNull("entryId", this.EntryId); kparams.AddIntIfNotNull("partnerId", this.PartnerId); kparams.AddIntIfNotNull("distributionProfileId", this.DistributionProfileId); kparams.AddEnumIfNotNull("status", this.Status); kparams.AddEnumIfNotNull("sunStatus", this.SunStatus); kparams.AddEnumIfNotNull("dirtyStatus", this.DirtyStatus); kparams.AddStringIfNotNull("thumbAssetIds", this.ThumbAssetIds); kparams.AddStringIfNotNull("flavorAssetIds", this.FlavorAssetIds); kparams.AddIntIfNotNull("sunrise", this.Sunrise); kparams.AddIntIfNotNull("sunset", this.Sunset); kparams.AddStringIfNotNull("remoteId", this.RemoteId); kparams.AddIntIfNotNull("plays", this.Plays); kparams.AddIntIfNotNull("views", this.Views); if (this.ValidationErrors != null) { if (this.ValidationErrors.Count == 0) { kparams.Add("validationErrors:-", ""); } else { int i = 0; foreach (KalturaDistributionValidationError item in this.ValidationErrors) { kparams.Add("validationErrors:" + i + ":objectType", item.GetType().Name); kparams.Add("validationErrors:" + i, item.ToParams()); i++; } } } kparams.AddEnumIfNotNull("errorType", this.ErrorType); kparams.AddIntIfNotNull("errorNumber", this.ErrorNumber); kparams.AddStringIfNotNull("errorDescription", this.ErrorDescription); kparams.AddEnumIfNotNull("hasSubmitResultsLog", this.HasSubmitResultsLog); kparams.AddEnumIfNotNull("hasSubmitSentDataLog", this.HasSubmitSentDataLog); kparams.AddEnumIfNotNull("hasUpdateResultsLog", this.HasUpdateResultsLog); kparams.AddEnumIfNotNull("hasUpdateSentDataLog", this.HasUpdateSentDataLog); kparams.AddEnumIfNotNull("hasDeleteResultsLog", this.HasDeleteResultsLog); kparams.AddEnumIfNotNull("hasDeleteSentDataLog", this.HasDeleteSentDataLog); return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddIntIfNotNull("id", this.Id); kparams.AddIntIfNotNull("createdAt", this.CreatedAt); kparams.AddIntIfNotNull("updatedAt", this.UpdatedAt); kparams.AddIntIfNotNull("partnerId", this.PartnerId); kparams.AddStringIfNotNull("name", this.Name); kparams.AddStringIfNotNull("systemName", this.SystemName); kparams.AddStringIfNotNull("desciption", this.Desciption); kparams.AddEnumIfNotNull("status", this.Status); kparams.AddEnumIfNotNull("protocol", this.Protocol); kparams.AddStringIfNotNull("storageUrl", this.StorageUrl); kparams.AddStringIfNotNull("storageBaseDir", this.StorageBaseDir); kparams.AddStringIfNotNull("storageUsername", this.StorageUsername); kparams.AddStringIfNotNull("storagePassword", this.StoragePassword); kparams.AddBoolIfNotNull("storageFtpPassiveMode", this.StorageFtpPassiveMode); kparams.AddStringIfNotNull("deliveryHttpBaseUrl", this.DeliveryHttpBaseUrl); kparams.AddStringIfNotNull("deliveryRmpBaseUrl", this.DeliveryRmpBaseUrl); kparams.AddStringIfNotNull("deliveryIisBaseUrl", this.DeliveryIisBaseUrl); kparams.AddIntIfNotNull("minFileSize", this.MinFileSize); kparams.AddIntIfNotNull("maxFileSize", this.MaxFileSize); kparams.AddStringIfNotNull("flavorParamsIds", this.FlavorParamsIds); kparams.AddIntIfNotNull("maxConcurrentConnections", this.MaxConcurrentConnections); kparams.AddStringIfNotNull("pathManagerClass", this.PathManagerClass); kparams.AddStringIfNotNull("urlManagerClass", this.UrlManagerClass); if (this.UrlManagerParams != null) { if (this.UrlManagerParams.Count == 0) { kparams.Add("urlManagerParams:-", ""); } else { int i = 0; foreach (KalturaKeyValue item in this.UrlManagerParams) { kparams.Add("urlManagerParams:" + i + ":objectType", item.GetType().Name); kparams.Add("urlManagerParams:" + i, item.ToParams()); i++; } } } kparams.AddIntIfNotNull("trigger", this.Trigger); kparams.AddIntIfNotNull("deliveryPriority", this.DeliveryPriority); kparams.AddEnumIfNotNull("deliveryStatus", this.DeliveryStatus); return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); if (this.ConversionProfileIdFilter != null) { kparams.Add("conversionProfileIdFilter", this.ConversionProfileIdFilter.ToParams()); } if (this.AssetParamsIdFilter != null) { kparams.Add("assetParamsIdFilter", this.AssetParamsIdFilter.ToParams()); } kparams.AddStringEnumIfNotNull("orderBy", this.OrderBy); return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); if (this.FlavorAsset != null) { kparams.Add("flavorAsset", this.FlavorAsset.ToParams()); } if (this.FlavorParams != null) { kparams.Add("flavorParams", this.FlavorParams.ToParams()); } kparams.AddStringIfNotNull("entryId", this.EntryId); return(kparams); }
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 override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddIntIfNotNull("id", this.Id); kparams.AddIntIfNotNull("partnerId", this.PartnerId); kparams.AddStringEnumIfNotNull("status", this.Status); kparams.AddStringIfNotNull("name", this.Name); kparams.AddStringIfNotNull("systemName", this.SystemName); kparams.AddStringIfNotNull("tags", this.Tags); kparams.AddStringIfNotNull("description", this.Description); kparams.AddStringIfNotNull("defaultEntryId", this.DefaultEntryId); kparams.AddIntIfNotNull("createdAt", this.CreatedAt); kparams.AddStringIfNotNull("flavorParamsIds", this.FlavorParamsIds); kparams.AddEnumIfNotNull("isDefault", this.IsDefault); kparams.AddBoolIfNotNull("isPartnerDefault", this.IsPartnerDefault); if (this.CropDimensions != null) { kparams.Add("cropDimensions", this.CropDimensions.ToParams()); } kparams.AddIntIfNotNull("clipStart", this.ClipStart); kparams.AddIntIfNotNull("clipDuration", this.ClipDuration); kparams.AddStringIfNotNull("xslTransformation", this.XslTransformation); kparams.AddIntIfNotNull("storageProfileId", this.StorageProfileId); return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddIntIfNotNull("id", this.Id); kparams.AddIntIfNotNull("partnerId", this.PartnerId); kparams.AddStringIfNotNull("name", this.Name); kparams.AddStringIfNotNull("description", this.Description); kparams.AddStringEnumIfNotNull("type", this.Type); kparams.AddEnumIfNotNull("status", this.Status); kparams.AddIntIfNotNull("conversionProfileId", this.ConversionProfileId); kparams.AddIntIfNotNull("dc", this.Dc); kparams.AddStringIfNotNull("path", this.Path); kparams.AddIntIfNotNull("fileSizeCheckInterval", this.FileSizeCheckInterval); kparams.AddEnumIfNotNull("fileDeletePolicy", this.FileDeletePolicy); kparams.AddIntIfNotNull("autoFileDeleteDays", this.AutoFileDeleteDays); kparams.AddStringEnumIfNotNull("fileHandlerType", this.FileHandlerType); kparams.AddStringIfNotNull("fileNamePatterns", this.FileNamePatterns); if (this.FileHandlerConfig != null) { kparams.Add("fileHandlerConfig", this.FileHandlerConfig.ToParams()); } kparams.AddStringIfNotNull("tags", this.Tags); kparams.AddStringIfNotNull("ignoreFileNamePatterns", this.IgnoreFileNamePatterns); kparams.AddIntIfNotNull("createdAt", this.CreatedAt); kparams.AddIntIfNotNull("updatedAt", this.UpdatedAt); return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddIntIfNotNull("id", this.Id); kparams.AddIntIfNotNull("createdAt", this.CreatedAt); kparams.AddIntIfNotNull("parsedAt", this.ParsedAt); kparams.AddEnumIfNotNull("status", this.Status); kparams.AddStringEnumIfNotNull("auditObjectType", this.AuditObjectType); kparams.AddStringIfNotNull("objectId", this.ObjectId); kparams.AddStringIfNotNull("relatedObjectId", this.RelatedObjectId); kparams.AddStringEnumIfNotNull("relatedObjectType", this.RelatedObjectType); kparams.AddStringIfNotNull("entryId", this.EntryId); kparams.AddIntIfNotNull("masterPartnerId", this.MasterPartnerId); kparams.AddIntIfNotNull("partnerId", this.PartnerId); kparams.AddStringIfNotNull("requestId", this.RequestId); kparams.AddStringIfNotNull("userId", this.UserId); kparams.AddStringEnumIfNotNull("action", this.Action); if (this.Data != null) { kparams.Add("data", this.Data.ToParams()); } kparams.AddStringIfNotNull("ks", this.Ks); kparams.AddEnumIfNotNull("context", this.Context); kparams.AddStringIfNotNull("entryPoint", this.EntryPoint); kparams.AddStringIfNotNull("serverName", this.ServerName); kparams.AddStringIfNotNull("ipAddress", this.IpAddress); kparams.AddStringIfNotNull("userAgent", this.UserAgent); kparams.AddStringIfNotNull("clientTag", this.ClientTag); kparams.AddStringIfNotNull("description", this.Description); kparams.AddStringIfNotNull("errorDescription", this.ErrorDescription); return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); if (this.Asset != null) { kparams.Add("asset", this.Asset.ToParams()); } if (this.Entry != null) { kparams.Add("entry", this.Entry.ToParams()); } kparams.AddIntIfNotNull("startTime", this.StartTime); kparams.AddIntIfNotNull("endTime", this.EndTime); kparams.AddStringIfNotNull("content", this.Content); return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); if (this.Dimensions != null) { kparams.Add("dimensions", this.Dimensions.ToParams()); } return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); kparams.AddStringIfNotNull("orderBy", this.OrderBy); if (this.AdvancedSearch != null) { kparams.Add("advancedSearch", this.AdvancedSearch.ToParams()); } return(kparams); }
public override KalturaParams ToParams() { KalturaParams kparams = base.ToParams(); if (this.Resource != null) { kparams.Add("resource", this.Resource.ToParams()); } kparams.AddIntIfNotNull("assetParamsId", this.AssetParamsId); return(kparams); }