Exemple #1
0
        public IList <KalturaBaseEntry> ExecuteFromContent(KalturaPlaylistType playlistType, string playlistContent, string detailed)
        {
            KalturaParams kparams = new KalturaParams();

            kparams.AddEnumIfNotNull("playlistType", playlistType);
            kparams.AddStringIfNotNull("playlistContent", playlistContent);
            kparams.AddStringIfNotNull("detailed", detailed);
            _Client.QueueServiceCall("playlist", "executeFromContent", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result             = _Client.DoQueue();
            IList <KalturaBaseEntry> list = new List <KalturaBaseEntry>();

            foreach (XmlElement node in result.ChildNodes)
            {
                list.Add((KalturaBaseEntry)KalturaObjectFactory.Create(node));
            }
            return(list);
        }
Exemple #2
0
        public KalturaDataListResponse List(KalturaDataEntryFilter filter, KalturaFilterPager pager)
        {
            KalturaParams kparams = new KalturaParams();

            if (filter != null)
            {
                kparams.Add("filter", filter.ToParams());
            }
            if (pager != null)
            {
                kparams.Add("pager", pager.ToParams());
            }
            _Client.QueueServiceCall("data", "list", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaDataListResponse)KalturaObjectFactory.Create(result));
        }
        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);
        }
Exemple #4
0
        public KalturaMetadataProfile AddFromFile(KalturaMetadataProfile metadataProfile, FileStream xsdFile, FileStream viewsFile)
        {
            KalturaParams kparams = new KalturaParams();

            if (metadataProfile != null)
            {
                kparams.Add("metadataProfile", metadataProfile.ToParams());
            }
            KalturaFiles kfiles = new KalturaFiles();

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

            return((KalturaMetadataProfile)KalturaObjectFactory.Create(result));
        }
Exemple #5
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);
        }
        private string Signature(KalturaParams kparams)
        {
            string str = "";

            foreach (KeyValuePair <string, string> param in kparams)
            {
                str += (param.Key + param.Value);
            }

            MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();

            byte[] data = Encoding.ASCII.GetBytes(str);
            data = md5.ComputeHash(data);
            StringBuilder sBuilder = new StringBuilder();

            for (int i = 0; i < data.Length; i++)
            {
                sBuilder.Append(data[i].ToString("x2"));
            }
            return(sBuilder.ToString());
        }
        public KalturaGenericDistributionProviderActionListResponse List(KalturaGenericDistributionProviderActionFilter filter, KalturaFilterPager pager)
        {
            KalturaParams kparams = new KalturaParams();

            if (filter != null)
            {
                kparams.Add("filter", filter.ToParams());
            }
            if (pager != null)
            {
                kparams.Add("pager", pager.ToParams());
            }
            _Client.QueueServiceCall("contentdistribution_genericdistributionprovideraction", "list", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaGenericDistributionProviderActionListResponse)KalturaObjectFactory.Create(result));
        }
Exemple #8
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddIntIfNotNull("idEqual", this.IdEqual);
            kparams.AddIntIfNotNull("idGreaterThanOrEqual", this.IdGreaterThanOrEqual);
            kparams.AddIntIfNotNull("partnerIdEqual", this.PartnerIdEqual);
            kparams.AddStringIfNotNull("partnerIdIn", this.PartnerIdIn);
            kparams.AddStringIfNotNull("partnerIdNotIn", this.PartnerIdNotIn);
            kparams.AddIntIfNotNull("createdAtGreaterThanOrEqual", this.CreatedAtGreaterThanOrEqual);
            kparams.AddIntIfNotNull("createdAtLessThanOrEqual", this.CreatedAtLessThanOrEqual);
            kparams.AddIntIfNotNull("updatedAtGreaterThanOrEqual", this.UpdatedAtGreaterThanOrEqual);
            kparams.AddIntIfNotNull("updatedAtLessThanOrEqual", this.UpdatedAtLessThanOrEqual);
            kparams.AddIntIfNotNull("processorExpirationGreaterThanOrEqual", this.ProcessorExpirationGreaterThanOrEqual);
            kparams.AddIntIfNotNull("processorExpirationLessThanOrEqual", this.ProcessorExpirationLessThanOrEqual);
            kparams.AddIntIfNotNull("executionAttemptsGreaterThanOrEqual", this.ExecutionAttemptsGreaterThanOrEqual);
            kparams.AddIntIfNotNull("executionAttemptsLessThanOrEqual", this.ExecutionAttemptsLessThanOrEqual);
            kparams.AddIntIfNotNull("lockVersionGreaterThanOrEqual", this.LockVersionGreaterThanOrEqual);
            kparams.AddIntIfNotNull("lockVersionLessThanOrEqual", this.LockVersionLessThanOrEqual);
            return(kparams);
        }
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("id", this.Id);
            kparams.AddStringEnumIfNotNull("cuePointType", this.CuePointType);
            kparams.AddEnumIfNotNull("status", this.Status);
            kparams.AddStringIfNotNull("entryId", this.EntryId);
            kparams.AddIntIfNotNull("partnerId", this.PartnerId);
            kparams.AddIntIfNotNull("createdAt", this.CreatedAt);
            kparams.AddIntIfNotNull("updatedAt", this.UpdatedAt);
            kparams.AddStringIfNotNull("tags", this.Tags);
            kparams.AddIntIfNotNull("startTime", this.StartTime);
            kparams.AddStringIfNotNull("userId", this.UserId);
            kparams.AddStringIfNotNull("partnerData", this.PartnerData);
            kparams.AddIntIfNotNull("partnerSortValue", this.PartnerSortValue);
            kparams.AddEnumIfNotNull("forceStop", this.ForceStop);
            kparams.AddIntIfNotNull("thumbOffset", this.ThumbOffset);
            kparams.AddStringIfNotNull("systemName", this.SystemName);
            return(kparams);
        }
Exemple #10
0
        public KalturaMediaEntry AddFromSearchResult(KalturaMediaEntry mediaEntry, KalturaSearchResult searchResult)
        {
            KalturaParams kparams = new KalturaParams();

            if (mediaEntry != null)
            {
                kparams.Add("mediaEntry", mediaEntry.ToParams());
            }
            if (searchResult != null)
            {
                kparams.Add("searchResult", searchResult.ToParams());
            }
            _Client.QueueServiceCall("media", "addFromSearchResult", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaMediaEntry)KalturaObjectFactory.Create(result));
        }
Exemple #11
0
        public KalturaSearchResultResponse Search(KalturaSearch search, KalturaFilterPager pager)
        {
            KalturaParams kparams = new KalturaParams();

            if (search != null)
            {
                kparams.Add("search", search.ToParams());
            }
            if (pager != null)
            {
                kparams.Add("pager", pager.ToParams());
            }
            _Client.QueueServiceCall("search", "search", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaSearchResultResponse)KalturaObjectFactory.Create(result));
        }
        public KalturaMediaEntry AddMediaEntry(KalturaMediaEntry mediaEntry, string uploadTokenId, int emailProfId, string fromAddress, string emailMsgId)
        {
            KalturaParams kparams = new KalturaParams();

            if (mediaEntry != null)
            {
                kparams.Add("mediaEntry", mediaEntry.ToParams());
            }
            kparams.AddStringIfNotNull("uploadTokenId", uploadTokenId);
            kparams.AddIntIfNotNull("emailProfId", emailProfId);
            kparams.AddStringIfNotNull("fromAddress", fromAddress);
            kparams.AddStringIfNotNull("emailMsgId", emailMsgId);
            _Client.QueueServiceCall("emailingestionprofile", "addMediaEntry", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result = _Client.DoQueue();

            return((KalturaMediaEntry)KalturaObjectFactory.Create(result));
        }
Exemple #13
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);
        }
Exemple #14
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            if (this.FieldConfigArray != null)
            {
                if (this.FieldConfigArray.Count == 0)
                {
                    kparams.Add("fieldConfigArray:-", "");
                }
                else
                {
                    int i = 0;
                    foreach (KalturaDistributionFieldConfig item in this.FieldConfigArray)
                    {
                        kparams.Add("fieldConfigArray:" + i + ":objectType", item.GetType().Name);
                        kparams.Add("fieldConfigArray:" + i, item.ToParams());
                        i++;
                    }
                }
            }
            if (this.ItemXpathsToExtend != null)
            {
                if (this.ItemXpathsToExtend.Count == 0)
                {
                    kparams.Add("itemXpathsToExtend:-", "");
                }
                else
                {
                    int i = 0;
                    foreach (KalturaString item in this.ItemXpathsToExtend)
                    {
                        kparams.Add("itemXpathsToExtend:" + i + ":objectType", item.GetType().Name);
                        kparams.Add("itemXpathsToExtend:" + i, item.ToParams());
                        i++;
                    }
                }
            }
            return(kparams);
        }
Exemple #15
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.AddStringIfNotNull("emailAddress", this.EmailAddress);
            kparams.AddStringIfNotNull("mailboxId", this.MailboxId);
            kparams.AddIntIfNotNull("partnerId", this.PartnerId);
            kparams.AddIntIfNotNull("conversionProfile2Id", this.ConversionProfile2Id);
            kparams.AddEnumIfNotNull("moderationStatus", this.ModerationStatus);
            kparams.AddEnumIfNotNull("status", this.Status);
            kparams.AddStringIfNotNull("createdAt", this.CreatedAt);
            kparams.AddStringIfNotNull("defaultCategory", this.DefaultCategory);
            kparams.AddStringIfNotNull("defaultUserId", this.DefaultUserId);
            kparams.AddStringIfNotNull("defaultTags", this.DefaultTags);
            kparams.AddStringIfNotNull("defaultAdminTags", this.DefaultAdminTags);
            kparams.AddIntIfNotNull("maxAttachmentSizeKbytes", this.MaxAttachmentSizeKbytes);
            kparams.AddIntIfNotNull("maxAttachmentsPerMail", this.MaxAttachmentsPerMail);
            return(kparams);
        }
Exemple #16
0
        public void AddIfNotNull <T>(string key, IDictionary <string, T> map) where T : KalturaObjectBase
        {
            if (map == null)
            {
                return;
            }

            KalturaParams arrayParams = new KalturaParams();

            if (map.Count == 0)
            {
                arrayParams.Add("-", "");
            }
            else
            {
                foreach (string itemKey in map.Keys)
                {
                    arrayParams.Add(itemKey, map[itemKey]);
                }
            }
            this.Add(key, arrayParams);
        }
Exemple #17
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("expiresAtGreaterThanOrEqual", this.ExpiresAtGreaterThanOrEqual);
            kparams.AddIntIfNotNull("expiresAtLessThanOrEqual", this.ExpiresAtLessThanOrEqual);
            kparams.AddIntIfNotNull("partnerIdEqual", this.PartnerIdEqual);
            kparams.AddStringIfNotNull("partnerIdIn", this.PartnerIdIn);
            kparams.AddStringIfNotNull("userIdEqual", this.UserIdEqual);
            kparams.AddStringIfNotNull("userIdIn", this.UserIdIn);
            kparams.AddStringIfNotNull("systemNameEqual", this.SystemNameEqual);
            kparams.AddStringIfNotNull("systemNameIn", this.SystemNameIn);
            kparams.AddEnumIfNotNull("statusEqual", this.StatusEqual);
            kparams.AddStringIfNotNull("statusIn", this.StatusIn);
            return(kparams);
        }
Exemple #18
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);
        }
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            if (this.ChangedItems != null)
            {
                if (this.ChangedItems.Count == 0)
                {
                    kparams.Add("changedItems:-", "");
                }
                else
                {
                    int i = 0;
                    foreach (KalturaAuditTrailChangeItem item in this.ChangedItems)
                    {
                        kparams.Add("changedItems:" + i + ":objectType", item.GetType().Name);
                        kparams.Add("changedItems:" + i, item.ToParams());
                        i++;
                    }
                }
            }
            return(kparams);
        }
Exemple #20
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();

            if (this.Resources != null)
            {
                if (this.Resources.Count == 0)
                {
                    kparams.Add("resources:-", "");
                }
                else
                {
                    int i = 0;
                    foreach (KalturaAssetParamsResourceContainer item in this.Resources)
                    {
                        kparams.Add("resources:" + i + ":objectType", item.GetType().Name);
                        kparams.Add("resources:" + i, item.ToParams());
                        i++;
                    }
                }
            }
            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("genericDistributionProviderId", this.GenericDistributionProviderId);
            kparams.AddEnumIfNotNull("action", this.Action);
            kparams.AddEnumIfNotNull("status", this.Status);
            kparams.AddEnumIfNotNull("resultsParser", this.ResultsParser);
            kparams.AddEnumIfNotNull("protocol", this.Protocol);
            kparams.AddStringIfNotNull("serverAddress", this.ServerAddress);
            kparams.AddStringIfNotNull("remotePath", this.RemotePath);
            kparams.AddStringIfNotNull("remoteUsername", this.RemoteUsername);
            kparams.AddStringIfNotNull("remotePassword", this.RemotePassword);
            kparams.AddStringIfNotNull("editableFields", this.EditableFields);
            kparams.AddStringIfNotNull("mandatoryFields", this.MandatoryFields);
            kparams.AddStringIfNotNull("mrssTransformer", this.MrssTransformer);
            kparams.AddStringIfNotNull("mrssValidator", this.MrssValidator);
            kparams.AddStringIfNotNull("resultsTransformer", this.ResultsTransformer);
            return(kparams);
        }
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddIntIfNotNull("partnerIdEqual", this.PartnerIdEqual);
            kparams.AddIntIfNotNull("metadataProfileIdEqual", this.MetadataProfileIdEqual);
            kparams.AddIntIfNotNull("metadataProfileVersionEqual", this.MetadataProfileVersionEqual);
            kparams.AddIntIfNotNull("metadataProfileVersionGreaterThanOrEqual", this.MetadataProfileVersionGreaterThanOrEqual);
            kparams.AddIntIfNotNull("metadataProfileVersionLessThanOrEqual", this.MetadataProfileVersionLessThanOrEqual);
            kparams.AddStringEnumIfNotNull("metadataObjectTypeEqual", this.MetadataObjectTypeEqual);
            kparams.AddStringIfNotNull("objectIdEqual", this.ObjectIdEqual);
            kparams.AddStringIfNotNull("objectIdIn", this.ObjectIdIn);
            kparams.AddIntIfNotNull("versionEqual", this.VersionEqual);
            kparams.AddIntIfNotNull("versionGreaterThanOrEqual", this.VersionGreaterThanOrEqual);
            kparams.AddIntIfNotNull("versionLessThanOrEqual", this.VersionLessThanOrEqual);
            kparams.AddIntIfNotNull("createdAtGreaterThanOrEqual", this.CreatedAtGreaterThanOrEqual);
            kparams.AddIntIfNotNull("createdAtLessThanOrEqual", this.CreatedAtLessThanOrEqual);
            kparams.AddIntIfNotNull("updatedAtGreaterThanOrEqual", this.UpdatedAtGreaterThanOrEqual);
            kparams.AddIntIfNotNull("updatedAtLessThanOrEqual", this.UpdatedAtLessThanOrEqual);
            kparams.AddEnumIfNotNull("statusEqual", this.StatusEqual);
            kparams.AddStringIfNotNull("statusIn", this.StatusIn);
            return(kparams);
        }
Exemple #24
0
        public IList <KalturaBaseEntry> ExecuteFromFilters(IList <KalturaMediaEntryFilterForPlaylist> filters, int totalResults, string detailed)
        {
            KalturaParams kparams = new KalturaParams();

            foreach (KalturaMediaEntryFilterForPlaylist obj in filters)
            {
                kparams.Add("filters", obj.ToParams());
            }
            kparams.AddIntIfNotNull("totalResults", totalResults);
            kparams.AddStringIfNotNull("detailed", detailed);
            _Client.QueueServiceCall("playlist", "executeFromFilters", kparams);
            if (this._Client.IsMultiRequest)
            {
                return(null);
            }
            XmlElement result             = _Client.DoQueue();
            IList <KalturaBaseEntry> list = new List <KalturaBaseEntry>();

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

            if (this.Objects != null)
            {
                if (this.Objects.Count == 0)
                {
                    kparams.Add("objects:-", "");
                }
                else
                {
                    int i = 0;
                    foreach (KalturaPermission item in this.Objects)
                    {
                        kparams.Add("objects:" + i + ":objectType", item.GetType().Name);
                        kparams.Add("objects:" + i, item.ToParams());
                        i++;
                    }
                }
            }
            kparams.AddIntIfNotNull("totalCount", this.TotalCount);
            return(kparams);
        }
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringIfNotNull("xslt", this.Xslt);
            if (this.ItemXpathsToExtend != null)
            {
                if (this.ItemXpathsToExtend.Count == 0)
                {
                    kparams.Add("itemXpathsToExtend:-", "");
                }
                else
                {
                    int i = 0;
                    foreach (KalturaString item in this.ItemXpathsToExtend)
                    {
                        kparams.Add("itemXpathsToExtend:" + i + ":objectType", item.GetType().Name);
                        kparams.Add("itemXpathsToExtend:" + i, item.ToParams());
                        i++;
                    }
                }
            }
            return(kparams);
        }
Exemple #27
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddStringEnumIfNotNull("videoCodec", this.VideoCodec);
            kparams.AddIntIfNotNull("videoBitrate", this.VideoBitrate);
            kparams.AddStringEnumIfNotNull("audioCodec", this.AudioCodec);
            kparams.AddIntIfNotNull("audioBitrate", this.AudioBitrate);
            kparams.AddIntIfNotNull("audioChannels", this.AudioChannels);
            kparams.AddIntIfNotNull("audioSampleRate", this.AudioSampleRate);
            kparams.AddIntIfNotNull("width", this.Width);
            kparams.AddIntIfNotNull("height", this.Height);
            kparams.AddIntIfNotNull("frameRate", this.FrameRate);
            kparams.AddIntIfNotNull("gopSize", this.GopSize);
            kparams.AddStringIfNotNull("conversionEngines", this.ConversionEngines);
            kparams.AddStringIfNotNull("conversionEnginesExtraParams", this.ConversionEnginesExtraParams);
            kparams.AddBoolIfNotNull("twoPass", this.TwoPass);
            kparams.AddIntIfNotNull("deinterlice", this.Deinterlice);
            kparams.AddIntIfNotNull("rotate", this.Rotate);
            kparams.AddStringIfNotNull("operators", this.Operators);
            kparams.AddIntIfNotNull("engineVersion", this.EngineVersion);
            kparams.AddStringEnumIfNotNull("format", this.Format);
            return(kparams);
        }
Exemple #28
0
        public KalturaReportTable GetTable(KalturaReportType reportType, KalturaReportInputFilter reportInputFilter, KalturaFilterPager pager, string order, string objectIds)
        {
            KalturaParams kparams = new KalturaParams();

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

            return((KalturaReportTable)KalturaObjectFactory.Create(result));
        }
Exemple #29
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            kparams.AddEnumIfNotNull("type", this.Type);
            if (this.Items != null)
            {
                if (this.Items.Count == 0)
                {
                    kparams.Add("items:-", "");
                }
                else
                {
                    int i = 0;
                    foreach (KalturaSearchItem item in this.Items)
                    {
                        kparams.Add("items:" + i + ":objectType", item.GetType().Name);
                        kparams.Add("items:" + i, item.ToParams());
                        i++;
                    }
                }
            }
            return(kparams);
        }
Exemple #30
0
        public override KalturaParams ToParams()
        {
            KalturaParams kparams = base.ToParams();

            if (this.Objects != null)
            {
                if (this.Objects.Count == 0)
                {
                    kparams.Add("objects:-", "");
                }
                else
                {
                    int i = 0;
                    foreach (KalturaSearchResult item in this.Objects)
                    {
                        kparams.Add("objects:" + i + ":objectType", item.GetType().Name);
                        kparams.Add("objects:" + i, item.ToParams());
                        i++;
                    }
                }
            }
            kparams.AddBoolIfNotNull("needMediaInfo", this.NeedMediaInfo);
            return(kparams);
        }