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

            kparams.AddFloatIfNotNull("hostingGB", this.HostingGB);
            kparams.AddFloatIfNotNull("Percent", this.Percent);
            kparams.AddIntIfNotNull("packageBW", this.PackageBW);
            kparams.AddIntIfNotNull("usageGB", this.UsageGB);
            kparams.AddIntIfNotNull("reachedLimitDate", this.ReachedLimitDate);
            kparams.AddStringIfNotNull("usageGraph", this.UsageGraph);
            return(kparams);
        }
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("id", this.Id);
            kparams.AddIntIfNotNull("partnerId", this.PartnerId);
            kparams.AddStringIfNotNull("userId", this.UserId);
            kparams.AddEnumIfNotNull("status", this.Status);
            kparams.AddStringIfNotNull("fileName", this.FileName);
            kparams.AddFloatIfNotNull("fileSize", this.FileSize);
            kparams.AddFloatIfNotNull("uploadedFileSize", this.UploadedFileSize);
            kparams.AddIntIfNotNull("createdAt", this.CreatedAt);
            kparams.AddIntIfNotNull("updatedAt", this.UpdatedAt);
            return(kparams);
        }
        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);
        }
        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);
        }
示例#5
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddEnumIfNotNull("cropType", this.CropType);
            kparams.AddIntIfNotNull("quality", this.Quality);
            kparams.AddIntIfNotNull("cropX", this.CropX);
            kparams.AddIntIfNotNull("cropY", this.CropY);
            kparams.AddIntIfNotNull("cropWidth", this.CropWidth);
            kparams.AddIntIfNotNull("cropHeight", this.CropHeight);
            kparams.AddFloatIfNotNull("videoOffset", this.VideoOffset);
            kparams.AddIntIfNotNull("width", this.Width);
            kparams.AddIntIfNotNull("height", this.Height);
            kparams.AddFloatIfNotNull("scaleWidth", this.ScaleWidth);
            kparams.AddFloatIfNotNull("scaleHeight", this.ScaleHeight);
            kparams.AddStringIfNotNull("backgroundColor", this.BackgroundColor);
            kparams.AddIntIfNotNull("sourceParamsId", this.SourceParamsId);
            kparams.AddStringEnumIfNotNull("format", this.Format);
            return(kparams);
        }
示例#6
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("clientVer", this.ClientVer);
            kparams.AddStringIfNotNull("kmcEventActionPath", this.KmcEventActionPath);
            kparams.AddEnumIfNotNull("kmcEventType", this.KmcEventType);
            kparams.AddFloatIfNotNull("eventTimestamp", this.EventTimestamp);
            kparams.AddStringIfNotNull("sessionId", this.SessionId);
            kparams.AddIntIfNotNull("partnerId", this.PartnerId);
            kparams.AddStringIfNotNull("entryId", this.EntryId);
            kparams.AddStringIfNotNull("widgetId", this.WidgetId);
            kparams.AddIntIfNotNull("uiconfId", this.UiconfId);
            kparams.AddStringIfNotNull("userId", this.UserId);
            kparams.AddStringIfNotNull("userIp", this.UserIp);
            return(kparams);
        }