Пример #1
0
        public KalturaPermission Update(string permissionName, KalturaPermission permission)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("permissionName", permissionName);
            if (permission != null)
            {
                kparams.Add("permission", permission.ToParams());
            }
            _Client.QueueServiceCall("permission", "update", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaPermission)KalturaObjectFactory.Create(result));
        }
        public KalturaCaptionAsset Update(string id, KalturaCaptionAsset captionAsset)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("id", id);
            if (captionAsset != null)
            {
                kparams.Add("captionAsset", captionAsset.ToParams());
            }
            _Client.QueueServiceCall("caption_captionasset", "update", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaCaptionAsset)KalturaObjectFactory.Create(result));
        }
Пример #3
0
        public KalturaUser Update(string userId, KalturaUser user)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("userId", userId);
            if (user != null)
            {
                kparams.Add("user", user.ToParams());
            }
            _Client.QueueServiceCall("user", "update", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaUser)KalturaObjectFactory.Create(result));
        }
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("host", this.Host);
            kparams.AddIntIfNotNull("port", this.Port);
            kparams.AddStringIfNotNull("username", this.Username);
            kparams.AddStringIfNotNull("password", this.Password);
            kparams.AddStringIfNotNull("privateKey", this.PrivateKey);
            kparams.AddStringIfNotNull("publicKey", this.PublicKey);
            kparams.AddStringIfNotNull("passPhrase", this.PassPhrase);
            return(kparams);
        }
Пример #5
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);
        }
Пример #6
0
        public KalturaMetadata AddFromFile(int metadataProfileId, KalturaMetadataObjectType objectType, string objectId, FileStream xmlFile)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("metadataProfileId", metadataProfileId);
            kparams.AddStringEnumIfNotNull("objectType", objectType);
            kparams.AddStringIfNotNull("objectId", objectId);
            KalturaFiles kfiles = new KalturaFiles();

            kfiles.Add("xmlFile", xmlFile);
            _Client.QueueServiceCall("metadata_metadata", "addFromFile", kparams, kfiles);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaMetadata)KalturaObjectFactory.Create(result));
        }
Пример #7
0
        public int Convert(string entryId, int conversionProfileId, IList <KalturaConversionAttribute> dynamicConversionAttributes)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("entryId", entryId);
            kparams.AddIntIfNotNull("conversionProfileId", conversionProfileId);
            foreach (KalturaConversionAttribute obj in dynamicConversionAttributes)
            {
                kparams.Add("dynamicConversionAttributes", obj.ToParams());
            }
            _Client.QueueServiceCall("media", "convert", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(0);
            }
            XmlElement result = _Client.DoQueue();

            return(int.Parse(result.InnerText));
        }
Пример #8
0
        public IList <KalturaThumbAsset> GetByEntryId(string entryId)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("entryId", entryId);
            _Client.QueueServiceCall("thumbasset", "getByEntryId", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();
            IList <KalturaThumbAsset> list = new List <KalturaThumbAsset>();

            foreach (XmlElement node in result.ChildNodes)
            {
                list.Add((KalturaThumbAsset)KalturaObjectFactory.Create(node));
            }
            return(list);
        }
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddIntIfNotNull("idEqual", this.IdEqual);
            kparams.AddStringIfNotNull("idIn", this.IdIn);
            kparams.AddStringIfNotNull("nameEqual", this.NameEqual);
            kparams.AddStringIfNotNull("nameIn", this.NameIn);
            kparams.AddStringIfNotNull("descriptionLike", this.DescriptionLike);
            kparams.AddEnumIfNotNull("statusEqual", this.StatusEqual);
            kparams.AddStringIfNotNull("statusIn", this.StatusIn);
            kparams.AddIntIfNotNull("partnerIdEqual", this.PartnerIdEqual);
            kparams.AddStringIfNotNull("partnerIdIn", this.PartnerIdIn);
            kparams.AddStringIfNotNull("tagsMultiLikeOr", this.TagsMultiLikeOr);
            kparams.AddStringIfNotNull("tagsMultiLikeAnd", this.TagsMultiLikeAnd);
            kparams.AddIntIfNotNull("createdAtGreaterThanOrEqual", this.CreatedAtGreaterThanOrEqual);
            kparams.AddIntIfNotNull("createdAtLessThanOrEqual", this.CreatedAtLessThanOrEqual);
            kparams.AddIntIfNotNull("updatedAtGreaterThanOrEqual", this.UpdatedAtGreaterThanOrEqual);
            kparams.AddIntIfNotNull("updatedAtLessThanOrEqual", this.UpdatedAtLessThanOrEqual);
            return(kparams);
        }
Пример #10
0
        public KalturaBaseEntry AddFromUploadedFile(KalturaBaseEntry entry, string uploadTokenId, KalturaEntryType type)
        {
            KalturaParams kparams = new KalturaParams();

            if (entry != null)
            {
                kparams.Add("entry", entry.ToParams());
            }
            kparams.AddStringIfNotNull("uploadTokenId", uploadTokenId);
            kparams.AddStringEnumIfNotNull("type", type);
            _Client.QueueServiceCall("baseentry", "addFromUploadedFile", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaBaseEntry)KalturaObjectFactory.Create(result));
        }
Пример #11
0
        public KalturaBulkUpload Add(int conversionProfileId, FileStream csvFileData, KalturaBulkUploadType bulkUploadType, string uploadedBy)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddIntIfNotNull("conversionProfileId", conversionProfileId);
            KalturaFiles kfiles = new KalturaFiles();

            kfiles.Add("csvFileData", csvFileData);
            kparams.AddStringEnumIfNotNull("bulkUploadType", bulkUploadType);
            kparams.AddStringIfNotNull("uploadedBy", uploadedBy);
            _Client.QueueServiceCall("bulkupload", "add", kparams, kfiles);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaBulkUpload)KalturaObjectFactory.Create(result));
        }
Пример #12
0
        public IList <KalturaMixEntry> GetMixesByMediaId(string mediaEntryId)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("mediaEntryId", mediaEntryId);
            _Client.QueueServiceCall("mixing", "getMixesByMediaId", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result            = _Client.DoQueue();
            IList <KalturaMixEntry> list = new List <KalturaMixEntry>();

            foreach (XmlElement node in result.ChildNodes)
            {
                list.Add((KalturaMixEntry)KalturaObjectFactory.Create(node));
            }
            return(list);
        }
Пример #13
0
        public KalturaMediaEntry UpdateContent(string entryId, KalturaResource resource, int conversionProfileId)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("entryId", entryId);
            if (resource != null)
            {
                kparams.Add("resource", resource.ToParams());
            }
            kparams.AddIntIfNotNull("conversionProfileId", conversionProfileId);
            _Client.QueueServiceCall("media", "updateContent", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaMediaEntry)KalturaObjectFactory.Create(result));
        }
        public void QueueServiceCall(string service, string action, KalturaParams kparams, KalturaFiles kfiles)
        {
            // in start session partner id is optional (default -1). if partner id was not set, use the one in the config
            if (!kparams.ContainsKey("partnerId"))
            {
                kparams.AddIntIfNotNull("partnerId", this._Config.PartnerId);
            }

            if (kparams["partnerId"] == "-1")
            {
                kparams["partnerId"] = this._Config.PartnerId.ToString();
            }

            kparams.AddStringIfNotNull("ks", this._KS);

            KalturaServiceActionCall call = new KalturaServiceActionCall(service, action, kparams, kfiles);

            this._CallsQueue.Add(call);
        }
Пример #15
0
        public KalturaMediaEntry AddFromEntry(string sourceEntryId, KalturaMediaEntry mediaEntry, int sourceFlavorParamsId)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("sourceEntryId", sourceEntryId);
            if (mediaEntry != null)
            {
                kparams.Add("mediaEntry", mediaEntry.ToParams());
            }
            kparams.AddIntIfNotNull("sourceFlavorParamsId", sourceFlavorParamsId);
            _Client.QueueServiceCall("media", "addFromEntry", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaMediaEntry)KalturaObjectFactory.Create(result));
        }
Пример #16
0
        public KalturaPlaylist Update(string id, KalturaPlaylist playlist, bool updateStats)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("id", id);
            if (playlist != null)
            {
                kparams.Add("playlist", playlist.ToParams());
            }
            kparams.AddBoolIfNotNull("updateStats", updateStats);
            _Client.QueueServiceCall("playlist", "update", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaPlaylist)KalturaObjectFactory.Create(result));
        }
Пример #17
0
        public KalturaReportTotal GetTotal(KalturaReportType reportType, KalturaReportInputFilter reportInputFilter, string objectIds)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddEnumIfNotNull("reportType", reportType);
            if (reportInputFilter != null)
            {
                kparams.Add("reportInputFilter", reportInputFilter.ToParams());
            }
            kparams.AddStringIfNotNull("objectIds", objectIds);
            _Client.QueueServiceCall("report", "getTotal", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaReportTotal)KalturaObjectFactory.Create(result));
        }
Пример #18
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);
        }
Пример #19
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddIntIfNotNull("idEqual", this.IdEqual);
            kparams.AddStringIfNotNull("idIn", this.IdIn);
            kparams.AddStringIfNotNull("nameLike", this.NameLike);
            kparams.AddStringIfNotNull("nameMultiLikeOr", this.NameMultiLikeOr);
            kparams.AddStringIfNotNull("nameMultiLikeAnd", this.NameMultiLikeAnd);
            kparams.AddStringIfNotNull("nameEqual", this.NameEqual);
            kparams.AddEnumIfNotNull("statusEqual", this.StatusEqual);
            kparams.AddStringIfNotNull("statusIn", this.StatusIn);
            kparams.AddIntIfNotNull("partnerPackageEqual", this.PartnerPackageEqual);
            kparams.AddIntIfNotNull("partnerPackageGreaterThanOrEqual", this.PartnerPackageGreaterThanOrEqual);
            kparams.AddIntIfNotNull("partnerPackageLessThanOrEqual", this.PartnerPackageLessThanOrEqual);
            kparams.AddStringIfNotNull("partnerNameDescriptionWebsiteAdminNameAdminEmailLike", this.PartnerNameDescriptionWebsiteAdminNameAdminEmailLike);
            return(kparams);
        }
Пример #20
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);
        }
Пример #21
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);
        }
Пример #22
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));
        }
Пример #23
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddIntIfNotNull("id", this.Id);
            kparams.AddEnumIfNotNull("type", this.Type);
            kparams.AddStringIfNotNull("name", this.Name);
            kparams.AddStringIfNotNull("friendlyName", this.FriendlyName);
            kparams.AddStringIfNotNull("description", this.Description);
            kparams.AddEnumIfNotNull("status", this.Status);
            kparams.AddIntIfNotNull("partnerId", this.PartnerId);
            kparams.AddStringIfNotNull("dependsOnPermissionNames", this.DependsOnPermissionNames);
            kparams.AddStringIfNotNull("tags", this.Tags);
            kparams.AddStringIfNotNull("permissionItemsIds", this.PermissionItemsIds);
            kparams.AddIntIfNotNull("createdAt", this.CreatedAt);
            kparams.AddIntIfNotNull("updatedAt", this.UpdatedAt);
            kparams.AddStringIfNotNull("partnerGroup", this.PartnerGroup);
            return(kparams);
        }
Пример #24
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddIntIfNotNull("id", this.Id);
            kparams.AddStringIfNotNull("uploadedBy", this.UploadedBy);
            kparams.AddStringIfNotNull("uploadedByUserId", this.UploadedByUserId);
            kparams.AddIntIfNotNull("uploadedOn", this.UploadedOn);
            kparams.AddIntIfNotNull("numOfEntries", this.NumOfEntries);
            kparams.AddEnumIfNotNull("status", this.Status);
            kparams.AddStringIfNotNull("logFileUrl", this.LogFileUrl);
            kparams.AddStringIfNotNull("csvFileUrl", this.CsvFileUrl);
            kparams.AddStringIfNotNull("bulkFileUrl", this.BulkFileUrl);
            kparams.AddStringEnumIfNotNull("bulkUploadType", this.BulkUploadType);
            if (this.Results != null)
            {
                if (this.Results.Count == 0)
                {
                    kparams.Add("results:-", "");
                }
                else
                {
                    int i = 0;
                    foreach (KalturaBulkUploadResult item in this.Results)
                    {
                        kparams.Add("results:" + i + ":objectType", item.GetType().Name);
                        kparams.Add("results:" + i, item.ToParams());
                        i++;
                    }
                }
            }
            kparams.AddStringIfNotNull("error", this.Error);
            kparams.AddEnumIfNotNull("errorType", this.ErrorType);
            kparams.AddIntIfNotNull("errorNumber", this.ErrorNumber);
            kparams.AddStringIfNotNull("fileName", this.FileName);
            kparams.AddStringIfNotNull("description", this.Description);
            return(kparams);
        }
Пример #25
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("id", this.Id);
            kparams.AddStringIfNotNull("entryId", this.EntryId);
            kparams.AddIntIfNotNull("partnerId", this.PartnerId);
            kparams.AddIntIfNotNull("version", this.Version);
            kparams.AddIntIfNotNull("size", this.Size);
            kparams.AddStringIfNotNull("tags", this.Tags);
            kparams.AddStringIfNotNull("fileExt", this.FileExt);
            kparams.AddIntIfNotNull("createdAt", this.CreatedAt);
            kparams.AddIntIfNotNull("updatedAt", this.UpdatedAt);
            kparams.AddIntIfNotNull("deletedAt", this.DeletedAt);
            kparams.AddStringIfNotNull("description", this.Description);
            kparams.AddStringIfNotNull("partnerData", this.PartnerData);
            kparams.AddStringIfNotNull("partnerDescription", this.PartnerDescription);
            return(kparams);
        }
Пример #26
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("idEqual", this.IdEqual);
            kparams.AddStringIfNotNull("idIn", this.IdIn);
            kparams.AddStringIfNotNull("entryIdEqual", this.EntryIdEqual);
            kparams.AddStringIfNotNull("entryIdIn", this.EntryIdIn);
            kparams.AddIntIfNotNull("partnerIdEqual", this.PartnerIdEqual);
            kparams.AddStringIfNotNull("partnerIdIn", this.PartnerIdIn);
            kparams.AddIntIfNotNull("sizeGreaterThanOrEqual", this.SizeGreaterThanOrEqual);
            kparams.AddIntIfNotNull("sizeLessThanOrEqual", this.SizeLessThanOrEqual);
            kparams.AddStringIfNotNull("tagsLike", this.TagsLike);
            kparams.AddStringIfNotNull("tagsMultiLikeOr", this.TagsMultiLikeOr);
            kparams.AddStringIfNotNull("tagsMultiLikeAnd", this.TagsMultiLikeAnd);
            kparams.AddIntIfNotNull("createdAtGreaterThanOrEqual", this.CreatedAtGreaterThanOrEqual);
            kparams.AddIntIfNotNull("createdAtLessThanOrEqual", this.CreatedAtLessThanOrEqual);
            kparams.AddIntIfNotNull("updatedAtGreaterThanOrEqual", this.UpdatedAtGreaterThanOrEqual);
            kparams.AddIntIfNotNull("updatedAtLessThanOrEqual", this.UpdatedAtLessThanOrEqual);
            kparams.AddIntIfNotNull("deletedAtGreaterThanOrEqual", this.DeletedAtGreaterThanOrEqual);
            kparams.AddIntIfNotNull("deletedAtLessThanOrEqual", this.DeletedAtLessThanOrEqual);
            return(kparams);
        }
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddIntIfNotNull("conversionProfileIdEqual", this.ConversionProfileIdEqual);
            kparams.AddStringIfNotNull("conversionProfileIdIn", this.ConversionProfileIdIn);
            kparams.AddIntIfNotNull("assetParamsIdEqual", this.AssetParamsIdEqual);
            kparams.AddStringIfNotNull("assetParamsIdIn", this.AssetParamsIdIn);
            kparams.AddEnumIfNotNull("readyBehaviorEqual", this.ReadyBehaviorEqual);
            kparams.AddStringIfNotNull("readyBehaviorIn", this.ReadyBehaviorIn);
            kparams.AddEnumIfNotNull("originEqual", this.OriginEqual);
            kparams.AddStringIfNotNull("originIn", this.OriginIn);
            kparams.AddStringIfNotNull("systemNameEqual", this.SystemNameEqual);
            kparams.AddStringIfNotNull("systemNameIn", this.SystemNameIn);
            return(kparams);
        }
Пример #28
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddEnumIfNotNull("mediaType", this.MediaType);
            kparams.AddStringIfNotNull("conversionQuality", this.ConversionQuality);
            kparams.AddEnumIfNotNull("sourceType", this.SourceType);
            kparams.AddEnumIfNotNull("searchProviderType", this.SearchProviderType);
            kparams.AddStringIfNotNull("searchProviderId", this.SearchProviderId);
            kparams.AddStringIfNotNull("creditUserName", this.CreditUserName);
            kparams.AddStringIfNotNull("creditUrl", this.CreditUrl);
            kparams.AddIntIfNotNull("mediaDate", this.MediaDate);
            kparams.AddStringIfNotNull("dataUrl", this.DataUrl);
            kparams.AddStringIfNotNull("flavorParamsIds", this.FlavorParamsIds);
            return(kparams);
        }
Пример #29
0
        public void UpdateLoginData(string oldLoginId, string password, string newLoginId, string newPassword, string newFirstName, string newLastName)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddStringIfNotNull("oldLoginId", oldLoginId);
            kparams.AddStringIfNotNull("password", password);
            kparams.AddStringIfNotNull("newLoginId", newLoginId);
            kparams.AddStringIfNotNull("newPassword", newPassword);
            kparams.AddStringIfNotNull("newFirstName", newFirstName);
            kparams.AddStringIfNotNull("newLastName", newLastName);
            _Client.QueueServiceCall("user", "updateLoginData", kparams);
            if (this._Client.IsMultiRequest)
            {
                return;
            }
            XmlElement result = _Client.DoQueue();
        }
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("idEqual", this.IdEqual);
            kparams.AddStringIfNotNull("idIn", this.IdIn);
            kparams.AddStringIfNotNull("sourceWidgetIdEqual", this.SourceWidgetIdEqual);
            kparams.AddStringIfNotNull("rootWidgetIdEqual", this.RootWidgetIdEqual);
            kparams.AddIntIfNotNull("partnerIdEqual", this.PartnerIdEqual);
            kparams.AddStringIfNotNull("entryIdEqual", this.EntryIdEqual);
            kparams.AddIntIfNotNull("uiConfIdEqual", this.UiConfIdEqual);
            kparams.AddIntIfNotNull("createdAtGreaterThanOrEqual", this.CreatedAtGreaterThanOrEqual);
            kparams.AddIntIfNotNull("createdAtLessThanOrEqual", this.CreatedAtLessThanOrEqual);
            kparams.AddIntIfNotNull("updatedAtGreaterThanOrEqual", this.UpdatedAtGreaterThanOrEqual);
            kparams.AddIntIfNotNull("updatedAtLessThanOrEqual", this.UpdatedAtLessThanOrEqual);
            kparams.AddStringIfNotNull("partnerDataLike", this.PartnerDataLike);
            return(kparams);
        }