public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("username", this.Username);
            kparams.AddStringIfNotNull("notificationEmail", this.NotificationEmail);
            kparams.AddStringIfNotNull("sftpHost", this.SftpHost);
            kparams.AddStringIfNotNull("sftpLogin", this.SftpLogin);
            kparams.AddStringIfNotNull("sftpPublicKey", this.SftpPublicKey);
            kparams.AddStringIfNotNull("sftpPrivateKey", this.SftpPrivateKey);
            kparams.AddStringIfNotNull("sftpBaseDir", this.SftpBaseDir);
            kparams.AddStringIfNotNull("ownerName", this.OwnerName);
            kparams.AddStringIfNotNull("defaultCategory", this.DefaultCategory);
            kparams.AddStringIfNotNull("allowComments", this.AllowComments);
            kparams.AddStringIfNotNull("allowEmbedding", this.AllowEmbedding);
            kparams.AddStringIfNotNull("allowRatings", this.AllowRatings);
            kparams.AddStringIfNotNull("allowResponses", this.AllowResponses);
            kparams.AddStringIfNotNull("commercialPolicy", this.CommercialPolicy);
            kparams.AddStringIfNotNull("ugcPolicy", this.UgcPolicy);
            kparams.AddStringIfNotNull("target", this.Target);
            kparams.AddStringIfNotNull("adServerPartnerId", this.AdServerPartnerId);
            kparams.AddBoolIfNotNull("enableAdServer", this.EnableAdServer);
            kparams.AddBoolIfNotNull("allowPreRollAds", this.AllowPreRollAds);
            kparams.AddBoolIfNotNull("allowPostRollAds", this.AllowPostRollAds);
            return(kparams);
        }
Exemplo n.º 2
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("clientVer", this.ClientVer);
            kparams.AddEnumIfNotNull("eventType", this.EventType);
            kparams.AddFloatIfNotNull("eventTimestamp", this.EventTimestamp);
            kparams.AddStringIfNotNull("sessionId", this.SessionId);
            kparams.AddIntIfNotNull("partnerId", this.PartnerId);
            kparams.AddStringIfNotNull("entryId", this.EntryId);
            kparams.AddStringIfNotNull("uniqueViewer", this.UniqueViewer);
            kparams.AddStringIfNotNull("widgetId", this.WidgetId);
            kparams.AddIntIfNotNull("uiconfId", this.UiconfId);
            kparams.AddStringIfNotNull("userId", this.UserId);
            kparams.AddIntIfNotNull("currentPoint", this.CurrentPoint);
            kparams.AddIntIfNotNull("duration", this.Duration);
            kparams.AddStringIfNotNull("userIp", this.UserIp);
            kparams.AddIntIfNotNull("processDuration", this.ProcessDuration);
            kparams.AddStringIfNotNull("controlId", this.ControlId);
            kparams.AddBoolIfNotNull("seek", this.Seek);
            kparams.AddIntIfNotNull("newPoint", this.NewPoint);
            kparams.AddStringIfNotNull("referrer", this.Referrer);
            kparams.AddBoolIfNotNull("isFirstInSession", this.IsFirstInSession);
            return(kparams);
        }
Exemplo n.º 3
0
        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 override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddIntIfNotNull("fromDate", this.FromDate);
            kparams.AddIntIfNotNull("toDate", this.ToDate);
            kparams.AddStringIfNotNull("keywords", this.Keywords);
            kparams.AddBoolIfNotNull("searchInTags", this.SearchInTags);
            kparams.AddBoolIfNotNull("searchInAdminTags", this.SearchInAdminTags);
            kparams.AddStringIfNotNull("categories", this.Categories);
            kparams.AddIntIfNotNull("timeZoneOffset", this.TimeZoneOffset);
            return(kparams);
        }
Exemplo n.º 5
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddBoolIfNotNull("noDistributionProfiles", this.NoDistributionProfiles);
            kparams.AddIntIfNotNull("distributionProfileId", this.DistributionProfileId);
            kparams.AddEnumIfNotNull("distributionSunStatus", this.DistributionSunStatus);
            kparams.AddEnumIfNotNull("entryDistributionFlag", this.EntryDistributionFlag);
            kparams.AddEnumIfNotNull("entryDistributionStatus", this.EntryDistributionStatus);
            kparams.AddBoolIfNotNull("hasEntryDistributionValidationErrors", this.HasEntryDistributionValidationErrors);
            kparams.AddStringIfNotNull("entryDistributionValidationErrors", this.EntryDistributionValidationErrors);
            return(kparams);
        }
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringEnumIfNotNull("type", this.Type);
            kparams.AddStringIfNotNull("name", this.Name);
            kparams.AddBoolIfNotNull("scheduleUpdateEnabled", this.ScheduleUpdateEnabled);
            kparams.AddBoolIfNotNull("availabilityUpdateEnabled", this.AvailabilityUpdateEnabled);
            kparams.AddBoolIfNotNull("deleteInsteadUpdate", this.DeleteInsteadUpdate);
            kparams.AddIntIfNotNull("intervalBeforeSunrise", this.IntervalBeforeSunrise);
            kparams.AddIntIfNotNull("intervalBeforeSunset", this.IntervalBeforeSunset);
            kparams.AddStringIfNotNull("updateRequiredEntryFields", this.UpdateRequiredEntryFields);
            kparams.AddStringIfNotNull("updateRequiredMetadataXPaths", this.UpdateRequiredMetadataXPaths);
            return(kparams);
        }
Exemplo n.º 7
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddBoolIfNotNull("isPublic", this.IsPublic);
            return(kparams);
        }
Exemplo n.º 8
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddIntIfNotNull("flavorParamsId", this.FlavorParamsId);
            kparams.AddIntIfNotNull("width", this.Width);
            kparams.AddIntIfNotNull("height", this.Height);
            kparams.AddIntIfNotNull("bitrate", this.Bitrate);
            kparams.AddIntIfNotNull("frameRate", this.FrameRate);
            kparams.AddBoolIfNotNull("isOriginal", this.IsOriginal);
            kparams.AddBoolIfNotNull("isWeb", this.IsWeb);
            kparams.AddStringIfNotNull("containerFormat", this.ContainerFormat);
            kparams.AddStringIfNotNull("videoCodecId", this.VideoCodecId);
            kparams.AddEnumIfNotNull("status", this.Status);
            return(kparams);
        }
        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);
        }
Exemplo n.º 10
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddBoolIfNotNull("readonly", this.Readonly);
            return(kparams);
        }
Exemplo n.º 11
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddIntIfNotNull("id", this.Id);
            kparams.AddStringIfNotNull("name", this.Name);
            kparams.AddStringIfNotNull("description", this.Description);
            kparams.AddIntIfNotNull("partnerId", this.PartnerId);
            kparams.AddEnumIfNotNull("objType", this.ObjType);
            kparams.AddStringIfNotNull("objTypeAsString", this.ObjTypeAsString);
            kparams.AddIntIfNotNull("width", this.Width);
            kparams.AddIntIfNotNull("height", this.Height);
            kparams.AddStringIfNotNull("htmlParams", this.HtmlParams);
            kparams.AddStringIfNotNull("swfUrl", this.SwfUrl);
            kparams.AddStringIfNotNull("confFilePath", this.ConfFilePath);
            kparams.AddStringIfNotNull("confFile", this.ConfFile);
            kparams.AddStringIfNotNull("confFileFeatures", this.ConfFileFeatures);
            kparams.AddStringIfNotNull("confVars", this.ConfVars);
            kparams.AddBoolIfNotNull("useCdn", this.UseCdn);
            kparams.AddStringIfNotNull("tags", this.Tags);
            kparams.AddStringIfNotNull("swfUrlVersion", this.SwfUrlVersion);
            kparams.AddIntIfNotNull("createdAt", this.CreatedAt);
            kparams.AddIntIfNotNull("updatedAt", this.UpdatedAt);
            kparams.AddEnumIfNotNull("creationMode", this.CreationMode);
            return(kparams);
        }
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("apikey", this.Apikey);
            kparams.AddStringIfNotNull("email", this.Email);
            kparams.AddStringIfNotNull("sftpPass", this.SftpPass);
            kparams.AddStringIfNotNull("sftpLogin", this.SftpLogin);
            kparams.AddStringIfNotNull("contentOwner", this.ContentOwner);
            kparams.AddStringIfNotNull("upstreamVideoId", this.UpstreamVideoId);
            kparams.AddStringIfNotNull("upstreamNetworkName", this.UpstreamNetworkName);
            kparams.AddStringIfNotNull("upstreamNetworkId", this.UpstreamNetworkId);
            kparams.AddStringIfNotNull("categoryId", this.CategoryId);
            kparams.AddBoolIfNotNull("replaceGroup", this.ReplaceGroup);
            kparams.AddBoolIfNotNull("replaceAirDates", this.ReplaceAirDates);
            return(kparams);
        }
Exemplo n.º 13
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("dataContent", this.DataContent);
            kparams.AddBoolIfNotNull("retrieveDataContentByGet", this.RetrieveDataContentByGet);
            return(kparams);
        }
Exemplo n.º 14
0
        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);
        }
Exemplo n.º 15
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddBoolIfNotNull("hasRealThumbnail", this.HasRealThumbnail);
            kparams.AddEnumIfNotNull("editorType", this.EditorType);
            kparams.AddStringIfNotNull("dataContent", this.DataContent);
            return(kparams);
        }
Exemplo n.º 16
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("idEqual", this.IdEqual);
            kparams.AddStringIfNotNull("idIn", this.IdIn);
            kparams.AddBoolIfNotNull("loginEnabledEqual", this.LoginEnabledEqual);
            kparams.AddStringEnumIfNotNull("orderBy", this.OrderBy);
            return(kparams);
        }
Exemplo n.º 17
0
        public KalturaUploadToken Upload(string uploadTokenId, FileStream fileData, bool resume, bool finalChunk, int resumeAt)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("uploadTokenId", uploadTokenId);
            KalturaFiles kfiles = new KalturaFiles();

            kfiles.Add("fileData", fileData);
            kparams.AddBoolIfNotNull("resume", resume);
            kparams.AddBoolIfNotNull("finalChunk", finalChunk);
            kparams.AddIntIfNotNull("resumeAt", resumeAt);
            _Client.QueueServiceCall("uploadtoken", "upload", kparams, kfiles);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaUploadToken)KalturaObjectFactory.Create(result));
        }
Exemplo n.º 18
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("version", this.Version);
            kparams.AddIntIfNotNull("objectSubType", this.ObjectSubType);
            kparams.AddIntIfNotNull("dc", this.Dc);
            kparams.AddBoolIfNotNull("original", this.Original);
            kparams.AddEnumIfNotNull("fileType", this.FileType);
            return(kparams);
        }
Exemplo n.º 19
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("id", this.Id);
            kparams.AddStringIfNotNull("feedUrl", this.FeedUrl);
            kparams.AddIntIfNotNull("partnerId", this.PartnerId);
            kparams.AddStringIfNotNull("playlistId", this.PlaylistId);
            kparams.AddStringIfNotNull("name", this.Name);
            kparams.AddEnumIfNotNull("status", this.Status);
            kparams.AddEnumIfNotNull("type", this.Type);
            kparams.AddStringIfNotNull("landingPage", this.LandingPage);
            kparams.AddIntIfNotNull("createdAt", this.CreatedAt);
            kparams.AddBoolIfNotNull("allowEmbed", this.AllowEmbed);
            kparams.AddIntIfNotNull("playerUiconfId", this.PlayerUiconfId);
            kparams.AddIntIfNotNull("flavorParamId", this.FlavorParamId);
            kparams.AddBoolIfNotNull("transcodeExistingContent", this.TranscodeExistingContent);
            kparams.AddBoolIfNotNull("addToDefaultConversionProfile", this.AddToDefaultConversionProfile);
            kparams.AddStringIfNotNull("categories", this.Categories);
            return(kparams);
        }
Exemplo n.º 20
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("id", this.Id);
            kparams.AddIntIfNotNull("partnerId", this.PartnerId);
            kparams.AddStringIfNotNull("screenName", this.ScreenName);
            kparams.AddStringIfNotNull("fullName", this.FullName);
            kparams.AddStringIfNotNull("email", this.Email);
            kparams.AddIntIfNotNull("dateOfBirth", this.DateOfBirth);
            kparams.AddStringIfNotNull("country", this.Country);
            kparams.AddStringIfNotNull("state", this.State);
            kparams.AddStringIfNotNull("city", this.City);
            kparams.AddStringIfNotNull("zip", this.Zip);
            kparams.AddStringIfNotNull("thumbnailUrl", this.ThumbnailUrl);
            kparams.AddStringIfNotNull("description", this.Description);
            kparams.AddStringIfNotNull("tags", this.Tags);
            kparams.AddStringIfNotNull("adminTags", this.AdminTags);
            kparams.AddEnumIfNotNull("gender", this.Gender);
            kparams.AddEnumIfNotNull("status", this.Status);
            kparams.AddIntIfNotNull("createdAt", this.CreatedAt);
            kparams.AddIntIfNotNull("updatedAt", this.UpdatedAt);
            kparams.AddStringIfNotNull("partnerData", this.PartnerData);
            kparams.AddIntIfNotNull("indexedPartnerDataInt", this.IndexedPartnerDataInt);
            kparams.AddStringIfNotNull("indexedPartnerDataString", this.IndexedPartnerDataString);
            kparams.AddIntIfNotNull("storageSize", this.StorageSize);
            kparams.AddStringIfNotNull("password", this.Password);
            kparams.AddStringIfNotNull("firstName", this.FirstName);
            kparams.AddStringIfNotNull("lastName", this.LastName);
            kparams.AddBoolIfNotNull("isAdmin", this.IsAdmin);
            kparams.AddIntIfNotNull("lastLoginTime", this.LastLoginTime);
            kparams.AddIntIfNotNull("statusUpdatedAt", this.StatusUpdatedAt);
            kparams.AddIntIfNotNull("deletedAt", this.DeletedAt);
            kparams.AddBoolIfNotNull("loginEnabled", this.LoginEnabled);
            kparams.AddStringIfNotNull("roleIds", this.RoleIds);
            kparams.AddStringIfNotNull("roleNames", this.RoleNames);
            kparams.AddBoolIfNotNull("isAccountOwner", this.IsAccountOwner);
            kparams.AddStringIfNotNull("allowedPartnerIds", this.AllowedPartnerIds);
            return(kparams);
        }
Exemplo n.º 21
0
        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("partnerId", this.PartnerId);
            kparams.AddBoolIfNotNull("isDefault", this.IsDefault);
            kparams.AddEnumIfNotNull("status", this.Status);
            kparams.AddStringIfNotNull("optionalFlavorParamsIds", this.OptionalFlavorParamsIds);
            kparams.AddStringIfNotNull("requiredFlavorParamsIds", this.RequiredFlavorParamsIds);
            if (this.OptionalThumbDimensions != null)
            {
                if (this.OptionalThumbDimensions.Count == 0)
                {
                    kparams.Add("optionalThumbDimensions:-", "");
                }
                else
                {
                    int i = 0;
                    foreach (KalturaDistributionThumbDimensions item in this.OptionalThumbDimensions)
                    {
                        kparams.Add("optionalThumbDimensions:" + i + ":objectType", item.GetType().Name);
                        kparams.Add("optionalThumbDimensions:" + i, item.ToParams());
                        i++;
                    }
                }
            }
            if (this.RequiredThumbDimensions != null)
            {
                if (this.RequiredThumbDimensions.Count == 0)
                {
                    kparams.Add("requiredThumbDimensions:-", "");
                }
                else
                {
                    int i = 0;
                    foreach (KalturaDistributionThumbDimensions item in this.RequiredThumbDimensions)
                    {
                        kparams.Add("requiredThumbDimensions:" + i + ":objectType", item.GetType().Name);
                        kparams.Add("requiredThumbDimensions:" + i, item.ToParams());
                        i++;
                    }
                }
            }
            kparams.AddStringIfNotNull("editableFields", this.EditableFields);
            kparams.AddStringIfNotNull("mandatoryFields", this.MandatoryFields);
            return(kparams);
        }
Exemplo n.º 23
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddEnumIfNotNull("protocol", this.Protocol);
            kparams.AddStringIfNotNull("serverUrl", this.ServerUrl);
            kparams.AddStringIfNotNull("serverPath", this.ServerPath);
            kparams.AddStringIfNotNull("username", this.Username);
            kparams.AddStringIfNotNull("password", this.Password);
            kparams.AddBoolIfNotNull("ftpPassiveMode", this.FtpPassiveMode);
            kparams.AddStringIfNotNull("httpFieldName", this.HttpFieldName);
            kparams.AddStringIfNotNull("httpFileName", this.HttpFileName);
            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);
        }
Exemplo n.º 25
0
        public KalturaEntryDistribution SubmitAdd(int id, bool submitWhenReady)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaEntryDistribution)KalturaObjectFactory.Create(result));
        }
Exemplo n.º 26
0
        public string GetDownloadUrl(string id, bool useCdn)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("id", id);
            kparams.AddBoolIfNotNull("useCdn", useCdn);
            _Client.QueueServiceCall("flavorasset", "getDownloadUrl", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return(result.InnerText);
        }
Exemplo n.º 27
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddIntIfNotNull("partnerIdEqual", this.PartnerIdEqual);
            kparams.AddStringIfNotNull("screenNameLike", this.ScreenNameLike);
            kparams.AddStringIfNotNull("screenNameStartsWith", this.ScreenNameStartsWith);
            kparams.AddStringIfNotNull("emailLike", this.EmailLike);
            kparams.AddStringIfNotNull("emailStartsWith", this.EmailStartsWith);
            kparams.AddStringIfNotNull("tagsMultiLikeOr", this.TagsMultiLikeOr);
            kparams.AddStringIfNotNull("tagsMultiLikeAnd", this.TagsMultiLikeAnd);
            kparams.AddEnumIfNotNull("statusEqual", this.StatusEqual);
            kparams.AddStringIfNotNull("statusIn", this.StatusIn);
            kparams.AddIntIfNotNull("createdAtGreaterThanOrEqual", this.CreatedAtGreaterThanOrEqual);
            kparams.AddIntIfNotNull("createdAtLessThanOrEqual", this.CreatedAtLessThanOrEqual);
            kparams.AddBoolIfNotNull("isAdminEqual", this.IsAdminEqual);
            return(kparams);
        }
Exemplo n.º 28
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddIntIfNotNull("idEqual", this.IdEqual);
            kparams.AddStringIfNotNull("idIn", this.IdIn);
            kparams.AddIntIfNotNull("createdAtGreaterThanOrEqual", this.CreatedAtGreaterThanOrEqual);
            kparams.AddIntIfNotNull("createdAtLessThanOrEqual", this.CreatedAtLessThanOrEqual);
            kparams.AddIntIfNotNull("updatedAtGreaterThanOrEqual", this.UpdatedAtGreaterThanOrEqual);
            kparams.AddIntIfNotNull("updatedAtLessThanOrEqual", this.UpdatedAtLessThanOrEqual);
            kparams.AddIntIfNotNull("partnerIdEqual", this.PartnerIdEqual);
            kparams.AddStringIfNotNull("partnerIdIn", this.PartnerIdIn);
            kparams.AddBoolIfNotNull("isDefaultEqual", this.IsDefaultEqual);
            kparams.AddStringIfNotNull("isDefaultIn", this.IsDefaultIn);
            kparams.AddEnumIfNotNull("statusEqual", this.StatusEqual);
            kparams.AddStringIfNotNull("statusIn", this.StatusIn);
            return(kparams);
        }
Exemplo n.º 29
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));
        }
Exemplo n.º 30
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));
        }