From 443dac30854cdd787b4f26be6951504c8229e22f Mon Sep 17 00:00:00 2001 From: Backend CI Date: Tue, 21 Jul 2020 03:34:37 +0000 Subject: [PATCH] Auto-generated by Jenkins job OTT-Generate-ClientLibs-ios-and-android/52, branch 5_4_1 --- .../KalturaClient.xcodeproj/project.pbxproj | 639 +++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcschemes/KalturaClient-Example.xcscheme | 111 +++ .../contents.xcworkspacedata | 10 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + Example/KalturaClient/AppDelegate.swift | 46 ++ .../KalturaClient/Base.lproj/LaunchScreen.xib | 41 ++ .../KalturaClient/Base.lproj/Main.storyboard | 30 + .../AppIcon.appiconset/Contents.json | 53 ++ Example/KalturaClient/Info.plist | 39 ++ Example/KalturaClient/ViewController.swift | 24 + Example/Podfile | 13 + Example/Tests/ArrayTest.swift | 94 +++ Example/Tests/BaseTest.swift | 70 ++ Example/Tests/EmptyResultTest.swift | 149 ++++ Example/Tests/HouseholdTest.swift | 160 +++++ Example/Tests/Info.plist | 24 + Example/Tests/MapTest.swift | 64 ++ Example/Tests/MultiRequestTest.swift | 61 ++ Example/Tests/MultiRequestWithArray.swift | 91 +++ .../Tests/MultiRequestWithPrimitives.swift | 109 +++ Example/Tests/PrimitivesTest.swift | 182 +++++ Example/Tests/TestConfig.swift | 58 ++ Example/Tests/TestConfig.template.plist | 24 + KalturaClient/Classes/.gitkeep | 0 KalturaClient/Classes/Core/Client.swift | 336 +++++++++ .../Core/Executor/RequestExecutor.swift | 43 ++ .../Executor/implementors/USRExecutor.swift | 210 ++++++ .../Classes/Core/KalturaAPIWorkaround.swift | 32 + .../Core/Request/ArrayRequestBuilder.swift | 60 ++ .../Request/ConnectionConfiguration.swift | 47 ++ .../Core/Request/MultiRequestBuilder.swift | 185 +++++ .../Core/Request/NullRequestBuilder.swift | 53 ++ .../Classes/Core/Request/Request.swift | 122 ++++ .../Classes/Core/Request/RequestBuilder.swift | 266 +++++++ .../Core/Request/RequestBuilderData.swift | 54 ++ .../Classes/Core/Response/JSONParser.swift | 222 ++++++ .../Classes/Core/Response/Result.swift | 53 ++ .../Classes/Core/Response/Tokenizer.swift | 60 ++ .../Classes/Core/Session/SessionManager.swift | 190 +++++ .../Classes/Logs/KalturaClientLog.swift | 189 +++++ .../Classes/Model/ApiException.swift | 85 +++ .../Classes/Model/Enums/AdsPolicy.swift | 37 + .../Model/Enums/AggregationCountOrderBy.swift | 36 + .../Classes/Model/Enums/AggregationType.swift | 38 + .../Model/Enums/AnnouncementOrderBy.swift | 36 + .../Enums/AnnouncementRecipientsType.swift | 39 ++ .../Model/Enums/AnnouncementStatus.swift | 39 ++ .../Model/Enums/AppTokenHashType.swift | 39 ++ .../Model/Enums/AssetCommentOrderBy.swift | 36 + .../Model/Enums/AssetFilePpvOrderBy.swift | 36 + .../Model/Enums/AssetHistoryOrderBy.swift | 36 + .../Enums/AssetImagePerRatioOrderBy.swift | 36 + .../Model/Enums/AssetIndexStatus.swift | 38 + .../Model/Enums/AssetInheritancePolicy.swift | 37 + .../Enums/AssetLifeCycleRuleActionType.swift | 37 + .../AssetLifeCycleRuleTransitionType.swift | 37 + .../Classes/Model/Enums/AssetOrderBy.swift | 46 ++ .../Model/Enums/AssetReferenceType.swift | 39 ++ .../Model/Enums/AssetReminderOrderBy.swift | 44 ++ .../Model/Enums/AssetRuleOrderBy.swift | 36 + .../Classes/Model/Enums/AssetRuleStatus.swift | 37 + .../Model/Enums/AssetStructMetaOrderBy.swift | 36 + .../Model/Enums/AssetStructOrderBy.swift | 43 ++ .../Classes/Model/Enums/AssetType.swift | 38 + .../Model/Enums/AssetUserRuleOrderBy.swift | 36 + .../Classes/Model/Enums/BillingAction.swift | 41 ++ .../Model/Enums/BillingItemsType.swift | 41 ++ .../Model/Enums/BillingPriceType.swift | 37 + .../Model/Enums/BookmarkActionType.swift | 49 ++ .../Classes/Model/Enums/BookmarkOrderBy.swift | 37 + .../Model/Enums/BulkUploadJobAction.swift | 37 + .../Model/Enums/BulkUploadJobStatus.swift | 45 ++ .../Model/Enums/BulkUploadOrderBy.swift | 38 + .../Model/Enums/BulkUploadResultStatus.swift | 38 + .../Classes/Model/Enums/BundleType.swift | 37 + .../Model/Enums/CategoryItemOrderBy.swift | 42 ++ .../Model/Enums/ChannelEnrichment.swift | 43 ++ .../Classes/Model/Enums/ChannelOrderBy.swift | 47 ++ .../Classes/Model/Enums/ChannelType.swift | 37 + .../Classes/Model/Enums/ChannelsOrderBy.swift | 40 ++ .../Model/Enums/CollectionOrderBy.swift | 36 + .../Model/Enums/CompensationType.swift | 37 + .../Enums/ConcurrencyLimitationType.swift | 37 + .../ConfigurationGroupDeviceOrderBy.swift | 36 + .../Enums/ConfigurationGroupTagOrderBy.swift | 36 + .../Model/Enums/ConfigurationsOrderBy.swift | 36 + .../Classes/Model/Enums/ContentAction.swift | 42 ++ .../ContentActionConditionLengthType.swift | 37 + .../Classes/Model/Enums/ContextType.swift | 37 + .../Classes/Model/Enums/CountryOrderBy.swift | 36 + .../Classes/Model/Enums/CouponGroupType.swift | 37 + .../Classes/Model/Enums/CouponStatus.swift | 40 ++ .../Classes/Model/Enums/CurrencyOrderBy.swift | 39 ++ .../Model/Enums/DeleteMediaPolicy.swift | 37 + .../Classes/Model/Enums/DeviceStatus.swift | 38 + .../Classes/Model/Enums/DowngradePolicy.swift | 37 + .../Classes/Model/Enums/DrmSchemeName.swift | 41 ++ .../Classes/Model/Enums/DurationUnit.swift | 40 ++ .../Model/Enums/EngagementOrderBy.swift | 36 + .../Classes/Model/Enums/EngagementType.swift | 36 + .../Model/Enums/EntitlementOrderBy.swift | 37 + .../Model/Enums/EntityReferenceBy.swift | 37 + .../Enums/EventNotificationOrderBy.swift | 36 + .../Model/Enums/EventNotificationStatus.swift | 39 ++ .../Model/Enums/EvictionPolicyType.swift | 37 + .../Classes/Model/Enums/ExportDataType.swift | 38 + .../Model/Enums/ExportTaskOrderBy.swift | 37 + .../Classes/Model/Enums/ExportType.swift | 37 + .../Enums/ExternalChannelProfileOrderBy.swift | 36 + ...ernalRecordingResponseProfileOrderBy.swift | 36 + .../Classes/Model/Enums/FavoriteOrderBy.swift | 37 + .../Model/Enums/FollowTvSeriesOrderBy.swift | 37 + .../Classes/Model/Enums/GroupByField.swift | 36 + .../Classes/Model/Enums/GroupByOrder.swift | 40 ++ .../Model/Enums/HouseholdCouponOrderBy.swift | 36 + .../Model/Enums/HouseholdDeviceOrderBy.swift | 36 + .../Model/Enums/HouseholdFrequencyType.swift | 37 + .../HouseholdPaymentGatewaySelectedBy.swift | 38 + .../Model/Enums/HouseholdRestriction.swift | 39 ++ .../Model/Enums/HouseholdSegmentOrderBy.swift | 36 + .../Classes/Model/Enums/HouseholdState.swift | 40 ++ .../Enums/HouseholdSuspensionState.swift | 37 + .../Model/Enums/HouseholdUserOrderBy.swift | 36 + .../Model/Enums/HouseholdUserStatus.swift | 37 + .../Classes/Model/Enums/ImageObjectType.swift | 42 ++ .../Classes/Model/Enums/ImageOrderBy.swift | 36 + .../Classes/Model/Enums/ImageStatus.swift | 38 + .../Model/Enums/ImageTypeOrderBy.swift | 36 + .../Model/Enums/InboxMessageOrderBy.swift | 36 + .../Model/Enums/InboxMessageStatus.swift | 38 + .../Model/Enums/InboxMessageType.swift | 39 ++ .../Enums/IngestProfileAutofillPolicy.swift | 38 + .../Enums/IngestProfileOverlapPolicy.swift | 38 + .../Classes/Model/Enums/IotOrderBy.swift | 36 + .../Model/Enums/IotProfileOrderBy.swift | 36 + .../Classes/Model/Enums/KalturaLogLevel.swift | 41 ++ .../Classes/Model/Enums/LanguageOrderBy.swift | 39 ++ .../Model/Enums/LinearChannelType.swift | 40 ++ .../Model/Enums/MathemticalOperatorType.swift | 38 + .../Model/Enums/MediaFileOrderBy.swift | 36 + .../Model/Enums/MediaFileStreamerType.swift | 40 ++ .../Model/Enums/MediaFileTypeQuality.swift | 40 ++ .../Model/Enums/MessageTemplateType.swift | 41 ++ .../Classes/Model/Enums/MetaDataType.swift | 41 ++ .../Classes/Model/Enums/MetaOrderBy.swift | 43 ++ .../Classes/Model/Enums/MetaTagOrderBy.swift | 37 + .../Model/Enums/MonetizationType.swift | 38 + .../Model/Enums/NotificationType.swift | 39 ++ .../Classes/Model/Enums/OTTUserOrderBy.swift | 36 + .../Enums/ObjectVirtualAssetInfoType.swift | 38 + .../Model/Enums/ParentalRuleOrderBy.swift | 36 + .../Model/Enums/ParentalRuleType.swift | 38 + .../Enums/PartnerConfigurationOrderBy.swift | 36 + .../Enums/PartnerConfigurationType.swift | 44 ++ .../Model/Enums/PasswordPolicyOrderBy.swift | 36 + .../Enums/PaymentMethodProfileOrderBy.swift | 36 + .../Model/Enums/PaymentMethodType.swift | 49 ++ .../Model/Enums/PermissionOrderBy.swift | 36 + .../Classes/Model/Enums/PermissionType.swift | 38 + .../Model/Enums/PersonalFeedOrderBy.swift | 43 ++ .../Model/Enums/PersonalListOrderBy.swift | 37 + .../Classes/Model/Enums/PinType.swift | 37 + .../Classes/Model/Enums/Platform.swift | 42 ++ .../Model/Enums/PlaybackContextType.swift | 40 ++ .../Model/Enums/PlaybackProfileOrderBy.swift | 36 + .../Classes/Model/Enums/PositionOwner.swift | 37 + .../Classes/Model/Enums/PpvOrderBy.swift | 37 + .../Model/Enums/PriceDetailsOrderBy.swift | 36 + .../Model/Enums/PricePlanOrderBy.swift | 36 + .../Model/Enums/ProductPriceOrderBy.swift | 37 + .../Model/Enums/ProtectionPolicy.swift | 37 + .../Model/Enums/PurchaseSettingsType.swift | 38 + .../Classes/Model/Enums/PurchaseStatus.swift | 50 ++ .../Model/Enums/QuotaOveragePolicy.swift | 37 + .../Model/Enums/RecordingContextOrderBy.swift | 36 + .../Model/Enums/RecordingOrderBy.swift | 39 ++ .../Classes/Model/Enums/RecordingStatus.swift | 41 ++ .../Classes/Model/Enums/RecordingType.swift | 39 ++ .../Classes/Model/Enums/RegionOrderBy.swift | 37 + .../Model/Enums/RelatedEntityType.swift | 39 ++ .../Classes/Model/Enums/ReminderType.swift | 37 + .../Classes/Model/Enums/ReportOrderBy.swift | 36 + .../Classes/Model/Enums/ResponseType.swift | 40 ++ .../Model/Enums/RollingDevicePolicy.swift | 39 ++ .../Classes/Model/Enums/RuleActionType.swift | 46 ++ .../Model/Enums/RuleConditionType.swift | 47 ++ .../Classes/Model/Enums/RuleLevel.swift | 39 ++ .../Classes/Model/Enums/RuleType.swift | 41 ++ .../Enums/ScheduledRecordingAssetType.swift | 38 + .../Model/Enums/SearchHistoryOrderBy.swift | 36 + .../Model/Enums/SeriesRecordingOrderBy.swift | 41 ++ .../Model/Enums/SeriesReminderOrderBy.swift | 36 + .../Classes/Model/Enums/SkipOperators.swift | 39 ++ .../Classes/Model/Enums/SkipOptions.swift | 38 + .../Model/Enums/SocialActionOrderBy.swift | 36 + .../Model/Enums/SocialActionPrivacy.swift | 37 + .../Model/Enums/SocialActionType.swift | 39 ++ .../Model/Enums/SocialCommentOrderBy.swift | 37 + .../Enums/SocialFriendActivityOrderBy.swift | 37 + .../Classes/Model/Enums/SocialNetwork.swift | 36 + .../Classes/Model/Enums/SocialPlatform.swift | 38 + .../Classes/Model/Enums/SocialPrivacy.swift | 41 ++ .../Classes/Model/Enums/SocialStatus.swift | 47 ++ .../Classes/Model/Enums/StreamType.swift | 38 + .../Enums/SubscriptionDependencyType.swift | 38 + .../Model/Enums/SubscriptionOrderBy.swift | 37 + .../Model/Enums/SubscriptionSetOrderBy.swift | 37 + .../Model/Enums/SubscriptionSetType.swift | 37 + .../Model/Enums/SubscriptionTriggerType.swift | 37 + .../Classes/Model/Enums/TagOrderBy.swift | 36 + .../Model/Enums/TimeShiftedTvState.swift | 38 + .../TopicAutomaticIssueNotification.swift | 38 + .../TopicNotificationMessageOrderBy.swift | 36 + .../Enums/TopicNotificationOrderBy.swift | 36 + .../Classes/Model/Enums/TopicOrderBy.swift | 36 + .../Enums/TransactionAdapterStatus.swift | 38 + .../Enums/TransactionHistoryOrderBy.swift | 37 + .../Classes/Model/Enums/TransactionType.swift | 38 + .../Classes/Model/Enums/TvmRuleOrderBy.swift | 36 + .../Classes/Model/Enums/TvmRuleType.swift | 37 + .../Model/Enums/UploadTokenStatus.swift | 38 + .../Classes/Model/Enums/UrlType.swift | 37 + .../Model/Enums/UserAssetRuleOrderBy.swift | 37 + .../Model/Enums/UserAssetsListItemType.swift | 37 + .../Model/Enums/UserAssetsListType.swift | 39 ++ .../Classes/Model/Enums/UserRoleOrderBy.swift | 36 + .../Classes/Model/Enums/UserState.swift | 39 ++ .../Classes/Model/Enums/WatchStatus.swift | 38 + KalturaClient/Classes/Model/ObjectBase.swift | 80 +++ .../Objects/AccessControlBlockAction.swift | 48 ++ .../Model/Objects/AccessControlMessage.swift | 90 +++ .../Model/Objects/ActionPermissionItem.swift | 126 ++++ .../Classes/Model/Objects/AdsContext.swift | 68 ++ .../Classes/Model/Objects/AdsSource.swift | 123 ++++ .../AggregatedPropertySkipCondition.swift | 73 ++ .../Objects/AggregationCountFilter.swift | 49 ++ .../Model/Objects/AllowPlaybackAction.swift | 48 ++ .../Classes/Model/Objects/Announcement.swift | 300 ++++++++ .../Model/Objects/AnnouncementFilter.swift | 73 ++ .../Objects/AnnouncementListResponse.swift | 69 ++ .../Model/Objects/ApiExceptionArg.swift | 90 +++ .../Classes/Model/Objects/AppToken.swift | 222 ++++++ .../Objects/ApplyDiscountModuleAction.swift | 72 ++ .../Objects/ApplyFreePlaybackAction.swift | 48 ++ .../Objects/ApplyPlaybackAdapterAction.swift | 72 ++ .../Classes/Model/Objects/Asset.swift | 317 +++++++++ .../Classes/Model/Objects/AssetComment.swift | 127 ++++ .../Model/Objects/AssetCommentFilter.swift | 90 +++ .../Objects/AssetCommentListResponse.swift | 69 ++ .../Model/Objects/AssetCondition.swift | 73 ++ .../Classes/Model/Objects/AssetCount.swift | 106 +++ .../Objects/AssetCountListResponse.swift | 87 +++ .../Model/Objects/AssetFieldGroupBy.swift | 73 ++ .../Classes/Model/Objects/AssetFile.swift | 73 ++ .../Model/Objects/AssetFileContext.swift | 95 +++ .../Classes/Model/Objects/AssetFilePpv.swift | 127 ++++ .../Model/Objects/AssetFilePpvFilter.swift | 91 +++ .../Objects/AssetFilePpvListResponse.swift | 69 ++ .../Classes/Model/Objects/AssetFilter.swift | 65 ++ .../Classes/Model/Objects/AssetGroupBy.swift | 49 ++ .../Classes/Model/Objects/AssetHistory.swift | 141 ++++ .../Model/Objects/AssetHistoryFilter.swift | 133 ++++ .../Objects/AssetHistoryListResponse.swift | 69 ++ .../Objects/AssetHistorySuppressFilter.swift | 49 ++ .../Objects/AssetImagePerRatioFilter.swift | 49 ++ ...eCycleBuisnessModuleTransitionAction.swift | 90 +++ .../AssetLifeCycleTagTransitionAction.swift | 72 ++ .../AssetLifeCycleTransitionAction.swift | 87 +++ .../Model/Objects/AssetListResponse.swift | 69 ++ .../Model/Objects/AssetMetaOrTagGroupBy.swift | 75 ++ .../Objects/AssetOrderSegmentAction.swift | 87 +++ .../Classes/Model/Objects/AssetReminder.swift | 72 ++ .../Model/Objects/AssetReminderFilter.swift | 48 ++ .../Classes/Model/Objects/AssetRule.swift | 98 +++ .../Model/Objects/AssetRuleAction.swift | 48 ++ .../Classes/Model/Objects/AssetRuleBase.swift | 49 ++ .../Model/Objects/AssetRuleFilter.swift | 121 ++++ .../Model/Objects/AssetRuleListResponse.swift | 68 ++ .../Model/Objects/AssetStatistics.swift | 156 +++++ .../Objects/AssetStatisticsListResponse.swift | 69 ++ .../Model/Objects/AssetStatisticsQuery.swift | 126 ++++ .../Classes/Model/Objects/AssetStruct.swift | 275 ++++++++ .../Model/Objects/AssetStructFilter.swift | 109 +++ .../Objects/AssetStructListResponse.swift | 69 ++ .../Model/Objects/AssetStructMeta.swift | 207 ++++++ .../Model/Objects/AssetStructMetaFilter.swift | 91 +++ .../Objects/AssetStructMetaListResponse.swift | 69 ++ .../Objects/AssetSubscriptionCondition.swift | 50 ++ .../Classes/Model/Objects/AssetUserRule.swift | 83 +++ .../Model/Objects/AssetUserRuleAction.swift | 48 ++ .../Objects/AssetUserRuleBlockAction.swift | 48 ++ .../Model/Objects/AssetUserRuleFilter.swift | 92 +++ .../Objects/AssetUserRuleFilterAction.swift | 72 ++ .../Objects/AssetUserRuleListResponse.swift | 68 ++ .../Classes/Model/Objects/AssetsCount.swift | 87 +++ .../Classes/Model/Objects/BaseChannel.swift | 66 ++ .../Classes/Model/Objects/BaseOTTUser.swift | 124 ++++ .../Model/Objects/BaseRegionFilter.swift | 48 ++ .../Model/Objects/BaseResponseProfile.swift | 49 ++ .../Model/Objects/BaseSearchAssetFilter.swift | 127 ++++ .../Model/Objects/BaseSegmentAction.swift | 49 ++ .../Model/Objects/BaseSegmentCondition.swift | 49 ++ .../Model/Objects/BaseSegmentValue.swift | 49 ++ .../Objects/BaseSegmentationTypeFilter.swift | 48 ++ .../Model/Objects/BillingPartnerConfig.swift | 91 +++ .../Model/Objects/BillingTransaction.swift | 299 ++++++++ .../BillingTransactionListResponse.swift | 69 ++ .../Model/Objects/BlockPlaybackAction.swift | 48 ++ .../BlockSubscriptionSegmentAction.swift | 49 ++ .../Classes/Model/Objects/Bookmark.swift | 165 +++++ .../Classes/Model/Objects/BookmarkEvent.swift | 198 ++++++ .../Objects/BookmarkEventThreshold.swift | 90 +++ .../Model/Objects/BookmarkFilter.swift | 91 +++ .../Model/Objects/BookmarkListResponse.swift | 69 ++ .../Model/Objects/BookmarkPlayerData.swift | 144 ++++ .../Classes/Model/Objects/BooleanValue.swift | 73 ++ .../Classes/Model/Objects/BulkUpload.swift | 194 +++++ .../Model/Objects/BulkUploadAssetData.swift | 75 ++ .../Model/Objects/BulkUploadAssetResult.swift | 82 +++ .../Objects/BulkUploadExcelJobData.swift | 49 ++ .../Model/Objects/BulkUploadFilter.swift | 128 ++++ .../Objects/BulkUploadIngestJobData.swift | 74 ++ .../Model/Objects/BulkUploadJobData.swift | 49 ++ .../Objects/BulkUploadListResponse.swift | 69 ++ .../Objects/BulkUploadLiveAssetData.swift | 49 ++ .../Objects/BulkUploadLiveAssetResult.swift | 48 ++ .../Objects/BulkUploadMediaAssetData.swift | 49 ++ .../Objects/BulkUploadMediaAssetResult.swift | 48 ++ .../Model/Objects/BulkUploadObjectData.swift | 49 ++ .../Objects/BulkUploadProgramAssetData.swift | 49 ++ .../BulkUploadProgramAssetResult.swift | 96 +++ .../Model/Objects/BulkUploadResult.swift | 133 ++++ .../Objects/BumpersPlaybackPluginData.swift | 90 +++ .../Classes/Model/Objects/BundleFilter.swift | 111 +++ .../Objects/BusinessModuleCondition.swift | 91 +++ .../Model/Objects/BusinessModuleRule.swift | 113 +++ .../Objects/BusinessModuleRuleAction.swift | 48 ++ .../Objects/BusinessModuleRuleFilter.swift | 127 ++++ .../BusinessModuleRuleListResponse.swift | 68 ++ .../Classes/Model/Objects/BuzzScore.swift | 109 +++ .../Model/Objects/CDNAdapterProfile.swift | 189 +++++ .../CDNAdapterProfileListResponse.swift | 68 ++ .../Model/Objects/CDNPartnerSettings.swift | 90 +++ .../Model/Objects/CDVRAdapterProfile.swift | 189 +++++ .../CDVRAdapterProfileListResponse.swift | 69 ++ .../Objects/CaptionPlaybackPluginData.swift | 126 ++++ .../Classes/Model/Objects/CategoryItem.swift | 230 ++++++ .../Objects/CategoryItemAncestorsFilter.swift | 72 ++ .../Objects/CategoryItemByIdInFilter.swift | 72 ++ .../Model/Objects/CategoryItemFilter.swift | 48 ++ .../Objects/CategoryItemListResponse.swift | 68 ++ .../Objects/CategoryItemSearchFilter.swift | 90 +++ .../Classes/Model/Objects/CategoryTree.swift | 206 ++++++ .../Classes/Model/Objects/Channel.swift | 277 ++++++++ .../Objects/ChannelEnrichmentHolder.swift | 73 ++ .../Model/Objects/ChannelExternalFilter.swift | 108 +++ .../Classes/Model/Objects/ChannelFilter.swift | 90 +++ .../Model/Objects/ChannelListResponse.swift | 68 ++ .../Classes/Model/Objects/ChannelOrder.swift | 103 +++ .../Model/Objects/ChannelsFilter.swift | 144 ++++ .../Model/Objects/ClientConfiguration.swift | 91 +++ .../Model/Objects/CloudRecordingFilter.swift | 69 ++ .../Objects/CloudSeriesRecordingFilter.swift | 69 ++ .../Model/Objects/CognitoIdentity.swift | 65 ++ .../Model/Objects/CognitoUserPool.swift | 65 ++ .../Classes/Model/Objects/Collection.swift | 267 +++++++ .../Model/Objects/CollectionEntitlement.swift | 48 ++ .../Model/Objects/CollectionFilter.swift | 109 +++ .../Objects/CollectionListResponse.swift | 69 ++ .../Model/Objects/CollectionPrice.swift | 49 ++ .../Model/Objects/CommercePartnerConfig.swift | 70 ++ .../Classes/Model/Objects/Compensation.swift | 172 +++++ .../Model/Objects/ConcurrencyCondition.swift | 91 +++ .../Objects/ConcurrencyPartnerConfig.swift | 109 +++ .../Model/Objects/ConcurrencyViolation.swift | 162 +++++ .../Classes/Model/Objects/Condition.swift | 88 +++ .../Model/Objects/ConfigurationGroup.swift | 157 +++++ .../Objects/ConfigurationGroupDevice.swift | 105 +++ .../ConfigurationGroupDeviceFilter.swift | 74 ++ ...ConfigurationGroupDeviceListResponse.swift | 69 ++ .../ConfigurationGroupListResponse.swift | 69 ++ .../Model/Objects/ConfigurationGroupTag.swift | 105 +++ .../Objects/ConfigurationGroupTagFilter.swift | 74 ++ .../ConfigurationGroupTagListResponse.swift | 69 ++ .../Objects/ConfigurationIdentifier.swift | 90 +++ .../Model/Objects/Configurations.swift | 210 ++++++ .../Model/Objects/ConfigurationsFilter.swift | 73 ++ .../Objects/ConfigurationsListResponse.swift | 69 ++ .../Objects/ContentActionCondition.swift | 129 ++++ .../Model/Objects/ContentResource.swift | 48 ++ .../Model/Objects/ContentScoreCondition.swift | 158 +++++ .../Classes/Model/Objects/ContentSource.swift | 73 ++ .../Classes/Model/Objects/Country.swift | 214 ++++++ .../Model/Objects/CountryCondition.swift | 73 ++ .../Classes/Model/Objects/CountryFilter.swift | 109 +++ .../Model/Objects/CountryListResponse.swift | 68 ++ .../Classes/Model/Objects/Coupon.swift | 119 ++++ .../Classes/Model/Objects/CouponFilter.swift | 72 ++ .../Objects/CouponGenerationOptions.swift | 49 ++ .../Model/Objects/CouponListResponse.swift | 68 ++ .../Classes/Model/Objects/CouponsGroup.swift | 214 ++++++ .../Objects/CouponsGroupListResponse.swift | 69 ++ .../Model/Objects/CredentialsProvider.swift | 65 ++ .../Classes/Model/Objects/CrudFilter.swift | 48 ++ .../Classes/Model/Objects/CrudObject.swift | 48 ++ .../Classes/Model/Objects/Currency.swift | 145 ++++ .../Model/Objects/CurrencyFilter.swift | 91 +++ .../Model/Objects/CurrencyListResponse.swift | 68 ++ .../Objects/CustomDrmPlaybackPluginData.swift | 72 ++ .../Classes/Model/Objects/DateCondition.swift | 91 +++ .../Classes/Model/Objects/DateTrigger.swift | 72 ++ .../Objects/DefaultPlaybackAdapters.swift | 108 +++ .../Model/Objects/DefaultRegionFilter.swift | 48 ++ .../Objects/DetachedResponseProfile.swift | 98 +++ .../Classes/Model/Objects/DeviceBrand.swift | 103 +++ .../Objects/DeviceBrandListResponse.swift | 68 ++ .../Classes/Model/Objects/DeviceFamily.swift | 49 ++ .../Model/Objects/DeviceFamilyBase.swift | 88 +++ .../Objects/DeviceFamilyListResponse.swift | 68 ++ .../Classes/Model/Objects/DevicePin.swift | 73 ++ .../Classes/Model/Objects/DeviceReport.swift | 247 +++++++ .../Model/Objects/DeviceReportFilter.swift | 73 ++ .../Classes/Model/Objects/Discount.swift | 66 ++ .../Model/Objects/DiscountDetails.swift | 138 ++++ .../Model/Objects/DiscountDetailsFilter.swift | 72 ++ .../Objects/DiscountDetailsListResponse.swift | 68 ++ .../Model/Objects/DiscountModule.swift | 109 +++ .../Classes/Model/Objects/Dispatcher.swift | 48 ++ .../Classes/Model/Objects/DoubleValue.swift | 73 ++ .../Model/Objects/DrmPlaybackPluginData.swift | 90 +++ .../Classes/Model/Objects/DrmProfile.swift | 175 +++++ .../Objects/DrmProfileListResponse.swift | 68 ++ .../Classes/Model/Objects/Duration.swift | 91 +++ .../Model/Objects/DynamicChannel.swift | 119 ++++ .../Model/Objects/DynamicOrderBy.swift | 91 +++ .../Classes/Model/Objects/EmailMessage.swift | 212 ++++++ .../Objects/EndDateOffsetRuleAction.swift | 49 ++ .../Classes/Model/Objects/Engagement.swift | 211 ++++++ .../Model/Objects/EngagementAdapter.swift | 138 ++++ .../Model/Objects/EngagementAdapterBase.swift | 88 +++ .../EngagementAdapterListResponse.swift | 69 ++ .../Model/Objects/EngagementFilter.swift | 90 +++ .../Objects/EngagementListResponse.swift | 69 ++ .../Classes/Model/Objects/Entitlement.swift | 262 +++++++ .../Model/Objects/EntitlementFilter.swift | 109 +++ .../Objects/EntitlementListResponse.swift | 69 ++ .../Model/Objects/EntitlementRenewal.swift | 137 ++++ .../Objects/EntitlementRenewalBase.swift | 108 +++ .../Model/Objects/EventNotification.swift | 193 +++++ .../Objects/EventNotificationFilter.swift | 108 +++ .../EventNotificationListResponse.swift | 68 ++ .../EventNotificationObjectScope.swift | 66 ++ .../Objects/EventNotificationScope.swift | 49 ++ .../Classes/Model/Objects/EventObject.swift | 48 ++ .../Classes/Model/Objects/ExportTask.swift | 217 ++++++ .../Model/Objects/ExportTaskFilter.swift | 73 ++ .../Objects/ExportTaskListResponse.swift | 69 ++ .../Objects/ExternalChannelProfile.swift | 206 ++++++ .../ExternalChannelProfileByIdInFilter.swift | 72 ++ .../ExternalChannelProfileFilter.swift | 49 ++ .../ExternalChannelProfileListResponse.swift | 69 ++ .../Model/Objects/ExternalReceipt.swift | 92 +++ .../Model/Objects/ExternalRecording.swift | 102 +++ .../Objects/ExternalRecordingFilter.swift | 69 ++ ...ternalRecordingResponseProfileFilter.swift | 49 ++ .../Objects/ExternalSeriesRecording.swift | 68 ++ .../Classes/Model/Objects/FacebookPost.swift | 86 +++ .../Model/Objects/FacebookSocial.swift | 48 ++ .../Objects/FairPlayPlaybackPluginData.swift | 72 ++ .../Classes/Model/Objects/Favorite.swift | 106 +++ .../Model/Objects/FavoriteFilter.swift | 110 +++ .../Model/Objects/FavoriteListResponse.swift | 69 ++ .../Classes/Model/Objects/Feed.swift | 65 ++ .../Classes/Model/Objects/Filter.swift | 72 ++ .../Classes/Model/Objects/FilterPager.swift | 94 +++ .../Model/Objects/FollowDataBase.swift | 125 ++++ .../Model/Objects/FollowTvSeries.swift | 72 ++ .../Model/Objects/FollowTvSeriesFilter.swift | 48 ++ .../Objects/FollowTvSeriesListResponse.swift | 69 ++ .../Model/Objects/GeneralPartnerConfig.swift | 300 ++++++++ .../Model/Objects/GenericListResponse.swift | 69 ++ .../Model/Objects/GroupPermission.swift | 65 ++ .../Model/Objects/HeaderCondition.swift | 91 +++ .../Classes/Model/Objects/HomeNetwork.swift | 127 ++++ .../Objects/HomeNetworkListResponse.swift | 69 ++ .../Classes/Model/Objects/Household.swift | 292 ++++++++ .../Model/Objects/HouseholdCoupon.swift | 91 +++ .../Objects/HouseholdCouponCodeFilter.swift | 49 ++ .../Model/Objects/HouseholdCouponFilter.swift | 126 ++++ .../Objects/HouseholdCouponListResponse.swift | 68 ++ .../Model/Objects/HouseholdDevice.swift | 219 ++++++ .../HouseholdDeviceFamilyLimitations.swift | 109 +++ .../Model/Objects/HouseholdDeviceFilter.swift | 108 +++ .../Objects/HouseholdDeviceListResponse.swift | 68 ++ .../Model/Objects/HouseholdLimitations.swift | 212 ++++++ .../HouseholdLimitationsListResponse.swift | 69 ++ .../Objects/HouseholdPaymentGateway.swift | 131 ++++ .../HouseholdPaymentGatewayListResponse.swift | 69 ++ .../Objects/HouseholdPaymentMethod.swift | 156 +++++ .../HouseholdPaymentMethodListResponse.swift | 69 ++ .../Objects/HouseholdPremiumService.swift | 49 ++ .../HouseholdPremiumServiceListResponse.swift | 69 ++ .../Model/Objects/HouseholdQuota.swift | 95 +++ .../Model/Objects/HouseholdSegment.swift | 91 +++ .../Objects/HouseholdSegmentFilter.swift | 72 ++ .../HouseholdSegmentListResponse.swift | 68 ++ .../Classes/Model/Objects/HouseholdUser.swift | 158 +++++ .../Model/Objects/HouseholdUserFilter.swift | 72 ++ .../Objects/HouseholdUserListResponse.swift | 69 ++ .../Classes/Model/Objects/Image.swift | 198 ++++++ .../Classes/Model/Objects/ImageFilter.swift | 144 ++++ .../Model/Objects/ImageListResponse.swift | 68 ++ .../Classes/Model/Objects/ImageType.swift | 160 +++++ .../Model/Objects/ImageTypeFilter.swift | 90 +++ .../Model/Objects/ImageTypeListResponse.swift | 68 ++ .../Classes/Model/Objects/InboxMessage.swift | 153 ++++ .../Model/Objects/InboxMessageFilter.swift | 108 +++ .../Objects/InboxMessageListResponse.swift | 69 ++ .../Classes/Model/Objects/IngestProfile.swift | 228 ++++++ .../Objects/IngestProfileListResponse.swift | 68 ++ .../Classes/Model/Objects/IntegerValue.swift | 73 ++ .../Objects/IntegerValueListResponse.swift | 69 ++ KalturaClient/Classes/Model/Objects/Iot.swift | 271 +++++++ .../Objects/IotClientConfiguration.swift | 113 +++ .../Classes/Model/Objects/IotDefault.swift | 108 +++ .../Classes/Model/Objects/IotFilter.swift | 49 ++ .../Classes/Model/Objects/IotProfile.swift | 84 +++ .../Classes/Model/Objects/IotProfileAws.swift | 199 ++++++ .../Model/Objects/IotProfileFilter.swift | 49 ++ .../Model/Objects/IpRangeCondition.swift | 91 +++ .../Classes/Model/Objects/KeyValue.swift | 90 +++ .../Model/Objects/KsqlSegmentAction.swift | 73 ++ .../Classes/Model/Objects/Language.swift | 163 +++++ .../Model/Objects/LanguageFilter.swift | 91 +++ .../Model/Objects/LanguageListResponse.swift | 68 ++ .../Classes/Model/Objects/LicensedUrl.swift | 90 +++ .../Objects/LicensedUrlBaseRequest.swift | 72 ++ .../Model/Objects/LicensedUrlEpgRequest.swift | 90 +++ .../Objects/LicensedUrlMediaRequest.swift | 90 +++ .../Objects/LicensedUrlRecordingRequest.swift | 72 ++ .../Classes/Model/Objects/ListResponse.swift | 72 ++ .../Classes/Model/Objects/LiveAsset.swift | 342 +++++++++ .../Classes/Model/Objects/LoginResponse.swift | 76 ++ .../Classes/Model/Objects/LoginSession.swift | 91 +++ .../Classes/Model/Objects/LongValue.swift | 73 ++ .../Model/Objects/MailDispatcher.swift | 90 +++ .../Classes/Model/Objects/ManualChannel.swift | 73 ++ .../Classes/Model/Objects/MediaAsset.swift | 163 +++++ .../Model/Objects/MediaConcurrencyRule.swift | 127 ++++ .../MediaConcurrencyRuleListResponse.swift | 68 ++ .../Classes/Model/Objects/MediaFile.swift | 427 +++++++++++ .../Model/Objects/MediaFileFilter.swift | 90 +++ .../Model/Objects/MediaFileListResponse.swift | 69 ++ .../Classes/Model/Objects/MediaFileType.swift | 262 +++++++ .../Objects/MediaFileTypeListResponse.swift | 69 ++ .../Classes/Model/Objects/MediaImage.swift | 178 +++++ .../Classes/Model/Objects/Message.swift | 105 +++ .../Model/Objects/MessageTemplate.swift | 217 ++++++ .../Classes/Model/Objects/Meta.swift | 255 +++++++ .../Classes/Model/Objects/MetaFilter.swift | 127 ++++ .../Model/Objects/MetaListResponse.swift | 69 ++ .../Model/Objects/MonetizationCondition.swift | 164 +++++ .../Model/Objects/MonetizationSource.swift | 109 +++ .../Objects/MultilingualStringValue.swift | 84 +++ .../MultilingualStringValueArray.swift | 69 ++ .../Model/Objects/NetworkActionStatus.swift | 90 +++ .../Classes/Model/Objects/NotCondition.swift | 73 ++ .../NotificationsPartnerSettings.swift | 378 ++++++++++ .../Model/Objects/NotificationsSettings.swift | 127 ++++ .../Model/Objects/NpvrPremiumService.swift | 66 ++ .../Model/Objects/OSSAdapterBaseProfile.swift | 88 +++ .../Model/Objects/OSSAdapterProfile.swift | 138 ++++ .../OSSAdapterProfileListResponse.swift | 69 ++ .../Classes/Model/Objects/OTTCategory.swift | 148 ++++ .../Objects/OTTObjectSupportNullable.swift | 48 ++ .../Classes/Model/Objects/OTTUser.swift | 362 ++++++++++ .../Model/Objects/OTTUserDynamicData.swift | 99 +++ .../Classes/Model/Objects/OTTUserFilter.swift | 127 ++++ .../Model/Objects/OTTUserListResponse.swift | 69 ++ .../Classes/Model/Objects/OTTUserType.swift | 88 +++ .../Objects/ObjectVirtualAssetInfo.swift | 108 +++ .../ObjectVirtualAssetPartnerConfig.swift | 68 ++ .../Classes/Model/Objects/OrCondition.swift | 68 ++ .../Classes/Model/Objects/ParentalRule.swift | 304 ++++++++ .../Model/Objects/ParentalRuleFilter.swift | 72 ++ .../Objects/ParentalRuleListResponse.swift | 69 ++ .../Model/Objects/PartnerConfiguration.swift | 49 ++ .../Objects/PartnerConfigurationFilter.swift | 73 ++ .../PartnerConfigurationListResponse.swift | 68 ++ .../Model/Objects/PasswordPolicy.swift | 175 +++++ .../Model/Objects/PasswordPolicyFilter.swift | 73 ++ .../Objects/PasswordPolicyListResponse.swift | 68 ++ .../Objects/PaymentGatewayBaseProfile.swift | 124 ++++ .../Objects/PaymentGatewayConfiguration.swift | 68 ++ .../Model/Objects/PaymentGatewayProfile.swift | 285 ++++++++ .../PaymentGatewayProfileListResponse.swift | 69 ++ .../Model/Objects/PaymentMethodProfile.swift | 123 ++++ .../Objects/PaymentMethodProfileFilter.swift | 72 ++ .../PaymentMethodProfileListResponse.swift | 69 ++ .../Model/Objects/PaymentPartnerConfig.swift | 69 ++ .../Classes/Model/Objects/Permission.swift | 138 ++++ .../Model/Objects/PermissionFilter.swift | 91 +++ .../Objects/PermissionListResponse.swift | 69 ++ .../Model/Objects/PersistedFilter.swift | 73 ++ .../Classes/Model/Objects/PersonalFeed.swift | 48 ++ .../Model/Objects/PersonalFeedFilter.swift | 48 ++ .../Objects/PersonalFeedListResponse.swift | 69 ++ .../Classes/Model/Objects/PersonalList.swift | 161 +++++ .../Model/Objects/PersonalListFilter.swift | 73 ++ .../Objects/PersonalListListResponse.swift | 69 ++ .../Objects/PersonalListSearchFilter.swift | 73 ++ KalturaClient/Classes/Model/Objects/Pin.swift | 109 +++ .../Model/Objects/PlaybackContext.swift | 124 ++++ .../Objects/PlaybackContextOptions.swift | 158 +++++ .../Model/Objects/PlaybackPartnerConfig.swift | 66 ++ .../Model/Objects/PlaybackPluginData.swift | 48 ++ .../Model/Objects/PlaybackProfile.swift | 175 +++++ .../Model/Objects/PlaybackProfileFilter.swift | 73 ++ .../Objects/PlaybackProfileListResponse.swift | 68 ++ .../Model/Objects/PlaybackSource.swift | 124 ++++ .../Classes/Model/Objects/PluginData.swift | 48 ++ KalturaClient/Classes/Model/Objects/Ppv.swift | 219 ++++++ .../Model/Objects/PpvEntitlement.swift | 81 +++ .../Classes/Model/Objects/PpvFilter.swift | 91 +++ .../Model/Objects/PpvListResponse.swift | 69 ++ .../Classes/Model/Objects/PpvPrice.swift | 351 ++++++++++ .../Model/Objects/PremiumService.swift | 88 +++ .../Classes/Model/Objects/PreviewModule.swift | 125 ++++ .../Classes/Model/Objects/Price.swift | 127 ++++ .../Classes/Model/Objects/PriceDetails.swift | 125 ++++ .../Model/Objects/PriceDetailsFilter.swift | 72 ++ .../Objects/PriceDetailsListResponse.swift | 68 ++ .../Classes/Model/Objects/PricePlan.swift | 119 ++++ .../Model/Objects/PricePlanFilter.swift | 72 ++ .../Model/Objects/PricePlanListResponse.swift | 68 ++ .../Classes/Model/Objects/ProductCode.swift | 91 +++ .../Classes/Model/Objects/ProductPrice.swift | 119 ++++ .../Model/Objects/ProductPriceFilter.swift | 144 ++++ .../Objects/ProductPriceListResponse.swift | 69 ++ .../Objects/ProductsPriceListResponse.swift | 69 ++ .../Classes/Model/Objects/ProgramAsset.swift | 211 ++++++ .../Model/Objects/PropertySkipCondition.swift | 109 +++ .../PublicCouponGenerationOptions.swift | 72 ++ .../Classes/Model/Objects/Purchase.swift | 147 ++++ .../Classes/Model/Objects/PurchaseBase.swift | 126 ++++ .../Model/Objects/PurchaseSession.swift | 72 ++ .../Model/Objects/PurchaseSettings.swift | 73 ++ .../Classes/Model/Objects/PushMessage.swift | 163 +++++ .../Classes/Model/Objects/PushParams.swift | 91 +++ .../RandomCouponGenerationOptions.swift | 127 ++++ .../Classes/Model/Objects/Ratio.swift | 142 ++++ .../Model/Objects/RatioListResponse.swift | 68 ++ .../Model/Objects/RecommendationProfile.swift | 171 +++++ .../RecommendationProfileListResponse.swift | 69 ++ .../Classes/Model/Objects/Recording.swift | 188 +++++ .../Model/Objects/RecordingAsset.swift | 91 +++ .../Objects/RecordingContextFilter.swift | 73 ++ .../Model/Objects/RecordingFilter.swift | 109 +++ .../Model/Objects/RecordingListResponse.swift | 69 ++ .../Model/Objects/RegexExpression.swift | 91 +++ .../Classes/Model/Objects/Region.swift | 155 ++++ .../Classes/Model/Objects/RegionFilter.swift | 144 ++++ .../Model/Objects/RegionListResponse.swift | 69 ++ .../Model/Objects/RegionalChannel.swift | 90 +++ .../Model/Objects/RegistryResponse.swift | 108 +++ .../Model/Objects/RegistrySettings.swift | 90 +++ .../RegistrySettingsListResponse.swift | 69 ++ .../Classes/Model/Objects/RelatedEntity.swift | 90 +++ .../Model/Objects/RelatedEntityArray.swift | 68 ++ .../Model/Objects/RelatedExternalFilter.swift | 129 ++++ .../Classes/Model/Objects/RelatedFilter.swift | 110 +++ .../Model/Objects/RelatedObjectFilter.swift | 49 ++ .../Classes/Model/Objects/Reminder.swift | 102 +++ .../Model/Objects/ReminderFilter.swift | 48 ++ .../Model/Objects/ReminderListResponse.swift | 69 ++ .../Classes/Model/Objects/Report.swift | 48 ++ .../Classes/Model/Objects/ReportFilter.swift | 49 ++ .../Model/Objects/ReportListResponse.swift | 69 ++ .../Model/Objects/RequestConfiguration.swift | 203 ++++++ .../Objects/RollingDeviceRemovalData.swift | 90 +++ .../Classes/Model/Objects/Rule.swift | 124 ++++ .../Classes/Model/Objects/RuleAction.swift | 87 +++ .../Model/Objects/SSOAdapterProfile.swift | 174 +++++ .../Objects/SSOAdapterProfileInvoke.swift | 104 +++ .../SSOAdapterProfileListResponse.swift | 69 ++ .../ScheduledRecordingProgramFilter.swift | 126 ++++ .../Model/Objects/SearchAssetFilter.swift | 76 ++ .../Model/Objects/SearchAssetListFilter.swift | 72 ++ .../Model/Objects/SearchExternalFilter.swift | 111 +++ .../Classes/Model/Objects/SearchHistory.swift | 171 +++++ .../Model/Objects/SearchHistoryFilter.swift | 48 ++ .../Objects/SearchHistoryListResponse.swift | 69 ++ .../Model/Objects/SeasonsReminderFilter.swift | 108 +++ .../Model/Objects/SegmentAllValues.swift | 73 ++ .../Objects/SegmentAssetFilterAction.swift | 49 ++ .../SegmentAssetFilterSegmentAction.swift | 49 ++ ...SegmentAssetFilterSubscriptionAction.swift | 49 ++ ...SegmentBlockCancelSubscriptionAction.swift | 49 ++ ...gmentBlockPlaybackSubscriptionAction.swift | 49 ++ ...gmentBlockPurchaseSubscriptionAction.swift | 49 ++ .../Classes/Model/Objects/SegmentRange.swift | 196 ++++++ .../Classes/Model/Objects/SegmentRanges.swift | 80 +++ .../Classes/Model/Objects/SegmentSource.swift | 49 ++ .../Classes/Model/Objects/SegmentValue.swift | 124 ++++ .../Model/Objects/SegmentValueFilter.swift | 72 ++ .../Classes/Model/Objects/SegmentValues.swift | 80 +++ .../Model/Objects/SegmentationType.swift | 175 +++++ .../Objects/SegmentationTypeFilter.swift | 91 +++ .../SegmentationTypeListResponse.swift | 69 ++ .../Model/Objects/SegmentsCondition.swift | 73 ++ .../Model/Objects/SeriesRecording.swift | 202 ++++++ .../Model/Objects/SeriesRecordingFilter.swift | 49 ++ .../Objects/SeriesRecordingListResponse.swift | 69 ++ .../Model/Objects/SeriesReminder.swift | 108 +++ .../Model/Objects/SeriesReminderFilter.swift | 90 +++ .../Classes/Model/Objects/Session.swift | 181 +++++ .../Classes/Model/Objects/SessionInfo.swift | 49 ++ .../Model/Objects/SingleSegmentValue.swift | 80 +++ .../Classes/Model/Objects/SkipCondition.swift | 49 ++ .../Model/Objects/SkipOnErrorCondition.swift | 73 ++ .../Classes/Model/Objects/SlimAsset.swift | 91 +++ .../Classes/Model/Objects/SmsDispatcher.swift | 48 ++ .../Classes/Model/Objects/Social.swift | 227 ++++++ .../Classes/Model/Objects/SocialAction.swift | 159 +++++ .../Model/Objects/SocialActionFilter.swift | 108 +++ .../Objects/SocialActionListResponse.swift | 68 ++ .../Model/Objects/SocialActionRate.swift | 72 ++ .../Classes/Model/Objects/SocialComment.swift | 126 ++++ .../Model/Objects/SocialCommentFilter.swift | 126 ++++ .../Objects/SocialCommentListResponse.swift | 68 ++ .../Classes/Model/Objects/SocialConfig.swift | 49 ++ .../Model/Objects/SocialFacebookConfig.swift | 91 +++ .../Model/Objects/SocialFriendActivity.swift | 101 +++ .../Objects/SocialFriendActivityFilter.swift | 108 +++ .../SocialFriendActivityListResponse.swift | 68 ++ .../Model/Objects/SocialNetworkComment.swift | 90 +++ .../Model/Objects/SocialUserConfig.swift | 68 ++ .../Objects/StartDateOffsetRuleAction.swift | 49 ++ .../Classes/Model/Objects/StringValue.swift | 73 ++ .../Model/Objects/StringValueArray.swift | 68 ++ .../Model/Objects/SubscribeReference.swift | 48 ++ .../Classes/Model/Objects/Subscription.swift | 575 +++++++++++++++ .../Model/Objects/SubscriptionCondition.swift | 72 ++ .../Objects/SubscriptionDependencySet.swift | 73 ++ .../SubscriptionDependencySetFilter.swift | 72 ++ .../Objects/SubscriptionEntitlement.swift | 197 ++++++ .../Model/Objects/SubscriptionFilter.swift | 144 ++++ .../Objects/SubscriptionListResponse.swift | 69 ++ .../Model/Objects/SubscriptionPrice.swift | 74 ++ .../Model/Objects/SubscriptionSet.swift | 122 ++++ .../Model/Objects/SubscriptionSetFilter.swift | 108 +++ .../Objects/SubscriptionSetListResponse.swift | 69 ++ .../SubscriptionSubscribeReference.swift | 72 ++ .../Model/Objects/SubscriptionSwitchSet.swift | 49 ++ .../Model/Objects/SubscriptionTrigger.swift | 90 +++ .../Model/Objects/SuspendSettings.swift | 91 +++ KalturaClient/Classes/Model/Objects/T.swift | 48 ++ KalturaClient/Classes/Model/Objects/Tag.swift | 116 +++ .../Classes/Model/Objects/TagFilter.swift | 144 ++++ .../Model/Objects/TagListResponse.swift | 68 ++ .../Model/Objects/TimeOffsetRuleAction.swift | 91 +++ .../TimeShiftedTvPartnerSettings.swift | 455 ++++++++++++ .../Classes/Model/Objects/Topic.swift | 141 ++++ .../Classes/Model/Objects/TopicFilter.swift | 48 ++ .../Model/Objects/TopicListResponse.swift | 69 ++ .../Model/Objects/TopicNotification.swift | 116 +++ .../Objects/TopicNotificationFilter.swift | 65 ++ .../TopicNotificationListResponse.swift | 68 ++ .../Objects/TopicNotificationMessage.swift | 163 +++++ .../TopicNotificationMessageFilter.swift | 72 ++ ...TopicNotificationMessageListResponse.swift | 68 ++ .../Classes/Model/Objects/Transaction.swift | 167 +++++ .../Objects/TransactionHistoryFilter.swift | 109 +++ .../Model/Objects/TransactionStatus.swift | 144 ++++ .../Model/Objects/TranslationToken.swift | 91 +++ .../Classes/Model/Objects/Trigger.swift | 48 ++ .../Classes/Model/Objects/TvmDeviceRule.swift | 73 ++ .../Classes/Model/Objects/TvmGeoRule.swift | 164 +++++ .../Classes/Model/Objects/TvmRule.swift | 81 +++ .../Classes/Model/Objects/TvmRuleFilter.swift | 91 +++ .../Model/Objects/TvmRuleListResponse.swift | 68 ++ .../Classes/Model/Objects/TwitterTwit.swift | 48 ++ .../Model/Objects/UnifiedBillingCycle.swift | 101 +++ .../Model/Objects/UnifiedChannel.swift | 90 +++ .../Model/Objects/UnifiedChannelInfo.swift | 108 +++ .../Model/Objects/UnifiedPaymentRenewal.swift | 133 ++++ .../Classes/Model/Objects/UploadToken.swift | 125 ++++ .../Objects/UploadedFileTokenResource.swift | 72 ++ .../Classes/Model/Objects/UrlResource.swift | 72 ++ .../Classes/Model/Objects/UsageModule.swift | 189 +++++ .../Classes/Model/Objects/UserAssetRule.swift | 125 ++++ .../Model/Objects/UserAssetRuleFilter.swift | 91 +++ .../Objects/UserAssetRuleListResponse.swift | 69 ++ .../Model/Objects/UserAssetsListItem.swift | 142 ++++ .../Model/Objects/UserDataCondition.swift | 91 +++ .../Model/Objects/UserDynamicDataSource.swift | 73 ++ .../Classes/Model/Objects/UserInterest.swift | 81 +++ .../Objects/UserInterestListResponse.swift | 69 ++ .../Model/Objects/UserInterestTopic.swift | 102 +++ .../Classes/Model/Objects/UserLoginPin.swift | 106 +++ .../Classes/Model/Objects/UserRole.swift | 123 ++++ .../Model/Objects/UserRoleCondition.swift | 74 ++ .../Model/Objects/UserRoleFilter.swift | 91 +++ .../Model/Objects/UserRoleListResponse.swift | 69 ++ .../Classes/Model/Objects/UserSegment.swift | 91 +++ .../Model/Objects/UserSegmentFilter.swift | 91 +++ .../Objects/UserSegmentListResponse.swift | 69 ++ .../Objects/UserSocialActionResponse.swift | 79 +++ .../Objects/UserSubscriptionCondition.swift | 50 ++ .../Classes/Model/Objects/Value.swift | 73 ++ .../Services/AnnouncementService.swift | 150 ++++ .../Classes/Services/AppTokenService.swift | 143 ++++ .../Services/AssetCommentService.swift | 76 ++ .../Services/AssetFilePpvService.swift | 120 ++++ .../Classes/Services/AssetFileService.swift | 128 ++++ .../Services/AssetHistoryService.swift | 101 +++ .../Classes/Services/AssetRuleService.swift | 110 +++ .../Classes/Services/AssetService.swift | 336 +++++++++ .../Services/AssetStatisticsService.swift | 52 ++ .../Services/AssetStructMetaService.swift | 81 +++ .../Classes/Services/AssetStructService.swift | 127 ++++ .../Services/AssetUserRuleService.swift | 144 ++++ .../Classes/Services/BookmarkService.swift | 72 ++ .../Classes/Services/BulkUploadService.swift | 78 +++ .../Services/BusinessModuleRuleService.swift | 127 ++++ .../Services/CDVRAdapterProfileService.swift | 118 ++++ .../Services/CategoryItemService.swift | 119 ++++ .../Services/CategoryTreeService.swift | 89 +++ .../Services/CdnAdapterProfileService.swift | 118 ++++ .../Services/CdnPartnerSettingsService.swift | 62 ++ .../Classes/Services/ChannelService.swift | 137 ++++ .../Classes/Services/CollectionService.swift | 65 ++ .../Services/CompensationService.swift | 87 +++ .../ConfigurationGroupDeviceService.swift | 111 +++ .../Services/ConfigurationGroupService.swift | 120 ++++ .../ConfigurationGroupTagService.swift | 102 +++ .../Services/ConfigurationsService.swift | 123 ++++ .../Classes/Services/CountryService.swift | 53 ++ .../Classes/Services/CouponService.swift | 69 ++ .../Services/CouponsGroupService.swift | 140 ++++ .../Classes/Services/CurrencyService.swift | 53 ++ .../Classes/Services/DeviceBrandService.swift | 47 ++ .../Services/DeviceFamilyService.swift | 47 ++ .../Services/DiscountDetailsService.swift | 57 ++ .../Classes/Services/DrmProfileService.swift | 47 ++ .../Classes/Services/EmailService.swift | 52 ++ .../Services/EngagementAdapterService.swift | 135 ++++ .../Classes/Services/EngagementService.swift | 101 +++ .../Classes/Services/EntitlementService.swift | 295 ++++++++ .../EventNotificationActionService.swift | 52 ++ .../Services/EventNotificationService.swift | 74 ++ .../Classes/Services/ExportTaskService.swift | 127 ++++ .../ExternalChannelProfileService.swift | 110 +++ .../Classes/Services/FavoriteService.swift | 88 +++ .../Services/FollowTvSeriesService.swift | 127 ++++ .../Classes/Services/HomeNetworkService.swift | 101 +++ .../Services/HouseholdCouponService.swift | 88 +++ .../Services/HouseholdDeviceService.swift | 238 +++++++ .../HouseholdLimitationsService.swift | 64 ++ .../HouseholdPaymentGatewayService.swift | 211 ++++++ .../HouseholdPaymentMethodService.swift | 134 ++++ .../HouseholdPremiumServiceService.swift | 47 ++ .../Services/HouseholdQuotaService.swift | 47 ++ .../Services/HouseholdSegmentService.swift | 88 +++ .../Classes/Services/HouseholdService.swift | 178 +++++ .../Services/HouseholdUserService.swift | 88 +++ .../Classes/Services/ImageService.swift | 106 +++ .../Classes/Services/ImageTypeService.swift | 110 +++ .../Services/InboxMessageService.swift | 106 +++ .../Services/IngestProfileService.swift | 101 +++ .../Classes/Services/IotProfileService.swift | 91 +++ .../Classes/Services/IotService.swift | 57 ++ .../Classes/Services/LanguageService.swift | 53 ++ .../Classes/Services/LicensedUrlService.swift | 52 ++ .../MediaConcurrencyRuleService.swift | 47 ++ .../Classes/Services/MediaFileService.swift | 110 +++ .../Services/MediaFileTypeService.swift | 101 +++ .../Services/MessageTemplateService.swift | 76 ++ .../Classes/Services/MetaService.swift | 110 +++ .../Services/NotificationService.swift | 117 ++++ .../NotificationsPartnerSettingsService.swift | 62 ++ .../NotificationsSettingsService.swift | 91 +++ .../Services/OssAdapterProfileService.swift | 135 ++++ .../Classes/Services/OttCategoryService.swift | 54 ++ .../Classes/Services/OttUserService.swift | 505 +++++++++++++ .../Services/ParentalRuleService.swift | 192 +++++ .../PartnerConfigurationService.swift | 67 ++ .../Classes/Services/PartnerService.swift | 47 ++ .../Services/PasswordPolicyService.swift | 109 +++ .../PaymentGatewayProfileService.swift | 149 ++++ .../PaymentMethodProfileService.swift | 106 +++ .../Classes/Services/PermissionService.swift | 99 +++ .../Services/PersonalFeedService.swift | 61 ++ .../Services/PersonalListService.swift | 98 +++ .../Classes/Services/PinService.swift | 149 ++++ .../Services/PlaybackProfileService.swift | 127 ++++ .../Classes/Services/PpvService.swift | 73 ++ .../Services/PriceDetailsService.swift | 56 ++ .../Classes/Services/PricePlanService.swift | 78 +++ .../Services/ProductPriceService.swift | 54 ++ .../Services/PurchaseSettingsService.swift | 77 ++ .../Classes/Services/RatioService.swift | 84 +++ .../RecommendationProfileService.swift | 118 ++++ .../Classes/Services/RecordingService.swift | 174 +++++ .../Classes/Services/RegionService.swift | 115 +++ .../Services/RegistrySettingsService.swift | 47 ++ .../Classes/Services/ReminderService.swift | 138 ++++ .../Classes/Services/ReportService.swift | 79 +++ .../Services/SearchHistoryService.swift | 102 +++ .../Services/SegmentationTypeService.swift | 119 ++++ .../Services/SeriesRecordingService.swift | 180 +++++ .../Classes/Services/SessionService.swift | 86 +++ .../Services/SocialActionService.swift | 93 +++ .../Services/SocialCommentService.swift | 61 ++ .../SocialFriendActivityService.swift | 65 ++ .../Classes/Services/SocialService.swift | 254 +++++++ .../Services/SsoAdapterProfileService.swift | 142 ++++ .../Services/SubscriptionService.swift | 89 +++ .../Services/SubscriptionSetService.swift | 127 ++++ .../Classes/Services/SystemService.swift | 149 ++++ .../Classes/Services/TagService.swift | 119 ++++ .../TimeShiftedTvPartnerSettingsService.swift | 64 ++ .../TopicNotificationMessageService.swift | 119 ++++ .../Services/TopicNotificationService.swift | 140 ++++ .../Classes/Services/TopicService.swift | 123 ++++ .../Services/TransactionHistoryService.swift | 65 ++ .../Classes/Services/TransactionService.swift | 177 +++++ .../Classes/Services/TvmRuleService.swift | 56 ++ .../Services/UnifiedPaymentService.swift | 54 ++ .../Classes/Services/UploadTokenService.swift | 74 ++ .../Services/UserAssetRuleService.swift | 53 ++ .../Services/UserAssetsListItemService.swift | 107 +++ .../Services/UserInterestService.swift | 110 +++ .../Services/UserLoginPinService.swift | 117 ++++ .../Classes/Services/UserRoleService.swift | 111 +++ .../Classes/Services/UserSegmentService.swift | 100 +++ KalturaOttClient.podspec | 20 + KalturaOttClient.spec.header | 12 + LICENSE | 661 ++++++++++++++++++ LICENSE.txt | 661 ++++++++++++++++++ README.md | 38 + 942 files changed, 85765 insertions(+) create mode 100644 Example/KalturaClient.xcodeproj/project.pbxproj create mode 100644 Example/KalturaClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Example/KalturaClient.xcodeproj/xcshareddata/xcschemes/KalturaClient-Example.xcscheme create mode 100644 Example/KalturaClient.xcworkspace/contents.xcworkspacedata create mode 100644 Example/KalturaClient.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 Example/KalturaClient/AppDelegate.swift create mode 100644 Example/KalturaClient/Base.lproj/LaunchScreen.xib create mode 100644 Example/KalturaClient/Base.lproj/Main.storyboard create mode 100644 Example/KalturaClient/Images.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Example/KalturaClient/Info.plist create mode 100644 Example/KalturaClient/ViewController.swift create mode 100644 Example/Podfile create mode 100644 Example/Tests/ArrayTest.swift create mode 100644 Example/Tests/BaseTest.swift create mode 100644 Example/Tests/EmptyResultTest.swift create mode 100644 Example/Tests/HouseholdTest.swift create mode 100644 Example/Tests/Info.plist create mode 100644 Example/Tests/MapTest.swift create mode 100644 Example/Tests/MultiRequestTest.swift create mode 100644 Example/Tests/MultiRequestWithArray.swift create mode 100644 Example/Tests/MultiRequestWithPrimitives.swift create mode 100644 Example/Tests/PrimitivesTest.swift create mode 100644 Example/Tests/TestConfig.swift create mode 100644 Example/Tests/TestConfig.template.plist create mode 100644 KalturaClient/Classes/.gitkeep create mode 100644 KalturaClient/Classes/Core/Client.swift create mode 100644 KalturaClient/Classes/Core/Executor/RequestExecutor.swift create mode 100644 KalturaClient/Classes/Core/Executor/implementors/USRExecutor.swift create mode 100644 KalturaClient/Classes/Core/KalturaAPIWorkaround.swift create mode 100644 KalturaClient/Classes/Core/Request/ArrayRequestBuilder.swift create mode 100644 KalturaClient/Classes/Core/Request/ConnectionConfiguration.swift create mode 100644 KalturaClient/Classes/Core/Request/MultiRequestBuilder.swift create mode 100644 KalturaClient/Classes/Core/Request/NullRequestBuilder.swift create mode 100644 KalturaClient/Classes/Core/Request/Request.swift create mode 100644 KalturaClient/Classes/Core/Request/RequestBuilder.swift create mode 100644 KalturaClient/Classes/Core/Request/RequestBuilderData.swift create mode 100644 KalturaClient/Classes/Core/Response/JSONParser.swift create mode 100644 KalturaClient/Classes/Core/Response/Result.swift create mode 100644 KalturaClient/Classes/Core/Response/Tokenizer.swift create mode 100644 KalturaClient/Classes/Core/Session/SessionManager.swift create mode 100644 KalturaClient/Classes/Logs/KalturaClientLog.swift create mode 100644 KalturaClient/Classes/Model/ApiException.swift create mode 100644 KalturaClient/Classes/Model/Enums/AdsPolicy.swift create mode 100644 KalturaClient/Classes/Model/Enums/AggregationCountOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/AggregationType.swift create mode 100644 KalturaClient/Classes/Model/Enums/AnnouncementOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/AnnouncementRecipientsType.swift create mode 100644 KalturaClient/Classes/Model/Enums/AnnouncementStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/AppTokenHashType.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetCommentOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetFilePpvOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetHistoryOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetImagePerRatioOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetIndexStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetInheritancePolicy.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetLifeCycleRuleActionType.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetLifeCycleRuleTransitionType.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetReferenceType.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetReminderOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetRuleOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetRuleStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetStructMetaOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetStructOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetType.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetUserRuleOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/BillingAction.swift create mode 100644 KalturaClient/Classes/Model/Enums/BillingItemsType.swift create mode 100644 KalturaClient/Classes/Model/Enums/BillingPriceType.swift create mode 100644 KalturaClient/Classes/Model/Enums/BookmarkActionType.swift create mode 100644 KalturaClient/Classes/Model/Enums/BookmarkOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/BulkUploadJobAction.swift create mode 100644 KalturaClient/Classes/Model/Enums/BulkUploadJobStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/BulkUploadOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/BulkUploadResultStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/BundleType.swift create mode 100644 KalturaClient/Classes/Model/Enums/CategoryItemOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ChannelEnrichment.swift create mode 100644 KalturaClient/Classes/Model/Enums/ChannelOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ChannelType.swift create mode 100644 KalturaClient/Classes/Model/Enums/ChannelsOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/CollectionOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/CompensationType.swift create mode 100644 KalturaClient/Classes/Model/Enums/ConcurrencyLimitationType.swift create mode 100644 KalturaClient/Classes/Model/Enums/ConfigurationGroupDeviceOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ConfigurationGroupTagOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ConfigurationsOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ContentAction.swift create mode 100644 KalturaClient/Classes/Model/Enums/ContentActionConditionLengthType.swift create mode 100644 KalturaClient/Classes/Model/Enums/ContextType.swift create mode 100644 KalturaClient/Classes/Model/Enums/CountryOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/CouponGroupType.swift create mode 100644 KalturaClient/Classes/Model/Enums/CouponStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/CurrencyOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/DeleteMediaPolicy.swift create mode 100644 KalturaClient/Classes/Model/Enums/DeviceStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/DowngradePolicy.swift create mode 100644 KalturaClient/Classes/Model/Enums/DrmSchemeName.swift create mode 100644 KalturaClient/Classes/Model/Enums/DurationUnit.swift create mode 100644 KalturaClient/Classes/Model/Enums/EngagementOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/EngagementType.swift create mode 100644 KalturaClient/Classes/Model/Enums/EntitlementOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/EntityReferenceBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/EventNotificationOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/EventNotificationStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/EvictionPolicyType.swift create mode 100644 KalturaClient/Classes/Model/Enums/ExportDataType.swift create mode 100644 KalturaClient/Classes/Model/Enums/ExportTaskOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ExportType.swift create mode 100644 KalturaClient/Classes/Model/Enums/ExternalChannelProfileOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ExternalRecordingResponseProfileOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/FavoriteOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/FollowTvSeriesOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/GroupByField.swift create mode 100644 KalturaClient/Classes/Model/Enums/GroupByOrder.swift create mode 100644 KalturaClient/Classes/Model/Enums/HouseholdCouponOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/HouseholdDeviceOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/HouseholdFrequencyType.swift create mode 100644 KalturaClient/Classes/Model/Enums/HouseholdPaymentGatewaySelectedBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/HouseholdRestriction.swift create mode 100644 KalturaClient/Classes/Model/Enums/HouseholdSegmentOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/HouseholdState.swift create mode 100644 KalturaClient/Classes/Model/Enums/HouseholdSuspensionState.swift create mode 100644 KalturaClient/Classes/Model/Enums/HouseholdUserOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/HouseholdUserStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/ImageObjectType.swift create mode 100644 KalturaClient/Classes/Model/Enums/ImageOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ImageStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/ImageTypeOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/InboxMessageOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/InboxMessageStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/InboxMessageType.swift create mode 100644 KalturaClient/Classes/Model/Enums/IngestProfileAutofillPolicy.swift create mode 100644 KalturaClient/Classes/Model/Enums/IngestProfileOverlapPolicy.swift create mode 100644 KalturaClient/Classes/Model/Enums/IotOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/IotProfileOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/KalturaLogLevel.swift create mode 100644 KalturaClient/Classes/Model/Enums/LanguageOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/LinearChannelType.swift create mode 100644 KalturaClient/Classes/Model/Enums/MathemticalOperatorType.swift create mode 100644 KalturaClient/Classes/Model/Enums/MediaFileOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/MediaFileStreamerType.swift create mode 100644 KalturaClient/Classes/Model/Enums/MediaFileTypeQuality.swift create mode 100644 KalturaClient/Classes/Model/Enums/MessageTemplateType.swift create mode 100644 KalturaClient/Classes/Model/Enums/MetaDataType.swift create mode 100644 KalturaClient/Classes/Model/Enums/MetaOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/MetaTagOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/MonetizationType.swift create mode 100644 KalturaClient/Classes/Model/Enums/NotificationType.swift create mode 100644 KalturaClient/Classes/Model/Enums/OTTUserOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ObjectVirtualAssetInfoType.swift create mode 100644 KalturaClient/Classes/Model/Enums/ParentalRuleOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ParentalRuleType.swift create mode 100644 KalturaClient/Classes/Model/Enums/PartnerConfigurationOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/PartnerConfigurationType.swift create mode 100644 KalturaClient/Classes/Model/Enums/PasswordPolicyOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/PaymentMethodProfileOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/PaymentMethodType.swift create mode 100644 KalturaClient/Classes/Model/Enums/PermissionOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/PermissionType.swift create mode 100644 KalturaClient/Classes/Model/Enums/PersonalFeedOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/PersonalListOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/PinType.swift create mode 100644 KalturaClient/Classes/Model/Enums/Platform.swift create mode 100644 KalturaClient/Classes/Model/Enums/PlaybackContextType.swift create mode 100644 KalturaClient/Classes/Model/Enums/PlaybackProfileOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/PositionOwner.swift create mode 100644 KalturaClient/Classes/Model/Enums/PpvOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/PriceDetailsOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/PricePlanOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ProductPriceOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ProtectionPolicy.swift create mode 100644 KalturaClient/Classes/Model/Enums/PurchaseSettingsType.swift create mode 100644 KalturaClient/Classes/Model/Enums/PurchaseStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/QuotaOveragePolicy.swift create mode 100644 KalturaClient/Classes/Model/Enums/RecordingContextOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/RecordingOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/RecordingStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/RecordingType.swift create mode 100644 KalturaClient/Classes/Model/Enums/RegionOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/RelatedEntityType.swift create mode 100644 KalturaClient/Classes/Model/Enums/ReminderType.swift create mode 100644 KalturaClient/Classes/Model/Enums/ReportOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ResponseType.swift create mode 100644 KalturaClient/Classes/Model/Enums/RollingDevicePolicy.swift create mode 100644 KalturaClient/Classes/Model/Enums/RuleActionType.swift create mode 100644 KalturaClient/Classes/Model/Enums/RuleConditionType.swift create mode 100644 KalturaClient/Classes/Model/Enums/RuleLevel.swift create mode 100644 KalturaClient/Classes/Model/Enums/RuleType.swift create mode 100644 KalturaClient/Classes/Model/Enums/ScheduledRecordingAssetType.swift create mode 100644 KalturaClient/Classes/Model/Enums/SearchHistoryOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/SeriesRecordingOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/SeriesReminderOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/SkipOperators.swift create mode 100644 KalturaClient/Classes/Model/Enums/SkipOptions.swift create mode 100644 KalturaClient/Classes/Model/Enums/SocialActionOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/SocialActionPrivacy.swift create mode 100644 KalturaClient/Classes/Model/Enums/SocialActionType.swift create mode 100644 KalturaClient/Classes/Model/Enums/SocialCommentOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/SocialFriendActivityOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/SocialNetwork.swift create mode 100644 KalturaClient/Classes/Model/Enums/SocialPlatform.swift create mode 100644 KalturaClient/Classes/Model/Enums/SocialPrivacy.swift create mode 100644 KalturaClient/Classes/Model/Enums/SocialStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/StreamType.swift create mode 100644 KalturaClient/Classes/Model/Enums/SubscriptionDependencyType.swift create mode 100644 KalturaClient/Classes/Model/Enums/SubscriptionOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/SubscriptionSetOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/SubscriptionSetType.swift create mode 100644 KalturaClient/Classes/Model/Enums/SubscriptionTriggerType.swift create mode 100644 KalturaClient/Classes/Model/Enums/TagOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/TimeShiftedTvState.swift create mode 100644 KalturaClient/Classes/Model/Enums/TopicAutomaticIssueNotification.swift create mode 100644 KalturaClient/Classes/Model/Enums/TopicNotificationMessageOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/TopicNotificationOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/TopicOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/TransactionAdapterStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/TransactionHistoryOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/TransactionType.swift create mode 100644 KalturaClient/Classes/Model/Enums/TvmRuleOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/TvmRuleType.swift create mode 100644 KalturaClient/Classes/Model/Enums/UploadTokenStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/UrlType.swift create mode 100644 KalturaClient/Classes/Model/Enums/UserAssetRuleOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/UserAssetsListItemType.swift create mode 100644 KalturaClient/Classes/Model/Enums/UserAssetsListType.swift create mode 100644 KalturaClient/Classes/Model/Enums/UserRoleOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/UserState.swift create mode 100644 KalturaClient/Classes/Model/Enums/WatchStatus.swift create mode 100644 KalturaClient/Classes/Model/ObjectBase.swift create mode 100644 KalturaClient/Classes/Model/Objects/AccessControlBlockAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/AccessControlMessage.swift create mode 100644 KalturaClient/Classes/Model/Objects/ActionPermissionItem.swift create mode 100644 KalturaClient/Classes/Model/Objects/AdsContext.swift create mode 100644 KalturaClient/Classes/Model/Objects/AdsSource.swift create mode 100644 KalturaClient/Classes/Model/Objects/AggregatedPropertySkipCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/AggregationCountFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/AllowPlaybackAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/Announcement.swift create mode 100644 KalturaClient/Classes/Model/Objects/AnnouncementFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/AnnouncementListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/ApiExceptionArg.swift create mode 100644 KalturaClient/Classes/Model/Objects/AppToken.swift create mode 100644 KalturaClient/Classes/Model/Objects/ApplyDiscountModuleAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/ApplyFreePlaybackAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/ApplyPlaybackAdapterAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/Asset.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetComment.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetCommentFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetCommentListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetCount.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetCountListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetFieldGroupBy.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetFile.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetFileContext.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetFilePpv.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetFilePpvFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetFilePpvListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetGroupBy.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetHistory.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetHistoryFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetHistoryListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetHistorySuppressFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetImagePerRatioFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetLifeCycleBuisnessModuleTransitionAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetLifeCycleTagTransitionAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetLifeCycleTransitionAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetMetaOrTagGroupBy.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetOrderSegmentAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetReminder.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetReminderFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetRule.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetRuleAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetRuleBase.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetRuleFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetRuleListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetStatistics.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetStatisticsListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetStatisticsQuery.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetStruct.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetStructFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetStructListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetStructMeta.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetStructMetaFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetStructMetaListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetSubscriptionCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetUserRule.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetUserRuleAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetUserRuleBlockAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetUserRuleFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetUserRuleFilterAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetUserRuleListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetsCount.swift create mode 100644 KalturaClient/Classes/Model/Objects/BaseChannel.swift create mode 100644 KalturaClient/Classes/Model/Objects/BaseOTTUser.swift create mode 100644 KalturaClient/Classes/Model/Objects/BaseRegionFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/BaseResponseProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/BaseSearchAssetFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/BaseSegmentAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/BaseSegmentCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/BaseSegmentValue.swift create mode 100644 KalturaClient/Classes/Model/Objects/BaseSegmentationTypeFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/BillingPartnerConfig.swift create mode 100644 KalturaClient/Classes/Model/Objects/BillingTransaction.swift create mode 100644 KalturaClient/Classes/Model/Objects/BillingTransactionListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/BlockPlaybackAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/BlockSubscriptionSegmentAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/Bookmark.swift create mode 100644 KalturaClient/Classes/Model/Objects/BookmarkEvent.swift create mode 100644 KalturaClient/Classes/Model/Objects/BookmarkEventThreshold.swift create mode 100644 KalturaClient/Classes/Model/Objects/BookmarkFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/BookmarkListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/BookmarkPlayerData.swift create mode 100644 KalturaClient/Classes/Model/Objects/BooleanValue.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUpload.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadAssetData.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadAssetResult.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadExcelJobData.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadIngestJobData.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadJobData.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadLiveAssetData.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadLiveAssetResult.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadMediaAssetData.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadMediaAssetResult.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadObjectData.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadProgramAssetData.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadProgramAssetResult.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadResult.swift create mode 100644 KalturaClient/Classes/Model/Objects/BumpersPlaybackPluginData.swift create mode 100644 KalturaClient/Classes/Model/Objects/BundleFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/BusinessModuleCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/BusinessModuleRule.swift create mode 100644 KalturaClient/Classes/Model/Objects/BusinessModuleRuleAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/BusinessModuleRuleFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/BusinessModuleRuleListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/BuzzScore.swift create mode 100644 KalturaClient/Classes/Model/Objects/CDNAdapterProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/CDNAdapterProfileListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/CDNPartnerSettings.swift create mode 100644 KalturaClient/Classes/Model/Objects/CDVRAdapterProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/CDVRAdapterProfileListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/CaptionPlaybackPluginData.swift create mode 100644 KalturaClient/Classes/Model/Objects/CategoryItem.swift create mode 100644 KalturaClient/Classes/Model/Objects/CategoryItemAncestorsFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CategoryItemByIdInFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CategoryItemFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CategoryItemListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/CategoryItemSearchFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CategoryTree.swift create mode 100644 KalturaClient/Classes/Model/Objects/Channel.swift create mode 100644 KalturaClient/Classes/Model/Objects/ChannelEnrichmentHolder.swift create mode 100644 KalturaClient/Classes/Model/Objects/ChannelExternalFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ChannelFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ChannelListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/ChannelOrder.swift create mode 100644 KalturaClient/Classes/Model/Objects/ChannelsFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ClientConfiguration.swift create mode 100644 KalturaClient/Classes/Model/Objects/CloudRecordingFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CloudSeriesRecordingFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CognitoIdentity.swift create mode 100644 KalturaClient/Classes/Model/Objects/CognitoUserPool.swift create mode 100644 KalturaClient/Classes/Model/Objects/Collection.swift create mode 100644 KalturaClient/Classes/Model/Objects/CollectionEntitlement.swift create mode 100644 KalturaClient/Classes/Model/Objects/CollectionFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CollectionListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/CollectionPrice.swift create mode 100644 KalturaClient/Classes/Model/Objects/CommercePartnerConfig.swift create mode 100644 KalturaClient/Classes/Model/Objects/Compensation.swift create mode 100644 KalturaClient/Classes/Model/Objects/ConcurrencyCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/ConcurrencyPartnerConfig.swift create mode 100644 KalturaClient/Classes/Model/Objects/ConcurrencyViolation.swift create mode 100644 KalturaClient/Classes/Model/Objects/Condition.swift create mode 100644 KalturaClient/Classes/Model/Objects/ConfigurationGroup.swift create mode 100644 KalturaClient/Classes/Model/Objects/ConfigurationGroupDevice.swift create mode 100644 KalturaClient/Classes/Model/Objects/ConfigurationGroupDeviceFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ConfigurationGroupDeviceListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/ConfigurationGroupListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/ConfigurationGroupTag.swift create mode 100644 KalturaClient/Classes/Model/Objects/ConfigurationGroupTagFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ConfigurationGroupTagListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/ConfigurationIdentifier.swift create mode 100644 KalturaClient/Classes/Model/Objects/Configurations.swift create mode 100644 KalturaClient/Classes/Model/Objects/ConfigurationsFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ConfigurationsListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/ContentActionCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/ContentResource.swift create mode 100644 KalturaClient/Classes/Model/Objects/ContentScoreCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/ContentSource.swift create mode 100644 KalturaClient/Classes/Model/Objects/Country.swift create mode 100644 KalturaClient/Classes/Model/Objects/CountryCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/CountryFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CountryListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/Coupon.swift create mode 100644 KalturaClient/Classes/Model/Objects/CouponFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CouponGenerationOptions.swift create mode 100644 KalturaClient/Classes/Model/Objects/CouponListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/CouponsGroup.swift create mode 100644 KalturaClient/Classes/Model/Objects/CouponsGroupListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/CredentialsProvider.swift create mode 100644 KalturaClient/Classes/Model/Objects/CrudFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CrudObject.swift create mode 100644 KalturaClient/Classes/Model/Objects/Currency.swift create mode 100644 KalturaClient/Classes/Model/Objects/CurrencyFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CurrencyListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/CustomDrmPlaybackPluginData.swift create mode 100644 KalturaClient/Classes/Model/Objects/DateCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/DateTrigger.swift create mode 100644 KalturaClient/Classes/Model/Objects/DefaultPlaybackAdapters.swift create mode 100644 KalturaClient/Classes/Model/Objects/DefaultRegionFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/DetachedResponseProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceBrand.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceBrandListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceFamily.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceFamilyBase.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceFamilyListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/DevicePin.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceReport.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceReportFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/Discount.swift create mode 100644 KalturaClient/Classes/Model/Objects/DiscountDetails.swift create mode 100644 KalturaClient/Classes/Model/Objects/DiscountDetailsFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/DiscountDetailsListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/DiscountModule.swift create mode 100644 KalturaClient/Classes/Model/Objects/Dispatcher.swift create mode 100644 KalturaClient/Classes/Model/Objects/DoubleValue.swift create mode 100644 KalturaClient/Classes/Model/Objects/DrmPlaybackPluginData.swift create mode 100644 KalturaClient/Classes/Model/Objects/DrmProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/DrmProfileListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/Duration.swift create mode 100644 KalturaClient/Classes/Model/Objects/DynamicChannel.swift create mode 100644 KalturaClient/Classes/Model/Objects/DynamicOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Objects/EmailMessage.swift create mode 100644 KalturaClient/Classes/Model/Objects/EndDateOffsetRuleAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/Engagement.swift create mode 100644 KalturaClient/Classes/Model/Objects/EngagementAdapter.swift create mode 100644 KalturaClient/Classes/Model/Objects/EngagementAdapterBase.swift create mode 100644 KalturaClient/Classes/Model/Objects/EngagementAdapterListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/EngagementFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/EngagementListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/Entitlement.swift create mode 100644 KalturaClient/Classes/Model/Objects/EntitlementFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/EntitlementListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/EntitlementRenewal.swift create mode 100644 KalturaClient/Classes/Model/Objects/EntitlementRenewalBase.swift create mode 100644 KalturaClient/Classes/Model/Objects/EventNotification.swift create mode 100644 KalturaClient/Classes/Model/Objects/EventNotificationFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/EventNotificationListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/EventNotificationObjectScope.swift create mode 100644 KalturaClient/Classes/Model/Objects/EventNotificationScope.swift create mode 100644 KalturaClient/Classes/Model/Objects/EventObject.swift create mode 100644 KalturaClient/Classes/Model/Objects/ExportTask.swift create mode 100644 KalturaClient/Classes/Model/Objects/ExportTaskFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ExportTaskListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/ExternalChannelProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/ExternalChannelProfileByIdInFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ExternalChannelProfileFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ExternalChannelProfileListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/ExternalReceipt.swift create mode 100644 KalturaClient/Classes/Model/Objects/ExternalRecording.swift create mode 100644 KalturaClient/Classes/Model/Objects/ExternalRecordingFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ExternalRecordingResponseProfileFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ExternalSeriesRecording.swift create mode 100644 KalturaClient/Classes/Model/Objects/FacebookPost.swift create mode 100644 KalturaClient/Classes/Model/Objects/FacebookSocial.swift create mode 100644 KalturaClient/Classes/Model/Objects/FairPlayPlaybackPluginData.swift create mode 100644 KalturaClient/Classes/Model/Objects/Favorite.swift create mode 100644 KalturaClient/Classes/Model/Objects/FavoriteFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/FavoriteListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/Feed.swift create mode 100644 KalturaClient/Classes/Model/Objects/Filter.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterPager.swift create mode 100644 KalturaClient/Classes/Model/Objects/FollowDataBase.swift create mode 100644 KalturaClient/Classes/Model/Objects/FollowTvSeries.swift create mode 100644 KalturaClient/Classes/Model/Objects/FollowTvSeriesFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/FollowTvSeriesListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/GeneralPartnerConfig.swift create mode 100644 KalturaClient/Classes/Model/Objects/GenericListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/GroupPermission.swift create mode 100644 KalturaClient/Classes/Model/Objects/HeaderCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/HomeNetwork.swift create mode 100644 KalturaClient/Classes/Model/Objects/HomeNetworkListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/Household.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdCoupon.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdCouponCodeFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdCouponFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdCouponListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdDevice.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdDeviceFamilyLimitations.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdDeviceFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdDeviceListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdLimitations.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdLimitationsListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdPaymentGateway.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdPaymentGatewayListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdPaymentMethod.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdPaymentMethodListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdPremiumService.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdPremiumServiceListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdQuota.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdSegment.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdSegmentFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdSegmentListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdUser.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdUserFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/HouseholdUserListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/Image.swift create mode 100644 KalturaClient/Classes/Model/Objects/ImageFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ImageListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/ImageType.swift create mode 100644 KalturaClient/Classes/Model/Objects/ImageTypeFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ImageTypeListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/InboxMessage.swift create mode 100644 KalturaClient/Classes/Model/Objects/InboxMessageFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/InboxMessageListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestProfileListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/IntegerValue.swift create mode 100644 KalturaClient/Classes/Model/Objects/IntegerValueListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/Iot.swift create mode 100644 KalturaClient/Classes/Model/Objects/IotClientConfiguration.swift create mode 100644 KalturaClient/Classes/Model/Objects/IotDefault.swift create mode 100644 KalturaClient/Classes/Model/Objects/IotFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/IotProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/IotProfileAws.swift create mode 100644 KalturaClient/Classes/Model/Objects/IotProfileFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/IpRangeCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/KeyValue.swift create mode 100644 KalturaClient/Classes/Model/Objects/KsqlSegmentAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/Language.swift create mode 100644 KalturaClient/Classes/Model/Objects/LanguageFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/LanguageListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/LicensedUrl.swift create mode 100644 KalturaClient/Classes/Model/Objects/LicensedUrlBaseRequest.swift create mode 100644 KalturaClient/Classes/Model/Objects/LicensedUrlEpgRequest.swift create mode 100644 KalturaClient/Classes/Model/Objects/LicensedUrlMediaRequest.swift create mode 100644 KalturaClient/Classes/Model/Objects/LicensedUrlRecordingRequest.swift create mode 100644 KalturaClient/Classes/Model/Objects/ListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/LiveAsset.swift create mode 100644 KalturaClient/Classes/Model/Objects/LoginResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/LoginSession.swift create mode 100644 KalturaClient/Classes/Model/Objects/LongValue.swift create mode 100644 KalturaClient/Classes/Model/Objects/MailDispatcher.swift create mode 100644 KalturaClient/Classes/Model/Objects/ManualChannel.swift create mode 100644 KalturaClient/Classes/Model/Objects/MediaAsset.swift create mode 100644 KalturaClient/Classes/Model/Objects/MediaConcurrencyRule.swift create mode 100644 KalturaClient/Classes/Model/Objects/MediaConcurrencyRuleListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/MediaFile.swift create mode 100644 KalturaClient/Classes/Model/Objects/MediaFileFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/MediaFileListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/MediaFileType.swift create mode 100644 KalturaClient/Classes/Model/Objects/MediaFileTypeListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/MediaImage.swift create mode 100644 KalturaClient/Classes/Model/Objects/Message.swift create mode 100644 KalturaClient/Classes/Model/Objects/MessageTemplate.swift create mode 100644 KalturaClient/Classes/Model/Objects/Meta.swift create mode 100644 KalturaClient/Classes/Model/Objects/MetaFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/MetaListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/MonetizationCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/MonetizationSource.swift create mode 100644 KalturaClient/Classes/Model/Objects/MultilingualStringValue.swift create mode 100644 KalturaClient/Classes/Model/Objects/MultilingualStringValueArray.swift create mode 100644 KalturaClient/Classes/Model/Objects/NetworkActionStatus.swift create mode 100644 KalturaClient/Classes/Model/Objects/NotCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/NotificationsPartnerSettings.swift create mode 100644 KalturaClient/Classes/Model/Objects/NotificationsSettings.swift create mode 100644 KalturaClient/Classes/Model/Objects/NpvrPremiumService.swift create mode 100644 KalturaClient/Classes/Model/Objects/OSSAdapterBaseProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/OSSAdapterProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/OSSAdapterProfileListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/OTTCategory.swift create mode 100644 KalturaClient/Classes/Model/Objects/OTTObjectSupportNullable.swift create mode 100644 KalturaClient/Classes/Model/Objects/OTTUser.swift create mode 100644 KalturaClient/Classes/Model/Objects/OTTUserDynamicData.swift create mode 100644 KalturaClient/Classes/Model/Objects/OTTUserFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/OTTUserListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/OTTUserType.swift create mode 100644 KalturaClient/Classes/Model/Objects/ObjectVirtualAssetInfo.swift create mode 100644 KalturaClient/Classes/Model/Objects/ObjectVirtualAssetPartnerConfig.swift create mode 100644 KalturaClient/Classes/Model/Objects/OrCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/ParentalRule.swift create mode 100644 KalturaClient/Classes/Model/Objects/ParentalRuleFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ParentalRuleListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/PartnerConfiguration.swift create mode 100644 KalturaClient/Classes/Model/Objects/PartnerConfigurationFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PartnerConfigurationListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/PasswordPolicy.swift create mode 100644 KalturaClient/Classes/Model/Objects/PasswordPolicyFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PasswordPolicyListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/PaymentGatewayBaseProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/PaymentGatewayConfiguration.swift create mode 100644 KalturaClient/Classes/Model/Objects/PaymentGatewayProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/PaymentGatewayProfileListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/PaymentMethodProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/PaymentMethodProfileFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PaymentMethodProfileListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/PaymentPartnerConfig.swift create mode 100644 KalturaClient/Classes/Model/Objects/Permission.swift create mode 100644 KalturaClient/Classes/Model/Objects/PermissionFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PermissionListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/PersistedFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PersonalFeed.swift create mode 100644 KalturaClient/Classes/Model/Objects/PersonalFeedFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PersonalFeedListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/PersonalList.swift create mode 100644 KalturaClient/Classes/Model/Objects/PersonalListFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PersonalListListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/PersonalListSearchFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/Pin.swift create mode 100644 KalturaClient/Classes/Model/Objects/PlaybackContext.swift create mode 100644 KalturaClient/Classes/Model/Objects/PlaybackContextOptions.swift create mode 100644 KalturaClient/Classes/Model/Objects/PlaybackPartnerConfig.swift create mode 100644 KalturaClient/Classes/Model/Objects/PlaybackPluginData.swift create mode 100644 KalturaClient/Classes/Model/Objects/PlaybackProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/PlaybackProfileFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PlaybackProfileListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/PlaybackSource.swift create mode 100644 KalturaClient/Classes/Model/Objects/PluginData.swift create mode 100644 KalturaClient/Classes/Model/Objects/Ppv.swift create mode 100644 KalturaClient/Classes/Model/Objects/PpvEntitlement.swift create mode 100644 KalturaClient/Classes/Model/Objects/PpvFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PpvListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/PpvPrice.swift create mode 100644 KalturaClient/Classes/Model/Objects/PremiumService.swift create mode 100644 KalturaClient/Classes/Model/Objects/PreviewModule.swift create mode 100644 KalturaClient/Classes/Model/Objects/Price.swift create mode 100644 KalturaClient/Classes/Model/Objects/PriceDetails.swift create mode 100644 KalturaClient/Classes/Model/Objects/PriceDetailsFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PriceDetailsListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/PricePlan.swift create mode 100644 KalturaClient/Classes/Model/Objects/PricePlanFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PricePlanListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/ProductCode.swift create mode 100644 KalturaClient/Classes/Model/Objects/ProductPrice.swift create mode 100644 KalturaClient/Classes/Model/Objects/ProductPriceFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ProductPriceListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/ProductsPriceListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/ProgramAsset.swift create mode 100644 KalturaClient/Classes/Model/Objects/PropertySkipCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/PublicCouponGenerationOptions.swift create mode 100644 KalturaClient/Classes/Model/Objects/Purchase.swift create mode 100644 KalturaClient/Classes/Model/Objects/PurchaseBase.swift create mode 100644 KalturaClient/Classes/Model/Objects/PurchaseSession.swift create mode 100644 KalturaClient/Classes/Model/Objects/PurchaseSettings.swift create mode 100644 KalturaClient/Classes/Model/Objects/PushMessage.swift create mode 100644 KalturaClient/Classes/Model/Objects/PushParams.swift create mode 100644 KalturaClient/Classes/Model/Objects/RandomCouponGenerationOptions.swift create mode 100644 KalturaClient/Classes/Model/Objects/Ratio.swift create mode 100644 KalturaClient/Classes/Model/Objects/RatioListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/RecommendationProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/RecommendationProfileListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/Recording.swift create mode 100644 KalturaClient/Classes/Model/Objects/RecordingAsset.swift create mode 100644 KalturaClient/Classes/Model/Objects/RecordingContextFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/RecordingFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/RecordingListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/RegexExpression.swift create mode 100644 KalturaClient/Classes/Model/Objects/Region.swift create mode 100644 KalturaClient/Classes/Model/Objects/RegionFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/RegionListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/RegionalChannel.swift create mode 100644 KalturaClient/Classes/Model/Objects/RegistryResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/RegistrySettings.swift create mode 100644 KalturaClient/Classes/Model/Objects/RegistrySettingsListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/RelatedEntity.swift create mode 100644 KalturaClient/Classes/Model/Objects/RelatedEntityArray.swift create mode 100644 KalturaClient/Classes/Model/Objects/RelatedExternalFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/RelatedFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/RelatedObjectFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/Reminder.swift create mode 100644 KalturaClient/Classes/Model/Objects/ReminderFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ReminderListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/Report.swift create mode 100644 KalturaClient/Classes/Model/Objects/ReportFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ReportListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/RequestConfiguration.swift create mode 100644 KalturaClient/Classes/Model/Objects/RollingDeviceRemovalData.swift create mode 100644 KalturaClient/Classes/Model/Objects/Rule.swift create mode 100644 KalturaClient/Classes/Model/Objects/RuleAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/SSOAdapterProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/SSOAdapterProfileInvoke.swift create mode 100644 KalturaClient/Classes/Model/Objects/SSOAdapterProfileListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/ScheduledRecordingProgramFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SearchAssetFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SearchAssetListFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SearchExternalFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SearchHistory.swift create mode 100644 KalturaClient/Classes/Model/Objects/SearchHistoryFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SearchHistoryListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/SeasonsReminderFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentAllValues.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentAssetFilterAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentAssetFilterSegmentAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentAssetFilterSubscriptionAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentBlockCancelSubscriptionAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentBlockPlaybackSubscriptionAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentBlockPurchaseSubscriptionAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentRange.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentRanges.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentSource.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentValue.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentValueFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentValues.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentationType.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentationTypeFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentationTypeListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/SegmentsCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/SeriesRecording.swift create mode 100644 KalturaClient/Classes/Model/Objects/SeriesRecordingFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SeriesRecordingListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/SeriesReminder.swift create mode 100644 KalturaClient/Classes/Model/Objects/SeriesReminderFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/Session.swift create mode 100644 KalturaClient/Classes/Model/Objects/SessionInfo.swift create mode 100644 KalturaClient/Classes/Model/Objects/SingleSegmentValue.swift create mode 100644 KalturaClient/Classes/Model/Objects/SkipCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/SkipOnErrorCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/SlimAsset.swift create mode 100644 KalturaClient/Classes/Model/Objects/SmsDispatcher.swift create mode 100644 KalturaClient/Classes/Model/Objects/Social.swift create mode 100644 KalturaClient/Classes/Model/Objects/SocialAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/SocialActionFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SocialActionListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/SocialActionRate.swift create mode 100644 KalturaClient/Classes/Model/Objects/SocialComment.swift create mode 100644 KalturaClient/Classes/Model/Objects/SocialCommentFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SocialCommentListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/SocialConfig.swift create mode 100644 KalturaClient/Classes/Model/Objects/SocialFacebookConfig.swift create mode 100644 KalturaClient/Classes/Model/Objects/SocialFriendActivity.swift create mode 100644 KalturaClient/Classes/Model/Objects/SocialFriendActivityFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SocialFriendActivityListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/SocialNetworkComment.swift create mode 100644 KalturaClient/Classes/Model/Objects/SocialUserConfig.swift create mode 100644 KalturaClient/Classes/Model/Objects/StartDateOffsetRuleAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/StringValue.swift create mode 100644 KalturaClient/Classes/Model/Objects/StringValueArray.swift create mode 100644 KalturaClient/Classes/Model/Objects/SubscribeReference.swift create mode 100644 KalturaClient/Classes/Model/Objects/Subscription.swift create mode 100644 KalturaClient/Classes/Model/Objects/SubscriptionCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/SubscriptionDependencySet.swift create mode 100644 KalturaClient/Classes/Model/Objects/SubscriptionDependencySetFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SubscriptionEntitlement.swift create mode 100644 KalturaClient/Classes/Model/Objects/SubscriptionFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SubscriptionListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/SubscriptionPrice.swift create mode 100644 KalturaClient/Classes/Model/Objects/SubscriptionSet.swift create mode 100644 KalturaClient/Classes/Model/Objects/SubscriptionSetFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SubscriptionSetListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/SubscriptionSubscribeReference.swift create mode 100644 KalturaClient/Classes/Model/Objects/SubscriptionSwitchSet.swift create mode 100644 KalturaClient/Classes/Model/Objects/SubscriptionTrigger.swift create mode 100644 KalturaClient/Classes/Model/Objects/SuspendSettings.swift create mode 100644 KalturaClient/Classes/Model/Objects/T.swift create mode 100644 KalturaClient/Classes/Model/Objects/Tag.swift create mode 100644 KalturaClient/Classes/Model/Objects/TagFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/TagListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/TimeOffsetRuleAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/TimeShiftedTvPartnerSettings.swift create mode 100644 KalturaClient/Classes/Model/Objects/Topic.swift create mode 100644 KalturaClient/Classes/Model/Objects/TopicFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/TopicListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/TopicNotification.swift create mode 100644 KalturaClient/Classes/Model/Objects/TopicNotificationFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/TopicNotificationListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/TopicNotificationMessage.swift create mode 100644 KalturaClient/Classes/Model/Objects/TopicNotificationMessageFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/TopicNotificationMessageListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/Transaction.swift create mode 100644 KalturaClient/Classes/Model/Objects/TransactionHistoryFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/TransactionStatus.swift create mode 100644 KalturaClient/Classes/Model/Objects/TranslationToken.swift create mode 100644 KalturaClient/Classes/Model/Objects/Trigger.swift create mode 100644 KalturaClient/Classes/Model/Objects/TvmDeviceRule.swift create mode 100644 KalturaClient/Classes/Model/Objects/TvmGeoRule.swift create mode 100644 KalturaClient/Classes/Model/Objects/TvmRule.swift create mode 100644 KalturaClient/Classes/Model/Objects/TvmRuleFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/TvmRuleListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/TwitterTwit.swift create mode 100644 KalturaClient/Classes/Model/Objects/UnifiedBillingCycle.swift create mode 100644 KalturaClient/Classes/Model/Objects/UnifiedChannel.swift create mode 100644 KalturaClient/Classes/Model/Objects/UnifiedChannelInfo.swift create mode 100644 KalturaClient/Classes/Model/Objects/UnifiedPaymentRenewal.swift create mode 100644 KalturaClient/Classes/Model/Objects/UploadToken.swift create mode 100644 KalturaClient/Classes/Model/Objects/UploadedFileTokenResource.swift create mode 100644 KalturaClient/Classes/Model/Objects/UrlResource.swift create mode 100644 KalturaClient/Classes/Model/Objects/UsageModule.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserAssetRule.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserAssetRuleFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserAssetRuleListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserAssetsListItem.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserDataCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserDynamicDataSource.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserInterest.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserInterestListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserInterestTopic.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserLoginPin.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserRole.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserRoleCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserRoleFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserRoleListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserSegment.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserSegmentFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserSegmentListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserSocialActionResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserSubscriptionCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/Value.swift create mode 100644 KalturaClient/Classes/Services/AnnouncementService.swift create mode 100644 KalturaClient/Classes/Services/AppTokenService.swift create mode 100644 KalturaClient/Classes/Services/AssetCommentService.swift create mode 100644 KalturaClient/Classes/Services/AssetFilePpvService.swift create mode 100644 KalturaClient/Classes/Services/AssetFileService.swift create mode 100644 KalturaClient/Classes/Services/AssetHistoryService.swift create mode 100644 KalturaClient/Classes/Services/AssetRuleService.swift create mode 100644 KalturaClient/Classes/Services/AssetService.swift create mode 100644 KalturaClient/Classes/Services/AssetStatisticsService.swift create mode 100644 KalturaClient/Classes/Services/AssetStructMetaService.swift create mode 100644 KalturaClient/Classes/Services/AssetStructService.swift create mode 100644 KalturaClient/Classes/Services/AssetUserRuleService.swift create mode 100644 KalturaClient/Classes/Services/BookmarkService.swift create mode 100644 KalturaClient/Classes/Services/BulkUploadService.swift create mode 100644 KalturaClient/Classes/Services/BusinessModuleRuleService.swift create mode 100644 KalturaClient/Classes/Services/CDVRAdapterProfileService.swift create mode 100644 KalturaClient/Classes/Services/CategoryItemService.swift create mode 100644 KalturaClient/Classes/Services/CategoryTreeService.swift create mode 100644 KalturaClient/Classes/Services/CdnAdapterProfileService.swift create mode 100644 KalturaClient/Classes/Services/CdnPartnerSettingsService.swift create mode 100644 KalturaClient/Classes/Services/ChannelService.swift create mode 100644 KalturaClient/Classes/Services/CollectionService.swift create mode 100644 KalturaClient/Classes/Services/CompensationService.swift create mode 100644 KalturaClient/Classes/Services/ConfigurationGroupDeviceService.swift create mode 100644 KalturaClient/Classes/Services/ConfigurationGroupService.swift create mode 100644 KalturaClient/Classes/Services/ConfigurationGroupTagService.swift create mode 100644 KalturaClient/Classes/Services/ConfigurationsService.swift create mode 100644 KalturaClient/Classes/Services/CountryService.swift create mode 100644 KalturaClient/Classes/Services/CouponService.swift create mode 100644 KalturaClient/Classes/Services/CouponsGroupService.swift create mode 100644 KalturaClient/Classes/Services/CurrencyService.swift create mode 100644 KalturaClient/Classes/Services/DeviceBrandService.swift create mode 100644 KalturaClient/Classes/Services/DeviceFamilyService.swift create mode 100644 KalturaClient/Classes/Services/DiscountDetailsService.swift create mode 100644 KalturaClient/Classes/Services/DrmProfileService.swift create mode 100644 KalturaClient/Classes/Services/EmailService.swift create mode 100644 KalturaClient/Classes/Services/EngagementAdapterService.swift create mode 100644 KalturaClient/Classes/Services/EngagementService.swift create mode 100644 KalturaClient/Classes/Services/EntitlementService.swift create mode 100644 KalturaClient/Classes/Services/EventNotificationActionService.swift create mode 100644 KalturaClient/Classes/Services/EventNotificationService.swift create mode 100644 KalturaClient/Classes/Services/ExportTaskService.swift create mode 100644 KalturaClient/Classes/Services/ExternalChannelProfileService.swift create mode 100644 KalturaClient/Classes/Services/FavoriteService.swift create mode 100644 KalturaClient/Classes/Services/FollowTvSeriesService.swift create mode 100644 KalturaClient/Classes/Services/HomeNetworkService.swift create mode 100644 KalturaClient/Classes/Services/HouseholdCouponService.swift create mode 100644 KalturaClient/Classes/Services/HouseholdDeviceService.swift create mode 100644 KalturaClient/Classes/Services/HouseholdLimitationsService.swift create mode 100644 KalturaClient/Classes/Services/HouseholdPaymentGatewayService.swift create mode 100644 KalturaClient/Classes/Services/HouseholdPaymentMethodService.swift create mode 100644 KalturaClient/Classes/Services/HouseholdPremiumServiceService.swift create mode 100644 KalturaClient/Classes/Services/HouseholdQuotaService.swift create mode 100644 KalturaClient/Classes/Services/HouseholdSegmentService.swift create mode 100644 KalturaClient/Classes/Services/HouseholdService.swift create mode 100644 KalturaClient/Classes/Services/HouseholdUserService.swift create mode 100644 KalturaClient/Classes/Services/ImageService.swift create mode 100644 KalturaClient/Classes/Services/ImageTypeService.swift create mode 100644 KalturaClient/Classes/Services/InboxMessageService.swift create mode 100644 KalturaClient/Classes/Services/IngestProfileService.swift create mode 100644 KalturaClient/Classes/Services/IotProfileService.swift create mode 100644 KalturaClient/Classes/Services/IotService.swift create mode 100644 KalturaClient/Classes/Services/LanguageService.swift create mode 100644 KalturaClient/Classes/Services/LicensedUrlService.swift create mode 100644 KalturaClient/Classes/Services/MediaConcurrencyRuleService.swift create mode 100644 KalturaClient/Classes/Services/MediaFileService.swift create mode 100644 KalturaClient/Classes/Services/MediaFileTypeService.swift create mode 100644 KalturaClient/Classes/Services/MessageTemplateService.swift create mode 100644 KalturaClient/Classes/Services/MetaService.swift create mode 100644 KalturaClient/Classes/Services/NotificationService.swift create mode 100644 KalturaClient/Classes/Services/NotificationsPartnerSettingsService.swift create mode 100644 KalturaClient/Classes/Services/NotificationsSettingsService.swift create mode 100644 KalturaClient/Classes/Services/OssAdapterProfileService.swift create mode 100644 KalturaClient/Classes/Services/OttCategoryService.swift create mode 100644 KalturaClient/Classes/Services/OttUserService.swift create mode 100644 KalturaClient/Classes/Services/ParentalRuleService.swift create mode 100644 KalturaClient/Classes/Services/PartnerConfigurationService.swift create mode 100644 KalturaClient/Classes/Services/PartnerService.swift create mode 100644 KalturaClient/Classes/Services/PasswordPolicyService.swift create mode 100644 KalturaClient/Classes/Services/PaymentGatewayProfileService.swift create mode 100644 KalturaClient/Classes/Services/PaymentMethodProfileService.swift create mode 100644 KalturaClient/Classes/Services/PermissionService.swift create mode 100644 KalturaClient/Classes/Services/PersonalFeedService.swift create mode 100644 KalturaClient/Classes/Services/PersonalListService.swift create mode 100644 KalturaClient/Classes/Services/PinService.swift create mode 100644 KalturaClient/Classes/Services/PlaybackProfileService.swift create mode 100644 KalturaClient/Classes/Services/PpvService.swift create mode 100644 KalturaClient/Classes/Services/PriceDetailsService.swift create mode 100644 KalturaClient/Classes/Services/PricePlanService.swift create mode 100644 KalturaClient/Classes/Services/ProductPriceService.swift create mode 100644 KalturaClient/Classes/Services/PurchaseSettingsService.swift create mode 100644 KalturaClient/Classes/Services/RatioService.swift create mode 100644 KalturaClient/Classes/Services/RecommendationProfileService.swift create mode 100644 KalturaClient/Classes/Services/RecordingService.swift create mode 100644 KalturaClient/Classes/Services/RegionService.swift create mode 100644 KalturaClient/Classes/Services/RegistrySettingsService.swift create mode 100644 KalturaClient/Classes/Services/ReminderService.swift create mode 100644 KalturaClient/Classes/Services/ReportService.swift create mode 100644 KalturaClient/Classes/Services/SearchHistoryService.swift create mode 100644 KalturaClient/Classes/Services/SegmentationTypeService.swift create mode 100644 KalturaClient/Classes/Services/SeriesRecordingService.swift create mode 100644 KalturaClient/Classes/Services/SessionService.swift create mode 100644 KalturaClient/Classes/Services/SocialActionService.swift create mode 100644 KalturaClient/Classes/Services/SocialCommentService.swift create mode 100644 KalturaClient/Classes/Services/SocialFriendActivityService.swift create mode 100644 KalturaClient/Classes/Services/SocialService.swift create mode 100644 KalturaClient/Classes/Services/SsoAdapterProfileService.swift create mode 100644 KalturaClient/Classes/Services/SubscriptionService.swift create mode 100644 KalturaClient/Classes/Services/SubscriptionSetService.swift create mode 100644 KalturaClient/Classes/Services/SystemService.swift create mode 100644 KalturaClient/Classes/Services/TagService.swift create mode 100644 KalturaClient/Classes/Services/TimeShiftedTvPartnerSettingsService.swift create mode 100644 KalturaClient/Classes/Services/TopicNotificationMessageService.swift create mode 100644 KalturaClient/Classes/Services/TopicNotificationService.swift create mode 100644 KalturaClient/Classes/Services/TopicService.swift create mode 100644 KalturaClient/Classes/Services/TransactionHistoryService.swift create mode 100644 KalturaClient/Classes/Services/TransactionService.swift create mode 100644 KalturaClient/Classes/Services/TvmRuleService.swift create mode 100644 KalturaClient/Classes/Services/UnifiedPaymentService.swift create mode 100644 KalturaClient/Classes/Services/UploadTokenService.swift create mode 100644 KalturaClient/Classes/Services/UserAssetRuleService.swift create mode 100644 KalturaClient/Classes/Services/UserAssetsListItemService.swift create mode 100644 KalturaClient/Classes/Services/UserInterestService.swift create mode 100644 KalturaClient/Classes/Services/UserLoginPinService.swift create mode 100644 KalturaClient/Classes/Services/UserRoleService.swift create mode 100644 KalturaClient/Classes/Services/UserSegmentService.swift create mode 100644 KalturaOttClient.podspec create mode 100644 KalturaOttClient.spec.header create mode 100644 LICENSE create mode 100644 LICENSE.txt create mode 100644 README.md diff --git a/Example/KalturaClient.xcodeproj/project.pbxproj b/Example/KalturaClient.xcodeproj/project.pbxproj new file mode 100644 index 000000000..343da19c2 --- /dev/null +++ b/Example/KalturaClient.xcodeproj/project.pbxproj @@ -0,0 +1,639 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 00139DC01F698B22005D49EC /* TestConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = 00139DBC1F698ACB005D49EC /* TestConfig.swift */; }; + 002EBA931F7A27F900C7E4F9 /* MapTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 002EBA921F7A27F900C7E4F9 /* MapTest.swift */; }; + 11ED30FC12B8F925214FA63E /* Pods_KalturaClient_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A828660A1AF9647D2ABD0F59 /* Pods_KalturaClient_Example.framework */; }; + 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; + 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; + 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; + 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; + 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; + 607FACEC1AFB9204008FA782 /* BaseTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* BaseTest.swift */; }; + 900A6BCA24A25CEE0030AC87 /* HouseholdTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 900A6BC924A25CEE0030AC87 /* HouseholdTest.swift */; }; + 90AB8F9124AC92E200A40CFA /* EmptyResultTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 90AB8F9024AC92E200A40CFA /* EmptyResultTest.swift */; }; + 90BB1D4A24A09FB500B0A612 /* TestConfig.plist in Resources */ = {isa = PBXBuildFile; fileRef = 00139DBE1F698AE0005D49EC /* TestConfig.plist */; }; + C28D3A991F332878001D2A03 /* MultiRequestTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = C28D3A951F33252B001D2A03 /* MultiRequestTest.swift */; }; + C28D3A9A1F332880001D2A03 /* PrimitivesTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = C28D3A961F33252B001D2A03 /* PrimitivesTest.swift */; }; + C28D3A9C1F33293D001D2A03 /* ArrayTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = C28D3A9B1F33293D001D2A03 /* ArrayTest.swift */; }; + C28D3AD81F38ACB0001D2A03 /* MultiRequestWithArray.swift in Sources */ = {isa = PBXBuildFile; fileRef = C28D3AD71F38ACB0001D2A03 /* MultiRequestWithArray.swift */; }; + C28D3ADA1F38ACC7001D2A03 /* MultiRequestWithPrimitives.swift in Sources */ = {isa = PBXBuildFile; fileRef = C28D3AD91F38ACC7001D2A03 /* MultiRequestWithPrimitives.swift */; }; + C8AE6144724D6F607DA92C18 /* Pods_KalturaClient_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BA7C1EFC72FAE951883B0985 /* Pods_KalturaClient_Tests.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 607FACC81AFB9204008FA782 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 607FACCF1AFB9204008FA782; + remoteInfo = KalturaClient; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 00139DBC1F698ACB005D49EC /* TestConfig.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TestConfig.swift; sourceTree = ""; }; + 00139DBE1F698AE0005D49EC /* TestConfig.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = TestConfig.plist; sourceTree = ""; }; + 001416C11F1F892700CD4112 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Platforms/iPhoneOS.platform/Developer/Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; }; + 002EBA921F7A27F900C7E4F9 /* MapTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MapTest.swift; sourceTree = ""; }; + 25D0496082CD170A6C7D9E66 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; + 5B71B816BD0CFFB43D1C5C16 /* Pods-KalturaClient_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KalturaClient_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-KalturaClient_Tests/Pods-KalturaClient_Tests.release.xcconfig"; sourceTree = ""; }; + 5FE8E0B6C95CC113DDE8608B /* Pods-KalturaClient_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KalturaClient_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-KalturaClient_Example/Pods-KalturaClient_Example.release.xcconfig"; sourceTree = ""; }; + 607FACD01AFB9204008FA782 /* KalturaClient_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = KalturaClient_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; + 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; + 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; + 607FACE51AFB9204008FA782 /* KalturaClient_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = KalturaClient_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + 607FACEB1AFB9204008FA782 /* BaseTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BaseTest.swift; sourceTree = ""; }; + 900A6BC924A25CEE0030AC87 /* HouseholdTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HouseholdTest.swift; sourceTree = ""; }; + 90AB8F9024AC92E200A40CFA /* EmptyResultTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyResultTest.swift; sourceTree = ""; }; + 9EEB332DC79B29F3773EBDAC /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; + A828660A1AF9647D2ABD0F59 /* Pods_KalturaClient_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_KalturaClient_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + B33E0750ECAFC8D9419D0E2D /* KalturaOttClient.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = KalturaOttClient.podspec; path = ../KalturaOttClient.podspec; sourceTree = ""; }; + B9C640C657C2B5A040083AF5 /* Pods-KalturaClient_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KalturaClient_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-KalturaClient_Tests/Pods-KalturaClient_Tests.debug.xcconfig"; sourceTree = ""; }; + BA7C1EFC72FAE951883B0985 /* Pods_KalturaClient_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_KalturaClient_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + C28D3A951F33252B001D2A03 /* MultiRequestTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MultiRequestTest.swift; sourceTree = ""; }; + C28D3A961F33252B001D2A03 /* PrimitivesTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PrimitivesTest.swift; sourceTree = ""; }; + C28D3A9B1F33293D001D2A03 /* ArrayTest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ArrayTest.swift; sourceTree = ""; }; + C28D3AD71F38ACB0001D2A03 /* MultiRequestWithArray.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MultiRequestWithArray.swift; sourceTree = ""; }; + C28D3AD91F38ACC7001D2A03 /* MultiRequestWithPrimitives.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MultiRequestWithPrimitives.swift; sourceTree = ""; }; + C4D209549F925E3CB611747F /* Pods-KalturaClient_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KalturaClient_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-KalturaClient_Example/Pods-KalturaClient_Example.debug.xcconfig"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 607FACCD1AFB9204008FA782 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 11ED30FC12B8F925214FA63E /* Pods_KalturaClient_Example.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 607FACE21AFB9204008FA782 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + C8AE6144724D6F607DA92C18 /* Pods_KalturaClient_Tests.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 1D9E993819FC64C985503F2C /* Frameworks */ = { + isa = PBXGroup; + children = ( + 001416C11F1F892700CD4112 /* XCTest.framework */, + A828660A1AF9647D2ABD0F59 /* Pods_KalturaClient_Example.framework */, + BA7C1EFC72FAE951883B0985 /* Pods_KalturaClient_Tests.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 607FACC71AFB9204008FA782 = { + isa = PBXGroup; + children = ( + 607FACF51AFB993E008FA782 /* Podspec Metadata */, + 607FACD21AFB9204008FA782 /* Example for KalturaClient */, + 607FACE81AFB9204008FA782 /* Tests */, + 607FACD11AFB9204008FA782 /* Products */, + 7926491686FFF4D844DE2510 /* Pods */, + 1D9E993819FC64C985503F2C /* Frameworks */, + ); + sourceTree = ""; + }; + 607FACD11AFB9204008FA782 /* Products */ = { + isa = PBXGroup; + children = ( + 607FACD01AFB9204008FA782 /* KalturaClient_Example.app */, + 607FACE51AFB9204008FA782 /* KalturaClient_Tests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 607FACD21AFB9204008FA782 /* Example for KalturaClient */ = { + isa = PBXGroup; + children = ( + 607FACD51AFB9204008FA782 /* AppDelegate.swift */, + 607FACD71AFB9204008FA782 /* ViewController.swift */, + 607FACD91AFB9204008FA782 /* Main.storyboard */, + 607FACDC1AFB9204008FA782 /* Images.xcassets */, + 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, + 607FACD31AFB9204008FA782 /* Supporting Files */, + ); + name = "Example for KalturaClient"; + path = KalturaClient; + sourceTree = ""; + }; + 607FACD31AFB9204008FA782 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 607FACD41AFB9204008FA782 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 607FACE81AFB9204008FA782 /* Tests */ = { + isa = PBXGroup; + children = ( + 900A6BC924A25CEE0030AC87 /* HouseholdTest.swift */, + 00139DBC1F698ACB005D49EC /* TestConfig.swift */, + C28D3AD91F38ACC7001D2A03 /* MultiRequestWithPrimitives.swift */, + C28D3AD71F38ACB0001D2A03 /* MultiRequestWithArray.swift */, + C28D3A9B1F33293D001D2A03 /* ArrayTest.swift */, + 002EBA921F7A27F900C7E4F9 /* MapTest.swift */, + C28D3A951F33252B001D2A03 /* MultiRequestTest.swift */, + C28D3A961F33252B001D2A03 /* PrimitivesTest.swift */, + 607FACEB1AFB9204008FA782 /* BaseTest.swift */, + 90AB8F9024AC92E200A40CFA /* EmptyResultTest.swift */, + 607FACE91AFB9204008FA782 /* Supporting Files */, + ); + path = Tests; + sourceTree = ""; + }; + 607FACE91AFB9204008FA782 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + 00139DBE1F698AE0005D49EC /* TestConfig.plist */, + 607FACEA1AFB9204008FA782 /* Info.plist */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { + isa = PBXGroup; + children = ( + B33E0750ECAFC8D9419D0E2D /* KalturaOttClient.podspec */, + 25D0496082CD170A6C7D9E66 /* README.md */, + 9EEB332DC79B29F3773EBDAC /* LICENSE */, + ); + name = "Podspec Metadata"; + sourceTree = ""; + }; + 7926491686FFF4D844DE2510 /* Pods */ = { + isa = PBXGroup; + children = ( + C4D209549F925E3CB611747F /* Pods-KalturaClient_Example.debug.xcconfig */, + 5FE8E0B6C95CC113DDE8608B /* Pods-KalturaClient_Example.release.xcconfig */, + B9C640C657C2B5A040083AF5 /* Pods-KalturaClient_Tests.debug.xcconfig */, + 5B71B816BD0CFFB43D1C5C16 /* Pods-KalturaClient_Tests.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 607FACCF1AFB9204008FA782 /* KalturaClient_Example */ = { + isa = PBXNativeTarget; + buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KalturaClient_Example" */; + buildPhases = ( + 726EDAE593CBBDEE85EC36CC /* [CP] Check Pods Manifest.lock */, + 607FACCC1AFB9204008FA782 /* Sources */, + 607FACCD1AFB9204008FA782 /* Frameworks */, + 607FACCE1AFB9204008FA782 /* Resources */, + D994328B7BA7E3F992C2A46A /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = KalturaClient_Example; + productName = KalturaClient; + productReference = 607FACD01AFB9204008FA782 /* KalturaClient_Example.app */; + productType = "com.apple.product-type.application"; + }; + 607FACE41AFB9204008FA782 /* KalturaClient_Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KalturaClient_Tests" */; + buildPhases = ( + F4CFA6B1DFCC5336C834CA98 /* [CP] Check Pods Manifest.lock */, + 607FACE11AFB9204008FA782 /* Sources */, + 607FACE21AFB9204008FA782 /* Frameworks */, + 607FACE31AFB9204008FA782 /* Resources */, + 3FA98E10F1DA36D1E5E82A7E /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + 607FACE71AFB9204008FA782 /* PBXTargetDependency */, + ); + name = KalturaClient_Tests; + productName = Tests; + productReference = 607FACE51AFB9204008FA782 /* KalturaClient_Tests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 607FACC81AFB9204008FA782 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0720; + LastUpgradeCheck = 1150; + ORGANIZATIONNAME = CocoaPods; + TargetAttributes = { + 607FACCF1AFB9204008FA782 = { + CreatedOnToolsVersion = 6.3.1; + LastSwiftMigration = 1100; + }; + 607FACE41AFB9204008FA782 = { + CreatedOnToolsVersion = 6.3.1; + LastSwiftMigration = 1100; + TestTargetID = 607FACCF1AFB9204008FA782; + }; + }; + }; + buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "KalturaClient" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 607FACC71AFB9204008FA782; + productRefGroup = 607FACD11AFB9204008FA782 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 607FACCF1AFB9204008FA782 /* KalturaClient_Example */, + 607FACE41AFB9204008FA782 /* KalturaClient_Tests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 607FACCE1AFB9204008FA782 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, + 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, + 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 607FACE31AFB9204008FA782 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 90BB1D4A24A09FB500B0A612 /* TestConfig.plist in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 3FA98E10F1DA36D1E5E82A7E /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-KalturaClient_Tests/Pods-KalturaClient_Tests-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/KalturaOttClient/KalturaOttClient.framework", + "${BUILT_PRODUCTS_DIR}/Log/Log.framework", + "${BUILT_PRODUCTS_DIR}/Nimble/Nimble.framework", + "${BUILT_PRODUCTS_DIR}/Quick/Quick.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/KalturaOttClient.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Log.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Nimble.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Quick.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-KalturaClient_Tests/Pods-KalturaClient_Tests-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + 726EDAE593CBBDEE85EC36CC /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-KalturaClient_Example-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; + D994328B7BA7E3F992C2A46A /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-KalturaClient_Example/Pods-KalturaClient_Example-frameworks.sh", + "${BUILT_PRODUCTS_DIR}/KalturaOttClient/KalturaOttClient.framework", + "${BUILT_PRODUCTS_DIR}/Log/Log.framework", + ); + name = "[CP] Embed Pods Frameworks"; + outputPaths = ( + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/KalturaOttClient.framework", + "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Log.framework", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-KalturaClient_Example/Pods-KalturaClient_Example-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; + F4CFA6B1DFCC5336C834CA98 /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-KalturaClient_Tests-checkManifestLockResult.txt", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 607FACCC1AFB9204008FA782 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, + 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 607FACE11AFB9204008FA782 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 607FACEC1AFB9204008FA782 /* BaseTest.swift in Sources */, + C28D3AD81F38ACB0001D2A03 /* MultiRequestWithArray.swift in Sources */, + C28D3A9C1F33293D001D2A03 /* ArrayTest.swift in Sources */, + C28D3A9A1F332880001D2A03 /* PrimitivesTest.swift in Sources */, + C28D3ADA1F38ACC7001D2A03 /* MultiRequestWithPrimitives.swift in Sources */, + C28D3A991F332878001D2A03 /* MultiRequestTest.swift in Sources */, + 90AB8F9124AC92E200A40CFA /* EmptyResultTest.swift in Sources */, + 002EBA931F7A27F900C7E4F9 /* MapTest.swift in Sources */, + 00139DC01F698B22005D49EC /* TestConfig.swift in Sources */, + 900A6BCA24A25CEE0030AC87 /* HouseholdTest.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 607FACCF1AFB9204008FA782 /* KalturaClient_Example */; + targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 607FACD91AFB9204008FA782 /* Main.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 607FACDA1AFB9204008FA782 /* Base */, + ); + name = Main.storyboard; + sourceTree = ""; + }; + 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { + isa = PBXVariantGroup; + children = ( + 607FACDF1AFB9204008FA782 /* Base */, + ); + name = LaunchScreen.xib; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 607FACED1AFB9204008FA782 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 607FACEE1AFB9204008FA782 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 8.3; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 607FACF01AFB9204008FA782 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = C4D209549F925E3CB611747F /* Pods-KalturaClient_Example.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = ""; + INFOPLIST_FILE = KalturaClient/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MODULE_NAME = ExampleApp; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_SWIFT3_OBJC_INFERENCE = Default; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 607FACF11AFB9204008FA782 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5FE8E0B6C95CC113DDE8608B /* Pods-KalturaClient_Example.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + DEVELOPMENT_TEAM = ""; + INFOPLIST_FILE = KalturaClient/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + MODULE_NAME = ExampleApp; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_SWIFT3_OBJC_INFERENCE = Default; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 607FACF31AFB9204008FA782 /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = B9C640C657C2B5A040083AF5 /* Pods-KalturaClient_Tests.debug.xcconfig */; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + INFOPLIST_FILE = Tests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_SWIFT3_OBJC_INFERENCE = Default; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 607FACF41AFB9204008FA782 /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 5B71B816BD0CFFB43D1C5C16 /* Pods-KalturaClient_Tests.release.xcconfig */; + buildSettings = { + FRAMEWORK_SEARCH_PATHS = "$(inherited)"; + INFOPLIST_FILE = Tests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_SWIFT3_OBJC_INFERENCE = Default; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "KalturaClient" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 607FACED1AFB9204008FA782 /* Debug */, + 607FACEE1AFB9204008FA782 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KalturaClient_Example" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 607FACF01AFB9204008FA782 /* Debug */, + 607FACF11AFB9204008FA782 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KalturaClient_Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 607FACF31AFB9204008FA782 /* Debug */, + 607FACF41AFB9204008FA782 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 607FACC81AFB9204008FA782 /* Project object */; +} diff --git a/Example/KalturaClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/KalturaClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..0153c2f7e --- /dev/null +++ b/Example/KalturaClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Example/KalturaClient.xcodeproj/xcshareddata/xcschemes/KalturaClient-Example.xcscheme b/Example/KalturaClient.xcodeproj/xcshareddata/xcschemes/KalturaClient-Example.xcscheme new file mode 100644 index 000000000..39a2cde3e --- /dev/null +++ b/Example/KalturaClient.xcodeproj/xcshareddata/xcschemes/KalturaClient-Example.xcscheme @@ -0,0 +1,111 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/KalturaClient.xcworkspace/contents.xcworkspacedata b/Example/KalturaClient.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..8ebd754d6 --- /dev/null +++ b/Example/KalturaClient.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Example/KalturaClient.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Example/KalturaClient.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000..18d981003 --- /dev/null +++ b/Example/KalturaClient.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Example/KalturaClient/AppDelegate.swift b/Example/KalturaClient/AppDelegate.swift new file mode 100644 index 000000000..6e8a328c4 --- /dev/null +++ b/Example/KalturaClient/AppDelegate.swift @@ -0,0 +1,46 @@ +// +// AppDelegate.swift +// KalturaClient +// +// Created by tan-tan-kanarek on 07/17/2017. +// Copyright (c) 2017 tan-tan-kanarek. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + var window: UIWindow? + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + func applicationWillResignActive(_ application: UIApplication) { + // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. + // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. + } + + func applicationDidEnterBackground(_ application: UIApplication) { + // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. + // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. + } + + func applicationWillEnterForeground(_ application: UIApplication) { + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. + } + + func applicationDidBecomeActive(_ application: UIApplication) { + // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. + } + + func applicationWillTerminate(_ application: UIApplication) { + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + } + + +} + diff --git a/Example/KalturaClient/Base.lproj/LaunchScreen.xib b/Example/KalturaClient/Base.lproj/LaunchScreen.xib new file mode 100644 index 000000000..f34f60957 --- /dev/null +++ b/Example/KalturaClient/Base.lproj/LaunchScreen.xib @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/KalturaClient/Base.lproj/Main.storyboard b/Example/KalturaClient/Base.lproj/Main.storyboard new file mode 100644 index 000000000..ddb775f69 --- /dev/null +++ b/Example/KalturaClient/Base.lproj/Main.storyboard @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Example/KalturaClient/Images.xcassets/AppIcon.appiconset/Contents.json b/Example/KalturaClient/Images.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..7006c9eeb --- /dev/null +++ b/Example/KalturaClient/Images.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,53 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x" + }, + { + "idiom" : "ios-marketing", + "size" : "1024x1024", + "scale" : "1x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/Example/KalturaClient/Info.plist b/Example/KalturaClient/Info.plist new file mode 100644 index 000000000..eb18faac5 --- /dev/null +++ b/Example/KalturaClient/Info.plist @@ -0,0 +1,39 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + + + diff --git a/Example/KalturaClient/ViewController.swift b/Example/KalturaClient/ViewController.swift new file mode 100644 index 000000000..3ea7db600 --- /dev/null +++ b/Example/KalturaClient/ViewController.swift @@ -0,0 +1,24 @@ +// +// ViewController.swift +// KalturaClient +// +// Created by tan-tan-kanarek on 07/17/2017. +// Copyright (c) 2017 tan-tan-kanarek. All rights reserved. +// + +import UIKit + +class ViewController: UIViewController { + + override func viewDidLoad() { + super.viewDidLoad() + // Do any additional setup after loading the view, typically from a nib. + } + + override func didReceiveMemoryWarning() { + super.didReceiveMemoryWarning() + // Dispose of any resources that can be recreated. + } + +} + diff --git a/Example/Podfile b/Example/Podfile new file mode 100644 index 000000000..df3dc77dd --- /dev/null +++ b/Example/Podfile @@ -0,0 +1,13 @@ +use_frameworks! + +target 'KalturaClient_Example' do + pod 'KalturaOttClient', :path => '../KalturaOttClient.podspec' + + target 'KalturaClient_Tests' do + inherit! :search_paths + + pod 'KalturaOttClient', :path => '../KalturaOttClient.podspec' + pod 'Quick', '~> 1.3.2' + pod 'Nimble', '~> 7.3.3' + end +end diff --git a/Example/Tests/ArrayTest.swift b/Example/Tests/ArrayTest.swift new file mode 100644 index 000000000..fc4e658ba --- /dev/null +++ b/Example/Tests/ArrayTest.swift @@ -0,0 +1,94 @@ +// +// ArrayTest.swift +// KalturaClient +// +// Created by Rivka Peleg on 03/08/2017. +// Copyright © 2017 CocoaPods. All rights reserved. +// + +import Foundation +import Quick +import Nimble +import KalturaOttClient + + +class arrayTest: QuickSpec { + var client: Client? + + private var executor: RequestExecutor = USRExecutor.shared + + override func spec() { + + describe("Add action and then delete action with logged user") { + + beforeEach { + waitUntil(timeout: 500) { done in + self.client = TConfig.client + self.login() { error in + expect(error).to(beNil()) + done() + } + } + } + + context("User is logged in") { + it("needs to add social action and then delete it") { + waitUntil(timeout: 500) { done in + + self.addSocialActions(completed: { (socialActionid, error) in + expect(error).to(beNil()) + expect(socialActionid).notTo(beNil()) + + if let id = socialActionid { + self.deleteSocialActions(socialActionId: id, deleted: { (status:[NetworkActionStatus]?, error:ApiException?) in + expect(status?.count).to(beGreaterThan(0)) + expect(status?.last).notTo(beNil()) + done() + }) + } + }) + + } + } + + } + } + } + + private func login(done: @escaping (_ error: ApiException?) -> Void) { + + let requestBuilder = OttUserService.login(partnerId: TConfig.partnerId, + username: TConfig.username, + password: TConfig.password) + .set { (response:LoginResponse?, error: ApiException?) in + self.client?.ks = response?.loginSession?.ks + done(error) + } + executor.send(request: requestBuilder.build(client!)) + } + + + private func addSocialActions(completed: @escaping (_ socialActionsId: String?, _ error: ApiException?) -> Void) { + + let socialAction = SocialAction() + socialAction.actionType = SocialActionType.LIKE + socialAction.assetId = Int64(TConfig.assetId) + socialAction.assetType = AssetType.MEDIA + + let requestBuilder = SocialActionService.add(socialAction: socialAction).set { (response:UserSocialActionResponse?, error:ApiException?) in + completed(response?.socialAction?.id, error) + } + + executor.send(request: requestBuilder.build(client!)) + } + + private func deleteSocialActions(socialActionId: String, deleted: @escaping (_ actionStatus: [NetworkActionStatus]? , _ error: ApiException?) -> Void) { + + let requestBuilder = SocialActionService.delete(id: socialActionId).set { (response:Array?, error:ApiException?) in + deleted(response, error) + } + + executor.send(request: requestBuilder.build(client!)) + } +} + diff --git a/Example/Tests/BaseTest.swift b/Example/Tests/BaseTest.swift new file mode 100644 index 000000000..785a68473 --- /dev/null +++ b/Example/Tests/BaseTest.swift @@ -0,0 +1,70 @@ + +import Quick +import Nimble +import KalturaOttClient + +class BaseTest: QuickSpec { + var client: Client? + + private var executor: RequestExecutor = USRExecutor.shared + + override func spec() { + + describe("Load asset") { + + beforeEach { + waitUntil(timeout: 500) { done in + self.client = TConfig.client + self.login() { error in + expect(error).to(beNil()) + done() + } + } + } + + context("when user in anonymouse mode") { + var createdEntry: Asset? + + it("needs to get an asset") { + waitUntil(timeout: 500) { done in + self.createAsset() { entry, error in + expect(error).to(beNil()) + + createdEntry = entry + expect(createdEntry).notTo(beNil()) + expect(createdEntry?.id).notTo(beNil()) + + expect(createdEntry?.images?.last?.id).notTo(beNil()) + if createdEntry != nil { + print(createdEntry!) + } + done() + } + } + } + + } + } + } + + private func login(done: @escaping (_ error: ApiException?) -> Void) { + + let requestBuilder = OttUserService.anonymousLogin(partnerId: TConfig.partnerId).set { (loginSession:LoginSession?, exception:ApiException?) in + self.client!.ks = loginSession?.ks + done(exception) + } + + executor.send(request: requestBuilder.build(client!)) + } + + private func createAsset(created: @escaping (_ createdEntry: Asset?, _ error: ApiException?) -> Void) { + + + let requestBuilder = AssetService.get(id: TConfig.assetId, assetReferenceType: AssetReferenceType.MEDIA).set { (asset, exception) in + created(asset, exception) + } + + + executor.send(request: requestBuilder.build(client!)) + } +} diff --git a/Example/Tests/EmptyResultTest.swift b/Example/Tests/EmptyResultTest.swift new file mode 100644 index 000000000..7f39835fb --- /dev/null +++ b/Example/Tests/EmptyResultTest.swift @@ -0,0 +1,149 @@ +// +// EmptyResultTest.swift +// KalturaClient_Tests +// +// Created by Sergii Chausov on 01.07.2020. +// Copyright © 2020 CocoaPods. All rights reserved. +// + +import Quick +import Nimble +import KalturaOttClient + +class EmptyResultTest: QuickSpec { + var client: Client? + private var executor: RequestExecutor = USRExecutor.shared + + override func spec() { + + self.client = TConfig.client + + describe("Empty Result API esponses") { + + beforeSuite { + waitUntil(timeout: 500) { done in + + self.login() { (loginResponse, error) in + expect(error).to(beNil()) + expect(loginResponse).notTo(beNil()) + expect(loginResponse?.user).notTo(beNil()) + expect(loginResponse?.user?.id).notTo(beNil()) + expect(loginResponse?.user?.householdId).notTo(beNil()) + + done() + } + } + } + + afterSuite { + waitUntil(timeout: 500) { done in + self.logout { (loggedOut, error) in + expect(error).to(beNil()) + expect(loggedOut).notTo(beNil()) + expect(loggedOut).to(beTrue()) + + done() + } + } + } + + context("when user logged in") { + + it("Update password with error", closure: { + waitUntil(timeout: 500) { done in + self.updatePassword(completed: { (error:ApiException?) in + expect(error).notTo(beNil()) + expect(error?.code).to(be("500004")) + done() + }) + } + }) + + it("Delete Password Policy with error", closure: { + waitUntil(timeout: 500) { done in + self.deletePasswordPolicy(completed: { (error:ApiException?) in + expect(error).notTo(beNil()) + // PasswordPolicyDoesNotExist - 1038 + expect(error?.code).to(be("1038")) + done() + }) + } + }) + + it("Clean Asset history with sucess", closure: { + waitUntil(timeout: 500) { done in + self.cleanAssetHistory(completed: { (error:ApiException?) in + expect(error).to(beNil()) + done() + }) + } + }) + + } + } + + } + + private func deletePasswordPolicy(completed: @escaping (_ error: ApiException?) -> Void) { + + let request = PasswordPolicyService.delete(id: 111111111111111) + request.set { (error) in + completed(error) + } + + self.executor.send(request: request.build(self.client!)) + } + + private func updatePassword(completed: @escaping (_ error: ApiException?) -> Void) { + + let getUserInfo = OttUserService.get().set { (user, error) in + + if let u = user { + let updatePassword = OttUserService.updatePassword(userId: Int((u.id!))!, password: TConfig.password) + + updatePassword.set { (error) in + completed(error) + } + + self.executor.send(request: updatePassword.build(self.client!)) + } + } + + executor.send(request: getUserInfo.build(client!)) + } + + private func cleanAssetHistory(completed: @escaping (_ error: ApiException?) -> Void) { + + let request = AssetHistoryService.clean() + + request.set { (error) in + completed(error) + } + + self.executor.send(request: request.build(self.client!)) + } + + private func login(done: @escaping (_ loginResponse: LoginResponse?, _ error: ApiException?) -> Void) { + + let requestBuilder = OttUserService.login(partnerId: TConfig.partnerId, + username: TConfig.username, + password: TConfig.password) + .set { (response: LoginResponse?, error: ApiException?) in + self.client?.ks = response?.loginSession?.ks + done(response, error) + } + + executor.send(request: requestBuilder.build(client!)) + } + + private func logout(done: @escaping (_ loggedOut: Bool?, _ error: ApiException?) -> Void) { + + let logoutRequest = OttUserService.logout() + .set { (response: Bool?, error: ApiException?) in + done(response, error) + } + + executor.send(request: logoutRequest.build(client!)) + } + +} diff --git a/Example/Tests/HouseholdTest.swift b/Example/Tests/HouseholdTest.swift new file mode 100644 index 000000000..246bcc39a --- /dev/null +++ b/Example/Tests/HouseholdTest.swift @@ -0,0 +1,160 @@ +// +// HouseholdTest.swift +// KalturaClient_Tests +// +// Created by Sergii Chausov on 23.06.2020. +// Copyright © 2020 CocoaPods. All rights reserved. +// + +import Quick +import Nimble +import KalturaOttClient + +class HouseholdTest: QuickSpec { + + var client: Client? + var householdId = 0 + + private var executor: RequestExecutor = USRExecutor.shared + + override func spec() { + + self.client = TConfig.client + + beforeSuite { + waitUntil(timeout: 500) { done in + + self.login() { (loginResponse, error) in + expect(error).to(beNil()) + expect(loginResponse).notTo(beNil()) + expect(loginResponse?.user).notTo(beNil()) + expect(loginResponse?.user?.id).notTo(beNil()) + expect(loginResponse?.user?.householdId).notTo(beNil()) + + done() + } + } + } + + describe("Check Household actions") { + + context("when user is logged in") { + + it("A, Add device to Household") { + waitUntil(timeout: 500) { done in + self.addDeviceToHousehold { (device, error) in + expect(error).to(beNil()) + expect(device).notTo(beNil()) + expect(device?.householdId).notTo(beNil()) + + done() + } + } + } + + it("B, Check if device currently in Household") { + + waitUntil(timeout: 500) { done in + + self.householdDevicesList { (devices, error) in + expect(error).to(beNil()) + expect(devices?.count).to(beGreaterThan(0)) + + expect(devices).to(containElementSatisfying({ (device) -> Bool in + return device.udid == TConfig.udid + }, "That is recently added device")) + + done() + } + } + } + + it("C, Remove device from Household") { + waitUntil(timeout: 500) { done in + self.deleteDeviceFromHousehold { (deleted, error) in + expect(error).to(beNil()) + expect(deleted).notTo(beNil()) + expect(deleted).to(beTrue()) + + done() + } + } + } + + it("D, Logged out", closure: { + waitUntil(timeout: 500) { done in + self.logout { (loggedOut, error) in + expect(error).to(beNil()) + expect(loggedOut).notTo(beNil()) + expect(loggedOut).to(beTrue()) + + done() + } + + } + }) + } + } + } + + private func login(done: @escaping (_ loginResponse: LoginResponse?, _ error: ApiException?) -> Void) { + + let requestBuilder = OttUserService.login(partnerId: TConfig.partnerId, + username: TConfig.username, + password: TConfig.password) + .set { (response: LoginResponse?, error: ApiException?) in + self.client?.ks = response?.loginSession?.ks + done(response, error) + } + + executor.send(request: requestBuilder.build(client!)) + } + + private func logout(done: @escaping (_ loggedOut: Bool?, _ error: ApiException?) -> Void) { + + let logoutRequest = OttUserService.logout() + .set { (response: Bool?, error: ApiException?) in + done(response, error) + } + + executor.send(request: logoutRequest.build(client!)) + } + + private func addDeviceToHousehold(added: @escaping (_ houceholdDevice: HouseholdDevice?, _ error: ApiException?) -> Void ) { + + let device: HouseholdDevice = HouseholdDevice.init() + + device.udid = TConfig.udid + device.name = "Test Name" + device.brandId = 1 + device.deviceFamilyId = 1 + + let requestAddDevice = HouseholdDeviceService.add(device: device) + .set { (houceholdDevice: HouseholdDevice?, exeption: ApiException?) in + added(houceholdDevice, exeption) + } + + executor.send(request: requestAddDevice.build(client!)) + } + + private func householdDevicesList(completion: @escaping (_ householdDevices: [HouseholdDevice]?, _ error: ApiException?) -> Void) { + + let requestGetHouseholdDevicesList = HouseholdDeviceService.list() + .set {(householdDeviceListResponse: HouseholdDeviceListResponse?, error: ApiException?) in + completion(householdDeviceListResponse?.objects, error) + } + + executor.send(request: requestGetHouseholdDevicesList.build(client!)) + } + + private func deleteDeviceFromHousehold(deleted: @escaping(_ done: Bool?, _ error: ApiException?) -> Void) { + + let requestDeleteDevice = HouseholdDeviceService.delete(udid: TConfig.udid) + .set(completion: { (done: Bool?, error: ApiException?) in + deleted(done, error) + }) + + executor.send(request: requestDeleteDevice.build(client!)) + } + +} diff --git a/Example/Tests/Info.plist b/Example/Tests/Info.plist new file mode 100644 index 000000000..ba72822e8 --- /dev/null +++ b/Example/Tests/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + + diff --git a/Example/Tests/MapTest.swift b/Example/Tests/MapTest.swift new file mode 100644 index 000000000..8dad84ec3 --- /dev/null +++ b/Example/Tests/MapTest.swift @@ -0,0 +1,64 @@ +// +// MapTest.swift +// KalturaClient +// +// Created by Jonathan Kanarek on 26/09/2017. +// Copyright © 2017 CocoaPods. All rights reserved. +// + +import Foundation +import Quick +import Nimble +import KalturaOttClient + + +class mapTest: QuickSpec { + var client: Client = TConfig.client! + + private var executor: RequestExecutor = USRExecutor.shared + + override func spec() { + + let password = "password" + + context("User") { + it("create") { + waitUntil(timeout: 500) { done in + + let value1 = StringValue() + value1.value = "aaa" + + let value2 = StringValue() + value2.value = "bbb" + + let ottUserToCreate = OTTUser() + ottUserToCreate.username = self.randomString(length: 20) + ottUserToCreate.dynamicData = ["aaa": value1, "bbb": value2] + + let requestBuilder = OttUserService.register(partnerId: TConfig.partnerId, user: ottUserToCreate, password: password) + .set {(response:OTTUser?, error: ApiException?) in + expect(error).to(beNil()) + done() + } + self.executor.send(request: requestBuilder.build(self.client)) + } + } + } + } + + private func randomString(length: Int) -> String { + let allowedChars = "abcdefghijklmnopqrstuvwxyz0123456789" + let allowedCharsCount = UInt32(allowedChars.count) + var randomString = "" + + for _ in 0.. Void) { + + let requestBuilderLogin = OttUserService.anonymousLogin(partnerId: TConfig.partnerId) + let requestBuilderGetAsset = AssetService.get(id: TConfig.assetId, assetReferenceType: AssetReferenceType.MEDIA) + + requestBuilderGetAsset.set { (asset, exception) in + created(asset, exception) + } + + let multiRequest: MultiRequestBuilder = requestBuilderLogin.add(request: requestBuilderGetAsset) + .link(tokenFromRespose: requestBuilderLogin.responseTokenizer.ks, tokenToRequest: requestBuilderGetAsset.requestTokenizer.ks) + + executor.send(request: multiRequest.build(self.client!)) + } +} diff --git a/Example/Tests/MultiRequestWithArray.swift b/Example/Tests/MultiRequestWithArray.swift new file mode 100644 index 000000000..d1c066a64 --- /dev/null +++ b/Example/Tests/MultiRequestWithArray.swift @@ -0,0 +1,91 @@ +// +// MultiRequestWithArray.swift +// KalturaClient +// +// Created by Rivka Peleg on 07/08/2017. +// Copyright © 2017 CocoaPods. All rights reserved. +// + + + + +import Foundation +import Quick +import Nimble +import KalturaOttClient + + +class MultiRequestWithArray: QuickSpec { + var client: Client? + + private var executor: RequestExecutor = USRExecutor.shared + + override func spec() { + + describe("Add action and then delete action with logged user") { + + beforeEach { + waitUntil(timeout: 500) { done in + self.client = TConfig.client + self.login() { error in + expect(error).to(beNil()) + done() + } + } + } + + context("User is logged in") { + it("needs to add social action and then delete it") { + waitUntil(timeout: 500) { done in + + self.addAndDeleteSocialActions(completed: { (status:[NetworkActionStatus]?, error:ApiException?) in + expect(status?.count).to(beGreaterThan(0)) + expect(status?.last).notTo(beNil()) + done() + + + }) + + } + } + + } + } + } + + private func login(done: @escaping (_ error: ApiException?) -> Void) { + + let requestBuilder = OttUserService.login(partnerId: TConfig.partnerId, + username: TConfig.username, + password: TConfig.password) + .set { (response:LoginResponse?, error: ApiException?) in + self.client?.ks = response?.loginSession?.ks + done(error) + } + executor.send(request: requestBuilder.build(client!)) + } + + + private func addAndDeleteSocialActions(completed: @escaping (_ status:[NetworkActionStatus]?, _ error: ApiException?) -> Void) { + + let socialAction = SocialAction() + socialAction.actionType = SocialActionType.LIKE + socialAction.assetId = Int64(TConfig.assetId) + socialAction.assetType = AssetType.MEDIA + + let addSocialActionRB = SocialActionService.add(socialAction: socialAction) + let deleteSocialActionRB = SocialActionService.delete(id: "") + deleteSocialActionRB.set { (result:Array?, error:ApiException?) in + completed(result, error) + } + + let mrb = addSocialActionRB + .add(request: deleteSocialActionRB) + .link(tokenFromRespose: addSocialActionRB.responseTokenizer.socialAction().id, + tokenToRequest: deleteSocialActionRB.requestTokenizer.id) + + executor.send(request: mrb.build(client!)) + } + + +} diff --git a/Example/Tests/MultiRequestWithPrimitives.swift b/Example/Tests/MultiRequestWithPrimitives.swift new file mode 100644 index 000000000..33ccd7c90 --- /dev/null +++ b/Example/Tests/MultiRequestWithPrimitives.swift @@ -0,0 +1,109 @@ +// +// MultiRequestWithPrimitives.swift +// KalturaClient +// +// Created by Rivka Peleg on 07/08/2017. +// Copyright © 2017 CocoaPods. All rights reserved. +// + + +import Quick +import Nimble +import KalturaOttClient + +class MultiRequestWithPrimitives: QuickSpec { + var client: Client? + var householdId = 0 + + private var executor: RequestExecutor = USRExecutor.shared + + override func spec() { + + describe("check Primitives response") { + + beforeEach { + waitUntil(timeout: 500) { done in + self.client = TConfig.client + self.login() { error in + expect(error).to(beNil()) + done() + } + } + } + + context("when user in anonymouse mode") { + + it("needs to return Void value", closure: { + waitUntil(timeout: 500) { done in + self.sendMultiRequest(getTimeCompleted: { (result:Int64?, error:ApiException?) in + expect(error).to(beNil()) + expect(result).notTo(beNil()) + }, pingCompleted: { (result:Bool?, error) in + expect(error).to(beNil()) + expect(result).notTo(beNil()) + }, getVersionCompleted: { (result:String?, error:ApiException?) in + expect(error).to(beNil()) + expect(result).notTo(beNil()) + }, updatePasswordCompleted: { (result:Void?, error:ApiException?) in + expect(error).to(beNil()) + expect(result).to(beNil()) + }, whenAllCompleted: { (result:[Any?]?, error:ApiException?) in + expect(error).to(beNil()) + expect(result).notTo(beNil()) + expect(result?.count).to(beGreaterThan(0)) + expect(result?.count).to(beLessThan(5)) + done() + }) + + } + }) + } + } + } + + private func login(done: @escaping (_ error: ApiException?) -> Void) { + + let requestBuilder = OttUserService.login(partnerId: TConfig.partnerId, + username: TConfig.username, + password: TConfig.password) + .set { (response:LoginResponse?, error: ApiException?) in + self.client?.ks = response?.loginSession?.ks + done(error) + + } + requestBuilder.setParam(key: "udid", value: TConfig.udid) + executor.send(request: requestBuilder.build(client!)) + } + + private func sendMultiRequest(getTimeCompleted: @escaping (_ result: Int64?, _ error: ApiException?) -> Void, + pingCompleted: @escaping (_ result: Bool?, _ error: ApiException?) -> Void, + getVersionCompleted: @escaping (_ result: String?, _ error: ApiException?) -> Void, + updatePasswordCompleted: @escaping (_ result: Void?, _ error: ApiException?) -> Void, + whenAllCompleted: @escaping (_ result: [Any?]?, _ error: ApiException?) -> Void ) { + + let getTimeRequestBuilder = SystemService.getTime().set { (result:Int64?, error: ApiException?) in + getTimeCompleted(result, error) + } + + let pingRequestBuilder = SystemService.ping().set { (result:Bool?, error: ApiException?) in + pingCompleted(result, error) + } + + let getVersionRequestBuilder = SystemService.getVersion().set { (result: String?, error:ApiException?) in + getVersionCompleted(result, error) + } + +// let updatePasswordRequestBuilder = OttUserService.updatePassword(userId: Int(self.userid)!, password: "123456").set { (result:Void?, error:ApiException?) in +// updatePasswordCompleted(result, error) +// } + + let mrb = getTimeRequestBuilder.add(request: pingRequestBuilder).add(request: getVersionRequestBuilder) + //.add(request: updatePasswordRequestBuilder) + mrb.set { (result:[Any?]?, error:ApiException?) in + whenAllCompleted(result, error) + } + executor.send(request: mrb.build(client!)) + } + +} + diff --git a/Example/Tests/PrimitivesTest.swift b/Example/Tests/PrimitivesTest.swift new file mode 100644 index 000000000..48b74dc80 --- /dev/null +++ b/Example/Tests/PrimitivesTest.swift @@ -0,0 +1,182 @@ +// +// PrimitivesTest.swift +// KalturaClient +// +// Created by Rivka Peleg on 02/08/2017. +// Copyright © 2017 CocoaPods. All rights reserved. +// + +import Quick +import Nimble +import KalturaOttClient + +class PrimitivesTest: QuickSpec { + var client: Client? + var householdId = 0 + + private var executor: RequestExecutor = USRExecutor.shared + + override func spec() { + + + describe("check Primitives response") { + + beforeEach { + waitUntil(timeout: 500) { done in + self.client = TConfig.client + self.login() { error in + expect(error).to(beNil()) + done() + } + } + } + + context("when user in anonymouse mode") { + it("needs to return bool value") { + waitUntil(timeout: 500) { done in + + self.ping(completed: { (result:Bool?, exc:ApiException?) in + expect(exc).to(beNil()) + expect(result).notTo(beNil()) + done() + }) + + } + } + + it("needs to return string value", closure: { + + waitUntil(timeout: 500) { done in + + self.ping(completed: { (result:Bool?, exc:ApiException?) in + expect(exc).to(beNil()) + expect(result).notTo(beNil()) + done() + }) + + } + }) + + + it("needs to return Int value", closure: { + + waitUntil(timeout: 500) { done in + + self.ping(completed: { (result:Bool?, exc:ApiException?) in + expect(exc).to(beNil()) + expect(result).notTo(beNil()) + done() + }) + } + }) + + it("needs to return Void value", closure: { + waitUntil(timeout: 500) { done in + self.updatePassword(completed: { (result:Void?, error:ApiException?) in + expect(error).to(beNil()) + expect(result).to(beNil()) + done() + }) + } + }) + /* + it("needs to return manifest") { + waitUntil(timeout: 500) { done in + self.getAssetManifest { (asset: AssetFile?, error: ApiException?) in + expect(error).to(beNil()) + expect(asset).notTo(beNil()) + done() + } + } + } + */ + } + } + } + + private func login(done: @escaping (_ error: ApiException?) -> Void) { + + let requestBuilder = OttUserService.login(partnerId: TConfig.partnerId, username: TConfig.username, password: TConfig.password).set { (response:LoginResponse?, error: ApiException?) in + self.client?.ks = response?.loginSession?.ks + done(error) + + } + + executor.send(request: requestBuilder.build(client!)) + } + + private func getTime(completed: @escaping (_ result: Int64?, _ error: ApiException?) -> Void) { + + let requestBuilder = SystemService.getTime().set { (result:Int64?, error: ApiException?) in + completed(result, error) + } + + executor.send(request: requestBuilder.build(client!)) + } + + private func ping(completed: @escaping (_ result: Bool?, _ error: ApiException?) -> Void) { + + let requestBuilder = SystemService.ping().set { (result:Bool?, error: ApiException?) in + completed(result, error) + } + + executor.send(request: requestBuilder.build(client!)) + } + + private func getVersion(completed: @escaping (_ result: String?, _ error: ApiException?) -> Void) { + + let requestBuilder = SystemService.getVersion().set { (result: String?, error:ApiException?) in + completed(result, error) + } + executor.send(request: requestBuilder.build(client!)) + } + + + private func updatePassword(completed: @escaping (_ result: Void?, _ error: ApiException?) -> Void) { + + let getUserInfo = OttUserService.get().set { (user, error) in + + if let u = user { + let updatePassword = OttUserService.updatePassword(userId: Int((u.id!))!, password: TConfig.password).set { (result:Void?, error:ApiException?) in + completed(result, error) + } + + self.executor.send(request: updatePassword.build(self.client!)) + } + + } + + executor.send(request: getUserInfo.build(client!)) + + + } + + private func getAssetManifest(completed: @escaping (_ result: AssetFile?, _ error: ApiException?) -> Void) { + + let getAssetFiles = AssetService.get(id: TConfig.assetId, assetReferenceType: .MEDIA) + + getAssetFiles.set { (asset:Asset?, error:ApiException?) in + + if let error = error { + completed(nil, error) + return + } + + let playManifest = AssetFileService.playManifest(partnerId: TConfig.partnerId, + assetId: TConfig.assetId, + assetType: .MEDIA, + assetFileId: Int64((asset?.mediaFiles?.last?.id)!), + contextType: .PLAYBACK, + ks: self.client?.ks) + + playManifest.set(completion: { (result:AssetFile?, error:ApiException?) in + completed(result, error) + }) + + self.executor.send(request: playManifest.build(self.client!)) + } + + + executor.send(request: getAssetFiles.build(client!)) + } +} diff --git a/Example/Tests/TestConfig.swift b/Example/Tests/TestConfig.swift new file mode 100644 index 000000000..0cdbb8e6e --- /dev/null +++ b/Example/Tests/TestConfig.swift @@ -0,0 +1,58 @@ +// +// File.swift +// KalturaClient +// +// Created by Rivka Peleg on 04/09/2017. +// Copyright © 2017 CocoaPods. All rights reserved. +// + +import Foundation +import KalturaOttClient + + +let TConfig = TestConfig.shared + +class TestConfig { + + + static let shared = TestConfig() + + var serverURL: String = "" + var partnerId: Int = 0 + var username: String = "" + var password: String = "" + var operatorUsername: String = "" + var operatorPassword: String = "" + var assetId: String = "" + var udid: String = "" + + + init() { + guard let filePath = Bundle(for: TestConfig.self).path(forResource: "TestConfig", ofType: "plist") else { + return + } + + guard let dict = NSDictionary(contentsOfFile: filePath) else { + return + } + + self.serverURL = dict["serverURL"] as! String + self.partnerId = dict["partnerId"] as! Int + self.username = dict["username"] as! String + self.password = dict["password"] as! String + self.operatorUsername = dict["operatorUsername"] as! String + self.operatorPassword = dict["operatorPassword"] as! String + self.assetId = dict["assetId"] as! String + self.udid = dict["udid"] as! String + + } + + var client: Client? { + get { + let config = ConnectionConfiguration() + config.endPoint = URL(string:self.serverURL)! + return Client(config) + } + } + +} diff --git a/Example/Tests/TestConfig.template.plist b/Example/Tests/TestConfig.template.plist new file mode 100644 index 000000000..b14de0a70 --- /dev/null +++ b/Example/Tests/TestConfig.template.plist @@ -0,0 +1,24 @@ + + + + + serverURL + @SERVICE_URL@ + partnerId + @YOUR_PARTNER_ID@ + username + @USERNAME@ + password + @PASSWORD@ + operatorUsername + @OPERATOR_USERNAME@ + operatorPassword + @OPERATOR_PASSWORD@ + assetId + @ASSET_ID@ + userId + @USER_ID@ + udid + @UDID@ + + diff --git a/KalturaClient/Classes/.gitkeep b/KalturaClient/Classes/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/KalturaClient/Classes/Core/Client.swift b/KalturaClient/Classes/Core/Client.swift new file mode 100644 index 000000000..8ad000129 --- /dev/null +++ b/KalturaClient/Classes/Core/Client.swift @@ -0,0 +1,336 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@objc public class Client: RequestBuilderData { + public var configuration: ConnectionConfiguration + + @objc public init(_ config: ConnectionConfiguration) { + configuration = config + + super.init() + + clientTag = "swift:20-07-20" + apiVersion = "5.4.0.28205" + } +} + +public class ClientTokenizer: BaseTokenizedObject { + + /** + * Client tag + */ + public var clientTag: BaseTokenizedObject { + get { + return self.append("clientTag") + } + } + + /** + * API Version + */ + public var apiVersion: BaseTokenizedObject { + get { + return self.append("apiVersion") + } + } + + /** + * Impersonated partner id + */ + public var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + /** + * Impersonated user id + */ + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + + /** + * Content language + */ + public var language: BaseTokenizedObject { + get { + return self.append("language") + } + } + + /** + * Content currency + */ + public var currency: BaseTokenizedObject { + get { + return self.append("currency") + } + } + + /** + * Kaltura API session + */ + public var ks: BaseTokenizedObject { + get { + return self.append("ks") + } + } + + /** + * Kaltura API session + */ + public var sessionId: BaseTokenizedObject { + get { + return self.append("ks") + } + } + + /** + * Response profile - this attribute will be automatically unset after every API call + */ + public var responseProfile: BaseTokenizedObject { + get { + return self.append("responseProfile") + } + } + + /** + * Abort the Multireuqset call if any error occurs in one of the requests + */ + public var abortOnError: BaseTokenizedObject { + get { + return self.append("abortOnError") + } + } + + /** + * Abort all following requests if current request has an error + */ + public var abortAllOnError: BaseTokenizedObject { + get { + return self.append("abortAllOnError") + } + } + + /** + * Skip current request according to skip condition + */ + public var skipCondition: BaseTokenizedObject { + get { + return self.append("skipCondition") + } + } +} + +extension RequestBuilderData{ + /** + * Client tag + */ + public var clientTag: String?{ + get{ + return params["clientTag"] as? String + } + set(value){ + setParam(key: "clientTag", value: value) + } + } + + /** + * API Version + */ + public var apiVersion: String?{ + get{ + return params["apiVersion"] as? String + } + set(value){ + setParam(key: "apiVersion", value: value) + } + } + + /** + * Impersonated partner id + */ + public var partnerId: Int?{ + get{ + return params["partnerId"] as? Int + } + set(value){ + setParam(key: "partnerId", value: value) + } + } + + /** + * Impersonated user id + */ + public var userId: Int?{ + get{ + return params["userId"] as? Int + } + set(value){ + setParam(key: "userId", value: value) + } + } + + /** + * Content language + */ + public var language: String?{ + get{ + return params["language"] as? String + } + set(value){ + setParam(key: "language", value: value) + } + } + + /** + * Content currency + */ + public var currency: String?{ + get{ + return params["currency"] as? String + } + set(value){ + setParam(key: "currency", value: value) + } + } + + /** + * Kaltura API session + */ + public var ks: String?{ + get{ + return params["ks"] as? String + } + set(value){ + setParam(key: "ks", value: value) + } + } + + /** + * Kaltura API session + */ + public var sessionId: String?{ + get{ + return params["ks"] as? String + } + set(value){ + setParam(key: "ks", value: value) + } + } + + /** + * Response profile - this attribute will be automatically unset after every API call + */ + public var responseProfile: BaseResponseProfile?{ + get{ + return params["responseProfile"] as? BaseResponseProfile + } + set(value){ + setParam(key: "responseProfile", value: value) + } + } + + /** + * Abort the Multireuqset call if any error occurs in one of the requests + */ + public var abortOnError: Bool?{ + get{ + return params["abortOnError"] as? Bool + } + set(value){ + setParam(key: "abortOnError", value: value) + } + } + + /** + * Abort all following requests if current request has an error + */ + public var abortAllOnError: Bool?{ + get{ + return params["abortAllOnError"] as? Bool + } + set(value){ + setParam(key: "abortAllOnError", value: value) + } + } + + /** + * Skip current request according to skip condition + */ + public var skipCondition: SkipCondition?{ + get{ + return params["skipCondition"] as? SkipCondition + } + set(value){ + setParam(key: "skipCondition", value: value) + } + } + + public func applyParams(_ requestBuilder: RequestBuilderData) { + if requestBuilder.clientTag == nil { + requestBuilder.clientTag = clientTag + } + if requestBuilder.apiVersion == nil { + requestBuilder.apiVersion = apiVersion + } + if requestBuilder.partnerId == nil { + requestBuilder.partnerId = partnerId + } + if requestBuilder.userId == nil { + requestBuilder.userId = userId + } + if requestBuilder.language == nil { + requestBuilder.language = language + } + if requestBuilder.currency == nil { + requestBuilder.currency = currency + } + if requestBuilder.ks == nil { + requestBuilder.ks = ks + } + if requestBuilder.abortOnError == nil { + requestBuilder.abortOnError = abortOnError + } + if requestBuilder.abortAllOnError == nil { + requestBuilder.abortAllOnError = abortAllOnError + } + if requestBuilder.skipCondition == nil { + requestBuilder.skipCondition = skipCondition + } + } +} diff --git a/KalturaClient/Classes/Core/Executor/RequestExecutor.swift b/KalturaClient/Classes/Core/Executor/RequestExecutor.swift new file mode 100644 index 000000000..46e0da022 --- /dev/null +++ b/KalturaClient/Classes/Core/Executor/RequestExecutor.swift @@ -0,0 +1,43 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public protocol RequestExecutor: class { + + func send(request: Request) + func cancel(request: Request) + func cancel(id: String) + func clean() + +} diff --git a/KalturaClient/Classes/Core/Executor/implementors/USRExecutor.swift b/KalturaClient/Classes/Core/Executor/implementors/USRExecutor.swift new file mode 100644 index 000000000..e1c9f57aa --- /dev/null +++ b/KalturaClient/Classes/Core/Executor/implementors/USRExecutor.swift @@ -0,0 +1,210 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@objc public class USRExecutor: NSObject, RequestExecutor, URLSessionDelegate { + + var tasks: [URLSessionDataTask] = [URLSessionDataTask]() + var taskIdByRequestID: [String: Int] = [String: Int]() + + enum ResponseError: Error { + case emptyOrIncorrectURL + case incorrectJSONBody + } + + public static let shared = USRExecutor() + + public func send(request r: Request){ + + var request: URLRequest = URLRequest(url: r.url) + + let jsonString: String = String(bytes: r.dataBody!, encoding: String.Encoding.utf8)! + logger.debug("Request [\(r.requestId)] url: \(r.url) JSON: \(jsonString)") + + //handle http method + if let method = r.method { + request.httpMethod = method.value + } + + // handle headers + if let headers = r.headers{ + for (headerKey,headerValue) in headers{ + request.setValue(headerValue, forHTTPHeaderField: headerKey) + } + } + + // handle body + if !r.files.isEmpty { + let boundary = "Boundary-\(UUID().uuidString)" + request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type") + request.httpBody = buildMultipartData(boundary: boundary, files: r.files, jsonString: jsonString) + } + else if let data = r.dataBody { + request.httpBody = data + } + + let session: URLSession! + + if r.configuration.ignoreLocalCache { + let configuration = URLSessionConfiguration.default + configuration.requestCachePolicy = NSURLRequest.CachePolicy.reloadIgnoringLocalCacheData + session = URLSession(configuration: configuration) + } else { + session = URLSession.shared + } + + var task: URLSessionDataTask? = nil + // settings headers: + task = session.dataTask(with: request) { (data, response, error) in + + self.remove(id: r.requestId) + + DispatchQueue.main.async { + if let error = error as NSError? { + if error.code == NSURLErrorCancelled { + // cancel3ed + logger.debug("request has been canceled") + } else { + let result = Result(data: nil, error: ApiClientException(message: error.localizedDescription, code: ApiClientException.ErrorCode.httpError)) + r.completion(result) + // some other error + } + return + } + + if let d = data { + let jsonString: String = String(bytes: d, encoding: String.Encoding.utf8)! + + + var logMessage = "Response [\(r.requestId)] \nJSON: \n\(jsonString) \n" + if let httpUrlResponse = response as? HTTPURLResponse { + logMessage.append("Headers: \n\(httpUrlResponse.allHeaderFields) \n") + } + logger.debug(logMessage) + + do { + let json = try JSONParser.parse(data: d) + let result = Result(data: json, error:nil) + r.completion(result) + } catch let error { + let result = Result(data: nil, error: error as? ApiException) + r.completion(result) + + } + } else { + let result = Result(data: nil, error:nil) + r.completion(result) + } + } + } + + if let tsk = task{ + self.taskIdByRequestID[r.requestId] = task?.taskIdentifier + self.tasks.append(tsk) + tsk.resume() + } + } + + private func buildMultipartData(boundary: String, files: [String: RequestFile], jsonString: String) -> Data { + let body = NSMutableData() + + let boundaryPrefix = "--\(boundary)\r\n" + + body.appendString(boundaryPrefix) + body.appendString("Content-Disposition: form-data; name=\"json\"\r\n\r\n") + body.appendString("\(jsonString)\r\n") + + for (key, file) in files { + body.appendString(boundaryPrefix) + body.appendString("Content-Disposition: form-data; name=\"\(key)\"; filename=\"\(file.name)\"\r\n") + body.appendString("Content-Type: \(file.mimeType)\r\n\r\n") + body.append(file.data) + body.appendString("\r\n") + } + body.appendString("--".appending(boundary.appending("--"))) + + return body as Data + } + + + public func cancel(id requestId: String) { + let taskID = self.taskIdByRequestID[requestId] + + let taskIndex = self.tasks.firstIndex { $0.taskIdentifier == taskID } + + if let index = taskIndex { + let task = self.tasks[index] + task.cancel() + } + } + + public func remove(id requestId: String) { + let taskID = self.taskIdByRequestID[requestId] + let taskIndex = self.tasks.firstIndex { $0.taskIdentifier == taskID } + + if let index = taskIndex { + self.taskIdByRequestID.removeValue(forKey: requestId) + self.tasks.remove(at: index) + } + } + + public func cancel(request:Request){ + self.cancel(id: request.requestId) + } + + + public func clean(){ + + } + + // MARK: URLSessionDelegate + public func urlSession(_ session: URLSession, didBecomeInvalidWithError error: Error?){ + + } + + public func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Swift.Void){ + + } + + public func urlSessionDidFinishEvents(forBackgroundURLSession session: URLSession){ + + } +} + +extension NSMutableData { + func appendString(_ string: String) { + let data = string.data(using: String.Encoding.utf8, allowLossyConversion: false) + append(data!) + } +} diff --git a/KalturaClient/Classes/Core/KalturaAPIWorkaround.swift b/KalturaClient/Classes/Core/KalturaAPIWorkaround.swift new file mode 100644 index 000000000..595ce847e --- /dev/null +++ b/KalturaClient/Classes/Core/KalturaAPIWorkaround.swift @@ -0,0 +1,32 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + + +// householdDevices.list() returns `KalturaHouseholdDevice` objects tagged as `KalturaDevice`. +// This empty subclass allows NSClassFromString() to find the correct type. +open class Device: HouseholdDevice { } diff --git a/KalturaClient/Classes/Core/Request/ArrayRequestBuilder.swift b/KalturaClient/Classes/Core/Request/ArrayRequestBuilder.swift new file mode 100644 index 000000000..753c797d9 --- /dev/null +++ b/KalturaClient/Classes/Core/Request/ArrayRequestBuilder.swift @@ -0,0 +1,60 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ArrayRequestBuilder: RequestBuilder,U,G> { + + + public override func parse(_ response: Result) -> (data:Any?,exception: ApiException?) { + + var result: [T]? = nil + var exception: ApiException? = nil + + if response.error == nil { + do{ + result = try JSONParser.parse(array: response.data!) + } + catch let error { + exception = error as? ApiException + } + } + else { + exception = response.error + } + + + return (result, exception) + } + +} diff --git a/KalturaClient/Classes/Core/Request/ConnectionConfiguration.swift b/KalturaClient/Classes/Core/Request/ConnectionConfiguration.swift new file mode 100644 index 000000000..d0b8ea137 --- /dev/null +++ b/KalturaClient/Classes/Core/Request/ConnectionConfiguration.swift @@ -0,0 +1,47 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +var defaultTimeOut = 3.0 +var defaultRetryCount = 3 + +@objc public class ConnectionConfiguration: NSObject { + + @objc public var endPoint: URL = URL(string: "https://www.kaltura.com")! + @objc public var readTimeOut: Double = defaultTimeOut + @objc public var writeTimeOut: Double = defaultTimeOut + @objc public var connectTimeOut: Double = defaultTimeOut + @objc public var retryCount: Int = defaultRetryCount + @objc public var ignoreLocalCache: Bool = false +} diff --git a/KalturaClient/Classes/Core/Request/MultiRequestBuilder.swift b/KalturaClient/Classes/Core/Request/MultiRequestBuilder.swift new file mode 100644 index 000000000..81d627397 --- /dev/null +++ b/KalturaClient/Classes/Core/Request/MultiRequestBuilder.swift @@ -0,0 +1,185 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class MultiRequestBuilder: ArrayRequestBuilder { + + var requests = [RequestBuilderProtocol]() + + @discardableResult + public override func add(request: RequestBuilderProtocol) -> Self { + var subRequest = request + subRequest.index = requests.count + self.requests.append(request) + return self + } + + public override func getUrlTail() -> String { + return "/service/multirequest" + } + + + override public func build(_ client: Client) -> Request { + + for (index, request) in self.requests.enumerated() { + let indexKey = String(index+1) + request.setParam(key: "action", value: request.action) + request.setParam(key: "service", value: request.service) + setParam(key: indexKey, value: request.params) + for (key, requestFile) in request.files { + setFile(key: "\(indexKey):\(key)", value: requestFile) + } + } + + return super.build(client) + } + + public override func onComplete(_ response: Result) -> Void { + + // calling on complete of each request + var allResponse: [Any] = [] + if let dict = response.data as? [String: Any], let responses = dict["result"] as? [Any] { + allResponse = responses + } + else if let responses = response.data as? [Any]{ + allResponse = responses + } + + guard response.data != nil && response.error == nil && allResponse.count == self.requests.count else { + if let block = completion { + block(nil, response.error) + } + + return; + } + + var allParsedResponse = [Any?]() + for (index, request) in self.requests.enumerated() { + let singelResponse = allResponse[index] + let response = Result(data: singelResponse, error: response.error) + let parsed = request.parse(response) + request.complete(data: parsed.data, exception: parsed.exception) + allParsedResponse.append(parsed.exception ?? parsed.data ?? nil) + } + + if let block = completion { + block(allParsedResponse, response.error) + } + + return + } + + internal override func buildParamsAsData(params: [String: Any]) -> Data? + { + return self.params.sortedJsonData() + } + + private func link(params: [String: Any], keys: [String], token: String) -> [String: Any] { + var result = params + var keysArray = keys + let key = keysArray.removeFirst() + if keysArray.count > 0 { + if params[key] is [String : Any] { + result[key] = link(params: params[key] as! [String : Any], keys: keysArray, token: token) + } + else { + result[key] = link(params: [String : Any](), keys: keysArray, token: token) + } + } + else { + result[key] = token + } + return result + } + + //[user,childrebs,1,name] + public func link(tokenFromRespose: BaseTokenizedObject, tokenToRequest: BaseTokenizedObject) -> Self{ + + var request = self.requests[tokenToRequest.requestId] + let params = request.params + request.params = link(params: params, keys: tokenToRequest.tokens, token: tokenFromRespose.result) + + return self + } +} + + + +extension Dictionary where Key == String { + + func sortedJsonData() -> Data? { + + if isEmpty { + return "{}".data(using: .utf8) + } + + var result = "{" + + let sortedKeys = self.keys.sorted { $0.localizedStandardCompare($1) == .orderedAscending } + + for key in sortedKeys { + + let jsonObject = self[key]! + var jsonObjectString: String? = nil + if (JSONSerialization.isValidJSONObject(jsonObject)) { + do { + let jsonData = try JSONSerialization.data(withJSONObject: jsonObject) + jsonObjectString = String(data: jsonData, encoding: String.Encoding.utf8) + } catch { + + } + } else if let object = jsonObject as? String { + jsonObjectString = "\"\(object)\"" + } else if let object = jsonObject as? Int { + jsonObjectString = String(object) + } + + if let value = jsonObjectString { + result.append("\"\(key)\":") + result.append(value) + result.append(",") + } + } + + // Remove the trailing comma + result.removeLast() + result.append("}") + + return result.data(using: String.Encoding.utf8) + } +} + + + + diff --git a/KalturaClient/Classes/Core/Request/NullRequestBuilder.swift b/KalturaClient/Classes/Core/Request/NullRequestBuilder.swift new file mode 100644 index 000000000..c42476a7f --- /dev/null +++ b/KalturaClient/Classes/Core/Request/NullRequestBuilder.swift @@ -0,0 +1,53 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class NullRequestBuilder: RequestBuilder { + + public var completionWitError: ((_ error: ApiException?) -> Void)? + + public override func complete(data: Any?, exception: ApiException?) { + super.complete(data: data, exception: exception) + + if let block = completionWitError { + block(exception) + } + } + + @discardableResult + public func set(completionWitError: @escaping (_ error: ApiException?) -> Void) -> Self { + self.completionWitError = completionWitError + return self + } +} \ No newline at end of file diff --git a/KalturaClient/Classes/Core/Request/Request.swift b/KalturaClient/Classes/Core/Request/Request.swift new file mode 100644 index 000000000..fde449cfe --- /dev/null +++ b/KalturaClient/Classes/Core/Request/Request.swift @@ -0,0 +1,122 @@ +// +// Request.swift +// Pods +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +import MobileCoreServices + +public typealias CompletionClosures = (_ response: Result) -> Void + +public enum RequestMethod { + case get + case post + + /// The `RequestMethod` value, for example for get we need "GET" etc. + var value: String { + switch self { + case .get: return "GET" + case .post: return "POST" + } + } +} + +public protocol RequestFile { + var data: Data { get } + var name: String { get } + var mimeType: String { get } +} + +public struct RequestFileElement: RequestFile { + public var data: Data + public var name: String + public var mimeType: String + + public init?(url: URL) throws { + data = try Data(contentsOf: url); + name = url.lastPathComponent + mimeType = RequestFileElement.mimeTypeForPath(path: url.path) + } + + public init(data: Data, name: String, mimeType: String) { + self.data = data + self.name = name + self.mimeType = mimeType + } + + private static func mimeTypeForPath(path: String) -> String { + let url = NSURL(fileURLWithPath: path) + let pathExtension = url.pathExtension + + if let uti = UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension, pathExtension! as NSString, nil)?.takeRetainedValue() { + if let mimetype = UTTypeCopyPreferredTagWithClass(uti, kUTTagClassMIMEType)?.takeRetainedValue() { + return mimetype as String + } + } + return "application/octet-stream" + } +} + +public protocol Request { + + var requestId: String { get } + var method: RequestMethod? { get } + var url: URL { get } + var dataBody: Data? { get } + var files: [String: RequestFile] { get } + var headers: [String:String]? { get } + var timeout: Double { get } + var completion: CompletionClosures { get } + var configuration: ConnectionConfiguration { get } +} + +public struct RequestElement: Request { + + public var requestId: String + public var method: RequestMethod? + public var url: URL + public var dataBody: Data? + public var files: [String: RequestFile] + public var headers: [String:String]? + public var timeout: Double + public var completion: CompletionClosures + public var configuration: ConnectionConfiguration +} + + + + + + diff --git a/KalturaClient/Classes/Core/Request/RequestBuilder.swift b/KalturaClient/Classes/Core/Request/RequestBuilder.swift new file mode 100644 index 000000000..77a6431b7 --- /dev/null +++ b/KalturaClient/Classes/Core/Request/RequestBuilder.swift @@ -0,0 +1,266 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + + +public protocol RequestBuilderProtocol { + + var params: [String: Any] { get set } + var files: [String: RequestFile] { get set } + var requestId: String { get set } + var method: RequestMethod? { get set } + var headers: [String:String]? { get set } + var timeout: Double { get set } + var urlParams: [String: String]? { get set } + var service: String? { get set } + var action: String? { get set } + var index: Int { get set } + + + @discardableResult + func set(method: RequestMethod?) -> Self + + @discardableResult + func set(params:[String: Any]) -> Self + + @discardableResult + func set(headers: [String: String]?) -> Self + + @discardableResult + func add(headerKey:String, headerValue:String) -> Self + + @discardableResult + func setParam(key: String, value:Any?) -> Self + + @discardableResult + func setUrlParam(key: String, value:String) -> Self + + func build(_ client: Client) -> Request + + func parse(_ response: Result) -> (data:Any?,exception: ApiException?) + + func complete(data:Any?, exception: ApiException?) + +} + +public class RequestBuilder: RequestBuilderData, RequestBuilderProtocol { + public var files: [String: RequestFile] = [:] + + public lazy var requestId: String = { + return UUID().uuidString + }() + + public var method: RequestMethod? = nil + public var headers: [String:String]? = nil + public var timeout: Double = 3 + public var completion: ((_ response: T?, _ error: ApiException?) -> Void)? + public var urlParams: [String: String]? = nil + + public var service: String? + public var action: String? + public var index: Int = 0 + + public var responseTokenizer: U { + get { + return U.self.init(requestId:self.index) + } + } + + public var requestTokenizer: G { + get { + return G.self.init(requestId:self.index) + } + } + + public required override init() { + super.init() + + add(headerKey: "Content-Type", headerValue: "application/json") + add(headerKey: "Accept", headerValue: "application/json") + set(method: .post) + } + + public convenience init(service: String, action: String) { + self.init() + + self.service = service + self.action = action + } + + @discardableResult + public func set(method: RequestMethod?) -> Self{ + self.method = method + return self + } + + @discardableResult + public func set(params:[String: Any]) -> Self{ + self.params = params + return self + } + + @discardableResult + public func set(headers: [String: String]?) -> Self{ + self.headers = headers + return self + } + + @discardableResult + public func set(completion: @escaping (_ response: T?, _ error: ApiException?) -> Void) -> Self{ + self.completion = completion + return self + } + + @discardableResult + public func add(headerKey:String, headerValue:String) -> Self { + + if (self.headers == nil){ + self.headers = [String:String]() + } + + self.headers![headerKey] = headerValue + return self + } + + public func add(request: RequestBuilderProtocol) -> MultiRequestBuilder { + + let multiRequestBuilder = MultiRequestBuilder() + multiRequestBuilder.add(request: self) + multiRequestBuilder.add(request: request) + + return multiRequestBuilder + } + + @discardableResult + public func setFile(key: String, value:RequestFile?) -> Self { + + guard value != nil else { + return self + } + + self.files[key] = value + return self + } + + @discardableResult + public func setUrlParam(key: String, value:String) -> Self { + + if self.urlParams != nil { + self.urlParams![key] = value + } else { + self.urlParams = [key:value] + } + return self + } + + public func build(_ client: Client) -> Request { + + params["format"] = 1 // JSON + client.applyParams(self) + let bodyData = self.buildParamsAsData(params: self.params) + var url: URL = client.configuration.endPoint + let urlComponents = NSURLComponents() + urlComponents.host = url.host + urlComponents.scheme = url.scheme + urlComponents.path = url.path + "/api_v3" + self.getUrlTail() + if let port = url.port as NSNumber? { + urlComponents.port = port + } + + if let params = self.urlParams, params.count > 0 { + var queryItems = [URLQueryItem]() + for (key, value) in params { + queryItems.append(URLQueryItem(name: key, value: value)) + } + + urlComponents.queryItems = queryItems + } + url = urlComponents.url! + + return RequestElement(requestId: self.requestId, method:self.method , url: url, dataBody: bodyData, files: files, headers: self.headers, timeout: self.timeout, completion: self.onComplete, configuration: client.configuration) + } + + internal func getUrlTail() -> String { + return "/service/" + service! + "/action/" + action! + } + + internal func onComplete(_ response: Result) -> Void { + + let parsedResult = self.parse(response) + + complete(data: parsedResult.data, exception: parsedResult.exception) + } + + public func complete(data:Any?, exception: ApiException?) { + if let block = completion { + block(data as? T, exception) + } + } + + public func parse(_ response: Result) -> (data:Any?, exception: ApiException?) { + + var result: T? = nil + var exception: ApiException? = nil + + if response.error == nil { + do{ + result = try JSONParser.parse(json: response.data!) + } + catch let error { + exception = error as? ApiException + } + } + else { + exception = response.error + } + + + return (result, exception) + } + + internal func buildParamsAsData(params: [String:Any]) -> Data? { + + var bodyData: Data? = nil + do{ + bodyData = try JSONSerialization.data(withJSONObject: params) + } catch { + + } + + return bodyData + } + + + +} diff --git a/KalturaClient/Classes/Core/Request/RequestBuilderData.swift b/KalturaClient/Classes/Core/Request/RequestBuilderData.swift new file mode 100644 index 000000000..a067c82a1 --- /dev/null +++ b/KalturaClient/Classes/Core/Request/RequestBuilderData.swift @@ -0,0 +1,54 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@objc public class RequestBuilderData: NSObject { + public var params: [String: Any] = [:] + + @discardableResult + public func setParam(key: String, value: Any?) -> Self { + + guard let value = value else { return self } + + if let value = value as? ObjectBase { + self.params[key] = value.toDictionary() + } else if let value = value as? [ObjectBase] { + self.params[key] = value.map { $0.toDictionary() } + } else { + self.params[key] = value + } + + return self + } +} diff --git a/KalturaClient/Classes/Core/Response/JSONParser.swift b/KalturaClient/Classes/Core/Response/JSONParser.swift new file mode 100644 index 000000000..771145e30 --- /dev/null +++ b/KalturaClient/Classes/Core/Response/JSONParser.swift @@ -0,0 +1,222 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +internal class JSONParser{ + + private static var kalturaRegex:NSRegularExpression? + private static var moduleName:String? + + // handling reflection: + private static func getKalturaRegex() -> NSRegularExpression? { + if kalturaRegex == nil { + do{ + kalturaRegex = try NSRegularExpression(pattern: "^Kaltura") + } + catch { + } + } + return kalturaRegex + } + + private static func getModuleName() -> String { + if moduleName == nil { + let className = NSStringFromClass(self) as NSString + moduleName = className.components(separatedBy: ".").first! + } + + return moduleName! + } + + private static func getObjectType(_ objectType: String) -> ObjectBase.Type? { + if let regex = getKalturaRegex() { + let className = regex.stringByReplacingMatches(in: objectType, options: NSRegularExpression.MatchingOptions(), range: NSMakeRange(0, 10), withTemplate: "") + + let fullClassName = "\(getModuleName()).\(className)" + let classType = NSClassFromString(fullClassName) as? ObjectBase.Type + return classType + } + + return nil + } + + //MARK -- parse methods: + + // parse array of objects + internal static func parse(array: [Any]) throws -> [T] where T: ObjectBase { + var ret: [T] = [] + for item in array { + ret.append(try parse(object: item as! [String: Any])) + } + return ret + } + + // I think this is useless + internal static func parse(array: [Any], type: Array.Type) throws -> T? { + var ret = type.init() + for item in array { + ret.append(try parse(object: item as! [String: Any])) + } + return ret as? T + } + + // parse map of objects + internal static func parse(map: [String: Any]) throws -> [String: T] where T: ObjectBase { + var ret: [String: T] = [:] + + for (key, item) in map { + ret[key] = try parse(object: item as! [String: Any]) + } + return ret + } + + // parse dictinoary of object + internal static func parse(object: [String: Any]) throws -> T where T: ObjectBase { + return try parse(object: object, type: T.self) + } + + // parse response + internal static func parse(object: [String: Any], type: ObjectBase.Type) throws -> T where T: ObjectBase { + + var classType: ObjectBase.Type = type + if let objectType = object["objectType"] as? String { + classType = getObjectType(objectType) ?? type + } + else { + if let result = object["result"] as? [String: Any] { + return try self.parse(object: result, type: type) + } + else if let error = object["error"] as? [String: Any] { + throw try parse(object: error) as ApiException + } + } + + + let obj: ObjectBase = classType.init() + try obj.populate(object) + + return obj as! T + } + + internal static func parse(data: Data) throws -> Any { + do{ + let json = try JSONSerialization.jsonObject(with: data, options: JSONSerialization.ReadingOptions.allowFragments) + return json + } + catch { + throw ApiClientException(message: "Failed to deserialize JSON", code: ApiClientException.ErrorCode.invalidJson) + } + } + + internal static func parse(primitive: Any, type: Any) throws -> Any? { + if let str = primitive as? String { + return str + }else if type is Int64.Type { + return primitive as? Int64 + }else if type is Int.Type { + return primitive as? Int + }else if let bool = primitive as? Bool { + return bool + }else if let double = primitive as? Double { + return double + } + else if primitive is Void { + return nil + } + else if let dict = primitive as? [String: Any]{ + if let result = dict["result"] { + return try self.parse(primitive: result, type: type) + } + else if let error = dict["error"] as? [String: Any] { + throw try parse(object: error) as ApiException + } + } + + throw ApiClientException(message: "Type not found", code: ApiClientException.ErrorCode.typeNotFound) + } + + + + internal static func parse(array: Any) throws -> [T]? { + if let dict = array as? [String: Any] { + if dict["objectType"] as? String == "KalturaAPIException" { + throw try parse(object: dict) as ApiException + } + + if let result = dict["result"] { + return try parse(array: result) + } + else if let error = dict["error"] { + return try parse(array: error) + }else{ + throw ApiClientException(message: "JSON is not valid object", code: ApiClientException.ErrorCode.invalidJsonObject) + } + } + else if let arr = array as? [Any] { + return try parse(array: arr) as? [T] + } + else{ + throw ApiClientException(message: "JSON is not of object", code: ApiClientException.ErrorCode.invalidJsonObject) + } + + + } + internal static func parse(json: Any) throws -> T? { + + if let dict = json as? [String: Any], dict["objectType"] as? String == "KalturaAPIException" { + throw try parse(object: dict) as ApiException + } + if let type: ObjectBase.Type = T.self as? ObjectBase.Type { + if let dict = json as? [String: Any] { + return try parse(object: dict, type: type) as? T + } + else { + throw ApiClientException(message: "JSON is not of object", code: ApiClientException.ErrorCode.invalidJsonObject) + } + } + else if let _ = T.self as? Void.Type { + if let dict = json as? [String: Any], + let result = dict["result"] as? [String: Any], + let error = result["error"] as? [String: Any], + error["objectType"] as? String == "KalturaAPIException" { + throw try parse(object: dict) as ApiException + } + + return nil + } + else { + return try self.parse(primitive: json, type: T.self) as? T + } + } +} diff --git a/KalturaClient/Classes/Core/Response/Result.swift b/KalturaClient/Classes/Core/Response/Result.swift new file mode 100644 index 000000000..02c11e795 --- /dev/null +++ b/KalturaClient/Classes/Core/Response/Result.swift @@ -0,0 +1,53 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class Result: NSObject { + + public var data: Any? = nil + public var error: ApiException? = nil + + public init(data:Any?, error:ApiException?) { + self.data = data + self.error = error + } + + public convenience init(data: Any) { + self.init(data: data, error: nil) + } + + public convenience init(error: ApiException) { + self.init(data: nil, error: error) + } +} diff --git a/KalturaClient/Classes/Core/Response/Tokenizer.swift b/KalturaClient/Classes/Core/Response/Tokenizer.swift new file mode 100644 index 000000000..e5a583ed2 --- /dev/null +++ b/KalturaClient/Classes/Core/Response/Tokenizer.swift @@ -0,0 +1,60 @@ +// +// Tokenizer.swift +// Pods +// +// Created by Rivka Peleg on 10/08/2017. +// +// + +import UIKit + +public class BaseTokenizedObject { + + internal var requestId: Int = 0 + internal var tokens = [String]() + + public required init(requestId: Int) { + self.requestId = requestId + } + + public convenience required init(_ object:BaseTokenizedObject) { + self.init(requestId: object.requestId) + self.tokens.append(contentsOf: object.tokens) + } + + public var result: String { get { + var token = "{\(requestId + 1):result" + if tokens.count > 0 { + token.append(":" + tokens.joined(separator: ":")) + } + token.append("}") + return token + } + } + + @discardableResult + internal func append(_ string: String) -> BaseTokenizedObject { + let tokenizedObject = BaseTokenizedObject(self) + tokenizedObject.tokens.append(string) + return tokenizedObject + } + +} + + +public class ArrayTokenizedObject: BaseTokenizedObject { + + public subscript(index: Int) -> T { + return T.self.init(self.append("\(index)")) + } + +} + +public class DictionaryTokenizedObject: BaseTokenizedObject { + + public subscript(key: String) -> T { + return T.self.init(self.append("\(key)")) + } + +} + diff --git a/KalturaClient/Classes/Core/Session/SessionManager.swift b/KalturaClient/Classes/Core/Session/SessionManager.swift new file mode 100644 index 000000000..dd0b358c3 --- /dev/null +++ b/KalturaClient/Classes/Core/Session/SessionManager.swift @@ -0,0 +1,190 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +@objc public class SessionManager: NSObject { + + public enum SessionManagerError: Error{ + case failedToGetKS + case failedToGetLoginResponse + case failedToRefreshKS + case failedToBuildRefreshRequest + case invalidRefreshCallResponse + case noRefreshTokenOrTokenToRefresh + case failedToParseResponse + case ksExpired + } + + @objc public var partnerId: Int + + private var executor: RequestExecutor + + private var ks: String? = nil + private var tokenExpiration: Date? + + private var username: String? + private var password: String? + + private let defaultSessionExpiry = TimeInterval(24*60*60) + + private var client:Client + + public init(client: Client, partnerId: Int, executor: RequestExecutor?) { + self.client = client + self.partnerId = partnerId + + if let exe = executor { + self.executor = exe + } else { + self.executor = USRExecutor.shared + } + } + + @objc public convenience init(client: Client, partnerId: Int) { + self.init(client: client, partnerId: partnerId, executor: nil) + } + + @available(*, deprecated, message: "Use init(serverURL:partnerId:executor:)") + public convenience init(client: Client, version: String, partnerId: Int, executor: RequestExecutor?) { + self.init(client: client, partnerId: partnerId, executor: executor) + } + + public func loadKS(completion: @escaping (String?, Error?) -> Void){ + if let ks = self.ks, self.tokenExpiration?.compare(Date()) == ComparisonResult.orderedDescending { + completion(ks, nil) + } else { + + self.ks = nil + if let username = self.username, + let password = self.password { + + self.startSession(username: username, + password: password, completion: { (e:Error?) in + self.ensureKSAfterRefresh(e: e, completion: completion) + }) + } + else { + + self.startAnonymousSession(completion: { (e:Error?) in + self.ensureKSAfterRefresh(e: e, completion: completion) + }) + } + } + } + + + func ensureKSAfterRefresh(e:Error?,completion: @escaping (String?, Error?) -> Void) -> Void { + if let ks = self.ks { + completion(ks, nil) + } else if let error = e { + completion(nil, error) + } else { + completion(nil, SessionManagerError.ksExpired) + } + } + + public func startAnonymousSession(completion:@escaping (_ error: Error?) -> Void) -> Void { + /* + let loginRequestBuilder = SessionService.startWidgetSession(widgetId: "_\(self.partnerId)") + .set(completion: { (startWidgetSessionResponse: StartWidgetSessionResponse?, error: ApiException?) in + +// if let data = r.data { +// var result: OVPBaseObject? = nil +// do { +// result = try OVPResponseParser.parse(data:data) +// if let widgetSession = result as? OVPStartWidgetSessionResponse { +// self.ks = widgetSession.ks +// self.tokenExpiration = Date(timeIntervalSinceNow:self.defaultSessionExpiry ) +// completion(nil) +// +// }else{ +// completion(SessionManagerError.failedToGetKS) +// } +// +// }catch{ +// completion(error) +// } +// }else{ +// completion(SessionManagerError.failedToGetLoginResponse) +// } + }) + + let request = loginRequestBuilder.build(client) + self.executor.send(request: request) + */ + } + + public func startSession(username: String, password: String, completion: @escaping (_ error: Error?) -> Void) -> Void { + /* + self.username = username + self.password = password + + let loginRequestBuilder = UserService.loginByLoginId( + loginId: username, + password: password, + partnerId: self.partnerId) + + let sessionGetRequest = SessionService.get(session:"{1:result}") + let mrb = MultiRequestBuilder() + .add(request: loginRequestBuilder) + .add(request: sessionGetRequest) + .set(completion: { (responses:[Any]?, err: ApiException?) in + +// if let data = r.data +// { +// +// guard let arrayResult = data as? [Any], +// arrayResult.count == 2 +// else { +// completion(SessionManagerError.failedToParseResponse) +// return +// } +// +// let sessionInfo = OVPKalturaSessionInfo(json: arrayResult[1]) +// self.ks = arrayResult[0] as? String +// self.tokenExpiration = sessionInfo?.expiry +// completion(nil) +// +// +// } else { +// completion(SessionManagerError.failedToGetLoginResponse) +// } + }) + + + let request = mrb.build(client) + self.executor.send(request: request) + */ + } +} diff --git a/KalturaClient/Classes/Logs/KalturaClientLog.swift b/KalturaClient/Classes/Logs/KalturaClientLog.swift new file mode 100644 index 000000000..0670759e7 --- /dev/null +++ b/KalturaClient/Classes/Logs/KalturaClientLog.swift @@ -0,0 +1,189 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +import Log + + +/** + Logger instance, use this macro to log all over the project. + + ## Example: + logger.error("Object was not initialized") + + When the default implementor is assigned the above line will print: + KalturaClient: [2017-07-30 10:51:37.284] ViewController.viewDidLoad():24 ERROR: Object was not initialized â�Œ + */ +public let logger = KalturaLogger(logger: KalturaClientLogImplementor()) + + + +/** + Log level types + */ +public enum LogLevel { + case trace, debug, info, warning, error +} + + +/** + KalturaClientLogProtocol - a protocol which represent a logger that can be used by the "Logger" class. + */ +public protocol KalturaClientLogProtocol { + + var enabled: Bool {set get} + var minLevel: LogLevel {set get} + func log(_ level: LogLevel, message: Any, file: String, line: Int, column: Int, function: String) +} + + +/** + KalturaLogger - Logger class that designed to be a warpper class to a logger implementor. + Initialized by the KalturaClientLogProtocol which represent any implementation of logging that can be replaced in the future. + */ +public class KalturaLogger { + private var logger: KalturaClientLogProtocol + + init(logger: KalturaClientLogProtocol) { + self.logger = logger + } + + public func trace(_ message: Any, file: String = #file, line: Int = #line, column: Int = #column, function: String = #function){ + logger.log(.trace, message: message, file: file, line: line, column: column, function: function) + } + + public func debug(_ message: Any, file: String = #file, line: Int = #line, column: Int = #column, function: String = #function){ + logger.log(.debug, message: message, file: file, line: line, column: column, function: function) + } + + public func info(_ message: Any, file: String = #file, line: Int = #line, column: Int = #column, function: String = #function){ + logger.log(.info, message: message, file: file, line: line, column: column, function: function) + } + + public func warning(_ message: Any, file: String = #file, line: Int = #line, column: Int = #column, function: String = #function){ + logger.log(.warning, message: message, file: file, line: line, column: column, function: function) + } + + public func error(_ message: Any, file: String = #file, line: Int = #line, column: Int = #column, function: String = #function){ + logger.log(.error, message: message, file: file, line: line, column: column, function: function) + } + + public func isLoggerEnabled(isEnabled:Bool){ + logger.enabled = isEnabled + } + + public func setloggerMinLevel(minLevel: LogLevel){ + logger.minLevel = minLevel + } +} + +/** + Logger implementor - using "Log" framework + */ +private class KalturaClientLogImplementor: KalturaClientLogProtocol { + + private let logger = Logger(formatter: .KalturaFormatter, theme: nil) + + public var enabled: Bool { + get { + return logger.enabled + } + set(value) { + logger.enabled = value + } + } + + public var minLevel: LogLevel{ + get{ + return toLogLevel(level: logger.minLevel) + } + set (value){ + logger.minLevel = toLevel(level: value) + } + } + + func log(_ level: LogLevel, message: Any, file: String , line: Int , column: Int , function: String ){ + + switch level { + case .trace: + logger.trace(message, terminator:" ✉ï¸� \n", file: file, line: line, column: column, function: function) + case .debug: + logger.debug(message, terminator:" 🛠 \n", file: file, line: line, column: column, function: function) + case .info: + logger.info(message, terminator:" 💡 \n", file: file, line: line, column: column, function: function) + case .warning: + logger.warning(message, terminator:" 👆 \n", file: file, line: line, column: column, function: function) + case .error: + logger.error(message, terminator:" â�Œ \n", file: file, line: line, column: column, function: function) + } + } + + + + func toLevel(level:LogLevel) -> Level { + switch level { + case .trace: return .trace + case .debug: return .debug + case .info: return .info + case .warning: return .warning + case .error: return .error + } + } + + func toLogLevel(level: Level) -> LogLevel { + switch level { + case .trace: return .trace + case .debug: return .debug + case .info: return .info + case .warning: return .warning + case .error: return .error + } + } +} + +extension Formatters { + static let KalturaFormatter = Formatter("KalturaClient: [%@] %@.%@:%@ %@: %@", [ + .date("yyyy-MM-dd HH:mm:ss.SSS"), + .file(fullPath: false, fileExtension: false), + .function, + .line, + .level, + .message + ]) +} + + + + + diff --git a/KalturaClient/Classes/Model/ApiException.swift b/KalturaClient/Classes/Model/ApiException.swift new file mode 100644 index 000000000..bebd6ea4a --- /dev/null +++ b/KalturaClient/Classes/Model/ApiException.swift @@ -0,0 +1,85 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public class ApiException : ObjectBase, Error{ + public var message: String? + public var code: String? + public var args: [ApiExceptionArg]? + + public required init() { + super.init() + } + + public convenience init(message: String, code: String, args: [ApiExceptionArg]) { + self.init() + + self.message = message + self.code = code + self.args = args + } + + public convenience init(message: String, code: String) { + self.init(message: message, code: code, args: []) + } + + internal override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + message = dict["message"] as? String + code = dict["code"] as? String + if let argsDict = dict["args"] as? [String: String] { + args = [] + for (key, value) in argsDict { + let arg = ApiExceptionArg() + arg.name = key + arg.value = value + } + } + } +} + +public class ApiClientException : ApiException { + + public enum ErrorCode: String { + case typeNotFound = "TYPE_NOT_FOUND" + case invalidJson = "INVALID_JSON" + case invalidJsonObject = "INVALID_JSON_OBJECT" + case httpError = "HTTP_ERROR" + } + + public convenience init(message: String, code: ErrorCode) { + self.init(message: message, code: code.rawValue) + } +} diff --git a/KalturaClient/Classes/Model/Enums/AdsPolicy.swift b/KalturaClient/Classes/Model/Enums/AdsPolicy.swift new file mode 100644 index 000000000..45a0570bb --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AdsPolicy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AdsPolicy: String { + case NO_ADS = "NO_ADS" + case KEEP_ADS = "KEEP_ADS" +} diff --git a/KalturaClient/Classes/Model/Enums/AggregationCountOrderBy.swift b/KalturaClient/Classes/Model/Enums/AggregationCountOrderBy.swift new file mode 100644 index 000000000..16fad984f --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AggregationCountOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AggregationCountOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/AggregationType.swift b/KalturaClient/Classes/Model/Enums/AggregationType.swift new file mode 100644 index 000000000..097b1e88a --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AggregationType.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AggregationType: String { + case COUNT = "Count" + case SUM = "Sum" + case AVG = "Avg" +} diff --git a/KalturaClient/Classes/Model/Enums/AnnouncementOrderBy.swift b/KalturaClient/Classes/Model/Enums/AnnouncementOrderBy.swift new file mode 100644 index 000000000..d08b2cc2b --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AnnouncementOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AnnouncementOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/AnnouncementRecipientsType.swift b/KalturaClient/Classes/Model/Enums/AnnouncementRecipientsType.swift new file mode 100644 index 000000000..903c74c88 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AnnouncementRecipientsType.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AnnouncementRecipientsType: String { + case ALL = "All" + case LOGGEDIN = "LoggedIn" + case GUESTS = "Guests" + case OTHER = "Other" +} diff --git a/KalturaClient/Classes/Model/Enums/AnnouncementStatus.swift b/KalturaClient/Classes/Model/Enums/AnnouncementStatus.swift new file mode 100644 index 000000000..d1a7afb62 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AnnouncementStatus.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AnnouncementStatus: String { + case NOTSENT = "NotSent" + case SENDING = "Sending" + case SENT = "Sent" + case ABORTED = "Aborted" +} diff --git a/KalturaClient/Classes/Model/Enums/AppTokenHashType.swift b/KalturaClient/Classes/Model/Enums/AppTokenHashType.swift new file mode 100644 index 000000000..a75a6767f --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AppTokenHashType.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AppTokenHashType: String { + case SHA1 = "SHA1" + case SHA256 = "SHA256" + case SHA512 = "SHA512" + case MD5 = "MD5" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetCommentOrderBy.swift b/KalturaClient/Classes/Model/Enums/AssetCommentOrderBy.swift new file mode 100644 index 000000000..026db58d4 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetCommentOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetCommentOrderBy: String { + case CREATE_DATE_DESC = "CREATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetFilePpvOrderBy.swift b/KalturaClient/Classes/Model/Enums/AssetFilePpvOrderBy.swift new file mode 100644 index 000000000..ce9bc1648 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetFilePpvOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetFilePpvOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetHistoryOrderBy.swift b/KalturaClient/Classes/Model/Enums/AssetHistoryOrderBy.swift new file mode 100644 index 000000000..5df41e430 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetHistoryOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetHistoryOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetImagePerRatioOrderBy.swift b/KalturaClient/Classes/Model/Enums/AssetImagePerRatioOrderBy.swift new file mode 100644 index 000000000..db4f4add1 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetImagePerRatioOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetImagePerRatioOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetIndexStatus.swift b/KalturaClient/Classes/Model/Enums/AssetIndexStatus.swift new file mode 100644 index 000000000..c7f9eba5a --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetIndexStatus.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetIndexStatus: String { + case OK = "Ok" + case DELETED = "Deleted" + case NOTUPDATED = "NotUpdated" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetInheritancePolicy.swift b/KalturaClient/Classes/Model/Enums/AssetInheritancePolicy.swift new file mode 100644 index 000000000..86310c6e2 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetInheritancePolicy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetInheritancePolicy: String { + case ENABLE = "Enable" + case DISABLE = "Disable" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetLifeCycleRuleActionType.swift b/KalturaClient/Classes/Model/Enums/AssetLifeCycleRuleActionType.swift new file mode 100644 index 000000000..00aaaabc3 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetLifeCycleRuleActionType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetLifeCycleRuleActionType: String { + case ADD = "ADD" + case REMOVE = "REMOVE" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetLifeCycleRuleTransitionType.swift b/KalturaClient/Classes/Model/Enums/AssetLifeCycleRuleTransitionType.swift new file mode 100644 index 000000000..e353872a2 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetLifeCycleRuleTransitionType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetLifeCycleRuleTransitionType: String { + case TAG = "TAG" + case BUSINESS_MODEL = "BUSINESS_MODEL" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetOrderBy.swift b/KalturaClient/Classes/Model/Enums/AssetOrderBy.swift new file mode 100644 index 000000000..319fefd3e --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetOrderBy.swift @@ -0,0 +1,46 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetOrderBy: String { + case RELEVANCY_DESC = "RELEVANCY_DESC" + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" + case VIEWS_DESC = "VIEWS_DESC" + case RATINGS_DESC = "RATINGS_DESC" + case VOTES_DESC = "VOTES_DESC" + case START_DATE_DESC = "START_DATE_DESC" + case START_DATE_ASC = "START_DATE_ASC" + case LIKES_DESC = "LIKES_DESC" + case CREATE_DATE_ASC = "CREATE_DATE_ASC" + case CREATE_DATE_DESC = "CREATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetReferenceType.swift b/KalturaClient/Classes/Model/Enums/AssetReferenceType.swift new file mode 100644 index 000000000..fe83c602a --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetReferenceType.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetReferenceType: String { + case MEDIA = "media" + case EPG_INTERNAL = "epg_internal" + case EPG_EXTERNAL = "epg_external" + case NPVR = "npvr" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetReminderOrderBy.swift b/KalturaClient/Classes/Model/Enums/AssetReminderOrderBy.swift new file mode 100644 index 000000000..7eff8490d --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetReminderOrderBy.swift @@ -0,0 +1,44 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetReminderOrderBy: String { + case RELEVANCY_DESC = "RELEVANCY_DESC" + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" + case VIEWS_DESC = "VIEWS_DESC" + case RATINGS_DESC = "RATINGS_DESC" + case VOTES_DESC = "VOTES_DESC" + case START_DATE_DESC = "START_DATE_DESC" + case START_DATE_ASC = "START_DATE_ASC" + case LIKES_DESC = "LIKES_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetRuleOrderBy.swift b/KalturaClient/Classes/Model/Enums/AssetRuleOrderBy.swift new file mode 100644 index 000000000..d0112a235 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetRuleOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetRuleOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetRuleStatus.swift b/KalturaClient/Classes/Model/Enums/AssetRuleStatus.swift new file mode 100644 index 000000000..fb87b1c58 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetRuleStatus.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetRuleStatus: String { + case READY = "READY" + case IN_PROGRESS = "IN_PROGRESS" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetStructMetaOrderBy.swift b/KalturaClient/Classes/Model/Enums/AssetStructMetaOrderBy.swift new file mode 100644 index 000000000..693fed528 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetStructMetaOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetStructMetaOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetStructOrderBy.swift b/KalturaClient/Classes/Model/Enums/AssetStructOrderBy.swift new file mode 100644 index 000000000..480b960db --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetStructOrderBy.swift @@ -0,0 +1,43 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetStructOrderBy: String { + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" + case SYSTEM_NAME_ASC = "SYSTEM_NAME_ASC" + case SYSTEM_NAME_DESC = "SYSTEM_NAME_DESC" + case CREATE_DATE_ASC = "CREATE_DATE_ASC" + case CREATE_DATE_DESC = "CREATE_DATE_DESC" + case UPDATE_DATE_ASC = "UPDATE_DATE_ASC" + case UPDATE_DATE_DESC = "UPDATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetType.swift b/KalturaClient/Classes/Model/Enums/AssetType.swift new file mode 100644 index 000000000..1b683aae7 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetType.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetType: String { + case MEDIA = "media" + case RECORDING = "recording" + case EPG = "epg" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetUserRuleOrderBy.swift b/KalturaClient/Classes/Model/Enums/AssetUserRuleOrderBy.swift new file mode 100644 index 000000000..8c358c0ef --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetUserRuleOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum AssetUserRuleOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/BillingAction.swift b/KalturaClient/Classes/Model/Enums/BillingAction.swift new file mode 100644 index 000000000..2a4a6e45d --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/BillingAction.swift @@ -0,0 +1,41 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BillingAction: String { + case UNKNOWN = "unknown" + case PURCHASE = "purchase" + case RENEW_PAYMENT = "renew_payment" + case RENEW_CANCELED_SUBSCRIPTION = "renew_canceled_subscription" + case CANCEL_SUBSCRIPTION_ORDER = "cancel_subscription_order" + case SUBSCRIPTION_DATE_CHANGED = "subscription_date_changed" +} diff --git a/KalturaClient/Classes/Model/Enums/BillingItemsType.swift b/KalturaClient/Classes/Model/Enums/BillingItemsType.swift new file mode 100644 index 000000000..cee65f2ec --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/BillingItemsType.swift @@ -0,0 +1,41 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BillingItemsType: String { + case UNKNOWN = "unknown" + case PPV = "ppv" + case SUBSCRIPTION = "subscription" + case PRE_PAID = "pre_paid" + case PRE_PAID_EXPIRED = "pre_paid_expired" + case COLLECTION = "collection" +} diff --git a/KalturaClient/Classes/Model/Enums/BillingPriceType.swift b/KalturaClient/Classes/Model/Enums/BillingPriceType.swift new file mode 100644 index 000000000..90f6481b8 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/BillingPriceType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BillingPriceType: String { + case FULLPERIOD = "FullPeriod" + case PARTIALPERIOD = "PartialPeriod" +} diff --git a/KalturaClient/Classes/Model/Enums/BookmarkActionType.swift b/KalturaClient/Classes/Model/Enums/BookmarkActionType.swift new file mode 100644 index 000000000..b3230eb26 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/BookmarkActionType.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BookmarkActionType: String { + case HIT = "HIT" + case PLAY = "PLAY" + case STOP = "STOP" + case PAUSE = "PAUSE" + case FIRST_PLAY = "FIRST_PLAY" + case SWOOSH = "SWOOSH" + case FULL_SCREEN = "FULL_SCREEN" + case SEND_TO_FRIEND = "SEND_TO_FRIEND" + case LOAD = "LOAD" + case FULL_SCREEN_EXIT = "FULL_SCREEN_EXIT" + case FINISH = "FINISH" + case ERROR = "ERROR" + case BITRATE_CHANGE = "BITRATE_CHANGE" + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/BookmarkOrderBy.swift b/KalturaClient/Classes/Model/Enums/BookmarkOrderBy.swift new file mode 100644 index 000000000..1f69e2a0c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/BookmarkOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BookmarkOrderBy: String { + case POSITION_ASC = "POSITION_ASC" + case POSITION_DESC = "POSITION_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/BulkUploadJobAction.swift b/KalturaClient/Classes/Model/Enums/BulkUploadJobAction.swift new file mode 100644 index 000000000..51be45d1a --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/BulkUploadJobAction.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BulkUploadJobAction: String { + case UPSERT = "Upsert" + case DELETE = "Delete" +} diff --git a/KalturaClient/Classes/Model/Enums/BulkUploadJobStatus.swift b/KalturaClient/Classes/Model/Enums/BulkUploadJobStatus.swift new file mode 100644 index 000000000..d4e702947 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/BulkUploadJobStatus.swift @@ -0,0 +1,45 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BulkUploadJobStatus: String { + case PENDING = "Pending" + case UPLOADED = "Uploaded" + case QUEUED = "Queued" + case PARSING = "Parsing" + case PROCESSING = "Processing" + case PROCESSED = "Processed" + case SUCCESS = "Success" + case PARTIAL = "Partial" + case FAILED = "Failed" + case FATAL = "Fatal" +} diff --git a/KalturaClient/Classes/Model/Enums/BulkUploadOrderBy.swift b/KalturaClient/Classes/Model/Enums/BulkUploadOrderBy.swift new file mode 100644 index 000000000..35517ecbf --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/BulkUploadOrderBy.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BulkUploadOrderBy: String { + case NONE = "NONE" + case UPDATE_DATE_ASC = "UPDATE_DATE_ASC" + case UPDATE_DATE_DESC = "UPDATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/BulkUploadResultStatus.swift b/KalturaClient/Classes/Model/Enums/BulkUploadResultStatus.swift new file mode 100644 index 000000000..328c209b3 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/BulkUploadResultStatus.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BulkUploadResultStatus: String { + case ERROR = "Error" + case OK = "Ok" + case INPROGRESS = "InProgress" +} diff --git a/KalturaClient/Classes/Model/Enums/BundleType.swift b/KalturaClient/Classes/Model/Enums/BundleType.swift new file mode 100644 index 000000000..6d2485288 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/BundleType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum BundleType: String { + case SUBSCRIPTION = "subscription" + case COLLECTION = "collection" +} diff --git a/KalturaClient/Classes/Model/Enums/CategoryItemOrderBy.swift b/KalturaClient/Classes/Model/Enums/CategoryItemOrderBy.swift new file mode 100644 index 000000000..def9e948f --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/CategoryItemOrderBy.swift @@ -0,0 +1,42 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CategoryItemOrderBy: String { + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" + case CREATE_DATE_ASC = "CREATE_DATE_ASC" + case CREATE_DATE_DESC = "CREATE_DATE_DESC" + case NONE = "NONE" + case UPDATE_DATE_ASC = "UPDATE_DATE_ASC" + case UPDATE_DATE_DESC = "UPDATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/ChannelEnrichment.swift b/KalturaClient/Classes/Model/Enums/ChannelEnrichment.swift new file mode 100644 index 000000000..f1b8e83a8 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ChannelEnrichment.swift @@ -0,0 +1,43 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ChannelEnrichment: String { + case CLIENTLOCATION = "ClientLocation" + case USERID = "UserId" + case HOUSEHOLDID = "HouseholdId" + case DEVICEID = "DeviceId" + case DEVICETYPE = "DeviceType" + case UTCOFFSET = "UTCOffset" + case LANGUAGE = "Language" + case DTTREGION = "DTTRegion" +} diff --git a/KalturaClient/Classes/Model/Enums/ChannelOrderBy.swift b/KalturaClient/Classes/Model/Enums/ChannelOrderBy.swift new file mode 100644 index 000000000..8bc565201 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ChannelOrderBy.swift @@ -0,0 +1,47 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ChannelOrderBy: String { + case ORDER_NUM = "ORDER_NUM" + case RELEVANCY_DESC = "RELEVANCY_DESC" + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" + case VIEWS_DESC = "VIEWS_DESC" + case RATINGS_DESC = "RATINGS_DESC" + case VOTES_DESC = "VOTES_DESC" + case START_DATE_DESC = "START_DATE_DESC" + case START_DATE_ASC = "START_DATE_ASC" + case LIKES_DESC = "LIKES_DESC" + case CREATE_DATE_ASC = "CREATE_DATE_ASC" + case CREATE_DATE_DESC = "CREATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/ChannelType.swift b/KalturaClient/Classes/Model/Enums/ChannelType.swift new file mode 100644 index 000000000..8b2304bdb --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ChannelType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ChannelType: String { + case INTERNAL = "Internal" + case EXTERNAL = "External" +} diff --git a/KalturaClient/Classes/Model/Enums/ChannelsOrderBy.swift b/KalturaClient/Classes/Model/Enums/ChannelsOrderBy.swift new file mode 100644 index 000000000..90a655181 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ChannelsOrderBy.swift @@ -0,0 +1,40 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ChannelsOrderBy: String { + case NONE = "NONE" + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" + case CREATE_DATE_ASC = "CREATE_DATE_ASC" + case CREATE_DATE_DESC = "CREATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/CollectionOrderBy.swift b/KalturaClient/Classes/Model/Enums/CollectionOrderBy.swift new file mode 100644 index 000000000..2287dae6d --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/CollectionOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CollectionOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/CompensationType.swift b/KalturaClient/Classes/Model/Enums/CompensationType.swift new file mode 100644 index 000000000..a5bffc99c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/CompensationType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CompensationType: String { + case PERCENTAGE = "PERCENTAGE" + case FIXED_AMOUNT = "FIXED_AMOUNT" +} diff --git a/KalturaClient/Classes/Model/Enums/ConcurrencyLimitationType.swift b/KalturaClient/Classes/Model/Enums/ConcurrencyLimitationType.swift new file mode 100644 index 000000000..7052ff972 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ConcurrencyLimitationType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ConcurrencyLimitationType: String { + case SINGLE = "Single" + case GROUP = "Group" +} diff --git a/KalturaClient/Classes/Model/Enums/ConfigurationGroupDeviceOrderBy.swift b/KalturaClient/Classes/Model/Enums/ConfigurationGroupDeviceOrderBy.swift new file mode 100644 index 000000000..4d5563ca8 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ConfigurationGroupDeviceOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ConfigurationGroupDeviceOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/ConfigurationGroupTagOrderBy.swift b/KalturaClient/Classes/Model/Enums/ConfigurationGroupTagOrderBy.swift new file mode 100644 index 000000000..a30a19d76 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ConfigurationGroupTagOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ConfigurationGroupTagOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/ConfigurationsOrderBy.swift b/KalturaClient/Classes/Model/Enums/ConfigurationsOrderBy.swift new file mode 100644 index 000000000..e46368235 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ConfigurationsOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ConfigurationsOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/ContentAction.swift b/KalturaClient/Classes/Model/Enums/ContentAction.swift new file mode 100644 index 000000000..c4ac2875d --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ContentAction.swift @@ -0,0 +1,42 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ContentAction: String { + case WATCH_LINEAR = "watch_linear" + case WATCH_VOD = "watch_vod" + case CATCHUP = "catchup" + case NPVR = "npvr" + case FAVORITE = "favorite" + case RECORDING = "recording" + case SOCIAL_ACTION = "social_action" +} diff --git a/KalturaClient/Classes/Model/Enums/ContentActionConditionLengthType.swift b/KalturaClient/Classes/Model/Enums/ContentActionConditionLengthType.swift new file mode 100644 index 000000000..148276059 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ContentActionConditionLengthType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ContentActionConditionLengthType: String { + case MINUTES = "minutes" + case PERCENTAGE = "percentage" +} diff --git a/KalturaClient/Classes/Model/Enums/ContextType.swift b/KalturaClient/Classes/Model/Enums/ContextType.swift new file mode 100644 index 000000000..1446a3d89 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ContextType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ContextType: String { + case NONE = "none" + case RECORDING = "recording" +} diff --git a/KalturaClient/Classes/Model/Enums/CountryOrderBy.swift b/KalturaClient/Classes/Model/Enums/CountryOrderBy.swift new file mode 100644 index 000000000..91caeaa96 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/CountryOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CountryOrderBy: String { + case NAME_ASC = "NAME_ASC" +} diff --git a/KalturaClient/Classes/Model/Enums/CouponGroupType.swift b/KalturaClient/Classes/Model/Enums/CouponGroupType.swift new file mode 100644 index 000000000..0a63d8a91 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/CouponGroupType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CouponGroupType: String { + case COUPON = "COUPON" + case GIFT_CARD = "GIFT_CARD" +} diff --git a/KalturaClient/Classes/Model/Enums/CouponStatus.swift b/KalturaClient/Classes/Model/Enums/CouponStatus.swift new file mode 100644 index 000000000..d9eb12026 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/CouponStatus.swift @@ -0,0 +1,40 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CouponStatus: String { + case VALID = "VALID" + case NOT_EXISTS = "NOT_EXISTS" + case ALREADY_USED = "ALREADY_USED" + case EXPIRED = "EXPIRED" + case INACTIVE = "INACTIVE" +} diff --git a/KalturaClient/Classes/Model/Enums/CurrencyOrderBy.swift b/KalturaClient/Classes/Model/Enums/CurrencyOrderBy.swift new file mode 100644 index 000000000..4c12a9b77 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/CurrencyOrderBy.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum CurrencyOrderBy: String { + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" + case CODE_ASC = "CODE_ASC" + case CODE_DESC = "CODE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/DeleteMediaPolicy.swift b/KalturaClient/Classes/Model/Enums/DeleteMediaPolicy.swift new file mode 100644 index 000000000..2ae6a0fc6 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/DeleteMediaPolicy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DeleteMediaPolicy: String { + case DISABLE = "Disable" + case DELETE = "Delete" +} diff --git a/KalturaClient/Classes/Model/Enums/DeviceStatus.swift b/KalturaClient/Classes/Model/Enums/DeviceStatus.swift new file mode 100644 index 000000000..4f16a194f --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/DeviceStatus.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DeviceStatus: String { + case PENDING = "PENDING" + case ACTIVATED = "ACTIVATED" + case NOT_ACTIVATED = "NOT_ACTIVATED" +} diff --git a/KalturaClient/Classes/Model/Enums/DowngradePolicy.swift b/KalturaClient/Classes/Model/Enums/DowngradePolicy.swift new file mode 100644 index 000000000..3179ece1d --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/DowngradePolicy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DowngradePolicy: String { + case LIFO = "LIFO" + case FIFO = "FIFO" +} diff --git a/KalturaClient/Classes/Model/Enums/DrmSchemeName.swift b/KalturaClient/Classes/Model/Enums/DrmSchemeName.swift new file mode 100644 index 000000000..20babb7ec --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/DrmSchemeName.swift @@ -0,0 +1,41 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DrmSchemeName: String { + case PLAYREADY_CENC = "PLAYREADY_CENC" + case WIDEVINE_CENC = "WIDEVINE_CENC" + case FAIRPLAY = "FAIRPLAY" + case WIDEVINE = "WIDEVINE" + case PLAYREADY = "PLAYREADY" + case CUSTOM_DRM = "CUSTOM_DRM" +} diff --git a/KalturaClient/Classes/Model/Enums/DurationUnit.swift b/KalturaClient/Classes/Model/Enums/DurationUnit.swift new file mode 100644 index 000000000..71f81937a --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/DurationUnit.swift @@ -0,0 +1,40 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum DurationUnit: String { + case MINUTES = "Minutes" + case HOURS = "Hours" + case DAYS = "Days" + case MONTHS = "Months" + case YEARS = "Years" +} diff --git a/KalturaClient/Classes/Model/Enums/EngagementOrderBy.swift b/KalturaClient/Classes/Model/Enums/EngagementOrderBy.swift new file mode 100644 index 000000000..77950b1e6 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/EngagementOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EngagementOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/EngagementType.swift b/KalturaClient/Classes/Model/Enums/EngagementType.swift new file mode 100644 index 000000000..79f3f34d7 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/EngagementType.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EngagementType: String { + case CHURN = "Churn" +} diff --git a/KalturaClient/Classes/Model/Enums/EntitlementOrderBy.swift b/KalturaClient/Classes/Model/Enums/EntitlementOrderBy.swift new file mode 100644 index 000000000..10a379444 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/EntitlementOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EntitlementOrderBy: String { + case PURCHASE_DATE_ASC = "PURCHASE_DATE_ASC" + case PURCHASE_DATE_DESC = "PURCHASE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/EntityReferenceBy.swift b/KalturaClient/Classes/Model/Enums/EntityReferenceBy.swift new file mode 100644 index 000000000..690f500ff --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/EntityReferenceBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EntityReferenceBy: String { + case USER = "user" + case HOUSEHOLD = "household" +} diff --git a/KalturaClient/Classes/Model/Enums/EventNotificationOrderBy.swift b/KalturaClient/Classes/Model/Enums/EventNotificationOrderBy.swift new file mode 100644 index 000000000..7053699b9 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/EventNotificationOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EventNotificationOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/EventNotificationStatus.swift b/KalturaClient/Classes/Model/Enums/EventNotificationStatus.swift new file mode 100644 index 000000000..0a2a39825 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/EventNotificationStatus.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EventNotificationStatus: String { + case SENT = "SENT" + case FAILED = "FAILED" + case SUCCESS = "SUCCESS" + case FAILED_TO_SEND = "FAILED_TO_SEND" +} diff --git a/KalturaClient/Classes/Model/Enums/EvictionPolicyType.swift b/KalturaClient/Classes/Model/Enums/EvictionPolicyType.swift new file mode 100644 index 000000000..57dd0b581 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/EvictionPolicyType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum EvictionPolicyType: String { + case FIFO = "FIFO" + case LIFO = "LIFO" +} diff --git a/KalturaClient/Classes/Model/Enums/ExportDataType.swift b/KalturaClient/Classes/Model/Enums/ExportDataType.swift new file mode 100644 index 000000000..7596746b4 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ExportDataType.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ExportDataType: String { + case VOD = "vod" + case EPG = "epg" + case USERS = "users" +} diff --git a/KalturaClient/Classes/Model/Enums/ExportTaskOrderBy.swift b/KalturaClient/Classes/Model/Enums/ExportTaskOrderBy.swift new file mode 100644 index 000000000..fb5225bfa --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ExportTaskOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ExportTaskOrderBy: String { + case CREATE_DATE_ASC = "CREATE_DATE_ASC" + case CREATE_DATE_DESC = "CREATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/ExportType.swift b/KalturaClient/Classes/Model/Enums/ExportType.swift new file mode 100644 index 000000000..2e05ba394 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ExportType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ExportType: String { + case FULL = "full" + case INCREMENTAL = "incremental" +} diff --git a/KalturaClient/Classes/Model/Enums/ExternalChannelProfileOrderBy.swift b/KalturaClient/Classes/Model/Enums/ExternalChannelProfileOrderBy.swift new file mode 100644 index 000000000..c4d6d74e1 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ExternalChannelProfileOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ExternalChannelProfileOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/ExternalRecordingResponseProfileOrderBy.swift b/KalturaClient/Classes/Model/Enums/ExternalRecordingResponseProfileOrderBy.swift new file mode 100644 index 000000000..63abdcc23 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ExternalRecordingResponseProfileOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ExternalRecordingResponseProfileOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/FavoriteOrderBy.swift b/KalturaClient/Classes/Model/Enums/FavoriteOrderBy.swift new file mode 100644 index 000000000..b493b6cce --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/FavoriteOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum FavoriteOrderBy: String { + case CREATE_DATE_ASC = "CREATE_DATE_ASC" + case CREATE_DATE_DESC = "CREATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/FollowTvSeriesOrderBy.swift b/KalturaClient/Classes/Model/Enums/FollowTvSeriesOrderBy.swift new file mode 100644 index 000000000..61bdc1f15 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/FollowTvSeriesOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum FollowTvSeriesOrderBy: String { + case START_DATE_DESC = "START_DATE_DESC" + case START_DATE_ASC = "START_DATE_ASC" +} diff --git a/KalturaClient/Classes/Model/Enums/GroupByField.swift b/KalturaClient/Classes/Model/Enums/GroupByField.swift new file mode 100644 index 000000000..1d8d3c5f6 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/GroupByField.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum GroupByField: String { + case MEDIA_TYPE_ID = "media_type_id" +} diff --git a/KalturaClient/Classes/Model/Enums/GroupByOrder.swift b/KalturaClient/Classes/Model/Enums/GroupByOrder.swift new file mode 100644 index 000000000..814fe676d --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/GroupByOrder.swift @@ -0,0 +1,40 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum GroupByOrder: String { + case DEFAULTORDER = "defaultOrder" + case COUNT_ASC = "count_asc" + case COUNT_DESC = "count_desc" + case VALUE_ASC = "value_asc" + case VALUE_DESC = "value_desc" +} diff --git a/KalturaClient/Classes/Model/Enums/HouseholdCouponOrderBy.swift b/KalturaClient/Classes/Model/Enums/HouseholdCouponOrderBy.swift new file mode 100644 index 000000000..8255596c5 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/HouseholdCouponOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdCouponOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/HouseholdDeviceOrderBy.swift b/KalturaClient/Classes/Model/Enums/HouseholdDeviceOrderBy.swift new file mode 100644 index 000000000..8446202ae --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/HouseholdDeviceOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdDeviceOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/HouseholdFrequencyType.swift b/KalturaClient/Classes/Model/Enums/HouseholdFrequencyType.swift new file mode 100644 index 000000000..503a0b54f --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/HouseholdFrequencyType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdFrequencyType: String { + case DEVICES = "devices" + case USERS = "users" +} diff --git a/KalturaClient/Classes/Model/Enums/HouseholdPaymentGatewaySelectedBy.swift b/KalturaClient/Classes/Model/Enums/HouseholdPaymentGatewaySelectedBy.swift new file mode 100644 index 000000000..ec941f5bb --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/HouseholdPaymentGatewaySelectedBy.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdPaymentGatewaySelectedBy: String { + case NONE = "none" + case ACCOUNT = "account" + case HOUSEHOLD = "household" +} diff --git a/KalturaClient/Classes/Model/Enums/HouseholdRestriction.swift b/KalturaClient/Classes/Model/Enums/HouseholdRestriction.swift new file mode 100644 index 000000000..a3d86e37e --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/HouseholdRestriction.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdRestriction: String { + case NOT_RESTRICTED = "not_restricted" + case USER_MASTER_RESTRICTED = "user_master_restricted" + case DEVICE_MASTER_RESTRICTED = "device_master_restricted" + case DEVICE_USER_MASTER_RESTRICTED = "device_user_master_restricted" +} diff --git a/KalturaClient/Classes/Model/Enums/HouseholdSegmentOrderBy.swift b/KalturaClient/Classes/Model/Enums/HouseholdSegmentOrderBy.swift new file mode 100644 index 000000000..f13172742 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/HouseholdSegmentOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdSegmentOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/HouseholdState.swift b/KalturaClient/Classes/Model/Enums/HouseholdState.swift new file mode 100644 index 000000000..4502453b6 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/HouseholdState.swift @@ -0,0 +1,40 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdState: String { + case OK = "ok" + case CREATED_WITHOUT_NPVR_ACCOUNT = "created_without_npvr_account" + case SUSPENDED = "suspended" + case NO_USERS_IN_HOUSEHOLD = "no_users_in_household" + case PENDING = "pending" +} diff --git a/KalturaClient/Classes/Model/Enums/HouseholdSuspensionState.swift b/KalturaClient/Classes/Model/Enums/HouseholdSuspensionState.swift new file mode 100644 index 000000000..9b908816e --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/HouseholdSuspensionState.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdSuspensionState: String { + case NOT_SUSPENDED = "NOT_SUSPENDED" + case SUSPENDED = "SUSPENDED" +} diff --git a/KalturaClient/Classes/Model/Enums/HouseholdUserOrderBy.swift b/KalturaClient/Classes/Model/Enums/HouseholdUserOrderBy.swift new file mode 100644 index 000000000..e8c7b0f52 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/HouseholdUserOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdUserOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/HouseholdUserStatus.swift b/KalturaClient/Classes/Model/Enums/HouseholdUserStatus.swift new file mode 100644 index 000000000..1e8bd3d5f --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/HouseholdUserStatus.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum HouseholdUserStatus: String { + case OK = "OK" + case PENDING = "PENDING" +} diff --git a/KalturaClient/Classes/Model/Enums/ImageObjectType.swift b/KalturaClient/Classes/Model/Enums/ImageObjectType.swift new file mode 100644 index 000000000..084799106 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ImageObjectType.swift @@ -0,0 +1,42 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ImageObjectType: String { + case MEDIA_ASSET = "MEDIA_ASSET" + case PROGRAM_ASSET = "PROGRAM_ASSET" + case CHANNEL = "CHANNEL" + case CATEGORY = "CATEGORY" + case PARTNER = "PARTNER" + case IMAGE_TYPE = "IMAGE_TYPE" + case PROGRAM_GROUP = "PROGRAM_GROUP" +} diff --git a/KalturaClient/Classes/Model/Enums/ImageOrderBy.swift b/KalturaClient/Classes/Model/Enums/ImageOrderBy.swift new file mode 100644 index 000000000..4b4bb1347 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ImageOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ImageOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/ImageStatus.swift b/KalturaClient/Classes/Model/Enums/ImageStatus.swift new file mode 100644 index 000000000..f77566559 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ImageStatus.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ImageStatus: String { + case PENDING = "PENDING" + case READY = "READY" + case FAILED = "FAILED" +} diff --git a/KalturaClient/Classes/Model/Enums/ImageTypeOrderBy.swift b/KalturaClient/Classes/Model/Enums/ImageTypeOrderBy.swift new file mode 100644 index 000000000..e17591b72 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ImageTypeOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ImageTypeOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/InboxMessageOrderBy.swift b/KalturaClient/Classes/Model/Enums/InboxMessageOrderBy.swift new file mode 100644 index 000000000..9158772ec --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/InboxMessageOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum InboxMessageOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/InboxMessageStatus.swift b/KalturaClient/Classes/Model/Enums/InboxMessageStatus.swift new file mode 100644 index 000000000..d27b87804 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/InboxMessageStatus.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum InboxMessageStatus: String { + case UNREAD = "Unread" + case READ = "Read" + case DELETED = "Deleted" +} diff --git a/KalturaClient/Classes/Model/Enums/InboxMessageType.swift b/KalturaClient/Classes/Model/Enums/InboxMessageType.swift new file mode 100644 index 000000000..fbb1d3858 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/InboxMessageType.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum InboxMessageType: String { + case SYSTEMANNOUNCEMENT = "SystemAnnouncement" + case FOLLOWED = "Followed" + case ENGAGEMENT = "Engagement" + case INTEREST = "Interest" +} diff --git a/KalturaClient/Classes/Model/Enums/IngestProfileAutofillPolicy.swift b/KalturaClient/Classes/Model/Enums/IngestProfileAutofillPolicy.swift new file mode 100644 index 000000000..b833f9e50 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/IngestProfileAutofillPolicy.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum IngestProfileAutofillPolicy: String { + case REJECT = "REJECT" + case AUTOFILL = "AUTOFILL" + case KEEP_HOLES = "KEEP_HOLES" +} diff --git a/KalturaClient/Classes/Model/Enums/IngestProfileOverlapPolicy.swift b/KalturaClient/Classes/Model/Enums/IngestProfileOverlapPolicy.swift new file mode 100644 index 000000000..09e51adb5 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/IngestProfileOverlapPolicy.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum IngestProfileOverlapPolicy: String { + case REJECT = "REJECT" + case CUT_SOURCE = "CUT_SOURCE" + case CUT_TARGET = "CUT_TARGET" +} diff --git a/KalturaClient/Classes/Model/Enums/IotOrderBy.swift b/KalturaClient/Classes/Model/Enums/IotOrderBy.swift new file mode 100644 index 000000000..8b2782084 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/IotOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum IotOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/IotProfileOrderBy.swift b/KalturaClient/Classes/Model/Enums/IotProfileOrderBy.swift new file mode 100644 index 000000000..e681107f1 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/IotProfileOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum IotProfileOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/KalturaLogLevel.swift b/KalturaClient/Classes/Model/Enums/KalturaLogLevel.swift new file mode 100644 index 000000000..3d788055c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/KalturaLogLevel.swift @@ -0,0 +1,41 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum KalturaLogLevel: String { + case TRACE = "TRACE" + case DEBUG = "DEBUG" + case INFO = "INFO" + case WARN = "WARN" + case ERROR = "ERROR" + case ALL = "ALL" +} diff --git a/KalturaClient/Classes/Model/Enums/LanguageOrderBy.swift b/KalturaClient/Classes/Model/Enums/LanguageOrderBy.swift new file mode 100644 index 000000000..0dcfd4ca1 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/LanguageOrderBy.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum LanguageOrderBy: String { + case SYSTEM_NAME_ASC = "SYSTEM_NAME_ASC" + case SYSTEM_NAME_DESC = "SYSTEM_NAME_DESC" + case CODE_ASC = "CODE_ASC" + case CODE_DESC = "CODE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/LinearChannelType.swift b/KalturaClient/Classes/Model/Enums/LinearChannelType.swift new file mode 100644 index 000000000..8c6086e6f --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/LinearChannelType.swift @@ -0,0 +1,40 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum LinearChannelType: String { + case UNKNOWN = "UNKNOWN" + case DTT = "DTT" + case OTT = "OTT" + case DTT_AND_OTT = "DTT_AND_OTT" + case VRM_EXPORT = "VRM_EXPORT" +} diff --git a/KalturaClient/Classes/Model/Enums/MathemticalOperatorType.swift b/KalturaClient/Classes/Model/Enums/MathemticalOperatorType.swift new file mode 100644 index 000000000..e347c1a5d --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/MathemticalOperatorType.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MathemticalOperatorType: String { + case COUNT = "count" + case SUM = "sum" + case AVG = "avg" +} diff --git a/KalturaClient/Classes/Model/Enums/MediaFileOrderBy.swift b/KalturaClient/Classes/Model/Enums/MediaFileOrderBy.swift new file mode 100644 index 000000000..a23cd57ca --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/MediaFileOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MediaFileOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/MediaFileStreamerType.swift b/KalturaClient/Classes/Model/Enums/MediaFileStreamerType.swift new file mode 100644 index 000000000..741f9fa1c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/MediaFileStreamerType.swift @@ -0,0 +1,40 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MediaFileStreamerType: String { + case APPLE_HTTP = "APPLE_HTTP" + case MPEG_DASH = "MPEG_DASH" + case URL = "URL" + case SMOOTH_STREAMING = "SMOOTH_STREAMING" + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/MediaFileTypeQuality.swift b/KalturaClient/Classes/Model/Enums/MediaFileTypeQuality.swift new file mode 100644 index 000000000..e5bc9b655 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/MediaFileTypeQuality.swift @@ -0,0 +1,40 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MediaFileTypeQuality: String { + case ADAPTIVE = "ADAPTIVE" + case SD = "SD" + case HD_720 = "HD_720" + case HD_1080 = "HD_1080" + case UHD_4K = "UHD_4K" +} diff --git a/KalturaClient/Classes/Model/Enums/MessageTemplateType.swift b/KalturaClient/Classes/Model/Enums/MessageTemplateType.swift new file mode 100644 index 000000000..8be797616 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/MessageTemplateType.swift @@ -0,0 +1,41 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MessageTemplateType: String { + case SERIES = "Series" + case REMINDER = "Reminder" + case CHURN = "Churn" + case SERIESREMINDER = "SeriesReminder" + case INTERESTVOD = "InterestVod" + case INTERESTEPG = "InterestEPG" +} diff --git a/KalturaClient/Classes/Model/Enums/MetaDataType.swift b/KalturaClient/Classes/Model/Enums/MetaDataType.swift new file mode 100644 index 000000000..c8d9e7df5 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/MetaDataType.swift @@ -0,0 +1,41 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MetaDataType: String { + case STRING = "STRING" + case MULTILINGUAL_STRING = "MULTILINGUAL_STRING" + case NUMBER = "NUMBER" + case BOOLEAN = "BOOLEAN" + case DATE = "DATE" + case RELEATED_ENTITY = "RELEATED_ENTITY" +} diff --git a/KalturaClient/Classes/Model/Enums/MetaOrderBy.swift b/KalturaClient/Classes/Model/Enums/MetaOrderBy.swift new file mode 100644 index 000000000..4469c481e --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/MetaOrderBy.swift @@ -0,0 +1,43 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MetaOrderBy: String { + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" + case SYSTEM_NAME_ASC = "SYSTEM_NAME_ASC" + case SYSTEM_NAME_DESC = "SYSTEM_NAME_DESC" + case CREATE_DATE_ASC = "CREATE_DATE_ASC" + case CREATE_DATE_DESC = "CREATE_DATE_DESC" + case UPDATE_DATE_ASC = "UPDATE_DATE_ASC" + case UPDATE_DATE_DESC = "UPDATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/MetaTagOrderBy.swift b/KalturaClient/Classes/Model/Enums/MetaTagOrderBy.swift new file mode 100644 index 000000000..a835ed28c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/MetaTagOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MetaTagOrderBy: String { + case META_ASC = "META_ASC" + case META_DESC = "META_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/MonetizationType.swift b/KalturaClient/Classes/Model/Enums/MonetizationType.swift new file mode 100644 index 000000000..70cb29d32 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/MonetizationType.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum MonetizationType: String { + case PPV = "ppv" + case SUBSCRIPTION = "subscription" + case BOXSET = "boxset" +} diff --git a/KalturaClient/Classes/Model/Enums/NotificationType.swift b/KalturaClient/Classes/Model/Enums/NotificationType.swift new file mode 100644 index 000000000..c011628b7 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/NotificationType.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum NotificationType: String { + case ANNOUNCEMENT = "announcement" + case SYSTEM = "system" + case REMINDER = "Reminder" + case SERIES_REMINDER = "series_reminder" +} diff --git a/KalturaClient/Classes/Model/Enums/OTTUserOrderBy.swift b/KalturaClient/Classes/Model/Enums/OTTUserOrderBy.swift new file mode 100644 index 000000000..7e89e1f4c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/OTTUserOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum OTTUserOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/ObjectVirtualAssetInfoType.swift b/KalturaClient/Classes/Model/Enums/ObjectVirtualAssetInfoType.swift new file mode 100644 index 000000000..cd4eb7305 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ObjectVirtualAssetInfoType.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ObjectVirtualAssetInfoType: String { + case SUBSCRIPTION = "Subscription" + case SEGMENT = "Segment" + case CATEGORY = "Category" +} diff --git a/KalturaClient/Classes/Model/Enums/ParentalRuleOrderBy.swift b/KalturaClient/Classes/Model/Enums/ParentalRuleOrderBy.swift new file mode 100644 index 000000000..662517152 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ParentalRuleOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ParentalRuleOrderBy: String { + case PARTNER_SORT_VALUE = "PARTNER_SORT_VALUE" +} diff --git a/KalturaClient/Classes/Model/Enums/ParentalRuleType.swift b/KalturaClient/Classes/Model/Enums/ParentalRuleType.swift new file mode 100644 index 000000000..5fa3d2ce6 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ParentalRuleType.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ParentalRuleType: String { + case ALL = "ALL" + case MOVIES = "MOVIES" + case TV_SERIES = "TV_SERIES" +} diff --git a/KalturaClient/Classes/Model/Enums/PartnerConfigurationOrderBy.swift b/KalturaClient/Classes/Model/Enums/PartnerConfigurationOrderBy.swift new file mode 100644 index 000000000..61c0f9b82 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PartnerConfigurationOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PartnerConfigurationOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/PartnerConfigurationType.swift b/KalturaClient/Classes/Model/Enums/PartnerConfigurationType.swift new file mode 100644 index 000000000..b3374c944 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PartnerConfigurationType.swift @@ -0,0 +1,44 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PartnerConfigurationType: String { + case DEFAULTPAYMENTGATEWAY = "DefaultPaymentGateway" + case ENABLEPAYMENTGATEWAYSELECTION = "EnablePaymentGatewaySelection" + case OSSADAPTER = "OSSAdapter" + case CONCURRENCY = "Concurrency" + case GENERAL = "General" + case OBJECTVIRTUALASSET = "ObjectVirtualAsset" + case COMMERCE = "Commerce" + case PLAYBACK = "Playback" + case PAYMENT = "Payment" +} diff --git a/KalturaClient/Classes/Model/Enums/PasswordPolicyOrderBy.swift b/KalturaClient/Classes/Model/Enums/PasswordPolicyOrderBy.swift new file mode 100644 index 000000000..d9517ac57 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PasswordPolicyOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PasswordPolicyOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/PaymentMethodProfileOrderBy.swift b/KalturaClient/Classes/Model/Enums/PaymentMethodProfileOrderBy.swift new file mode 100644 index 000000000..9447557f0 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PaymentMethodProfileOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PaymentMethodProfileOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/PaymentMethodType.swift b/KalturaClient/Classes/Model/Enums/PaymentMethodType.swift new file mode 100644 index 000000000..8b71be834 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PaymentMethodType.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PaymentMethodType: String { + case UNKNOWN = "unknown" + case CREDIT_CARD = "credit_card" + case SMS = "sms" + case PAY_PAL = "pay_pal" + case DEBIT_CARD = "debit_card" + case IDEAL = "ideal" + case INCASO = "incaso" + case GIFT = "gift" + case VISA = "visa" + case MASTER_CARD = "master_card" + case IN_APP = "in_app" + case M1 = "m1" + case CHANGE_SUBSCRIPTION = "change_subscription" + case OFFLINE = "offline" +} diff --git a/KalturaClient/Classes/Model/Enums/PermissionOrderBy.swift b/KalturaClient/Classes/Model/Enums/PermissionOrderBy.swift new file mode 100644 index 000000000..e57172993 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PermissionOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PermissionOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/PermissionType.swift b/KalturaClient/Classes/Model/Enums/PermissionType.swift new file mode 100644 index 000000000..774718917 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PermissionType.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PermissionType: String { + case NORMAL = "NORMAL" + case GROUP = "GROUP" + case SPECIAL_FEATURE = "SPECIAL_FEATURE" +} diff --git a/KalturaClient/Classes/Model/Enums/PersonalFeedOrderBy.swift b/KalturaClient/Classes/Model/Enums/PersonalFeedOrderBy.swift new file mode 100644 index 000000000..0139ba9ee --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PersonalFeedOrderBy.swift @@ -0,0 +1,43 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PersonalFeedOrderBy: String { + case RELEVANCY_DESC = "RELEVANCY_DESC" + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" + case VIEWS_DESC = "VIEWS_DESC" + case RATINGS_DESC = "RATINGS_DESC" + case VOTES_DESC = "VOTES_DESC" + case START_DATE_DESC = "START_DATE_DESC" + case START_DATE_ASC = "START_DATE_ASC" +} diff --git a/KalturaClient/Classes/Model/Enums/PersonalListOrderBy.swift b/KalturaClient/Classes/Model/Enums/PersonalListOrderBy.swift new file mode 100644 index 000000000..c495987fa --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PersonalListOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PersonalListOrderBy: String { + case CREATE_DATE_DESC = "CREATE_DATE_DESC" + case CREATE_DATE_ASC = "CREATE_DATE_ASC" +} diff --git a/KalturaClient/Classes/Model/Enums/PinType.swift b/KalturaClient/Classes/Model/Enums/PinType.swift new file mode 100644 index 000000000..1f9df4bae --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PinType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PinType: String { + case PURCHASE = "purchase" + case PARENTAL = "parental" +} diff --git a/KalturaClient/Classes/Model/Enums/Platform.swift b/KalturaClient/Classes/Model/Enums/Platform.swift new file mode 100644 index 000000000..61c1a87e4 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/Platform.swift @@ -0,0 +1,42 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum Platform: String { + case ANDROID = "Android" + case IOS = "iOS" + case WINDOWSPHONE = "WindowsPhone" + case BLACKBERRY = "Blackberry" + case STB = "STB" + case CTV = "CTV" + case OTHER = "Other" +} diff --git a/KalturaClient/Classes/Model/Enums/PlaybackContextType.swift b/KalturaClient/Classes/Model/Enums/PlaybackContextType.swift new file mode 100644 index 000000000..79b3ca6fc --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PlaybackContextType.swift @@ -0,0 +1,40 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PlaybackContextType: String { + case TRAILER = "TRAILER" + case CATCHUP = "CATCHUP" + case START_OVER = "START_OVER" + case PLAYBACK = "PLAYBACK" + case DOWNLOAD = "DOWNLOAD" +} diff --git a/KalturaClient/Classes/Model/Enums/PlaybackProfileOrderBy.swift b/KalturaClient/Classes/Model/Enums/PlaybackProfileOrderBy.swift new file mode 100644 index 000000000..c8edf47d3 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PlaybackProfileOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PlaybackProfileOrderBy: String { + case NAME_ASC = "NAME_ASC" +} diff --git a/KalturaClient/Classes/Model/Enums/PositionOwner.swift b/KalturaClient/Classes/Model/Enums/PositionOwner.swift new file mode 100644 index 000000000..8a1509fc6 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PositionOwner.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PositionOwner: String { + case HOUSEHOLD = "household" + case USER = "user" +} diff --git a/KalturaClient/Classes/Model/Enums/PpvOrderBy.swift b/KalturaClient/Classes/Model/Enums/PpvOrderBy.swift new file mode 100644 index 000000000..46736926b --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PpvOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PpvOrderBy: String { + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/PriceDetailsOrderBy.swift b/KalturaClient/Classes/Model/Enums/PriceDetailsOrderBy.swift new file mode 100644 index 000000000..3eb578521 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PriceDetailsOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PriceDetailsOrderBy: String { + case NAME_ASC = "NAME_ASC" +} diff --git a/KalturaClient/Classes/Model/Enums/PricePlanOrderBy.swift b/KalturaClient/Classes/Model/Enums/PricePlanOrderBy.swift new file mode 100644 index 000000000..3a303a26d --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PricePlanOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PricePlanOrderBy: String { + case CREATE_DATE_DESC = "CREATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/ProductPriceOrderBy.swift b/KalturaClient/Classes/Model/Enums/ProductPriceOrderBy.swift new file mode 100644 index 000000000..679a56e62 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ProductPriceOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ProductPriceOrderBy: String { + case PRODUCT_ID_ASC = "PRODUCT_ID_ASC" + case PRODUCT_ID_DESC = "PRODUCT_ID_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/ProtectionPolicy.swift b/KalturaClient/Classes/Model/Enums/ProtectionPolicy.swift new file mode 100644 index 000000000..0eaf02c7c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ProtectionPolicy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ProtectionPolicy: String { + case EXTENDINGRECORDINGLIFETIME = "ExtendingRecordingLifetime" + case LIMITEDBYRECORDINGLIFETIME = "LimitedByRecordingLifetime" +} diff --git a/KalturaClient/Classes/Model/Enums/PurchaseSettingsType.swift b/KalturaClient/Classes/Model/Enums/PurchaseSettingsType.swift new file mode 100644 index 000000000..27f71afa8 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PurchaseSettingsType.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PurchaseSettingsType: String { + case BLOCK = "block" + case ASK = "ask" + case ALLOW = "allow" +} diff --git a/KalturaClient/Classes/Model/Enums/PurchaseStatus.swift b/KalturaClient/Classes/Model/Enums/PurchaseStatus.swift new file mode 100644 index 000000000..6d037f0c2 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PurchaseStatus.swift @@ -0,0 +1,50 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum PurchaseStatus: String { + case PPV_PURCHASED = "ppv_purchased" + case FREE = "free" + case FOR_PURCHASE_SUBSCRIPTION_ONLY = "for_purchase_subscription_only" + case SUBSCRIPTION_PURCHASED = "subscription_purchased" + case FOR_PURCHASE = "for_purchase" + case SUBSCRIPTION_PURCHASED_WRONG_CURRENCY = "subscription_purchased_wrong_currency" + case PRE_PAID_PURCHASED = "pre_paid_purchased" + case GEO_COMMERCE_BLOCKED = "geo_commerce_blocked" + case ENTITLED_TO_PREVIEW_MODULE = "entitled_to_preview_module" + case FIRST_DEVICE_LIMITATION = "first_device_limitation" + case COLLECTION_PURCHASED = "collection_purchased" + case USER_SUSPENDED = "user_suspended" + case NOT_FOR_PURCHASE = "not_for_purchase" + case INVALID_CURRENCY = "invalid_currency" + case CURRENCY_NOT_DEFINED_ON_PRICE_CODE = "currency_not_defined_on_price_code" +} diff --git a/KalturaClient/Classes/Model/Enums/QuotaOveragePolicy.swift b/KalturaClient/Classes/Model/Enums/QuotaOveragePolicy.swift new file mode 100644 index 000000000..a78a15672 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/QuotaOveragePolicy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum QuotaOveragePolicy: String { + case STOPATQUOTA = "StopAtQuota" + case FIFOAUTODELETE = "FIFOAutoDelete" +} diff --git a/KalturaClient/Classes/Model/Enums/RecordingContextOrderBy.swift b/KalturaClient/Classes/Model/Enums/RecordingContextOrderBy.swift new file mode 100644 index 000000000..9411403b3 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/RecordingContextOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RecordingContextOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/RecordingOrderBy.swift b/KalturaClient/Classes/Model/Enums/RecordingOrderBy.swift new file mode 100644 index 000000000..ada338d9e --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/RecordingOrderBy.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RecordingOrderBy: String { + case TITLE_ASC = "TITLE_ASC" + case TITLE_DESC = "TITLE_DESC" + case START_DATE_ASC = "START_DATE_ASC" + case START_DATE_DESC = "START_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/RecordingStatus.swift b/KalturaClient/Classes/Model/Enums/RecordingStatus.swift new file mode 100644 index 000000000..e7f6040c7 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/RecordingStatus.swift @@ -0,0 +1,41 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RecordingStatus: String { + case SCHEDULED = "SCHEDULED" + case RECORDING = "RECORDING" + case RECORDED = "RECORDED" + case CANCELED = "CANCELED" + case FAILED = "FAILED" + case DELETED = "DELETED" +} diff --git a/KalturaClient/Classes/Model/Enums/RecordingType.swift b/KalturaClient/Classes/Model/Enums/RecordingType.swift new file mode 100644 index 000000000..5e4bf55c9 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/RecordingType.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RecordingType: String { + case SINGLE = "SINGLE" + case SEASON = "SEASON" + case SERIES = "SERIES" + case ORIGINALBROADCAST = "OriginalBroadcast" +} diff --git a/KalturaClient/Classes/Model/Enums/RegionOrderBy.swift b/KalturaClient/Classes/Model/Enums/RegionOrderBy.swift new file mode 100644 index 000000000..6e3ad508f --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/RegionOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RegionOrderBy: String { + case CREATE_DATE_ASC = "CREATE_DATE_ASC" + case CREATE_DATE_DESC = "CREATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/RelatedEntityType.swift b/KalturaClient/Classes/Model/Enums/RelatedEntityType.swift new file mode 100644 index 000000000..b9af6fa02 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/RelatedEntityType.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RelatedEntityType: String { + case CHANNEL = "CHANNEL" + case EXTERNAL_CHANNEL = "EXTERNAL_CHANNEL" + case MEDIA = "MEDIA" + case PROGRAM = "PROGRAM" +} diff --git a/KalturaClient/Classes/Model/Enums/ReminderType.swift b/KalturaClient/Classes/Model/Enums/ReminderType.swift new file mode 100644 index 000000000..213f48d01 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ReminderType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ReminderType: String { + case ASSET = "ASSET" + case SERIES = "SERIES" +} diff --git a/KalturaClient/Classes/Model/Enums/ReportOrderBy.swift b/KalturaClient/Classes/Model/Enums/ReportOrderBy.swift new file mode 100644 index 000000000..5414c8458 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ReportOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ReportOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/ResponseType.swift b/KalturaClient/Classes/Model/Enums/ResponseType.swift new file mode 100644 index 000000000..def563b9f --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ResponseType.swift @@ -0,0 +1,40 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ResponseType: Int { + case JSON = 1 + case XML = 2 + case JSONP = 9 + case ASSET_XML = 30 + case EXCEL = 31 +} diff --git a/KalturaClient/Classes/Model/Enums/RollingDevicePolicy.swift b/KalturaClient/Classes/Model/Enums/RollingDevicePolicy.swift new file mode 100644 index 000000000..f2323ec6d --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/RollingDevicePolicy.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RollingDevicePolicy: String { + case NONE = "NONE" + case LIFO = "LIFO" + case FIFO = "FIFO" + case ACTIVE_DEVICE_ASCENDING = "ACTIVE_DEVICE_ASCENDING" +} diff --git a/KalturaClient/Classes/Model/Enums/RuleActionType.swift b/KalturaClient/Classes/Model/Enums/RuleActionType.swift new file mode 100644 index 000000000..21a17c472 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/RuleActionType.swift @@ -0,0 +1,46 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RuleActionType: String { + case BLOCK = "BLOCK" + case START_DATE_OFFSET = "START_DATE_OFFSET" + case END_DATE_OFFSET = "END_DATE_OFFSET" + case USER_BLOCK = "USER_BLOCK" + case ALLOW_PLAYBACK = "ALLOW_PLAYBACK" + case BLOCK_PLAYBACK = "BLOCK_PLAYBACK" + case APPLY_DISCOUNT_MODULE = "APPLY_DISCOUNT_MODULE" + case APPLY_PLAYBACK_ADAPTER = "APPLY_PLAYBACK_ADAPTER" + case FILTER = "FILTER" + case ASSET_LIFE_CYCLE_TRANSITION = "ASSET_LIFE_CYCLE_TRANSITION" + case APPLY_FREE_PLAYBACK = "APPLY_FREE_PLAYBACK" +} diff --git a/KalturaClient/Classes/Model/Enums/RuleConditionType.swift b/KalturaClient/Classes/Model/Enums/RuleConditionType.swift new file mode 100644 index 000000000..d354669c5 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/RuleConditionType.swift @@ -0,0 +1,47 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RuleConditionType: String { + case ASSET = "ASSET" + case COUNTRY = "COUNTRY" + case CONCURRENCY = "CONCURRENCY" + case IP_RANGE = "IP_RANGE" + case BUSINESS_MODULE = "BUSINESS_MODULE" + case SEGMENTS = "SEGMENTS" + case DATE = "DATE" + case OR = "OR" + case HEADER = "HEADER" + case USER_SUBSCRIPTION = "USER_SUBSCRIPTION" + case ASSET_SUBSCRIPTION = "ASSET_SUBSCRIPTION" + case USER_ROLE = "USER_ROLE" +} diff --git a/KalturaClient/Classes/Model/Enums/RuleLevel.swift b/KalturaClient/Classes/Model/Enums/RuleLevel.swift new file mode 100644 index 000000000..3549713e6 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/RuleLevel.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RuleLevel: String { + case INVALID = "invalid" + case USER = "user" + case HOUSEHOLD = "household" + case ACCOUNT = "account" +} diff --git a/KalturaClient/Classes/Model/Enums/RuleType.swift b/KalturaClient/Classes/Model/Enums/RuleType.swift new file mode 100644 index 000000000..82ce14fdb --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/RuleType.swift @@ -0,0 +1,41 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum RuleType: String { + case PARENTAL = "parental" + case GEO = "geo" + case USER_TYPE = "user_type" + case DEVICE = "device" + case ASSETUSER = "assetUser" + case NETWORK = "network" +} diff --git a/KalturaClient/Classes/Model/Enums/ScheduledRecordingAssetType.swift b/KalturaClient/Classes/Model/Enums/ScheduledRecordingAssetType.swift new file mode 100644 index 000000000..a6ffc3974 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ScheduledRecordingAssetType.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum ScheduledRecordingAssetType: String { + case SINGLE = "single" + case SERIES = "series" + case ALL = "all" +} diff --git a/KalturaClient/Classes/Model/Enums/SearchHistoryOrderBy.swift b/KalturaClient/Classes/Model/Enums/SearchHistoryOrderBy.swift new file mode 100644 index 000000000..17abce47f --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SearchHistoryOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SearchHistoryOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/SeriesRecordingOrderBy.swift b/KalturaClient/Classes/Model/Enums/SeriesRecordingOrderBy.swift new file mode 100644 index 000000000..d12acfb35 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SeriesRecordingOrderBy.swift @@ -0,0 +1,41 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SeriesRecordingOrderBy: String { + case START_DATE_ASC = "START_DATE_ASC" + case START_DATE_DESC = "START_DATE_DESC" + case ID_ASC = "ID_ASC" + case ID_DESC = "ID_DESC" + case SERIES_ID_ASC = "SERIES_ID_ASC" + case SERIES_ID_DESC = "SERIES_ID_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/SeriesReminderOrderBy.swift b/KalturaClient/Classes/Model/Enums/SeriesReminderOrderBy.swift new file mode 100644 index 000000000..8234e3ab1 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SeriesReminderOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SeriesReminderOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/SkipOperators.swift b/KalturaClient/Classes/Model/Enums/SkipOperators.swift new file mode 100644 index 000000000..4c803803f --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SkipOperators.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SkipOperators: String { + case EQUAL = "Equal" + case UNEQUAL = "UnEqual" + case LESSTHAN = "LessThan" + case GREATERTHAN = "GreaterThan" +} diff --git a/KalturaClient/Classes/Model/Enums/SkipOptions.swift b/KalturaClient/Classes/Model/Enums/SkipOptions.swift new file mode 100644 index 000000000..7771cc103 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SkipOptions.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SkipOptions: String { + case NO = "No" + case PREVIOUS = "Previous" + case ANY = "Any" +} diff --git a/KalturaClient/Classes/Model/Enums/SocialActionOrderBy.swift b/KalturaClient/Classes/Model/Enums/SocialActionOrderBy.swift new file mode 100644 index 000000000..5670c5a91 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SocialActionOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialActionOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/SocialActionPrivacy.swift b/KalturaClient/Classes/Model/Enums/SocialActionPrivacy.swift new file mode 100644 index 000000000..ca5994805 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SocialActionPrivacy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialActionPrivacy: String { + case ALLOW = "ALLOW" + case DONT_ALLOW = "DONT_ALLOW" +} diff --git a/KalturaClient/Classes/Model/Enums/SocialActionType.swift b/KalturaClient/Classes/Model/Enums/SocialActionType.swift new file mode 100644 index 000000000..f46008e8c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SocialActionType.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialActionType: String { + case LIKE = "LIKE" + case WATCH = "WATCH" + case RATE = "RATE" + case SHARE = "SHARE" +} diff --git a/KalturaClient/Classes/Model/Enums/SocialCommentOrderBy.swift b/KalturaClient/Classes/Model/Enums/SocialCommentOrderBy.swift new file mode 100644 index 000000000..88862de73 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SocialCommentOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialCommentOrderBy: String { + case CREATE_DATE_ASC = "CREATE_DATE_ASC" + case CREATE_DATE_DESC = "CREATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/SocialFriendActivityOrderBy.swift b/KalturaClient/Classes/Model/Enums/SocialFriendActivityOrderBy.swift new file mode 100644 index 000000000..b14470172 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SocialFriendActivityOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialFriendActivityOrderBy: String { + case NONE = "NONE" + case UPDATE_DATE_DESC = "UPDATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/SocialNetwork.swift b/KalturaClient/Classes/Model/Enums/SocialNetwork.swift new file mode 100644 index 000000000..7381c5796 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SocialNetwork.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialNetwork: String { + case FACEBOOK = "facebook" +} diff --git a/KalturaClient/Classes/Model/Enums/SocialPlatform.swift b/KalturaClient/Classes/Model/Enums/SocialPlatform.swift new file mode 100644 index 000000000..8e96478ff --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SocialPlatform.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialPlatform: String { + case IN_APP = "IN_APP" + case FACEBOOK = "FACEBOOK" + case TWITTER = "TWITTER" +} diff --git a/KalturaClient/Classes/Model/Enums/SocialPrivacy.swift b/KalturaClient/Classes/Model/Enums/SocialPrivacy.swift new file mode 100644 index 000000000..4dfca5d5c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SocialPrivacy.swift @@ -0,0 +1,41 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialPrivacy: String { + case UNKNOWN = "UNKNOWN" + case EVERYONE = "EVERYONE" + case ALL_FRIENDS = "ALL_FRIENDS" + case FRIENDS_OF_FRIENDS = "FRIENDS_OF_FRIENDS" + case SELF = "SELF" + case CUSTOM = "CUSTOM" +} diff --git a/KalturaClient/Classes/Model/Enums/SocialStatus.swift b/KalturaClient/Classes/Model/Enums/SocialStatus.swift new file mode 100644 index 000000000..7bac04616 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SocialStatus.swift @@ -0,0 +1,47 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SocialStatus: String { + case ERROR = "error" + case OK = "ok" + case USER_DOES_NOT_EXIST = "user_does_not_exist" + case NO_USER_SOCIAL_SETTINGS_FOUND = "no_user_social_settings_found" + case ASSET_ALREADY_LIKED = "asset_already_liked" + case NOT_ALLOWED = "not_allowed" + case INVALID_PARAMETERS = "invalid_parameters" + case NO_FACEBOOK_ACTION = "no_facebook_action" + case ASSET_ALREADY_RATED = "asset_already_rated" + case ASSET_DOSE_NOT_EXISTS = "asset_dose_not_exists" + case INVALID_PLATFORM_REQUEST = "invalid_platform_request" + case INVALID_ACCESS_TOKEN = "invalid_access_token" +} diff --git a/KalturaClient/Classes/Model/Enums/StreamType.swift b/KalturaClient/Classes/Model/Enums/StreamType.swift new file mode 100644 index 000000000..fc57f3933 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/StreamType.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum StreamType: String { + case CATCHUP = "catchup" + case START_OVER = "start_over" + case TRICK_PLAY = "trick_play" +} diff --git a/KalturaClient/Classes/Model/Enums/SubscriptionDependencyType.swift b/KalturaClient/Classes/Model/Enums/SubscriptionDependencyType.swift new file mode 100644 index 000000000..db693878c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SubscriptionDependencyType.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SubscriptionDependencyType: String { + case NOTAPPLICABLE = "NOTAPPLICABLE" + case BASE = "BASE" + case ADDON = "ADDON" +} diff --git a/KalturaClient/Classes/Model/Enums/SubscriptionOrderBy.swift b/KalturaClient/Classes/Model/Enums/SubscriptionOrderBy.swift new file mode 100644 index 000000000..eed9c67e1 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SubscriptionOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SubscriptionOrderBy: String { + case START_DATE_ASC = "START_DATE_ASC" + case START_DATE_DESC = "START_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/SubscriptionSetOrderBy.swift b/KalturaClient/Classes/Model/Enums/SubscriptionSetOrderBy.swift new file mode 100644 index 000000000..c1a37c702 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SubscriptionSetOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SubscriptionSetOrderBy: String { + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/SubscriptionSetType.swift b/KalturaClient/Classes/Model/Enums/SubscriptionSetType.swift new file mode 100644 index 000000000..15b80c86c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SubscriptionSetType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SubscriptionSetType: String { + case SWITCH = "SWITCH" + case DEPENDENCY = "DEPENDENCY" +} diff --git a/KalturaClient/Classes/Model/Enums/SubscriptionTriggerType.swift b/KalturaClient/Classes/Model/Enums/SubscriptionTriggerType.swift new file mode 100644 index 000000000..191c93dfb --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SubscriptionTriggerType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum SubscriptionTriggerType: String { + case START_DATE = "START_DATE" + case END_DATE = "END_DATE" +} diff --git a/KalturaClient/Classes/Model/Enums/TagOrderBy.swift b/KalturaClient/Classes/Model/Enums/TagOrderBy.swift new file mode 100644 index 000000000..030b97df4 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/TagOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TagOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/TimeShiftedTvState.swift b/KalturaClient/Classes/Model/Enums/TimeShiftedTvState.swift new file mode 100644 index 000000000..30ef693f6 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/TimeShiftedTvState.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TimeShiftedTvState: String { + case INHERITED = "INHERITED" + case ENABLED = "ENABLED" + case DISABLED = "DISABLED" +} diff --git a/KalturaClient/Classes/Model/Enums/TopicAutomaticIssueNotification.swift b/KalturaClient/Classes/Model/Enums/TopicAutomaticIssueNotification.swift new file mode 100644 index 000000000..153302214 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/TopicAutomaticIssueNotification.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TopicAutomaticIssueNotification: String { + case INHERIT = "Inherit" + case YES = "Yes" + case NO = "No" +} diff --git a/KalturaClient/Classes/Model/Enums/TopicNotificationMessageOrderBy.swift b/KalturaClient/Classes/Model/Enums/TopicNotificationMessageOrderBy.swift new file mode 100644 index 000000000..f5acfef01 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/TopicNotificationMessageOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TopicNotificationMessageOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/TopicNotificationOrderBy.swift b/KalturaClient/Classes/Model/Enums/TopicNotificationOrderBy.swift new file mode 100644 index 000000000..e4b3f668c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/TopicNotificationOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TopicNotificationOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/TopicOrderBy.swift b/KalturaClient/Classes/Model/Enums/TopicOrderBy.swift new file mode 100644 index 000000000..bb51b8688 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/TopicOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TopicOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/TransactionAdapterStatus.swift b/KalturaClient/Classes/Model/Enums/TransactionAdapterStatus.swift new file mode 100644 index 000000000..7184c5cbc --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/TransactionAdapterStatus.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TransactionAdapterStatus: String { + case OK = "OK" + case PENDING = "PENDING" + case FAILED = "FAILED" +} diff --git a/KalturaClient/Classes/Model/Enums/TransactionHistoryOrderBy.swift b/KalturaClient/Classes/Model/Enums/TransactionHistoryOrderBy.swift new file mode 100644 index 000000000..2c93d33e4 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/TransactionHistoryOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TransactionHistoryOrderBy: String { + case CREATE_DATE_ASC = "CREATE_DATE_ASC" + case CREATE_DATE_DESC = "CREATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/TransactionType.swift b/KalturaClient/Classes/Model/Enums/TransactionType.swift new file mode 100644 index 000000000..21a540ded --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/TransactionType.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TransactionType: String { + case PPV = "ppv" + case SUBSCRIPTION = "subscription" + case COLLECTION = "collection" +} diff --git a/KalturaClient/Classes/Model/Enums/TvmRuleOrderBy.swift b/KalturaClient/Classes/Model/Enums/TvmRuleOrderBy.swift new file mode 100644 index 000000000..8c0273d34 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/TvmRuleOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TvmRuleOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/TvmRuleType.swift b/KalturaClient/Classes/Model/Enums/TvmRuleType.swift new file mode 100644 index 000000000..12682fc86 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/TvmRuleType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum TvmRuleType: String { + case GEO = "Geo" + case DEVICE = "Device" +} diff --git a/KalturaClient/Classes/Model/Enums/UploadTokenStatus.swift b/KalturaClient/Classes/Model/Enums/UploadTokenStatus.swift new file mode 100644 index 000000000..326b0577e --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/UploadTokenStatus.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UploadTokenStatus: String { + case PENDING = "PENDING" + case FULL_UPLOAD = "FULL_UPLOAD" + case CLOSED = "CLOSED" +} diff --git a/KalturaClient/Classes/Model/Enums/UrlType.swift b/KalturaClient/Classes/Model/Enums/UrlType.swift new file mode 100644 index 000000000..cfd01a44c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/UrlType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UrlType: String { + case PLAYMANIFEST = "PLAYMANIFEST" + case DIRECT = "DIRECT" +} diff --git a/KalturaClient/Classes/Model/Enums/UserAssetRuleOrderBy.swift b/KalturaClient/Classes/Model/Enums/UserAssetRuleOrderBy.swift new file mode 100644 index 000000000..1cbc0bb42 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/UserAssetRuleOrderBy.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UserAssetRuleOrderBy: String { + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/UserAssetsListItemType.swift b/KalturaClient/Classes/Model/Enums/UserAssetsListItemType.swift new file mode 100644 index 000000000..491d040e5 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/UserAssetsListItemType.swift @@ -0,0 +1,37 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UserAssetsListItemType: String { + case ALL = "all" + case MEDIA = "media" +} diff --git a/KalturaClient/Classes/Model/Enums/UserAssetsListType.swift b/KalturaClient/Classes/Model/Enums/UserAssetsListType.swift new file mode 100644 index 000000000..4e77a4a2b --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/UserAssetsListType.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UserAssetsListType: String { + case ALL = "all" + case WATCH = "watch" + case PURCHASE = "purchase" + case LIBRARY = "library" +} diff --git a/KalturaClient/Classes/Model/Enums/UserRoleOrderBy.swift b/KalturaClient/Classes/Model/Enums/UserRoleOrderBy.swift new file mode 100644 index 000000000..0ff334dea --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/UserRoleOrderBy.swift @@ -0,0 +1,36 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UserRoleOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/UserState.swift b/KalturaClient/Classes/Model/Enums/UserState.swift new file mode 100644 index 000000000..e8002493d --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/UserState.swift @@ -0,0 +1,39 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum UserState: String { + case OK = "ok" + case USER_WITH_NO_HOUSEHOLD = "user_with_no_household" + case USER_CREATED_WITH_NO_ROLE = "user_created_with_no_role" + case USER_NOT_ACTIVATED = "user_not_activated" +} diff --git a/KalturaClient/Classes/Model/Enums/WatchStatus.swift b/KalturaClient/Classes/Model/Enums/WatchStatus.swift new file mode 100644 index 000000000..a745c4b58 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/WatchStatus.swift @@ -0,0 +1,38 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ +public enum WatchStatus: String { + case PROGRESS = "progress" + case DONE = "done" + case ALL = "all" +} diff --git a/KalturaClient/Classes/Model/ObjectBase.swift b/KalturaClient/Classes/Model/ObjectBase.swift new file mode 100644 index 000000000..0f611a087 --- /dev/null +++ b/KalturaClient/Classes/Model/ObjectBase.swift @@ -0,0 +1,80 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ObjectBase { + + public class ObjectBaseTokenizer: BaseTokenizedObject { + public var relatedObjects: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("relatedObjects")) + } + } + } + + public var dict: [String: Any] = [:] + + public var relatedObjects: Dictionary? + + public required init() { + } + + internal func populate(_ dict: [String: Any]) throws { + if let objects = dict["relatedObjects"] as? [String: Any] { + relatedObjects = try JSONParser.parse(map: objects) + } + } + + internal func toDictionary() -> [String: Any] { + dict["objectType"] = "Kaltura\(serverObjectType)" + return dict + } + + open var serverObjectType: String { + return "\(type(of: self))" + } +} + +extension Dictionary { + public func toDictionary() -> [String: [String: Any]] { + var results: [String: [String: Any]] = [:] + for key in self.keys { + if let stringKey = key as? String, let value = self[key] as? ObjectBase { + results.updateValue(value.toDictionary(), forKey: stringKey) + } + } + return results + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AccessControlBlockAction.swift b/KalturaClient/Classes/Model/Objects/AccessControlBlockAction.swift new file mode 100644 index 000000000..9e8ed91af --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AccessControlBlockAction.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AccessControlBlockAction: AssetRuleAction { + + public class AccessControlBlockActionTokenizer: AssetRuleAction.AssetRuleActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/AccessControlMessage.swift b/KalturaClient/Classes/Model/Objects/AccessControlMessage.swift new file mode 100644 index 000000000..6cd77a6c8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AccessControlMessage.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AccessControlMessage: ObjectBase { + + public class AccessControlMessageTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var message: BaseTokenizedObject { + get { + return self.append("message") + } + } + + public var code: BaseTokenizedObject { + get { + return self.append("code") + } + } + } + + /** Message */ + public var message: String? = nil + /** Code */ + public var code: String? = nil + + + public func setMultiRequestToken(message: String) { + self.dict["message"] = message + } + + public func setMultiRequestToken(code: String) { + self.dict["code"] = code + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["message"] != nil { + message = dict["message"] as? String + } + if dict["code"] != nil { + code = dict["code"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(message != nil) { + dict["message"] = message! + } + if(code != nil) { + dict["code"] = code! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ActionPermissionItem.swift b/KalturaClient/Classes/Model/Objects/ActionPermissionItem.swift new file mode 100644 index 000000000..17f01720f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ActionPermissionItem.swift @@ -0,0 +1,126 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ActionPermissionItem: ObjectBase { + + public class ActionPermissionItemTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var network: BaseTokenizedObject { + get { + return self.append("network") + } + } + + public var actionPrivacy: BaseTokenizedObject { + get { + return self.append("actionPrivacy") + } + } + + public var privacy: BaseTokenizedObject { + get { + return self.append("privacy") + } + } + + public var action: BaseTokenizedObject { + get { + return self.append("action") + } + } + } + + /** Social network */ + public var network: SocialNetwork? = nil + /** Action privacy */ + public var actionPrivacy: SocialActionPrivacy? = nil + /** Social privacy */ + public var privacy: SocialPrivacy? = nil + /** Action - separated with comma */ + public var action: String? = nil + + + public func setMultiRequestToken(network: String) { + self.dict["network"] = network + } + + public func setMultiRequestToken(actionPrivacy: String) { + self.dict["actionPrivacy"] = actionPrivacy + } + + public func setMultiRequestToken(privacy: String) { + self.dict["privacy"] = privacy + } + + public func setMultiRequestToken(action: String) { + self.dict["action"] = action + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["network"] != nil { + network = SocialNetwork(rawValue: "\(dict["network"]!)") + } + if dict["actionPrivacy"] != nil { + actionPrivacy = SocialActionPrivacy(rawValue: "\(dict["actionPrivacy"]!)") + } + if dict["privacy"] != nil { + privacy = SocialPrivacy(rawValue: "\(dict["privacy"]!)") + } + if dict["action"] != nil { + action = dict["action"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(network != nil) { + dict["network"] = network!.rawValue + } + if(actionPrivacy != nil) { + dict["actionPrivacy"] = actionPrivacy!.rawValue + } + if(privacy != nil) { + dict["privacy"] = privacy!.rawValue + } + if(action != nil) { + dict["action"] = action! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AdsContext.swift b/KalturaClient/Classes/Model/Objects/AdsContext.swift new file mode 100644 index 000000000..dc8c778a5 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AdsContext.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AdsContext: ObjectBase { + + public class AdsContextTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var sources: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("sources")) + } + } + } + + /** Sources */ + public var sources: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["sources"] != nil { + sources = try JSONParser.parse(array: dict["sources"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(sources != nil) { + dict["sources"] = sources!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AdsSource.swift b/KalturaClient/Classes/Model/Objects/AdsSource.swift new file mode 100644 index 000000000..28dd29f2d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AdsSource.swift @@ -0,0 +1,123 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AdsSource: ObjectBase { + + public class AdsSourceTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var adsPolicy: BaseTokenizedObject { + get { + return self.append("adsPolicy") + } + } + + public var adsParam: BaseTokenizedObject { + get { + return self.append("adsParam") + } + } + } + + /** File unique identifier */ + public var id: Int? = nil + /** Device types as defined in the system */ + public var type: String? = nil + /** Ads policy */ + public var adsPolicy: AdsPolicy? = nil + /** The parameters to pass to the ads server */ + public var adsParam: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(adsPolicy: String) { + self.dict["adsPolicy"] = adsPolicy + } + + public func setMultiRequestToken(adsParam: String) { + self.dict["adsParam"] = adsParam + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["type"] != nil { + type = dict["type"] as? String + } + if dict["adsPolicy"] != nil { + adsPolicy = AdsPolicy(rawValue: "\(dict["adsPolicy"]!)") + } + if dict["adsParam"] != nil { + adsParam = dict["adsParam"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(type != nil) { + dict["type"] = type! + } + if(adsPolicy != nil) { + dict["adsPolicy"] = adsPolicy!.rawValue + } + if(adsParam != nil) { + dict["adsParam"] = adsParam! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AggregatedPropertySkipCondition.swift b/KalturaClient/Classes/Model/Objects/AggregatedPropertySkipCondition.swift new file mode 100644 index 000000000..a8ec5470b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AggregatedPropertySkipCondition.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Skips current request according to aggregation condition on given property */ +open class AggregatedPropertySkipCondition: PropertySkipCondition { + + public class AggregatedPropertySkipConditionTokenizer: PropertySkipCondition.PropertySkipConditionTokenizer { + + public var aggregationType: BaseTokenizedObject { + get { + return self.append("aggregationType") + } + } + } + + /** The aggregation type on which the condition is based on */ + public var aggregationType: AggregationType? = nil + + + public func setMultiRequestToken(aggregationType: String) { + self.dict["aggregationType"] = aggregationType + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["aggregationType"] != nil { + aggregationType = AggregationType(rawValue: "\(dict["aggregationType"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(aggregationType != nil) { + dict["aggregationType"] = aggregationType!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AggregationCountFilter.swift b/KalturaClient/Classes/Model/Objects/AggregationCountFilter.swift new file mode 100644 index 000000000..8736eb93d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AggregationCountFilter.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Kaltura Aggregation CountFilter */ +open class AggregationCountFilter: RelatedObjectFilter { + + public class AggregationCountFilterTokenizer: RelatedObjectFilter.RelatedObjectFilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/AllowPlaybackAction.swift b/KalturaClient/Classes/Model/Objects/AllowPlaybackAction.swift new file mode 100644 index 000000000..eac5efe74 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AllowPlaybackAction.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AllowPlaybackAction: AssetRuleAction { + + public class AllowPlaybackActionTokenizer: AssetRuleAction.AssetRuleActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/Announcement.swift b/KalturaClient/Classes/Model/Objects/Announcement.swift new file mode 100644 index 000000000..02b88f4f9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Announcement.swift @@ -0,0 +1,300 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Announcement: ObjectBase { + + public class AnnouncementTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var message: BaseTokenizedObject { + get { + return self.append("message") + } + } + + public var enabled: BaseTokenizedObject { + get { + return self.append("enabled") + } + } + + public var startTime: BaseTokenizedObject { + get { + return self.append("startTime") + } + } + + public var timezone: BaseTokenizedObject { + get { + return self.append("timezone") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var recipients: BaseTokenizedObject { + get { + return self.append("recipients") + } + } + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var imageUrl: BaseTokenizedObject { + get { + return self.append("imageUrl") + } + } + + public var includeMail: BaseTokenizedObject { + get { + return self.append("includeMail") + } + } + + public var mailTemplate: BaseTokenizedObject { + get { + return self.append("mailTemplate") + } + } + + public var mailSubject: BaseTokenizedObject { + get { + return self.append("mailSubject") + } + } + + public var includeSms: BaseTokenizedObject { + get { + return self.append("includeSms") + } + } + + public var includeIot: BaseTokenizedObject { + get { + return self.append("includeIot") + } + } + } + + /** Announcement name */ + public var name: String? = nil + /** Announcement message */ + public var message: String? = nil + /** Announcement enabled */ + public var enabled: Bool? = nil + /** Announcement start time */ + public var startTime: Int64? = nil + /** Announcement time zone */ + public var timezone: String? = nil + /** Announcement status: NotSent=0/Sending=1/Sent=2/Aborted=3 */ + public var status: AnnouncementStatus? = nil + /** Announcement recipients: All=0/LoggedIn=1/Guests=2/Other=3 */ + public var recipients: AnnouncementRecipientsType? = nil + /** Announcement id */ + public var id: Int? = nil + /** Announcement image URL, relevant for system announcements */ + public var imageUrl: String? = nil + /** Include Mail */ + public var includeMail: Bool? = nil + /** Mail Template */ + public var mailTemplate: String? = nil + /** Mail Subject */ + public var mailSubject: String? = nil + /** Include SMS */ + public var includeSms: Bool? = nil + /** Include IOT */ + public var includeIot: Bool? = nil + + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(message: String) { + self.dict["message"] = message + } + + public func setMultiRequestToken(enabled: String) { + self.dict["enabled"] = enabled + } + + public func setMultiRequestToken(startTime: String) { + self.dict["startTime"] = startTime + } + + public func setMultiRequestToken(timezone: String) { + self.dict["timezone"] = timezone + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(recipients: String) { + self.dict["recipients"] = recipients + } + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(imageUrl: String) { + self.dict["imageUrl"] = imageUrl + } + + public func setMultiRequestToken(includeMail: String) { + self.dict["includeMail"] = includeMail + } + + public func setMultiRequestToken(mailTemplate: String) { + self.dict["mailTemplate"] = mailTemplate + } + + public func setMultiRequestToken(mailSubject: String) { + self.dict["mailSubject"] = mailSubject + } + + public func setMultiRequestToken(includeSms: String) { + self.dict["includeSms"] = includeSms + } + + public func setMultiRequestToken(includeIot: String) { + self.dict["includeIot"] = includeIot + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["message"] != nil { + message = dict["message"] as? String + } + if dict["enabled"] != nil { + enabled = dict["enabled"] as? Bool + } + if dict["startTime"] != nil { + startTime = Int64("\(dict["startTime"]!)") + } + if dict["timezone"] != nil { + timezone = dict["timezone"] as? String + } + if dict["status"] != nil { + status = AnnouncementStatus(rawValue: "\(dict["status"]!)") + } + if dict["recipients"] != nil { + recipients = AnnouncementRecipientsType(rawValue: "\(dict["recipients"]!)") + } + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["imageUrl"] != nil { + imageUrl = dict["imageUrl"] as? String + } + if dict["includeMail"] != nil { + includeMail = dict["includeMail"] as? Bool + } + if dict["mailTemplate"] != nil { + mailTemplate = dict["mailTemplate"] as? String + } + if dict["mailSubject"] != nil { + mailSubject = dict["mailSubject"] as? String + } + if dict["includeSms"] != nil { + includeSms = dict["includeSms"] as? Bool + } + if dict["includeIot"] != nil { + includeIot = dict["includeIot"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(message != nil) { + dict["message"] = message! + } + if(enabled != nil) { + dict["enabled"] = enabled! + } + if(startTime != nil) { + dict["startTime"] = startTime! + } + if(timezone != nil) { + dict["timezone"] = timezone! + } + if(recipients != nil) { + dict["recipients"] = recipients!.rawValue + } + if(imageUrl != nil) { + dict["imageUrl"] = imageUrl! + } + if(includeMail != nil) { + dict["includeMail"] = includeMail! + } + if(mailTemplate != nil) { + dict["mailTemplate"] = mailTemplate! + } + if(mailSubject != nil) { + dict["mailSubject"] = mailSubject! + } + if(includeSms != nil) { + dict["includeSms"] = includeSms! + } + if(includeIot != nil) { + dict["includeIot"] = includeIot! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AnnouncementFilter.swift b/KalturaClient/Classes/Model/Objects/AnnouncementFilter.swift new file mode 100644 index 000000000..c55a93d68 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AnnouncementFilter.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** order announcements */ +open class AnnouncementFilter: Filter { + + public class AnnouncementFilterTokenizer: Filter.FilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** A list of comma separated announcement ids. */ + public var idIn: String? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AnnouncementListResponse.swift b/KalturaClient/Classes/Model/Objects/AnnouncementListResponse.swift new file mode 100644 index 000000000..b823d5e14 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AnnouncementListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of message announcements from DB. */ +open class AnnouncementListResponse: ListResponse { + + public class AnnouncementListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Announcements */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ApiExceptionArg.swift b/KalturaClient/Classes/Model/Objects/ApiExceptionArg.swift new file mode 100644 index 000000000..dba51d5f3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ApiExceptionArg.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ApiExceptionArg: ObjectBase { + + public class ApiExceptionArgTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** Argument name */ + public var name: String? = nil + /** Argument value */ + public var value: String? = nil + + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["value"] != nil { + value = dict["value"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(value != nil) { + dict["value"] = value! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AppToken.swift b/KalturaClient/Classes/Model/Objects/AppToken.swift new file mode 100644 index 000000000..7ff92c516 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AppToken.swift @@ -0,0 +1,222 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Application token */ +open class AppToken: ObjectBase { + + public class AppTokenTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var expiry: BaseTokenizedObject { + get { + return self.append("expiry") + } + } + + public var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var sessionDuration: BaseTokenizedObject { + get { + return self.append("sessionDuration") + } + } + + public var hashType: BaseTokenizedObject { + get { + return self.append("hashType") + } + } + + public var sessionPrivileges: BaseTokenizedObject { + get { + return self.append("sessionPrivileges") + } + } + + public var token: BaseTokenizedObject { + get { + return self.append("token") + } + } + + public var sessionUserId: BaseTokenizedObject { + get { + return self.append("sessionUserId") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + } + + /** The id of the application token */ + public var id: String? = nil + /** Expiry time of current token (unix timestamp in seconds) */ + public var expiry: Int? = nil + /** Partner identifier */ + public var partnerId: Int? = nil + /** Expiry duration of KS (Kaltura Session) that created using the current token (in + seconds) */ + public var sessionDuration: Int? = nil + /** The hash type of the token */ + public var hashType: AppTokenHashType? = nil + /** Comma separated privileges to be applied on KS (Kaltura Session) that created + using the current token */ + public var sessionPrivileges: String? = nil + /** The application token */ + public var token: String? = nil + /** User id of KS (Kaltura Session) that created using the current token */ + public var sessionUserId: String? = nil + /** Create date */ + public var createDate: Int64? = nil + /** Update date */ + public var updateDate: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(expiry: String) { + self.dict["expiry"] = expiry + } + + public func setMultiRequestToken(partnerId: String) { + self.dict["partnerId"] = partnerId + } + + public func setMultiRequestToken(sessionDuration: String) { + self.dict["sessionDuration"] = sessionDuration + } + + public func setMultiRequestToken(hashType: String) { + self.dict["hashType"] = hashType + } + + public func setMultiRequestToken(sessionPrivileges: String) { + self.dict["sessionPrivileges"] = sessionPrivileges + } + + public func setMultiRequestToken(token: String) { + self.dict["token"] = token + } + + public func setMultiRequestToken(sessionUserId: String) { + self.dict["sessionUserId"] = sessionUserId + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["expiry"] != nil { + expiry = dict["expiry"] as? Int + } + if dict["partnerId"] != nil { + partnerId = dict["partnerId"] as? Int + } + if dict["sessionDuration"] != nil { + sessionDuration = dict["sessionDuration"] as? Int + } + if dict["hashType"] != nil { + hashType = AppTokenHashType(rawValue: "\(dict["hashType"]!)") + } + if dict["sessionPrivileges"] != nil { + sessionPrivileges = dict["sessionPrivileges"] as? String + } + if dict["token"] != nil { + token = dict["token"] as? String + } + if dict["sessionUserId"] != nil { + sessionUserId = dict["sessionUserId"] as? String + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(expiry != nil) { + dict["expiry"] = expiry! + } + if(sessionDuration != nil) { + dict["sessionDuration"] = sessionDuration! + } + if(hashType != nil) { + dict["hashType"] = hashType!.rawValue + } + if(sessionPrivileges != nil) { + dict["sessionPrivileges"] = sessionPrivileges! + } + if(sessionUserId != nil) { + dict["sessionUserId"] = sessionUserId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ApplyDiscountModuleAction.swift b/KalturaClient/Classes/Model/Objects/ApplyDiscountModuleAction.swift new file mode 100644 index 000000000..a35034c0f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ApplyDiscountModuleAction.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ApplyDiscountModuleAction: BusinessModuleRuleAction { + + public class ApplyDiscountModuleActionTokenizer: BusinessModuleRuleAction.BusinessModuleRuleActionTokenizer { + + public var discountModuleId: BaseTokenizedObject { + get { + return self.append("discountModuleId") + } + } + } + + /** Discount module ID */ + public var discountModuleId: Int64? = nil + + + public func setMultiRequestToken(discountModuleId: String) { + self.dict["discountModuleId"] = discountModuleId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["discountModuleId"] != nil { + discountModuleId = Int64("\(dict["discountModuleId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(discountModuleId != nil) { + dict["discountModuleId"] = discountModuleId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ApplyFreePlaybackAction.swift b/KalturaClient/Classes/Model/Objects/ApplyFreePlaybackAction.swift new file mode 100644 index 000000000..c198faa42 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ApplyFreePlaybackAction.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ApplyFreePlaybackAction: BusinessModuleRuleAction { + + public class ApplyFreePlaybackActionTokenizer: BusinessModuleRuleAction.BusinessModuleRuleActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/ApplyPlaybackAdapterAction.swift b/KalturaClient/Classes/Model/Objects/ApplyPlaybackAdapterAction.swift new file mode 100644 index 000000000..bc55ea3cf --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ApplyPlaybackAdapterAction.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ApplyPlaybackAdapterAction: AssetRuleAction { + + public class ApplyPlaybackAdapterActionTokenizer: AssetRuleAction.AssetRuleActionTokenizer { + + public var adapterId: BaseTokenizedObject { + get { + return self.append("adapterId") + } + } + } + + /** Playback Adapter Identifier */ + public var adapterId: Int? = nil + + + public func setMultiRequestToken(adapterId: String) { + self.dict["adapterId"] = adapterId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["adapterId"] != nil { + adapterId = dict["adapterId"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(adapterId != nil) { + dict["adapterId"] = adapterId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Asset.swift b/KalturaClient/Classes/Model/Objects/Asset.swift new file mode 100644 index 000000000..0a443199c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Asset.swift @@ -0,0 +1,317 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset info */ +open class Asset: ObjectBase { + + public class AssetTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var multilingualName: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multilingualName")) + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + + public var multilingualDescription: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multilingualDescription")) + } + } + + public var images: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("images")) + } + } + + public var mediaFiles: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("mediaFiles")) + } + } + + public var metas: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("metas")) + } + } + + public var tags: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("tags")) + } + } + + public var relatedEntities: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("relatedEntities")) + } + } + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + + public var indexStatus: BaseTokenizedObject { + get { + return self.append("indexStatus") + } + } + } + + /** Unique identifier for the asset */ + public var id: Int64? = nil + /** Identifies the asset type (EPG, Recording, Movie, TV Series, etc). + Possible values: 0 – EPG linear programs, 1 - Recording; or any asset type ID + according to the asset types IDs defined in the system. */ + public var type: Int? = nil + /** Asset name */ + public var name: String? = nil + /** Asset name */ + public var multilingualName: Array? = nil + /** Asset description */ + public var description: String? = nil + /** Asset description */ + public var multilingualDescription: Array? = nil + /** Collection of images details that can be used to represent this asset */ + public var images: Array? = nil + /** Files */ + public var mediaFiles: Array? = nil + /** Dynamic collection of key-value pairs according to the String Meta defined in + the system */ + public var metas: Dictionary? = nil + /** Dynamic collection of key-value pairs according to the Tag Types defined in the + system */ + public var tags: Dictionary? = nil + /** Dynamic collection of key-value pairs according to the related entity defined in + the system */ + public var relatedEntities: Dictionary? = nil + /** Date and time represented as epoch. For VOD – since when the asset is + available in the catalog. For EPG/Linear – when the program is aired (can be + in the future). */ + public var startDate: Int64? = nil + /** Date and time represented as epoch. For VOD – till when the asset be available + in the catalog. For EPG/Linear – program end time and date */ + public var endDate: Int64? = nil + /** Specifies when was the Asset was created. Date and time represented as epoch. */ + public var createDate: Int64? = nil + /** Specifies when was the Asset last updated. Date and time represented as epoch. */ + public var updateDate: Int64? = nil + /** External identifier for the asset */ + public var externalId: String? = nil + /** The media asset index status */ + public var indexStatus: AssetIndexStatus? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public func setMultiRequestToken(startDate: String) { + self.dict["startDate"] = startDate + } + + public func setMultiRequestToken(endDate: String) { + self.dict["endDate"] = endDate + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public func setMultiRequestToken(externalId: String) { + self.dict["externalId"] = externalId + } + + public func setMultiRequestToken(indexStatus: String) { + self.dict["indexStatus"] = indexStatus + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["type"] != nil { + type = dict["type"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["multilingualName"] != nil { + multilingualName = try JSONParser.parse(array: dict["multilingualName"] as! [Any]) + } + if dict["description"] != nil { + description = dict["description"] as? String + } + if dict["multilingualDescription"] != nil { + multilingualDescription = try JSONParser.parse(array: dict["multilingualDescription"] as! [Any]) + } + if dict["images"] != nil { + images = try JSONParser.parse(array: dict["images"] as! [Any]) + } + if dict["mediaFiles"] != nil { + mediaFiles = try JSONParser.parse(array: dict["mediaFiles"] as! [Any]) + } + if dict["metas"] != nil { + metas = try JSONParser.parse(map: dict["metas"] as! [String: Any]) + } + if dict["tags"] != nil { + tags = try JSONParser.parse(map: dict["tags"] as! [String: Any]) + } + if dict["relatedEntities"] != nil { + relatedEntities = try JSONParser.parse(map: dict["relatedEntities"] as! [String: Any]) + } + if dict["startDate"] != nil { + startDate = Int64("\(dict["startDate"]!)") + } + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + if dict["externalId"] != nil { + externalId = dict["externalId"] as? String + } + if dict["indexStatus"] != nil { + indexStatus = AssetIndexStatus(rawValue: "\(dict["indexStatus"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(type != nil) { + dict["type"] = type! + } + if(multilingualName != nil) { + dict["multilingualName"] = multilingualName!.map { value in value.toDictionary() } + } + if(multilingualDescription != nil) { + dict["multilingualDescription"] = multilingualDescription!.map { value in value.toDictionary() } + } + if(metas != nil) { + dict["metas"] = metas!.toDictionary() + } + if(tags != nil) { + dict["tags"] = tags!.toDictionary() + } + if(relatedEntities != nil) { + dict["relatedEntities"] = relatedEntities!.toDictionary() + } + if(startDate != nil) { + dict["startDate"] = startDate! + } + if(endDate != nil) { + dict["endDate"] = endDate! + } + if(externalId != nil) { + dict["externalId"] = externalId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetComment.swift b/KalturaClient/Classes/Model/Objects/AssetComment.swift new file mode 100644 index 000000000..ccde92132 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetComment.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset Comment */ +open class AssetComment: SocialComment { + + public class AssetCommentTokenizer: SocialComment.SocialCommentTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var assetType: BaseTokenizedObject { + get { + return self.append("assetType") + } + } + + public var subHeader: BaseTokenizedObject { + get { + return self.append("subHeader") + } + } + } + + /** Comment ID */ + public var id: Int? = nil + /** Asset identifier */ + public var assetId: Int? = nil + /** Asset Type */ + public var assetType: AssetType? = nil + /** Sub Header */ + public var subHeader: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + public func setMultiRequestToken(assetType: String) { + self.dict["assetType"] = assetType + } + + public func setMultiRequestToken(subHeader: String) { + self.dict["subHeader"] = subHeader + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["assetId"] != nil { + assetId = dict["assetId"] as? Int + } + if dict["assetType"] != nil { + assetType = AssetType(rawValue: "\(dict["assetType"]!)") + } + if dict["subHeader"] != nil { + subHeader = dict["subHeader"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(assetId != nil) { + dict["assetId"] = assetId! + } + if(assetType != nil) { + dict["assetType"] = assetType!.rawValue + } + if(subHeader != nil) { + dict["subHeader"] = subHeader! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetCommentFilter.swift b/KalturaClient/Classes/Model/Objects/AssetCommentFilter.swift new file mode 100644 index 000000000..bef7c332d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetCommentFilter.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetCommentFilter: Filter { + + public class AssetCommentFilterTokenizer: Filter.FilterTokenizer { + + public var assetIdEqual: BaseTokenizedObject { + get { + return self.append("assetIdEqual") + } + } + + public var assetTypeEqual: BaseTokenizedObject { + get { + return self.append("assetTypeEqual") + } + } + } + + /** Asset Id */ + public var assetIdEqual: Int? = nil + /** Asset Type */ + public var assetTypeEqual: AssetType? = nil + + + public func setMultiRequestToken(assetIdEqual: String) { + self.dict["assetIdEqual"] = assetIdEqual + } + + public func setMultiRequestToken(assetTypeEqual: String) { + self.dict["assetTypeEqual"] = assetTypeEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetIdEqual"] != nil { + assetIdEqual = dict["assetIdEqual"] as? Int + } + if dict["assetTypeEqual"] != nil { + assetTypeEqual = AssetType(rawValue: "\(dict["assetTypeEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetIdEqual != nil) { + dict["assetIdEqual"] = assetIdEqual! + } + if(assetTypeEqual != nil) { + dict["assetTypeEqual"] = assetTypeEqual!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetCommentListResponse.swift b/KalturaClient/Classes/Model/Objects/AssetCommentListResponse.swift new file mode 100644 index 000000000..c950cf389 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetCommentListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset Comment Response */ +open class AssetCommentListResponse: ListResponse { + + public class AssetCommentListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Assets */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetCondition.swift b/KalturaClient/Classes/Model/Objects/AssetCondition.swift new file mode 100644 index 000000000..953a9fcd8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetCondition.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset Condition */ +open class AssetCondition: Condition { + + public class AssetConditionTokenizer: Condition.ConditionTokenizer { + + public var ksql: BaseTokenizedObject { + get { + return self.append("ksql") + } + } + } + + /** KSQL */ + public var ksql: String? = nil + + + public func setMultiRequestToken(ksql: String) { + self.dict["ksql"] = ksql + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["ksql"] != nil { + ksql = dict["ksql"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(ksql != nil) { + dict["ksql"] = ksql! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetCount.swift b/KalturaClient/Classes/Model/Objects/AssetCount.swift new file mode 100644 index 000000000..350eb06ac --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetCount.swift @@ -0,0 +1,106 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset count - represents a specific value of the field, its count and its sub + groups. */ +open class AssetCount: ObjectBase { + + public class AssetCountTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + + public var count: BaseTokenizedObject { + get { + return self.append("count") + } + } + + public var subs: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("subs")) + } + } + } + + /** Value */ + public var value: String? = nil + /** Count */ + public var count: Int? = nil + /** Sub groups */ + public var subs: Array? = nil + + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public func setMultiRequestToken(count: String) { + self.dict["count"] = count + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["value"] != nil { + value = dict["value"] as? String + } + if dict["count"] != nil { + count = dict["count"] as? Int + } + if dict["subs"] != nil { + subs = try JSONParser.parse(array: dict["subs"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(value != nil) { + dict["value"] = value! + } + if(count != nil) { + dict["count"] = count! + } + if(subs != nil) { + dict["subs"] = subs!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetCountListResponse.swift b/KalturaClient/Classes/Model/Objects/AssetCountListResponse.swift new file mode 100644 index 000000000..b6fd6dc94 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetCountListResponse.swift @@ -0,0 +1,87 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset counts wrapper - represents a group */ +open class AssetCountListResponse: ListResponse { + + public class AssetCountListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var assetsCount: BaseTokenizedObject { + get { + return self.append("assetsCount") + } + } + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Count of assets that match filter result, regardless of group by result */ + public var assetsCount: Int? = nil + /** List of groupings (field name and sub-list of values and their counts) */ + public var objects: Array? = nil + + + public func setMultiRequestToken(assetsCount: String) { + self.dict["assetsCount"] = assetsCount + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetsCount"] != nil { + assetsCount = dict["assetsCount"] as? Int + } + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetsCount != nil) { + dict["assetsCount"] = assetsCount! + } + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetFieldGroupBy.swift b/KalturaClient/Classes/Model/Objects/AssetFieldGroupBy.swift new file mode 100644 index 000000000..3449ac3c3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetFieldGroupBy.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Group by a field that is defined in enum */ +open class AssetFieldGroupBy: AssetGroupBy { + + public class AssetFieldGroupByTokenizer: AssetGroupBy.AssetGroupByTokenizer { + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** Group by a specific field that is defined in enum */ + public var value: GroupByField? = nil + + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["value"] != nil { + value = GroupByField(rawValue: "\(dict["value"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(value != nil) { + dict["value"] = value!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetFile.swift b/KalturaClient/Classes/Model/Objects/AssetFile.swift new file mode 100644 index 000000000..67e08abec --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetFile.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset file details */ +open class AssetFile: ObjectBase { + + public class AssetFileTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var url: BaseTokenizedObject { + get { + return self.append("url") + } + } + } + + /** URL of the media file to be played */ + public var url: String? = nil + + + public func setMultiRequestToken(url: String) { + self.dict["url"] = url + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["url"] != nil { + url = dict["url"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(url != nil) { + dict["url"] = url! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetFileContext.swift b/KalturaClient/Classes/Model/Objects/AssetFileContext.swift new file mode 100644 index 000000000..0a59e76c2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetFileContext.swift @@ -0,0 +1,95 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetFileContext: ObjectBase { + + public class AssetFileContextTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var viewLifeCycle: BaseTokenizedObject { + get { + return self.append("viewLifeCycle") + } + } + + public var fullLifeCycle: BaseTokenizedObject { + get { + return self.append("fullLifeCycle") + } + } + + public var isOfflinePlayBack: BaseTokenizedObject { + get { + return self.append("isOfflinePlayBack") + } + } + } + + /** viewLifeCycle */ + public var viewLifeCycle: String? = nil + /** fullLifeCycle */ + public var fullLifeCycle: String? = nil + /** isOfflinePlayBack */ + public var isOfflinePlayBack: Bool? = nil + + + public func setMultiRequestToken(viewLifeCycle: String) { + self.dict["viewLifeCycle"] = viewLifeCycle + } + + public func setMultiRequestToken(fullLifeCycle: String) { + self.dict["fullLifeCycle"] = fullLifeCycle + } + + public func setMultiRequestToken(isOfflinePlayBack: String) { + self.dict["isOfflinePlayBack"] = isOfflinePlayBack + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["viewLifeCycle"] != nil { + viewLifeCycle = dict["viewLifeCycle"] as? String + } + if dict["fullLifeCycle"] != nil { + fullLifeCycle = dict["fullLifeCycle"] as? String + } + if dict["isOfflinePlayBack"] != nil { + isOfflinePlayBack = dict["isOfflinePlayBack"] as? Bool + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetFilePpv.swift b/KalturaClient/Classes/Model/Objects/AssetFilePpv.swift new file mode 100644 index 000000000..ea5f57936 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetFilePpv.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset file ppv */ +open class AssetFilePpv: OTTObjectSupportNullable { + + public class AssetFilePpvTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + public var assetFileId: BaseTokenizedObject { + get { + return self.append("assetFileId") + } + } + + public var ppvModuleId: BaseTokenizedObject { + get { + return self.append("ppvModuleId") + } + } + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + } + + /** Asset file identifier */ + public var assetFileId: Int64? = nil + /** Ppv module identifier */ + public var ppvModuleId: Int64? = nil + /** Start date and time represented as epoch. */ + public var startDate: Int64? = nil + /** End date and time represented as epoch. */ + public var endDate: Int64? = nil + + + public func setMultiRequestToken(assetFileId: String) { + self.dict["assetFileId"] = assetFileId + } + + public func setMultiRequestToken(ppvModuleId: String) { + self.dict["ppvModuleId"] = ppvModuleId + } + + public func setMultiRequestToken(startDate: String) { + self.dict["startDate"] = startDate + } + + public func setMultiRequestToken(endDate: String) { + self.dict["endDate"] = endDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetFileId"] != nil { + assetFileId = Int64("\(dict["assetFileId"]!)") + } + if dict["ppvModuleId"] != nil { + ppvModuleId = Int64("\(dict["ppvModuleId"]!)") + } + if dict["startDate"] != nil { + startDate = Int64("\(dict["startDate"]!)") + } + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetFileId != nil) { + dict["assetFileId"] = assetFileId! + } + if(ppvModuleId != nil) { + dict["ppvModuleId"] = ppvModuleId! + } + if(startDate != nil) { + dict["startDate"] = startDate! + } + if(endDate != nil) { + dict["endDate"] = endDate! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetFilePpvFilter.swift b/KalturaClient/Classes/Model/Objects/AssetFilePpvFilter.swift new file mode 100644 index 000000000..852de117a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetFilePpvFilter.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Filtering Asset Struct Metas */ +open class AssetFilePpvFilter: Filter { + + public class AssetFilePpvFilterTokenizer: Filter.FilterTokenizer { + + public var assetIdEqual: BaseTokenizedObject { + get { + return self.append("assetIdEqual") + } + } + + public var assetFileIdEqual: BaseTokenizedObject { + get { + return self.append("assetFileIdEqual") + } + } + } + + /** Filter Asset file ppvs that contain a specific asset id */ + public var assetIdEqual: Int64? = nil + /** Filter Asset file ppvs that contain a specific asset file id */ + public var assetFileIdEqual: Int64? = nil + + + public func setMultiRequestToken(assetIdEqual: String) { + self.dict["assetIdEqual"] = assetIdEqual + } + + public func setMultiRequestToken(assetFileIdEqual: String) { + self.dict["assetFileIdEqual"] = assetFileIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetIdEqual"] != nil { + assetIdEqual = Int64("\(dict["assetIdEqual"]!)") + } + if dict["assetFileIdEqual"] != nil { + assetFileIdEqual = Int64("\(dict["assetFileIdEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetIdEqual != nil) { + dict["assetIdEqual"] = assetIdEqual! + } + if(assetFileIdEqual != nil) { + dict["assetFileIdEqual"] = assetFileIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetFilePpvListResponse.swift b/KalturaClient/Classes/Model/Objects/AssetFilePpvListResponse.swift new file mode 100644 index 000000000..dd57f1947 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetFilePpvListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset file ppv list */ +open class AssetFilePpvListResponse: ListResponse { + + public class AssetFilePpvListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of asset files ppvs */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetFilter.swift b/KalturaClient/Classes/Model/Objects/AssetFilter.swift new file mode 100644 index 000000000..225edcfaf --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetFilter.swift @@ -0,0 +1,65 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetFilter: PersistedFilter { + + public class AssetFilterTokenizer: PersistedFilter.PersistedFilterTokenizer { + + public func dynamicOrderBy() -> T { + return T(self.append("dynamicOrderBy")) + } + } + + /** dynamicOrderBy - order by Meta */ + public var dynamicOrderBy: DynamicOrderBy? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["dynamicOrderBy"] != nil { + dynamicOrderBy = try JSONParser.parse(object: dict["dynamicOrderBy"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(dynamicOrderBy != nil) { + dict["dynamicOrderBy"] = dynamicOrderBy!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetGroupBy.swift b/KalturaClient/Classes/Model/Objects/AssetGroupBy.swift new file mode 100644 index 000000000..75ef0cc3c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetGroupBy.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Abstarct class - represents an asset parameter that can be used for grouping */ +open class AssetGroupBy: ObjectBase { + + public class AssetGroupByTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetHistory.swift b/KalturaClient/Classes/Model/Objects/AssetHistory.swift new file mode 100644 index 000000000..9be5ef717 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetHistory.swift @@ -0,0 +1,141 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Watch history asset info */ +open class AssetHistory: ObjectBase { + + public class AssetHistoryTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var assetType: BaseTokenizedObject { + get { + return self.append("assetType") + } + } + + public var position: BaseTokenizedObject { + get { + return self.append("position") + } + } + + public var duration: BaseTokenizedObject { + get { + return self.append("duration") + } + } + + public var watchedDate: BaseTokenizedObject { + get { + return self.append("watchedDate") + } + } + + public var finishedWatching: BaseTokenizedObject { + get { + return self.append("finishedWatching") + } + } + } + + /** Asset identifier */ + public var assetId: Int64? = nil + /** Asset identifier */ + public var assetType: AssetType? = nil + /** Position in seconds of the relevant asset */ + public var position: Int? = nil + /** Duration in seconds of the relevant asset */ + public var duration: Int? = nil + /** The date when the media was last watched */ + public var watchedDate: Int64? = nil + /** Boolean which specifies whether the user finished watching the movie or not */ + public var finishedWatching: Bool? = nil + + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + public func setMultiRequestToken(assetType: String) { + self.dict["assetType"] = assetType + } + + public func setMultiRequestToken(position: String) { + self.dict["position"] = position + } + + public func setMultiRequestToken(duration: String) { + self.dict["duration"] = duration + } + + public func setMultiRequestToken(watchedDate: String) { + self.dict["watchedDate"] = watchedDate + } + + public func setMultiRequestToken(finishedWatching: String) { + self.dict["finishedWatching"] = finishedWatching + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetId"] != nil { + assetId = Int64("\(dict["assetId"]!)") + } + if dict["assetType"] != nil { + assetType = AssetType(rawValue: "\(dict["assetType"]!)") + } + if dict["position"] != nil { + position = dict["position"] as? Int + } + if dict["duration"] != nil { + duration = dict["duration"] as? Int + } + if dict["watchedDate"] != nil { + watchedDate = Int64("\(dict["watchedDate"]!)") + } + if dict["finishedWatching"] != nil { + finishedWatching = dict["finishedWatching"] as? Bool + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetHistoryFilter.swift b/KalturaClient/Classes/Model/Objects/AssetHistoryFilter.swift new file mode 100644 index 000000000..1afef7b0c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetHistoryFilter.swift @@ -0,0 +1,133 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetHistoryFilter: Filter { + + public class AssetHistoryFilterTokenizer: Filter.FilterTokenizer { + + public var typeIn: BaseTokenizedObject { + get { + return self.append("typeIn") + } + } + + public var assetIdIn: BaseTokenizedObject { + get { + return self.append("assetIdIn") + } + } + + public var statusEqual: BaseTokenizedObject { + get { + return self.append("statusEqual") + } + } + + public var daysLessThanOrEqual: BaseTokenizedObject { + get { + return self.append("daysLessThanOrEqual") + } + } + } + + /** Comma separated list of asset types to search within. Possible + values: 0 – EPG linear programs entries, any media type ID (according to media + type IDs defined dynamically in the system). If omitted – all + types should be included. */ + public var typeIn: String? = nil + /** Comma separated list of asset identifiers. */ + public var assetIdIn: String? = nil + /** Which type of recently watched media to include in the result – those that + finished watching, those that are in progress or both. If omitted + or specified filter = all – return all types. Allowed values: + progress – return medias that are in-progress, done – return medias that + finished watching. */ + public var statusEqual: WatchStatus? = nil + /** How many days back to return the watched media. If omitted, default to 7 days */ + public var daysLessThanOrEqual: Int? = nil + + + public func setMultiRequestToken(typeIn: String) { + self.dict["typeIn"] = typeIn + } + + public func setMultiRequestToken(assetIdIn: String) { + self.dict["assetIdIn"] = assetIdIn + } + + public func setMultiRequestToken(statusEqual: String) { + self.dict["statusEqual"] = statusEqual + } + + public func setMultiRequestToken(daysLessThanOrEqual: String) { + self.dict["daysLessThanOrEqual"] = daysLessThanOrEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["typeIn"] != nil { + typeIn = dict["typeIn"] as? String + } + if dict["assetIdIn"] != nil { + assetIdIn = dict["assetIdIn"] as? String + } + if dict["statusEqual"] != nil { + statusEqual = WatchStatus(rawValue: "\(dict["statusEqual"]!)") + } + if dict["daysLessThanOrEqual"] != nil { + daysLessThanOrEqual = dict["daysLessThanOrEqual"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(typeIn != nil) { + dict["typeIn"] = typeIn! + } + if(assetIdIn != nil) { + dict["assetIdIn"] = assetIdIn! + } + if(statusEqual != nil) { + dict["statusEqual"] = statusEqual!.rawValue + } + if(daysLessThanOrEqual != nil) { + dict["daysLessThanOrEqual"] = daysLessThanOrEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetHistoryListResponse.swift b/KalturaClient/Classes/Model/Objects/AssetHistoryListResponse.swift new file mode 100644 index 000000000..ba9474677 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetHistoryListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Watch history asset wrapper */ +open class AssetHistoryListResponse: ListResponse { + + public class AssetHistoryListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** WatchHistoryAssets Models */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetHistorySuppressFilter.swift b/KalturaClient/Classes/Model/Objects/AssetHistorySuppressFilter.swift new file mode 100644 index 000000000..4389a8a65 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetHistorySuppressFilter.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Kaltura asset image per ratio filter */ +open class AssetHistorySuppressFilter: RelatedObjectFilter { + + public class AssetHistorySuppressFilterTokenizer: RelatedObjectFilter.RelatedObjectFilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetImagePerRatioFilter.swift b/KalturaClient/Classes/Model/Objects/AssetImagePerRatioFilter.swift new file mode 100644 index 000000000..cccb1a88c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetImagePerRatioFilter.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Kaltura asset image per ratio filter */ +open class AssetImagePerRatioFilter: RelatedObjectFilter { + + public class AssetImagePerRatioFilterTokenizer: RelatedObjectFilter.RelatedObjectFilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetLifeCycleBuisnessModuleTransitionAction.swift b/KalturaClient/Classes/Model/Objects/AssetLifeCycleBuisnessModuleTransitionAction.swift new file mode 100644 index 000000000..c951328c5 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetLifeCycleBuisnessModuleTransitionAction.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetLifeCycleBuisnessModuleTransitionAction: AssetLifeCycleTransitionAction { + + public class AssetLifeCycleBuisnessModuleTransitionActionTokenizer: AssetLifeCycleTransitionAction.AssetLifeCycleTransitionActionTokenizer { + + public var fileTypeIds: BaseTokenizedObject { + get { + return self.append("fileTypeIds") + } + } + + public var ppvIds: BaseTokenizedObject { + get { + return self.append("ppvIds") + } + } + } + + /** Comma separated list of fileType Ids. */ + public var fileTypeIds: String? = nil + /** Comma separated list of ppv Ids. */ + public var ppvIds: String? = nil + + + public func setMultiRequestToken(fileTypeIds: String) { + self.dict["fileTypeIds"] = fileTypeIds + } + + public func setMultiRequestToken(ppvIds: String) { + self.dict["ppvIds"] = ppvIds + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["fileTypeIds"] != nil { + fileTypeIds = dict["fileTypeIds"] as? String + } + if dict["ppvIds"] != nil { + ppvIds = dict["ppvIds"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(fileTypeIds != nil) { + dict["fileTypeIds"] = fileTypeIds! + } + if(ppvIds != nil) { + dict["ppvIds"] = ppvIds! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetLifeCycleTagTransitionAction.swift b/KalturaClient/Classes/Model/Objects/AssetLifeCycleTagTransitionAction.swift new file mode 100644 index 000000000..59523aff4 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetLifeCycleTagTransitionAction.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetLifeCycleTagTransitionAction: AssetLifeCycleTransitionAction { + + public class AssetLifeCycleTagTransitionActionTokenizer: AssetLifeCycleTransitionAction.AssetLifeCycleTransitionActionTokenizer { + + public var tagIds: BaseTokenizedObject { + get { + return self.append("tagIds") + } + } + } + + /** Comma separated list of tag Ids. */ + public var tagIds: String? = nil + + + public func setMultiRequestToken(tagIds: String) { + self.dict["tagIds"] = tagIds + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["tagIds"] != nil { + tagIds = dict["tagIds"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(tagIds != nil) { + dict["tagIds"] = tagIds! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetLifeCycleTransitionAction.swift b/KalturaClient/Classes/Model/Objects/AssetLifeCycleTransitionAction.swift new file mode 100644 index 000000000..0926bed21 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetLifeCycleTransitionAction.swift @@ -0,0 +1,87 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetLifeCycleTransitionAction: AssetRuleAction { + + public class AssetLifeCycleTransitionActionTokenizer: AssetRuleAction.AssetRuleActionTokenizer { + + public var assetLifeCycleRuleActionType: BaseTokenizedObject { + get { + return self.append("assetLifeCycleRuleActionType") + } + } + + public var assetLifeCycleRuleTransitionType: BaseTokenizedObject { + get { + return self.append("assetLifeCycleRuleTransitionType") + } + } + } + + /** Asset LifeCycle Rule Action Type */ + public var assetLifeCycleRuleActionType: AssetLifeCycleRuleActionType? = nil + /** Asset LifeCycle Rule Transition Type */ + public var assetLifeCycleRuleTransitionType: AssetLifeCycleRuleTransitionType? = nil + + + public func setMultiRequestToken(assetLifeCycleRuleActionType: String) { + self.dict["assetLifeCycleRuleActionType"] = assetLifeCycleRuleActionType + } + + public func setMultiRequestToken(assetLifeCycleRuleTransitionType: String) { + self.dict["assetLifeCycleRuleTransitionType"] = assetLifeCycleRuleTransitionType + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetLifeCycleRuleActionType"] != nil { + assetLifeCycleRuleActionType = AssetLifeCycleRuleActionType(rawValue: "\(dict["assetLifeCycleRuleActionType"]!)") + } + if dict["assetLifeCycleRuleTransitionType"] != nil { + assetLifeCycleRuleTransitionType = AssetLifeCycleRuleTransitionType(rawValue: "\(dict["assetLifeCycleRuleTransitionType"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetLifeCycleRuleActionType != nil) { + dict["assetLifeCycleRuleActionType"] = assetLifeCycleRuleActionType!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetListResponse.swift b/KalturaClient/Classes/Model/Objects/AssetListResponse.swift new file mode 100644 index 000000000..ba68cce5f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset wrapper */ +open class AssetListResponse: ListResponse { + + public class AssetListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Assets */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetMetaOrTagGroupBy.swift b/KalturaClient/Classes/Model/Objects/AssetMetaOrTagGroupBy.swift new file mode 100644 index 000000000..15be9bc30 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetMetaOrTagGroupBy.swift @@ -0,0 +1,75 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Group by a tag or meta - according to the name that appears in the system + (similar to KSQL) */ +open class AssetMetaOrTagGroupBy: AssetGroupBy { + + public class AssetMetaOrTagGroupByTokenizer: AssetGroupBy.AssetGroupByTokenizer { + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** Group by a tag or meta - according to the name that appears in the system + (similar to KSQL) */ + public var value: String? = nil + + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["value"] != nil { + value = dict["value"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(value != nil) { + dict["value"] = value! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetOrderSegmentAction.swift b/KalturaClient/Classes/Model/Objects/AssetOrderSegmentAction.swift new file mode 100644 index 000000000..6f231f831 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetOrderSegmentAction.swift @@ -0,0 +1,87 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset order segment action */ +open class AssetOrderSegmentAction: BaseSegmentAction { + + public class AssetOrderSegmentActionTokenizer: BaseSegmentAction.BaseSegmentActionTokenizer { + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var values: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("values")) + } + } + } + + /** Action name */ + public var name: String? = nil + /** Action values */ + public var values: Array? = nil + + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["values"] != nil { + values = try JSONParser.parse(array: dict["values"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(values != nil) { + dict["values"] = values!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetReminder.swift b/KalturaClient/Classes/Model/Objects/AssetReminder.swift new file mode 100644 index 000000000..8cb1026f1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetReminder.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetReminder: Reminder { + + public class AssetReminderTokenizer: Reminder.ReminderTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + } + + /** Asset id */ + public var assetId: Int64? = nil + + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetId"] != nil { + assetId = Int64("\(dict["assetId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetId != nil) { + dict["assetId"] = assetId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetReminderFilter.swift b/KalturaClient/Classes/Model/Objects/AssetReminderFilter.swift new file mode 100644 index 000000000..324609c46 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetReminderFilter.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetReminderFilter: ReminderFilter { + + public class AssetReminderFilterTokenizer: ReminderFilter.ReminderFilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetRule.swift b/KalturaClient/Classes/Model/Objects/AssetRule.swift new file mode 100644 index 000000000..84e671169 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetRule.swift @@ -0,0 +1,98 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset rule */ +open class AssetRule: AssetRuleBase { + + public class AssetRuleTokenizer: AssetRuleBase.AssetRuleBaseTokenizer { + + public var conditions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("conditions")) + } + } + + public var actions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("actions")) + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + } + + /** List of conditions for the rule */ + public var conditions: Array? = nil + /** List of actions for the rule */ + public var actions: Array? = nil + /** List of actions for the rule */ + public var status: AssetRuleStatus? = nil + + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["conditions"] != nil { + conditions = try JSONParser.parse(array: dict["conditions"] as! [Any]) + } + if dict["actions"] != nil { + actions = try JSONParser.parse(array: dict["actions"] as! [Any]) + } + if dict["status"] != nil { + status = AssetRuleStatus(rawValue: "\(dict["status"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(conditions != nil) { + dict["conditions"] = conditions!.map { value in value.toDictionary() } + } + if(actions != nil) { + dict["actions"] = actions!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetRuleAction.swift b/KalturaClient/Classes/Model/Objects/AssetRuleAction.swift new file mode 100644 index 000000000..906023f6f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetRuleAction.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetRuleAction: RuleAction { + + public class AssetRuleActionTokenizer: RuleAction.RuleActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetRuleBase.swift b/KalturaClient/Classes/Model/Objects/AssetRuleBase.swift new file mode 100644 index 000000000..04b42cb44 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetRuleBase.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset rule base */ +open class AssetRuleBase: Rule { + + public class AssetRuleBaseTokenizer: Rule.RuleTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetRuleFilter.swift b/KalturaClient/Classes/Model/Objects/AssetRuleFilter.swift new file mode 100644 index 000000000..08b254a72 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetRuleFilter.swift @@ -0,0 +1,121 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset rule filter */ +open class AssetRuleFilter: Filter { + + public class AssetRuleFilterTokenizer: Filter.FilterTokenizer { + + public var conditionsContainType: BaseTokenizedObject { + get { + return self.append("conditionsContainType") + } + } + + public func assetApplied() -> T { + return T(self.append("assetApplied")) + } + + public var actionsContainType: BaseTokenizedObject { + get { + return self.append("actionsContainType") + } + } + + public var assetRuleIdEqual: BaseTokenizedObject { + get { + return self.append("assetRuleIdEqual") + } + } + } + + /** Indicates which asset rule list to return by it KalturaRuleConditionType. + Default value: KalturaRuleConditionType.COUNTRY */ + public var conditionsContainType: RuleConditionType? = nil + /** Indicates if to return an asset rule list that related to specific asset */ + public var assetApplied: SlimAsset? = nil + /** Indicates which asset rule list to return by this KalturaRuleActionType. */ + public var actionsContainType: RuleActionType? = nil + /** Asset rule id */ + public var assetRuleIdEqual: Int64? = nil + + + public func setMultiRequestToken(conditionsContainType: String) { + self.dict["conditionsContainType"] = conditionsContainType + } + + public func setMultiRequestToken(actionsContainType: String) { + self.dict["actionsContainType"] = actionsContainType + } + + public func setMultiRequestToken(assetRuleIdEqual: String) { + self.dict["assetRuleIdEqual"] = assetRuleIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["conditionsContainType"] != nil { + conditionsContainType = RuleConditionType(rawValue: "\(dict["conditionsContainType"]!)") + } + if dict["assetApplied"] != nil { + assetApplied = try JSONParser.parse(object: dict["assetApplied"] as! [String: Any]) } + if dict["actionsContainType"] != nil { + actionsContainType = RuleActionType(rawValue: "\(dict["actionsContainType"]!)") + } + if dict["assetRuleIdEqual"] != nil { + assetRuleIdEqual = Int64("\(dict["assetRuleIdEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(conditionsContainType != nil) { + dict["conditionsContainType"] = conditionsContainType!.rawValue + } + if(assetApplied != nil) { + dict["assetApplied"] = assetApplied!.toDictionary() + } + if(actionsContainType != nil) { + dict["actionsContainType"] = actionsContainType!.rawValue + } + if(assetRuleIdEqual != nil) { + dict["assetRuleIdEqual"] = assetRuleIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetRuleListResponse.swift b/KalturaClient/Classes/Model/Objects/AssetRuleListResponse.swift new file mode 100644 index 000000000..d91715a13 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetRuleListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetRuleListResponse: ListResponse { + + public class AssetRuleListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Asset rules */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetStatistics.swift b/KalturaClient/Classes/Model/Objects/AssetStatistics.swift new file mode 100644 index 000000000..c770f43ad --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetStatistics.swift @@ -0,0 +1,156 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset statistics */ +open class AssetStatistics: ObjectBase { + + public class AssetStatisticsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var likes: BaseTokenizedObject { + get { + return self.append("likes") + } + } + + public var views: BaseTokenizedObject { + get { + return self.append("views") + } + } + + public var ratingCount: BaseTokenizedObject { + get { + return self.append("ratingCount") + } + } + + public var rating: BaseTokenizedObject { + get { + return self.append("rating") + } + } + + public func buzzScore() -> T { + return T(self.append("buzzScore")) + } + } + + /** Unique identifier for the asset */ + public var assetId: Int? = nil + /** Total number of likes for this asset */ + public var likes: Int? = nil + /** Total number of views for this asset */ + public var views: Int? = nil + /** Number of people that rated the asset */ + public var ratingCount: Int? = nil + /** Average rating for the asset */ + public var rating: Double? = nil + /** Buzz score */ + public var buzzScore: BuzzScore? = nil + + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + public func setMultiRequestToken(likes: String) { + self.dict["likes"] = likes + } + + public func setMultiRequestToken(views: String) { + self.dict["views"] = views + } + + public func setMultiRequestToken(ratingCount: String) { + self.dict["ratingCount"] = ratingCount + } + + public func setMultiRequestToken(rating: String) { + self.dict["rating"] = rating + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetId"] != nil { + assetId = dict["assetId"] as? Int + } + if dict["likes"] != nil { + likes = dict["likes"] as? Int + } + if dict["views"] != nil { + views = dict["views"] as? Int + } + if dict["ratingCount"] != nil { + ratingCount = dict["ratingCount"] as? Int + } + if dict["rating"] != nil { + rating = dict["rating"] as? Double + } + if dict["buzzScore"] != nil { + buzzScore = try JSONParser.parse(object: dict["buzzScore"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetId != nil) { + dict["assetId"] = assetId! + } + if(likes != nil) { + dict["likes"] = likes! + } + if(views != nil) { + dict["views"] = views! + } + if(ratingCount != nil) { + dict["ratingCount"] = ratingCount! + } + if(rating != nil) { + dict["rating"] = rating! + } + if(buzzScore != nil) { + dict["buzzScore"] = buzzScore!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetStatisticsListResponse.swift b/KalturaClient/Classes/Model/Objects/AssetStatisticsListResponse.swift new file mode 100644 index 000000000..b9d4b812e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetStatisticsListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of assets statistics */ +open class AssetStatisticsListResponse: ListResponse { + + public class AssetStatisticsListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Assets */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetStatisticsQuery.swift b/KalturaClient/Classes/Model/Objects/AssetStatisticsQuery.swift new file mode 100644 index 000000000..ed862c99e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetStatisticsQuery.swift @@ -0,0 +1,126 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetStatisticsQuery: ObjectBase { + + public class AssetStatisticsQueryTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var assetIdIn: BaseTokenizedObject { + get { + return self.append("assetIdIn") + } + } + + public var assetTypeEqual: BaseTokenizedObject { + get { + return self.append("assetTypeEqual") + } + } + + public var startDateGreaterThanOrEqual: BaseTokenizedObject { + get { + return self.append("startDateGreaterThanOrEqual") + } + } + + public var endDateGreaterThanOrEqual: BaseTokenizedObject { + get { + return self.append("endDateGreaterThanOrEqual") + } + } + } + + /** Comma separated list of asset identifiers. */ + public var assetIdIn: String? = nil + /** Asset type */ + public var assetTypeEqual: AssetType? = nil + /** The beginning of the time window to get the statistics for (in epoch). */ + public var startDateGreaterThanOrEqual: Int64? = nil + /** /// The end of the time window to get the statistics for (in epoch). */ + public var endDateGreaterThanOrEqual: Int64? = nil + + + public func setMultiRequestToken(assetIdIn: String) { + self.dict["assetIdIn"] = assetIdIn + } + + public func setMultiRequestToken(assetTypeEqual: String) { + self.dict["assetTypeEqual"] = assetTypeEqual + } + + public func setMultiRequestToken(startDateGreaterThanOrEqual: String) { + self.dict["startDateGreaterThanOrEqual"] = startDateGreaterThanOrEqual + } + + public func setMultiRequestToken(endDateGreaterThanOrEqual: String) { + self.dict["endDateGreaterThanOrEqual"] = endDateGreaterThanOrEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetIdIn"] != nil { + assetIdIn = dict["assetIdIn"] as? String + } + if dict["assetTypeEqual"] != nil { + assetTypeEqual = AssetType(rawValue: "\(dict["assetTypeEqual"]!)") + } + if dict["startDateGreaterThanOrEqual"] != nil { + startDateGreaterThanOrEqual = Int64("\(dict["startDateGreaterThanOrEqual"]!)") + } + if dict["endDateGreaterThanOrEqual"] != nil { + endDateGreaterThanOrEqual = Int64("\(dict["endDateGreaterThanOrEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetIdIn != nil) { + dict["assetIdIn"] = assetIdIn! + } + if(assetTypeEqual != nil) { + dict["assetTypeEqual"] = assetTypeEqual!.rawValue + } + if(startDateGreaterThanOrEqual != nil) { + dict["startDateGreaterThanOrEqual"] = startDateGreaterThanOrEqual! + } + if(endDateGreaterThanOrEqual != nil) { + dict["endDateGreaterThanOrEqual"] = endDateGreaterThanOrEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetStruct.swift b/KalturaClient/Classes/Model/Objects/AssetStruct.swift new file mode 100644 index 000000000..a3d3b9ce1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetStruct.swift @@ -0,0 +1,275 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetStruct: ObjectBase { + + public class AssetStructTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var multilingualName: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multilingualName")) + } + } + + public var systemName: BaseTokenizedObject { + get { + return self.append("systemName") + } + } + + public var isProtected: BaseTokenizedObject { + get { + return self.append("isProtected") + } + } + + public var metaIds: BaseTokenizedObject { + get { + return self.append("metaIds") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + + public var features: BaseTokenizedObject { + get { + return self.append("features") + } + } + + public var pluralName: BaseTokenizedObject { + get { + return self.append("pluralName") + } + } + + public var parentId: BaseTokenizedObject { + get { + return self.append("parentId") + } + } + + public var connectingMetaId: BaseTokenizedObject { + get { + return self.append("connectingMetaId") + } + } + + public var connectedParentMetaId: BaseTokenizedObject { + get { + return self.append("connectedParentMetaId") + } + } + } + + /** Asset Struct id */ + public var id: Int64? = nil + /** Asset struct name for the partner */ + public var name: String? = nil + /** Asset struct name for the partner */ + public var multilingualName: Array? = nil + /** Asset Struct system name for the partner */ + public var systemName: String? = nil + /** Is the Asset Struct protected by the system */ + public var isProtected: Bool? = nil + /** A list of comma separated meta ids associated with this asset struct, returned + according to the order. */ + public var metaIds: String? = nil + /** Specifies when was the Asset Struct was created. Date and time represented as + epoch. */ + public var createDate: Int64? = nil + /** Specifies when was the Asset Struct last updated. Date and time represented as + epoch. */ + public var updateDate: Int64? = nil + /** List of supported features */ + public var features: String? = nil + /** Plural Name */ + public var pluralName: String? = nil + /** AssetStruct parent Id */ + public var parentId: Int64? = nil + /** connectingMetaId */ + public var connectingMetaId: Int64? = nil + /** connectedParentMetaId */ + public var connectedParentMetaId: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(systemName: String) { + self.dict["systemName"] = systemName + } + + public func setMultiRequestToken(isProtected: String) { + self.dict["isProtected"] = isProtected + } + + public func setMultiRequestToken(metaIds: String) { + self.dict["metaIds"] = metaIds + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public func setMultiRequestToken(features: String) { + self.dict["features"] = features + } + + public func setMultiRequestToken(pluralName: String) { + self.dict["pluralName"] = pluralName + } + + public func setMultiRequestToken(parentId: String) { + self.dict["parentId"] = parentId + } + + public func setMultiRequestToken(connectingMetaId: String) { + self.dict["connectingMetaId"] = connectingMetaId + } + + public func setMultiRequestToken(connectedParentMetaId: String) { + self.dict["connectedParentMetaId"] = connectedParentMetaId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["multilingualName"] != nil { + multilingualName = try JSONParser.parse(array: dict["multilingualName"] as! [Any]) + } + if dict["systemName"] != nil { + systemName = dict["systemName"] as? String + } + if dict["isProtected"] != nil { + isProtected = dict["isProtected"] as? Bool + } + if dict["metaIds"] != nil { + metaIds = dict["metaIds"] as? String + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + if dict["features"] != nil { + features = dict["features"] as? String + } + if dict["pluralName"] != nil { + pluralName = dict["pluralName"] as? String + } + if dict["parentId"] != nil { + parentId = Int64("\(dict["parentId"]!)") + } + if dict["connectingMetaId"] != nil { + connectingMetaId = Int64("\(dict["connectingMetaId"]!)") + } + if dict["connectedParentMetaId"] != nil { + connectedParentMetaId = Int64("\(dict["connectedParentMetaId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(multilingualName != nil) { + dict["multilingualName"] = multilingualName!.map { value in value.toDictionary() } + } + if(systemName != nil) { + dict["systemName"] = systemName! + } + if(isProtected != nil) { + dict["isProtected"] = isProtected! + } + if(metaIds != nil) { + dict["metaIds"] = metaIds! + } + if(features != nil) { + dict["features"] = features! + } + if(pluralName != nil) { + dict["pluralName"] = pluralName! + } + if(parentId != nil) { + dict["parentId"] = parentId! + } + if(connectingMetaId != nil) { + dict["connectingMetaId"] = connectingMetaId! + } + if(connectedParentMetaId != nil) { + dict["connectedParentMetaId"] = connectedParentMetaId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetStructFilter.swift b/KalturaClient/Classes/Model/Objects/AssetStructFilter.swift new file mode 100644 index 000000000..700c21167 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetStructFilter.swift @@ -0,0 +1,109 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Filtering Asset Structs */ +open class AssetStructFilter: Filter { + + public class AssetStructFilterTokenizer: Filter.FilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + + public var metaIdEqual: BaseTokenizedObject { + get { + return self.append("metaIdEqual") + } + } + + public var isProtectedEqual: BaseTokenizedObject { + get { + return self.append("isProtectedEqual") + } + } + } + + /** Comma separated identifiers, id = 0 is identified as program AssetStruct */ + public var idIn: String? = nil + /** Filter Asset Structs that contain a specific meta id */ + public var metaIdEqual: Int64? = nil + /** Filter Asset Structs by isProtectedEqual value */ + public var isProtectedEqual: Bool? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public func setMultiRequestToken(metaIdEqual: String) { + self.dict["metaIdEqual"] = metaIdEqual + } + + public func setMultiRequestToken(isProtectedEqual: String) { + self.dict["isProtectedEqual"] = isProtectedEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + if dict["metaIdEqual"] != nil { + metaIdEqual = Int64("\(dict["metaIdEqual"]!)") + } + if dict["isProtectedEqual"] != nil { + isProtectedEqual = dict["isProtectedEqual"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + if(metaIdEqual != nil) { + dict["metaIdEqual"] = metaIdEqual! + } + if(isProtectedEqual != nil) { + dict["isProtectedEqual"] = isProtectedEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetStructListResponse.swift b/KalturaClient/Classes/Model/Objects/AssetStructListResponse.swift new file mode 100644 index 000000000..937718464 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetStructListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset Structs list */ +open class AssetStructListResponse: ListResponse { + + public class AssetStructListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of asset structs */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetStructMeta.swift b/KalturaClient/Classes/Model/Objects/AssetStructMeta.swift new file mode 100644 index 000000000..bdbb02f8f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetStructMeta.swift @@ -0,0 +1,207 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset statistics */ +open class AssetStructMeta: ObjectBase { + + public class AssetStructMetaTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var assetStructId: BaseTokenizedObject { + get { + return self.append("assetStructId") + } + } + + public var metaId: BaseTokenizedObject { + get { + return self.append("metaId") + } + } + + public var ingestReferencePath: BaseTokenizedObject { + get { + return self.append("ingestReferencePath") + } + } + + public var protectFromIngest: BaseTokenizedObject { + get { + return self.append("protectFromIngest") + } + } + + public var defaultIngestValue: BaseTokenizedObject { + get { + return self.append("defaultIngestValue") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + + public var isInherited: BaseTokenizedObject { + get { + return self.append("isInherited") + } + } + + public var isLocationTag: BaseTokenizedObject { + get { + return self.append("isLocationTag") + } + } + } + + /** Asset Struct id (template_id) */ + public var assetStructId: Int64? = nil + /** Meta id (topic_id) */ + public var metaId: Int64? = nil + /** IngestReferencePath */ + public var ingestReferencePath: String? = nil + /** ProtectFromIngest */ + public var protectFromIngest: Bool? = nil + /** DefaultIngestValue */ + public var defaultIngestValue: String? = nil + /** Specifies when was the Asset Struct Meta was created. Date and time represented + as epoch. */ + public var createDate: Int64? = nil + /** Specifies when was the Asset Struct Meta last updated. Date and time represented + as epoch. */ + public var updateDate: Int64? = nil + /** Is inherited */ + public var isInherited: Bool? = nil + /** Is Location Tag */ + public var isLocationTag: Bool? = nil + + + public func setMultiRequestToken(assetStructId: String) { + self.dict["assetStructId"] = assetStructId + } + + public func setMultiRequestToken(metaId: String) { + self.dict["metaId"] = metaId + } + + public func setMultiRequestToken(ingestReferencePath: String) { + self.dict["ingestReferencePath"] = ingestReferencePath + } + + public func setMultiRequestToken(protectFromIngest: String) { + self.dict["protectFromIngest"] = protectFromIngest + } + + public func setMultiRequestToken(defaultIngestValue: String) { + self.dict["defaultIngestValue"] = defaultIngestValue + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public func setMultiRequestToken(isInherited: String) { + self.dict["isInherited"] = isInherited + } + + public func setMultiRequestToken(isLocationTag: String) { + self.dict["isLocationTag"] = isLocationTag + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetStructId"] != nil { + assetStructId = Int64("\(dict["assetStructId"]!)") + } + if dict["metaId"] != nil { + metaId = Int64("\(dict["metaId"]!)") + } + if dict["ingestReferencePath"] != nil { + ingestReferencePath = dict["ingestReferencePath"] as? String + } + if dict["protectFromIngest"] != nil { + protectFromIngest = dict["protectFromIngest"] as? Bool + } + if dict["defaultIngestValue"] != nil { + defaultIngestValue = dict["defaultIngestValue"] as? String + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + if dict["isInherited"] != nil { + isInherited = dict["isInherited"] as? Bool + } + if dict["isLocationTag"] != nil { + isLocationTag = dict["isLocationTag"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(ingestReferencePath != nil) { + dict["ingestReferencePath"] = ingestReferencePath! + } + if(protectFromIngest != nil) { + dict["protectFromIngest"] = protectFromIngest! + } + if(defaultIngestValue != nil) { + dict["defaultIngestValue"] = defaultIngestValue! + } + if(isInherited != nil) { + dict["isInherited"] = isInherited! + } + if(isLocationTag != nil) { + dict["isLocationTag"] = isLocationTag! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetStructMetaFilter.swift b/KalturaClient/Classes/Model/Objects/AssetStructMetaFilter.swift new file mode 100644 index 000000000..21bf71f5e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetStructMetaFilter.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Filtering Asset Struct Metas */ +open class AssetStructMetaFilter: Filter { + + public class AssetStructMetaFilterTokenizer: Filter.FilterTokenizer { + + public var assetStructIdEqual: BaseTokenizedObject { + get { + return self.append("assetStructIdEqual") + } + } + + public var metaIdEqual: BaseTokenizedObject { + get { + return self.append("metaIdEqual") + } + } + } + + /** Filter Asset Struct metas that contain a specific asset struct id */ + public var assetStructIdEqual: Int64? = nil + /** Filter Asset Struct metas that contain a specific meta id */ + public var metaIdEqual: Int64? = nil + + + public func setMultiRequestToken(assetStructIdEqual: String) { + self.dict["assetStructIdEqual"] = assetStructIdEqual + } + + public func setMultiRequestToken(metaIdEqual: String) { + self.dict["metaIdEqual"] = metaIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetStructIdEqual"] != nil { + assetStructIdEqual = Int64("\(dict["assetStructIdEqual"]!)") + } + if dict["metaIdEqual"] != nil { + metaIdEqual = Int64("\(dict["metaIdEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetStructIdEqual != nil) { + dict["assetStructIdEqual"] = assetStructIdEqual! + } + if(metaIdEqual != nil) { + dict["metaIdEqual"] = metaIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetStructMetaListResponse.swift b/KalturaClient/Classes/Model/Objects/AssetStructMetaListResponse.swift new file mode 100644 index 000000000..12941c8f9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetStructMetaListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset Struct Metas list */ +open class AssetStructMetaListResponse: ListResponse { + + public class AssetStructMetaListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of asset struct metas */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetSubscriptionCondition.swift b/KalturaClient/Classes/Model/Objects/AssetSubscriptionCondition.swift new file mode 100644 index 000000000..6d00e2ebf --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetSubscriptionCondition.swift @@ -0,0 +1,50 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** AssetSubscription Condition - indicates which assets this rule is applied on by + their subscriptions */ +open class AssetSubscriptionCondition: SubscriptionCondition { + + public class AssetSubscriptionConditionTokenizer: SubscriptionCondition.SubscriptionConditionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetUserRule.swift b/KalturaClient/Classes/Model/Objects/AssetUserRule.swift new file mode 100644 index 000000000..14a56bf77 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetUserRule.swift @@ -0,0 +1,83 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset user rule */ +open class AssetUserRule: AssetRuleBase { + + public class AssetUserRuleTokenizer: AssetRuleBase.AssetRuleBaseTokenizer { + + public var conditions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("conditions")) + } + } + + public var actions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("actions")) + } + } + } + + /** List of Ksql conditions for the user rule */ + public var conditions: Array? = nil + /** List of actions for the user rule */ + public var actions: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["conditions"] != nil { + conditions = try JSONParser.parse(array: dict["conditions"] as! [Any]) + } + if dict["actions"] != nil { + actions = try JSONParser.parse(array: dict["actions"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(conditions != nil) { + dict["conditions"] = conditions!.map { value in value.toDictionary() } + } + if(actions != nil) { + dict["actions"] = actions!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetUserRuleAction.swift b/KalturaClient/Classes/Model/Objects/AssetUserRuleAction.swift new file mode 100644 index 000000000..f7c3866c7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetUserRuleAction.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetUserRuleAction: RuleAction { + + public class AssetUserRuleActionTokenizer: RuleAction.RuleActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetUserRuleBlockAction.swift b/KalturaClient/Classes/Model/Objects/AssetUserRuleBlockAction.swift new file mode 100644 index 000000000..1eb0eceb4 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetUserRuleBlockAction.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetUserRuleBlockAction: AssetUserRuleAction { + + public class AssetUserRuleBlockActionTokenizer: AssetUserRuleAction.AssetUserRuleActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetUserRuleFilter.swift b/KalturaClient/Classes/Model/Objects/AssetUserRuleFilter.swift new file mode 100644 index 000000000..baffa694a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetUserRuleFilter.swift @@ -0,0 +1,92 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset user rule filter */ +open class AssetUserRuleFilter: Filter { + + public class AssetUserRuleFilterTokenizer: Filter.FilterTokenizer { + + public var attachedUserIdEqualCurrent: BaseTokenizedObject { + get { + return self.append("attachedUserIdEqualCurrent") + } + } + + public var actionsContainType: BaseTokenizedObject { + get { + return self.append("actionsContainType") + } + } + } + + /** Indicates if to get the asset user rule list for the attached user or for the + entire group */ + public var attachedUserIdEqualCurrent: Bool? = nil + /** Indicates which asset rule list to return by this KalturaRuleActionType. */ + public var actionsContainType: RuleActionType? = nil + + + public func setMultiRequestToken(attachedUserIdEqualCurrent: String) { + self.dict["attachedUserIdEqualCurrent"] = attachedUserIdEqualCurrent + } + + public func setMultiRequestToken(actionsContainType: String) { + self.dict["actionsContainType"] = actionsContainType + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["attachedUserIdEqualCurrent"] != nil { + attachedUserIdEqualCurrent = dict["attachedUserIdEqualCurrent"] as? Bool + } + if dict["actionsContainType"] != nil { + actionsContainType = RuleActionType(rawValue: "\(dict["actionsContainType"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(attachedUserIdEqualCurrent != nil) { + dict["attachedUserIdEqualCurrent"] = attachedUserIdEqualCurrent! + } + if(actionsContainType != nil) { + dict["actionsContainType"] = actionsContainType!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetUserRuleFilterAction.swift b/KalturaClient/Classes/Model/Objects/AssetUserRuleFilterAction.swift new file mode 100644 index 000000000..723d02589 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetUserRuleFilterAction.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetUserRuleFilterAction: AssetUserRuleAction { + + public class AssetUserRuleFilterActionTokenizer: AssetUserRuleAction.AssetUserRuleActionTokenizer { + + public var applyOnChannel: BaseTokenizedObject { + get { + return self.append("applyOnChannel") + } + } + } + + /** Indicates whether to apply on channel */ + public var applyOnChannel: Bool? = nil + + + public func setMultiRequestToken(applyOnChannel: String) { + self.dict["applyOnChannel"] = applyOnChannel + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["applyOnChannel"] != nil { + applyOnChannel = dict["applyOnChannel"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(applyOnChannel != nil) { + dict["applyOnChannel"] = applyOnChannel! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetUserRuleListResponse.swift b/KalturaClient/Classes/Model/Objects/AssetUserRuleListResponse.swift new file mode 100644 index 000000000..6b47a315d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetUserRuleListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetUserRuleListResponse: ListResponse { + + public class AssetUserRuleListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Asset user rules */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetsCount.swift b/KalturaClient/Classes/Model/Objects/AssetsCount.swift new file mode 100644 index 000000000..793f5d418 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetsCount.swift @@ -0,0 +1,87 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Single aggregation objects */ +open class AssetsCount: ObjectBase { + + public class AssetsCountTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var field: BaseTokenizedObject { + get { + return self.append("field") + } + } + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Field name */ + public var field: String? = nil + /** Values, their count and sub groups */ + public var objects: Array? = nil + + + public func setMultiRequestToken(field: String) { + self.dict["field"] = field + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["field"] != nil { + field = dict["field"] as? String + } + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(field != nil) { + dict["field"] = field! + } + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BaseChannel.swift b/KalturaClient/Classes/Model/Objects/BaseChannel.swift new file mode 100644 index 000000000..9ea2816c9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BaseChannel.swift @@ -0,0 +1,66 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Slim channel */ +open class BaseChannel: ObjectBase { + + public class BaseChannelTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Unique identifier for the channel */ + public var id: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BaseOTTUser.swift b/KalturaClient/Classes/Model/Objects/BaseOTTUser.swift new file mode 100644 index 000000000..9db185846 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BaseOTTUser.swift @@ -0,0 +1,124 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Slim user data */ +open class BaseOTTUser: ObjectBase { + + public class BaseOTTUserTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var username: BaseTokenizedObject { + get { + return self.append("username") + } + } + + public var firstName: BaseTokenizedObject { + get { + return self.append("firstName") + } + } + + public var lastName: BaseTokenizedObject { + get { + return self.append("lastName") + } + } + } + + /** User identifier */ + public var id: String? = nil + /** Username */ + public var username: String? = nil + /** First name */ + public var firstName: String? = nil + /** Last name */ + public var lastName: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(username: String) { + self.dict["username"] = username + } + + public func setMultiRequestToken(firstName: String) { + self.dict["firstName"] = firstName + } + + public func setMultiRequestToken(lastName: String) { + self.dict["lastName"] = lastName + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["username"] != nil { + username = dict["username"] as? String + } + if dict["firstName"] != nil { + firstName = dict["firstName"] as? String + } + if dict["lastName"] != nil { + lastName = dict["lastName"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(username != nil) { + dict["username"] = username! + } + if(firstName != nil) { + dict["firstName"] = firstName! + } + if(lastName != nil) { + dict["lastName"] = lastName! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BaseRegionFilter.swift b/KalturaClient/Classes/Model/Objects/BaseRegionFilter.swift new file mode 100644 index 000000000..a387ac4f4 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BaseRegionFilter.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class BaseRegionFilter: Filter { + + public class BaseRegionFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BaseResponseProfile.swift b/KalturaClient/Classes/Model/Objects/BaseResponseProfile.swift new file mode 100644 index 000000000..ff4c40b59 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BaseResponseProfile.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Define base profile response - optional configurations */ +open class BaseResponseProfile: ObjectBase { + + public class BaseResponseProfileTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BaseSearchAssetFilter.swift b/KalturaClient/Classes/Model/Objects/BaseSearchAssetFilter.swift new file mode 100644 index 000000000..61fc6a1aa --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BaseSearchAssetFilter.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class BaseSearchAssetFilter: AssetFilter { + + public class BaseSearchAssetFilterTokenizer: AssetFilter.AssetFilterTokenizer { + + public var kSql: BaseTokenizedObject { + get { + return self.append("kSql") + } + } + + public var groupBy: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("groupBy")) + } + } + + public var groupOrderBy: BaseTokenizedObject { + get { + return self.append("groupOrderBy") + } + } + } + + /** Search assets using dynamic criteria. Provided collection of nested expressions + with key, comparison operators, value, and logical conjunction. + Possible keys: any Tag or Meta defined in the system and the following reserved + keys: start_date, end_date. epg_id, media_id - for specific asset + IDs. geo_block - only valid value is "true": When + enabled, only assets that are not restricted to the user by geo-block rules will + return. parental_rules - only valid value is + "true": When enabled, only assets that the user + doesn't need to provide PIN code will return. + user_interests - only valid value is "true". When enabled, + only assets that the user defined as his interests (by tags and metas) will + return. epg_channel_id – the channel identifier of the EPG + program. entitled_assets - valid values: "free", + "entitled", "not_entitled", + "both". free - gets only free to watch assets. entitled - only + those that the user is implicitly entitled to watch. asset_type - + valid values: "media", "epg", + "recording" or any number that represents media type in group. + Comparison operators: for numerical fields =, >, >=, + <, <=, : (in). For alpha-numerical fields =, != + (not), ~ (like), !~, ^ (any word starts with), ^= (phrase starts with), + + (exists), !+ (not exists). Logical conjunction: and, or. + Search values are limited to 20 characters each for the next operators: ~, + !~, ^, ^= (maximum length of entire filter is 4096 characters) */ + public var kSql: String? = nil + /** groupBy */ + public var groupBy: Array? = nil + /** order by of grouping */ + public var groupOrderBy: GroupByOrder? = nil + + + public func setMultiRequestToken(kSql: String) { + self.dict["kSql"] = kSql + } + + public func setMultiRequestToken(groupOrderBy: String) { + self.dict["groupOrderBy"] = groupOrderBy + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["kSql"] != nil { + kSql = dict["kSql"] as? String + } + if dict["groupBy"] != nil { + groupBy = try JSONParser.parse(array: dict["groupBy"] as! [Any]) + } + if dict["groupOrderBy"] != nil { + groupOrderBy = GroupByOrder(rawValue: "\(dict["groupOrderBy"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(kSql != nil) { + dict["kSql"] = kSql! + } + if(groupBy != nil) { + dict["groupBy"] = groupBy!.map { value in value.toDictionary() } + } + if(groupOrderBy != nil) { + dict["groupOrderBy"] = groupOrderBy!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BaseSegmentAction.swift b/KalturaClient/Classes/Model/Objects/BaseSegmentAction.swift new file mode 100644 index 000000000..506f3866d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BaseSegmentAction.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Base class that defines segment action */ +open class BaseSegmentAction: ObjectBase { + + public class BaseSegmentActionTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BaseSegmentCondition.swift b/KalturaClient/Classes/Model/Objects/BaseSegmentCondition.swift new file mode 100644 index 000000000..921e2c319 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BaseSegmentCondition.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Base class that defines segment condition */ +open class BaseSegmentCondition: ObjectBase { + + public class BaseSegmentConditionTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BaseSegmentValue.swift b/KalturaClient/Classes/Model/Objects/BaseSegmentValue.swift new file mode 100644 index 000000000..cecf9e62a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BaseSegmentValue.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Base class that defines segment value */ +open class BaseSegmentValue: ObjectBase { + + public class BaseSegmentValueTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BaseSegmentationTypeFilter.swift b/KalturaClient/Classes/Model/Objects/BaseSegmentationTypeFilter.swift new file mode 100644 index 000000000..de1b03583 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BaseSegmentationTypeFilter.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class BaseSegmentationTypeFilter: Filter { + + public class BaseSegmentationTypeFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BillingPartnerConfig.swift b/KalturaClient/Classes/Model/Objects/BillingPartnerConfig.swift new file mode 100644 index 000000000..5a456bf5f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BillingPartnerConfig.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Partner billing configuration */ +open class BillingPartnerConfig: PartnerConfiguration { + + public class BillingPartnerConfigTokenizer: PartnerConfiguration.PartnerConfigurationTokenizer { + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** configuration value */ + public var value: String? = nil + /** partner configuration type */ + public var type: PartnerConfigurationType? = nil + + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["value"] != nil { + value = dict["value"] as? String + } + if dict["type"] != nil { + type = PartnerConfigurationType(rawValue: "\(dict["type"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(value != nil) { + dict["value"] = value! + } + if(type != nil) { + dict["type"] = type!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BillingTransaction.swift b/KalturaClient/Classes/Model/Objects/BillingTransaction.swift new file mode 100644 index 000000000..4203bda44 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BillingTransaction.swift @@ -0,0 +1,299 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Billing Transaction */ +open class BillingTransaction: ObjectBase { + + public class BillingTransactionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var recieptCode: BaseTokenizedObject { + get { + return self.append("recieptCode") + } + } + + public var purchasedItemName: BaseTokenizedObject { + get { + return self.append("purchasedItemName") + } + } + + public var purchasedItemCode: BaseTokenizedObject { + get { + return self.append("purchasedItemCode") + } + } + + public var itemType: BaseTokenizedObject { + get { + return self.append("itemType") + } + } + + public var billingAction: BaseTokenizedObject { + get { + return self.append("billingAction") + } + } + + public func price() -> T { + return T(self.append("price")) + } + + public var actionDate: BaseTokenizedObject { + get { + return self.append("actionDate") + } + } + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + + public var paymentMethod: BaseTokenizedObject { + get { + return self.append("paymentMethod") + } + } + + public var paymentMethodExtraDetails: BaseTokenizedObject { + get { + return self.append("paymentMethodExtraDetails") + } + } + + public var isRecurring: BaseTokenizedObject { + get { + return self.append("isRecurring") + } + } + + public var billingProviderRef: BaseTokenizedObject { + get { + return self.append("billingProviderRef") + } + } + + public var purchaseId: BaseTokenizedObject { + get { + return self.append("purchaseId") + } + } + + public var remarks: BaseTokenizedObject { + get { + return self.append("remarks") + } + } + + public var billingPriceType: BaseTokenizedObject { + get { + return self.append("billingPriceType") + } + } + + public var externalTransactionId: BaseTokenizedObject { + get { + return self.append("externalTransactionId") + } + } + } + + /** Reciept Code */ + public var recieptCode: String? = nil + /** Purchased Item Name */ + public var purchasedItemName: String? = nil + /** Purchased Item Code */ + public var purchasedItemCode: String? = nil + /** Item Type */ + public var itemType: BillingItemsType? = nil + /** Billing Action */ + public var billingAction: BillingAction? = nil + /** price */ + public var price: Price? = nil + /** Action Date */ + public var actionDate: Int64? = nil + /** Start Date */ + public var startDate: Int64? = nil + /** End Date */ + public var endDate: Int64? = nil + /** Payment Method */ + public var paymentMethod: PaymentMethodType? = nil + /** Payment Method Extra Details */ + public var paymentMethodExtraDetails: String? = nil + /** Is Recurring */ + public var isRecurring: Bool? = nil + /** Billing Provider Ref */ + public var billingProviderRef: Int? = nil + /** Purchase ID */ + public var purchaseId: Int? = nil + /** Remarks */ + public var remarks: String? = nil + /** Billing Price Info */ + public var billingPriceType: BillingPriceType? = nil + /** External Transaction Id */ + public var externalTransactionId: String? = nil + + + public func setMultiRequestToken(recieptCode: String) { + self.dict["recieptCode"] = recieptCode + } + + public func setMultiRequestToken(purchasedItemName: String) { + self.dict["purchasedItemName"] = purchasedItemName + } + + public func setMultiRequestToken(purchasedItemCode: String) { + self.dict["purchasedItemCode"] = purchasedItemCode + } + + public func setMultiRequestToken(itemType: String) { + self.dict["itemType"] = itemType + } + + public func setMultiRequestToken(billingAction: String) { + self.dict["billingAction"] = billingAction + } + + public func setMultiRequestToken(actionDate: String) { + self.dict["actionDate"] = actionDate + } + + public func setMultiRequestToken(startDate: String) { + self.dict["startDate"] = startDate + } + + public func setMultiRequestToken(endDate: String) { + self.dict["endDate"] = endDate + } + + public func setMultiRequestToken(paymentMethod: String) { + self.dict["paymentMethod"] = paymentMethod + } + + public func setMultiRequestToken(paymentMethodExtraDetails: String) { + self.dict["paymentMethodExtraDetails"] = paymentMethodExtraDetails + } + + public func setMultiRequestToken(isRecurring: String) { + self.dict["isRecurring"] = isRecurring + } + + public func setMultiRequestToken(billingProviderRef: String) { + self.dict["billingProviderRef"] = billingProviderRef + } + + public func setMultiRequestToken(purchaseId: String) { + self.dict["purchaseId"] = purchaseId + } + + public func setMultiRequestToken(remarks: String) { + self.dict["remarks"] = remarks + } + + public func setMultiRequestToken(billingPriceType: String) { + self.dict["billingPriceType"] = billingPriceType + } + + public func setMultiRequestToken(externalTransactionId: String) { + self.dict["externalTransactionId"] = externalTransactionId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["recieptCode"] != nil { + recieptCode = dict["recieptCode"] as? String + } + if dict["purchasedItemName"] != nil { + purchasedItemName = dict["purchasedItemName"] as? String + } + if dict["purchasedItemCode"] != nil { + purchasedItemCode = dict["purchasedItemCode"] as? String + } + if dict["itemType"] != nil { + itemType = BillingItemsType(rawValue: "\(dict["itemType"]!)") + } + if dict["billingAction"] != nil { + billingAction = BillingAction(rawValue: "\(dict["billingAction"]!)") + } + if dict["price"] != nil { + price = try JSONParser.parse(object: dict["price"] as! [String: Any]) } + if dict["actionDate"] != nil { + actionDate = Int64("\(dict["actionDate"]!)") + } + if dict["startDate"] != nil { + startDate = Int64("\(dict["startDate"]!)") + } + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + if dict["paymentMethod"] != nil { + paymentMethod = PaymentMethodType(rawValue: "\(dict["paymentMethod"]!)") + } + if dict["paymentMethodExtraDetails"] != nil { + paymentMethodExtraDetails = dict["paymentMethodExtraDetails"] as? String + } + if dict["isRecurring"] != nil { + isRecurring = dict["isRecurring"] as? Bool + } + if dict["billingProviderRef"] != nil { + billingProviderRef = dict["billingProviderRef"] as? Int + } + if dict["purchaseId"] != nil { + purchaseId = dict["purchaseId"] as? Int + } + if dict["remarks"] != nil { + remarks = dict["remarks"] as? String + } + if dict["billingPriceType"] != nil { + billingPriceType = BillingPriceType(rawValue: "\(dict["billingPriceType"]!)") + } + if dict["externalTransactionId"] != nil { + externalTransactionId = dict["externalTransactionId"] as? String + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BillingTransactionListResponse.swift b/KalturaClient/Classes/Model/Objects/BillingTransactionListResponse.swift new file mode 100644 index 000000000..f3e1ebbe0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BillingTransactionListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Billing Transactions */ +open class BillingTransactionListResponse: ListResponse { + + public class BillingTransactionListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Transactions */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BlockPlaybackAction.swift b/KalturaClient/Classes/Model/Objects/BlockPlaybackAction.swift new file mode 100644 index 000000000..48bf43403 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BlockPlaybackAction.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class BlockPlaybackAction: AssetRuleAction { + + public class BlockPlaybackActionTokenizer: AssetRuleAction.AssetRuleActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BlockSubscriptionSegmentAction.swift b/KalturaClient/Classes/Model/Objects/BlockSubscriptionSegmentAction.swift new file mode 100644 index 000000000..31f188708 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BlockSubscriptionSegmentAction.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** segment block subscription action */ +open class BlockSubscriptionSegmentAction: KsqlSegmentAction { + + public class BlockSubscriptionSegmentActionTokenizer: KsqlSegmentAction.KsqlSegmentActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/Bookmark.swift b/KalturaClient/Classes/Model/Objects/Bookmark.swift new file mode 100644 index 000000000..f52240728 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Bookmark.swift @@ -0,0 +1,165 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Bookmark: SlimAsset { + + public class BookmarkTokenizer: SlimAsset.SlimAssetTokenizer { + + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + + public var position: BaseTokenizedObject { + get { + return self.append("position") + } + } + + public var positionOwner: BaseTokenizedObject { + get { + return self.append("positionOwner") + } + } + + public var finishedWatching: BaseTokenizedObject { + get { + return self.append("finishedWatching") + } + } + + public func playerData() -> T { + return T(self.append("playerData")) + } + + public var programId: BaseTokenizedObject { + get { + return self.append("programId") + } + } + + public var isReportingMode: BaseTokenizedObject { + get { + return self.append("isReportingMode") + } + } + } + + /** User identifier */ + public var userId: String? = nil + /** The position of the user in the specific asset (in seconds) */ + public var position: Int? = nil + /** Indicates who is the owner of this position */ + public var positionOwner: PositionOwner? = nil + /** Specifies whether the user's current position exceeded 95% of the + duration */ + public var finishedWatching: Bool? = nil + /** Insert only player data */ + public var playerData: BookmarkPlayerData? = nil + /** Program Id */ + public var programId: Int64? = nil + /** Indicates if the current request is in reporting mode (hit) */ + public var isReportingMode: Bool? = nil + + + public func setMultiRequestToken(userId: String) { + self.dict["userId"] = userId + } + + public func setMultiRequestToken(position: String) { + self.dict["position"] = position + } + + public func setMultiRequestToken(positionOwner: String) { + self.dict["positionOwner"] = positionOwner + } + + public func setMultiRequestToken(finishedWatching: String) { + self.dict["finishedWatching"] = finishedWatching + } + + public func setMultiRequestToken(programId: String) { + self.dict["programId"] = programId + } + + public func setMultiRequestToken(isReportingMode: String) { + self.dict["isReportingMode"] = isReportingMode + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["userId"] != nil { + userId = dict["userId"] as? String + } + if dict["position"] != nil { + position = dict["position"] as? Int + } + if dict["positionOwner"] != nil { + positionOwner = PositionOwner(rawValue: "\(dict["positionOwner"]!)") + } + if dict["finishedWatching"] != nil { + finishedWatching = dict["finishedWatching"] as? Bool + } + if dict["playerData"] != nil { + playerData = try JSONParser.parse(object: dict["playerData"] as! [String: Any]) } + if dict["programId"] != nil { + programId = Int64("\(dict["programId"]!)") + } + if dict["isReportingMode"] != nil { + isReportingMode = dict["isReportingMode"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(position != nil) { + dict["position"] = position! + } + if(playerData != nil) { + dict["playerData"] = playerData!.toDictionary() + } + if(programId != nil) { + dict["programId"] = programId! + } + if(isReportingMode != nil) { + dict["isReportingMode"] = isReportingMode! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BookmarkEvent.swift b/KalturaClient/Classes/Model/Objects/BookmarkEvent.swift new file mode 100644 index 000000000..dc49425ca --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BookmarkEvent.swift @@ -0,0 +1,198 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class BookmarkEvent: EventObject { + + public class BookmarkEventTokenizer: EventObject.EventObjectTokenizer { + + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + + public var householdId: BaseTokenizedObject { + get { + return self.append("householdId") + } + } + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var fileId: BaseTokenizedObject { + get { + return self.append("fileId") + } + } + + public var position: BaseTokenizedObject { + get { + return self.append("position") + } + } + + public var action: BaseTokenizedObject { + get { + return self.append("action") + } + } + + public var productType: BaseTokenizedObject { + get { + return self.append("productType") + } + } + + public var productId: BaseTokenizedObject { + get { + return self.append("productId") + } + } + } + + /** User Id */ + public var userId: Int64? = nil + /** Household Id */ + public var householdId: Int64? = nil + /** Asset Id */ + public var assetId: Int64? = nil + /** File Id */ + public var fileId: Int64? = nil + /** position */ + public var position: Int? = nil + /** Bookmark Action Type */ + public var action: BookmarkActionType? = nil + /** Product Type */ + public var productType: TransactionType? = nil + /** Product Id */ + public var productId: Int? = nil + + + public func setMultiRequestToken(userId: String) { + self.dict["userId"] = userId + } + + public func setMultiRequestToken(householdId: String) { + self.dict["householdId"] = householdId + } + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + public func setMultiRequestToken(fileId: String) { + self.dict["fileId"] = fileId + } + + public func setMultiRequestToken(position: String) { + self.dict["position"] = position + } + + public func setMultiRequestToken(action: String) { + self.dict["action"] = action + } + + public func setMultiRequestToken(productType: String) { + self.dict["productType"] = productType + } + + public func setMultiRequestToken(productId: String) { + self.dict["productId"] = productId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["userId"] != nil { + userId = Int64("\(dict["userId"]!)") + } + if dict["householdId"] != nil { + householdId = Int64("\(dict["householdId"]!)") + } + if dict["assetId"] != nil { + assetId = Int64("\(dict["assetId"]!)") + } + if dict["fileId"] != nil { + fileId = Int64("\(dict["fileId"]!)") + } + if dict["position"] != nil { + position = dict["position"] as? Int + } + if dict["action"] != nil { + action = BookmarkActionType(rawValue: "\(dict["action"]!)") + } + if dict["productType"] != nil { + productType = TransactionType(rawValue: "\(dict["productType"]!)") + } + if dict["productId"] != nil { + productId = dict["productId"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(userId != nil) { + dict["userId"] = userId! + } + if(householdId != nil) { + dict["householdId"] = householdId! + } + if(assetId != nil) { + dict["assetId"] = assetId! + } + if(fileId != nil) { + dict["fileId"] = fileId! + } + if(position != nil) { + dict["position"] = position! + } + if(action != nil) { + dict["action"] = action!.rawValue + } + if(productType != nil) { + dict["productType"] = productType!.rawValue + } + if(productId != nil) { + dict["productId"] = productId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BookmarkEventThreshold.swift b/KalturaClient/Classes/Model/Objects/BookmarkEventThreshold.swift new file mode 100644 index 000000000..98d77716e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BookmarkEventThreshold.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class BookmarkEventThreshold: ObjectBase { + + public class BookmarkEventThresholdTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var transactionType: BaseTokenizedObject { + get { + return self.append("transactionType") + } + } + + public var threshold: BaseTokenizedObject { + get { + return self.append("threshold") + } + } + } + + /** bookmark transaction type */ + public var transactionType: TransactionType? = nil + /** event threshold in seconds */ + public var threshold: Int? = nil + + + public func setMultiRequestToken(transactionType: String) { + self.dict["transactionType"] = transactionType + } + + public func setMultiRequestToken(threshold: String) { + self.dict["threshold"] = threshold + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["transactionType"] != nil { + transactionType = TransactionType(rawValue: "\(dict["transactionType"]!)") + } + if dict["threshold"] != nil { + threshold = dict["threshold"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(transactionType != nil) { + dict["transactionType"] = transactionType!.rawValue + } + if(threshold != nil) { + dict["threshold"] = threshold! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BookmarkFilter.swift b/KalturaClient/Classes/Model/Objects/BookmarkFilter.swift new file mode 100644 index 000000000..60329032b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BookmarkFilter.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Filtering Assets requests */ +open class BookmarkFilter: Filter { + + public class BookmarkFilterTokenizer: Filter.FilterTokenizer { + + public var assetIdIn: BaseTokenizedObject { + get { + return self.append("assetIdIn") + } + } + + public var assetTypeEqual: BaseTokenizedObject { + get { + return self.append("assetTypeEqual") + } + } + } + + /** Comma separated list of assets identifiers */ + public var assetIdIn: String? = nil + /** Asset type */ + public var assetTypeEqual: AssetType? = nil + + + public func setMultiRequestToken(assetIdIn: String) { + self.dict["assetIdIn"] = assetIdIn + } + + public func setMultiRequestToken(assetTypeEqual: String) { + self.dict["assetTypeEqual"] = assetTypeEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetIdIn"] != nil { + assetIdIn = dict["assetIdIn"] as? String + } + if dict["assetTypeEqual"] != nil { + assetTypeEqual = AssetType(rawValue: "\(dict["assetTypeEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetIdIn != nil) { + dict["assetIdIn"] = assetIdIn! + } + if(assetTypeEqual != nil) { + dict["assetTypeEqual"] = assetTypeEqual!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BookmarkListResponse.swift b/KalturaClient/Classes/Model/Objects/BookmarkListResponse.swift new file mode 100644 index 000000000..8ae73aeb3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BookmarkListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of assets and their bookmarks */ +open class BookmarkListResponse: ListResponse { + + public class BookmarkListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Assets */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BookmarkPlayerData.swift b/KalturaClient/Classes/Model/Objects/BookmarkPlayerData.swift new file mode 100644 index 000000000..23237ed00 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BookmarkPlayerData.swift @@ -0,0 +1,144 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class BookmarkPlayerData: ObjectBase { + + public class BookmarkPlayerDataTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var action: BaseTokenizedObject { + get { + return self.append("action") + } + } + + public var averageBitrate: BaseTokenizedObject { + get { + return self.append("averageBitrate") + } + } + + public var totalBitrate: BaseTokenizedObject { + get { + return self.append("totalBitrate") + } + } + + public var currentBitrate: BaseTokenizedObject { + get { + return self.append("currentBitrate") + } + } + + public var fileId: BaseTokenizedObject { + get { + return self.append("fileId") + } + } + } + + /** Action */ + public var action: BookmarkActionType? = nil + /** Average Bitrate */ + public var averageBitrate: Int? = nil + /** Total Bitrate */ + public var totalBitrate: Int? = nil + /** Current Bitrate */ + public var currentBitrate: Int? = nil + /** Identifier of the file */ + public var fileId: Int64? = nil + + + public func setMultiRequestToken(action: String) { + self.dict["action"] = action + } + + public func setMultiRequestToken(averageBitrate: String) { + self.dict["averageBitrate"] = averageBitrate + } + + public func setMultiRequestToken(totalBitrate: String) { + self.dict["totalBitrate"] = totalBitrate + } + + public func setMultiRequestToken(currentBitrate: String) { + self.dict["currentBitrate"] = currentBitrate + } + + public func setMultiRequestToken(fileId: String) { + self.dict["fileId"] = fileId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["action"] != nil { + action = BookmarkActionType(rawValue: "\(dict["action"]!)") + } + if dict["averageBitrate"] != nil { + averageBitrate = dict["averageBitrate"] as? Int + } + if dict["totalBitrate"] != nil { + totalBitrate = dict["totalBitrate"] as? Int + } + if dict["currentBitrate"] != nil { + currentBitrate = dict["currentBitrate"] as? Int + } + if dict["fileId"] != nil { + fileId = Int64("\(dict["fileId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(action != nil) { + dict["action"] = action!.rawValue + } + if(averageBitrate != nil) { + dict["averageBitrate"] = averageBitrate! + } + if(totalBitrate != nil) { + dict["totalBitrate"] = totalBitrate! + } + if(currentBitrate != nil) { + dict["currentBitrate"] = currentBitrate! + } + if(fileId != nil) { + dict["fileId"] = fileId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BooleanValue.swift b/KalturaClient/Classes/Model/Objects/BooleanValue.swift new file mode 100644 index 000000000..e3bdc9320 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BooleanValue.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** A string representation to return an array of booleans */ +open class BooleanValue: Value { + + public class BooleanValueTokenizer: Value.ValueTokenizer { + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** Value */ + public var value: Bool? = nil + + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["value"] != nil { + value = dict["value"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(value != nil) { + dict["value"] = value! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUpload.swift b/KalturaClient/Classes/Model/Objects/BulkUpload.swift new file mode 100644 index 000000000..e0cb68078 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUpload.swift @@ -0,0 +1,194 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Bulk Upload */ +open class BulkUpload: ObjectBase { + + public class BulkUploadTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var fileName: BaseTokenizedObject { + get { + return self.append("fileName") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var action: BaseTokenizedObject { + get { + return self.append("action") + } + } + + public var numOfObjects: BaseTokenizedObject { + get { + return self.append("numOfObjects") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + + public var uploadedByUserId: BaseTokenizedObject { + get { + return self.append("uploadedByUserId") + } + } + + public var results: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("results")) + } + } + + public var errors: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("errors")) + } + } + } + + /** Bulk identifier */ + public var id: Int64? = nil + /** File Name */ + public var fileName: String? = nil + /** Status */ + public var status: BulkUploadJobStatus? = nil + /** Action */ + public var action: BulkUploadJobAction? = nil + /** Total number of objects in file */ + public var numOfObjects: Int? = nil + /** Specifies when was the bulk action created. Date and time represented as epoch */ + public var createDate: Int64? = nil + /** Specifies when was the bulk action last updated. Date and time represented as + epoch */ + public var updateDate: Int64? = nil + /** The user who uploaded this bulk */ + public var uploadedByUserId: Int64? = nil + /** A list of results */ + public var results: Array? = nil + /** A list of errors */ + public var errors: Array? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(fileName: String) { + self.dict["fileName"] = fileName + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(action: String) { + self.dict["action"] = action + } + + public func setMultiRequestToken(numOfObjects: String) { + self.dict["numOfObjects"] = numOfObjects + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public func setMultiRequestToken(uploadedByUserId: String) { + self.dict["uploadedByUserId"] = uploadedByUserId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["fileName"] != nil { + fileName = dict["fileName"] as? String + } + if dict["status"] != nil { + status = BulkUploadJobStatus(rawValue: "\(dict["status"]!)") + } + if dict["action"] != nil { + action = BulkUploadJobAction(rawValue: "\(dict["action"]!)") + } + if dict["numOfObjects"] != nil { + numOfObjects = dict["numOfObjects"] as? Int + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + if dict["uploadedByUserId"] != nil { + uploadedByUserId = Int64("\(dict["uploadedByUserId"]!)") + } + if dict["results"] != nil { + results = try JSONParser.parse(array: dict["results"] as! [Any]) + } + if dict["errors"] != nil { + errors = try JSONParser.parse(array: dict["errors"] as! [Any]) + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadAssetData.swift b/KalturaClient/Classes/Model/Objects/BulkUploadAssetData.swift new file mode 100644 index 000000000..1fa13c4f6 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadAssetData.swift @@ -0,0 +1,75 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** indicates the asset object type in the bulk file */ +open class BulkUploadAssetData: BulkUploadObjectData { + + public class BulkUploadAssetDataTokenizer: BulkUploadObjectData.BulkUploadObjectDataTokenizer { + + public var typeId: BaseTokenizedObject { + get { + return self.append("typeId") + } + } + } + + /** Identifies the asset type (EPG, Recording, Movie, TV Series, etc). + Possible values: 0 – EPG linear programs, 1 - Recording; or any asset type ID + according to the asset types IDs defined in the system. */ + public var typeId: Int64? = nil + + + public func setMultiRequestToken(typeId: String) { + self.dict["typeId"] = typeId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["typeId"] != nil { + typeId = Int64("\(dict["typeId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(typeId != nil) { + dict["typeId"] = typeId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadAssetResult.swift b/KalturaClient/Classes/Model/Objects/BulkUploadAssetResult.swift new file mode 100644 index 000000000..d6ffe5392 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadAssetResult.swift @@ -0,0 +1,82 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class BulkUploadAssetResult: BulkUploadResult { + + public class BulkUploadAssetResultTokenizer: BulkUploadResult.BulkUploadResultTokenizer { + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + } + + /** Identifies the asset type (EPG, Recording, Movie, TV Series, etc). + Possible values: 0 – EPG linear programs, 1 - Recording; or any asset type ID + according to the asset types IDs defined in the system. */ + public var type: Int? = nil + /** External identifier for the asset */ + public var externalId: String? = nil + + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(externalId: String) { + self.dict["externalId"] = externalId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["type"] != nil { + type = dict["type"] as? Int + } + if dict["externalId"] != nil { + externalId = dict["externalId"] as? String + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadExcelJobData.swift b/KalturaClient/Classes/Model/Objects/BulkUploadExcelJobData.swift new file mode 100644 index 000000000..07e745859 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadExcelJobData.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** instructions for upload data type with Excel */ +open class BulkUploadExcelJobData: BulkUploadJobData { + + public class BulkUploadExcelJobDataTokenizer: BulkUploadJobData.BulkUploadJobDataTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadFilter.swift b/KalturaClient/Classes/Model/Objects/BulkUploadFilter.swift new file mode 100644 index 000000000..0059a8bc9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadFilter.swift @@ -0,0 +1,128 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Bulk Upload Filter */ +open class BulkUploadFilter: Filter { + + public class BulkUploadFilterTokenizer: Filter.FilterTokenizer { + + public var bulkObjectTypeEqual: BaseTokenizedObject { + get { + return self.append("bulkObjectTypeEqual") + } + } + + public var createDateGreaterThanOrEqual: BaseTokenizedObject { + get { + return self.append("createDateGreaterThanOrEqual") + } + } + + public var uploadedByUserIdEqualCurrent: BaseTokenizedObject { + get { + return self.append("uploadedByUserIdEqualCurrent") + } + } + + public var statusIn: BaseTokenizedObject { + get { + return self.append("statusIn") + } + } + } + + /** bulk objects Type name (must be type of KalturaOTTObject) */ + public var bulkObjectTypeEqual: String? = nil + /** upload date to search within (search in the last 60 days) */ + public var createDateGreaterThanOrEqual: Int64? = nil + /** Indicates if to get the BulkUpload list that created by current user or by the + entire group. */ + public var uploadedByUserIdEqualCurrent: Bool? = nil + /** Comma separated list of BulkUpload Statuses to search\filter */ + public var statusIn: String? = nil + + + public func setMultiRequestToken(bulkObjectTypeEqual: String) { + self.dict["bulkObjectTypeEqual"] = bulkObjectTypeEqual + } + + public func setMultiRequestToken(createDateGreaterThanOrEqual: String) { + self.dict["createDateGreaterThanOrEqual"] = createDateGreaterThanOrEqual + } + + public func setMultiRequestToken(uploadedByUserIdEqualCurrent: String) { + self.dict["uploadedByUserIdEqualCurrent"] = uploadedByUserIdEqualCurrent + } + + public func setMultiRequestToken(statusIn: String) { + self.dict["statusIn"] = statusIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["bulkObjectTypeEqual"] != nil { + bulkObjectTypeEqual = dict["bulkObjectTypeEqual"] as? String + } + if dict["createDateGreaterThanOrEqual"] != nil { + createDateGreaterThanOrEqual = Int64("\(dict["createDateGreaterThanOrEqual"]!)") + } + if dict["uploadedByUserIdEqualCurrent"] != nil { + uploadedByUserIdEqualCurrent = dict["uploadedByUserIdEqualCurrent"] as? Bool + } + if dict["statusIn"] != nil { + statusIn = dict["statusIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(bulkObjectTypeEqual != nil) { + dict["bulkObjectTypeEqual"] = bulkObjectTypeEqual! + } + if(createDateGreaterThanOrEqual != nil) { + dict["createDateGreaterThanOrEqual"] = createDateGreaterThanOrEqual! + } + if(uploadedByUserIdEqualCurrent != nil) { + dict["uploadedByUserIdEqualCurrent"] = uploadedByUserIdEqualCurrent! + } + if(statusIn != nil) { + dict["statusIn"] = statusIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadIngestJobData.swift b/KalturaClient/Classes/Model/Objects/BulkUploadIngestJobData.swift new file mode 100644 index 000000000..4a050a1d6 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadIngestJobData.swift @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** instructions for upload data type with xml */ +open class BulkUploadIngestJobData: BulkUploadJobData { + + public class BulkUploadIngestJobDataTokenizer: BulkUploadJobData.BulkUploadJobDataTokenizer { + + public var ingestProfileId: BaseTokenizedObject { + get { + return self.append("ingestProfileId") + } + } + } + + /** Identifies the ingest profile that will handle the ingest of programs + Ingest profiles are created separately using the ingest profile service */ + public var ingestProfileId: Int? = nil + + + public func setMultiRequestToken(ingestProfileId: String) { + self.dict["ingestProfileId"] = ingestProfileId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["ingestProfileId"] != nil { + ingestProfileId = dict["ingestProfileId"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(ingestProfileId != nil) { + dict["ingestProfileId"] = ingestProfileId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadJobData.swift b/KalturaClient/Classes/Model/Objects/BulkUploadJobData.swift new file mode 100644 index 000000000..4c14c7204 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadJobData.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** instructions for upload data (the data file type, how to read the file, etc) */ +open class BulkUploadJobData: ObjectBase { + + public class BulkUploadJobDataTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadListResponse.swift b/KalturaClient/Classes/Model/Objects/BulkUploadListResponse.swift new file mode 100644 index 000000000..cb52e1ea0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset wrapper */ +open class BulkUploadListResponse: ListResponse { + + public class BulkUploadListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** bulk upload items */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadLiveAssetData.swift b/KalturaClient/Classes/Model/Objects/BulkUploadLiveAssetData.swift new file mode 100644 index 000000000..cdaefda09 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadLiveAssetData.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** indicates the media asset object type in the bulk file */ +open class BulkUploadLiveAssetData: BulkUploadMediaAssetData { + + public class BulkUploadLiveAssetDataTokenizer: BulkUploadMediaAssetData.BulkUploadMediaAssetDataTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadLiveAssetResult.swift b/KalturaClient/Classes/Model/Objects/BulkUploadLiveAssetResult.swift new file mode 100644 index 000000000..b6be92988 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadLiveAssetResult.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class BulkUploadLiveAssetResult: BulkUploadMediaAssetResult { + + public class BulkUploadLiveAssetResultTokenizer: BulkUploadMediaAssetResult.BulkUploadMediaAssetResultTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadMediaAssetData.swift b/KalturaClient/Classes/Model/Objects/BulkUploadMediaAssetData.swift new file mode 100644 index 000000000..84b047c84 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadMediaAssetData.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** indicates the media asset object type in the bulk file */ +open class BulkUploadMediaAssetData: BulkUploadAssetData { + + public class BulkUploadMediaAssetDataTokenizer: BulkUploadAssetData.BulkUploadAssetDataTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadMediaAssetResult.swift b/KalturaClient/Classes/Model/Objects/BulkUploadMediaAssetResult.swift new file mode 100644 index 000000000..ca3f06b53 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadMediaAssetResult.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class BulkUploadMediaAssetResult: BulkUploadAssetResult { + + public class BulkUploadMediaAssetResultTokenizer: BulkUploadAssetResult.BulkUploadAssetResultTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadObjectData.swift b/KalturaClient/Classes/Model/Objects/BulkUploadObjectData.swift new file mode 100644 index 000000000..057ff8b05 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadObjectData.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** indicates the object type in the bulk file */ +open class BulkUploadObjectData: ObjectBase { + + public class BulkUploadObjectDataTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadProgramAssetData.swift b/KalturaClient/Classes/Model/Objects/BulkUploadProgramAssetData.swift new file mode 100644 index 000000000..d02916a6b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadProgramAssetData.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** indicates the epg asset object type in the bulk file */ +open class BulkUploadProgramAssetData: BulkUploadAssetData { + + public class BulkUploadProgramAssetDataTokenizer: BulkUploadAssetData.BulkUploadAssetDataTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadProgramAssetResult.swift b/KalturaClient/Classes/Model/Objects/BulkUploadProgramAssetResult.swift new file mode 100644 index 000000000..41a478e24 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadProgramAssetResult.swift @@ -0,0 +1,96 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class BulkUploadProgramAssetResult: BulkUploadResult { + + public class BulkUploadProgramAssetResultTokenizer: BulkUploadResult.BulkUploadResultTokenizer { + + public var programId: BaseTokenizedObject { + get { + return self.append("programId") + } + } + + public var programExternalId: BaseTokenizedObject { + get { + return self.append("programExternalId") + } + } + + public var liveAssetId: BaseTokenizedObject { + get { + return self.append("liveAssetId") + } + } + } + + /** The programID that was created */ + public var programId: Int? = nil + /** The external program Id as was sent in the bulk xml file */ + public var programExternalId: String? = nil + /** The live asset Id that was identified according liveAssetExternalId that was + sent in bulk xml file */ + public var liveAssetId: Int? = nil + + + public func setMultiRequestToken(programId: String) { + self.dict["programId"] = programId + } + + public func setMultiRequestToken(programExternalId: String) { + self.dict["programExternalId"] = programExternalId + } + + public func setMultiRequestToken(liveAssetId: String) { + self.dict["liveAssetId"] = liveAssetId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["programId"] != nil { + programId = dict["programId"] as? Int + } + if dict["programExternalId"] != nil { + programExternalId = dict["programExternalId"] as? String + } + if dict["liveAssetId"] != nil { + liveAssetId = dict["liveAssetId"] as? Int + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadResult.swift b/KalturaClient/Classes/Model/Objects/BulkUploadResult.swift new file mode 100644 index 000000000..18b6b61c1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadResult.swift @@ -0,0 +1,133 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Bulk Upload Result */ +open class BulkUploadResult: ObjectBase { + + public class BulkUploadResultTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var objectId: BaseTokenizedObject { + get { + return self.append("objectId") + } + } + + public var index: BaseTokenizedObject { + get { + return self.append("index") + } + } + + public var bulkUploadId: BaseTokenizedObject { + get { + return self.append("bulkUploadId") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var errors: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("errors")) + } + } + + public var warnings: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("warnings")) + } + } + } + + /** the result ObjectId (assetId, userId etc) */ + public var objectId: Int64? = nil + /** result index */ + public var index: Int? = nil + /** Bulk upload identifier */ + public var bulkUploadId: Int64? = nil + /** status */ + public var status: BulkUploadResultStatus? = nil + /** A list of errors */ + public var errors: Array? = nil + /** A list of warnings */ + public var warnings: Array? = nil + + + public func setMultiRequestToken(objectId: String) { + self.dict["objectId"] = objectId + } + + public func setMultiRequestToken(index: String) { + self.dict["index"] = index + } + + public func setMultiRequestToken(bulkUploadId: String) { + self.dict["bulkUploadId"] = bulkUploadId + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objectId"] != nil { + objectId = Int64("\(dict["objectId"]!)") + } + if dict["index"] != nil { + index = dict["index"] as? Int + } + if dict["bulkUploadId"] != nil { + bulkUploadId = Int64("\(dict["bulkUploadId"]!)") + } + if dict["status"] != nil { + status = BulkUploadResultStatus(rawValue: "\(dict["status"]!)") + } + if dict["errors"] != nil { + errors = try JSONParser.parse(array: dict["errors"] as! [Any]) + } + if dict["warnings"] != nil { + warnings = try JSONParser.parse(array: dict["warnings"] as! [Any]) + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BumpersPlaybackPluginData.swift b/KalturaClient/Classes/Model/Objects/BumpersPlaybackPluginData.swift new file mode 100644 index 000000000..24496f21b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BumpersPlaybackPluginData.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class BumpersPlaybackPluginData: PlaybackPluginData { + + public class BumpersPlaybackPluginDataTokenizer: PlaybackPluginData.PlaybackPluginDataTokenizer { + + public var url: BaseTokenizedObject { + get { + return self.append("url") + } + } + + public var streamertype: BaseTokenizedObject { + get { + return self.append("streamertype") + } + } + } + + /** url */ + public var url: String? = nil + /** Streamer type: hls, dash, progressive. */ + public var streamertype: String? = nil + + + public func setMultiRequestToken(url: String) { + self.dict["url"] = url + } + + public func setMultiRequestToken(streamertype: String) { + self.dict["streamertype"] = streamertype + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["url"] != nil { + url = dict["url"] as? String + } + if dict["streamertype"] != nil { + streamertype = dict["streamertype"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(url != nil) { + dict["url"] = url! + } + if(streamertype != nil) { + dict["streamertype"] = streamertype! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BundleFilter.swift b/KalturaClient/Classes/Model/Objects/BundleFilter.swift new file mode 100644 index 000000000..62de34933 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BundleFilter.swift @@ -0,0 +1,111 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class BundleFilter: AssetFilter { + + public class BundleFilterTokenizer: AssetFilter.AssetFilterTokenizer { + + public var idEqual: BaseTokenizedObject { + get { + return self.append("idEqual") + } + } + + public var typeIn: BaseTokenizedObject { + get { + return self.append("typeIn") + } + } + + public var bundleTypeEqual: BaseTokenizedObject { + get { + return self.append("bundleTypeEqual") + } + } + } + + /** Bundle Id. */ + public var idEqual: Int? = nil + /** Comma separated list of asset types to search within. Possible + values: 0 – EPG linear programs entries, any media type ID (according to media + type IDs defined dynamically in the system). If omitted – all + types should be included. */ + public var typeIn: String? = nil + /** bundleType - possible values: Subscription or Collection */ + public var bundleTypeEqual: BundleType? = nil + + + public func setMultiRequestToken(idEqual: String) { + self.dict["idEqual"] = idEqual + } + + public func setMultiRequestToken(typeIn: String) { + self.dict["typeIn"] = typeIn + } + + public func setMultiRequestToken(bundleTypeEqual: String) { + self.dict["bundleTypeEqual"] = bundleTypeEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idEqual"] != nil { + idEqual = dict["idEqual"] as? Int + } + if dict["typeIn"] != nil { + typeIn = dict["typeIn"] as? String + } + if dict["bundleTypeEqual"] != nil { + bundleTypeEqual = BundleType(rawValue: "\(dict["bundleTypeEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idEqual != nil) { + dict["idEqual"] = idEqual! + } + if(typeIn != nil) { + dict["typeIn"] = typeIn! + } + if(bundleTypeEqual != nil) { + dict["bundleTypeEqual"] = bundleTypeEqual!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BusinessModuleCondition.swift b/KalturaClient/Classes/Model/Objects/BusinessModuleCondition.swift new file mode 100644 index 000000000..0ebd6803a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BusinessModuleCondition.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Business module condition */ +open class BusinessModuleCondition: Condition { + + public class BusinessModuleConditionTokenizer: Condition.ConditionTokenizer { + + public var businessModuleType: BaseTokenizedObject { + get { + return self.append("businessModuleType") + } + } + + public var businessModuleId: BaseTokenizedObject { + get { + return self.append("businessModuleId") + } + } + } + + /** Business module type */ + public var businessModuleType: TransactionType? = nil + /** Business module ID */ + public var businessModuleId: Int64? = nil + + + public func setMultiRequestToken(businessModuleType: String) { + self.dict["businessModuleType"] = businessModuleType + } + + public func setMultiRequestToken(businessModuleId: String) { + self.dict["businessModuleId"] = businessModuleId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["businessModuleType"] != nil { + businessModuleType = TransactionType(rawValue: "\(dict["businessModuleType"]!)") + } + if dict["businessModuleId"] != nil { + businessModuleId = Int64("\(dict["businessModuleId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(businessModuleType != nil) { + dict["businessModuleType"] = businessModuleType!.rawValue + } + if(businessModuleId != nil) { + dict["businessModuleId"] = businessModuleId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BusinessModuleRule.swift b/KalturaClient/Classes/Model/Objects/BusinessModuleRule.swift new file mode 100644 index 000000000..4b7cc7164 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BusinessModuleRule.swift @@ -0,0 +1,113 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Business module rule */ +open class BusinessModuleRule: Rule { + + public class BusinessModuleRuleTokenizer: Rule.RuleTokenizer { + + public var conditions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("conditions")) + } + } + + public var actions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("actions")) + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + } + + /** List of conditions for the rule */ + public var conditions: Array? = nil + /** List of actions for the rule */ + public var actions: Array? = nil + /** Create date of the rule */ + public var createDate: Int64? = nil + /** Update date of the rule */ + public var updateDate: Int64? = nil + + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["conditions"] != nil { + conditions = try JSONParser.parse(array: dict["conditions"] as! [Any]) + } + if dict["actions"] != nil { + actions = try JSONParser.parse(array: dict["actions"] as! [Any]) + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(conditions != nil) { + dict["conditions"] = conditions!.map { value in value.toDictionary() } + } + if(actions != nil) { + dict["actions"] = actions!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BusinessModuleRuleAction.swift b/KalturaClient/Classes/Model/Objects/BusinessModuleRuleAction.swift new file mode 100644 index 000000000..2ad3d4328 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BusinessModuleRuleAction.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class BusinessModuleRuleAction: RuleAction { + + public class BusinessModuleRuleActionTokenizer: RuleAction.RuleActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BusinessModuleRuleFilter.swift b/KalturaClient/Classes/Model/Objects/BusinessModuleRuleFilter.swift new file mode 100644 index 000000000..95a6abb0f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BusinessModuleRuleFilter.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Business module rule filter */ +open class BusinessModuleRuleFilter: Filter { + + public class BusinessModuleRuleFilterTokenizer: Filter.FilterTokenizer { + + public var businessModuleTypeApplied: BaseTokenizedObject { + get { + return self.append("businessModuleTypeApplied") + } + } + + public var businessModuleIdApplied: BaseTokenizedObject { + get { + return self.append("businessModuleIdApplied") + } + } + + public var segmentIdsApplied: BaseTokenizedObject { + get { + return self.append("segmentIdsApplied") + } + } + + public var actionsContainType: BaseTokenizedObject { + get { + return self.append("actionsContainType") + } + } + } + + /** Business module type the rules applied on */ + public var businessModuleTypeApplied: TransactionType? = nil + /** Business module ID the rules applied on */ + public var businessModuleIdApplied: Int64? = nil + /** Comma separated segment IDs the rules applied on */ + public var segmentIdsApplied: String? = nil + /** Indicates which business module rule list to return by their action. */ + public var actionsContainType: RuleActionType? = nil + + + public func setMultiRequestToken(businessModuleTypeApplied: String) { + self.dict["businessModuleTypeApplied"] = businessModuleTypeApplied + } + + public func setMultiRequestToken(businessModuleIdApplied: String) { + self.dict["businessModuleIdApplied"] = businessModuleIdApplied + } + + public func setMultiRequestToken(segmentIdsApplied: String) { + self.dict["segmentIdsApplied"] = segmentIdsApplied + } + + public func setMultiRequestToken(actionsContainType: String) { + self.dict["actionsContainType"] = actionsContainType + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["businessModuleTypeApplied"] != nil { + businessModuleTypeApplied = TransactionType(rawValue: "\(dict["businessModuleTypeApplied"]!)") + } + if dict["businessModuleIdApplied"] != nil { + businessModuleIdApplied = Int64("\(dict["businessModuleIdApplied"]!)") + } + if dict["segmentIdsApplied"] != nil { + segmentIdsApplied = dict["segmentIdsApplied"] as? String + } + if dict["actionsContainType"] != nil { + actionsContainType = RuleActionType(rawValue: "\(dict["actionsContainType"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(businessModuleTypeApplied != nil) { + dict["businessModuleTypeApplied"] = businessModuleTypeApplied!.rawValue + } + if(businessModuleIdApplied != nil) { + dict["businessModuleIdApplied"] = businessModuleIdApplied! + } + if(segmentIdsApplied != nil) { + dict["segmentIdsApplied"] = segmentIdsApplied! + } + if(actionsContainType != nil) { + dict["actionsContainType"] = actionsContainType!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BusinessModuleRuleListResponse.swift b/KalturaClient/Classes/Model/Objects/BusinessModuleRuleListResponse.swift new file mode 100644 index 000000000..37f582c97 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BusinessModuleRuleListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class BusinessModuleRuleListResponse: ListResponse { + + public class BusinessModuleRuleListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Asset rules */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BuzzScore.swift b/KalturaClient/Classes/Model/Objects/BuzzScore.swift new file mode 100644 index 000000000..96112253e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BuzzScore.swift @@ -0,0 +1,109 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Buzz score */ +open class BuzzScore: ObjectBase { + + public class BuzzScoreTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var normalizedAvgScore: BaseTokenizedObject { + get { + return self.append("normalizedAvgScore") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + + public var avgScore: BaseTokenizedObject { + get { + return self.append("avgScore") + } + } + } + + /** Normalized average score */ + public var normalizedAvgScore: Double? = nil + /** Update date */ + public var updateDate: Int64? = nil + /** Average score */ + public var avgScore: Double? = nil + + + public func setMultiRequestToken(normalizedAvgScore: String) { + self.dict["normalizedAvgScore"] = normalizedAvgScore + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public func setMultiRequestToken(avgScore: String) { + self.dict["avgScore"] = avgScore + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["normalizedAvgScore"] != nil { + normalizedAvgScore = dict["normalizedAvgScore"] as? Double + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + if dict["avgScore"] != nil { + avgScore = dict["avgScore"] as? Double + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(normalizedAvgScore != nil) { + dict["normalizedAvgScore"] = normalizedAvgScore! + } + if(updateDate != nil) { + dict["updateDate"] = updateDate! + } + if(avgScore != nil) { + dict["avgScore"] = avgScore! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CDNAdapterProfile.swift b/KalturaClient/Classes/Model/Objects/CDNAdapterProfile.swift new file mode 100644 index 000000000..d5cefe553 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CDNAdapterProfile.swift @@ -0,0 +1,189 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** CDN Adapter */ +open class CDNAdapterProfile: ObjectBase { + + public class CDNAdapterProfileTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + + public var adapterUrl: BaseTokenizedObject { + get { + return self.append("adapterUrl") + } + } + + public var baseUrl: BaseTokenizedObject { + get { + return self.append("baseUrl") + } + } + + public var settings: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("settings")) + } + } + + public var systemName: BaseTokenizedObject { + get { + return self.append("systemName") + } + } + + public var sharedSecret: BaseTokenizedObject { + get { + return self.append("sharedSecret") + } + } + } + + /** CDN adapter identifier */ + public var id: Int? = nil + /** CDNR adapter name */ + public var name: String? = nil + /** CDN adapter active status */ + public var isActive: Bool? = nil + /** CDN adapter URL */ + public var adapterUrl: String? = nil + /** CDN adapter base URL */ + public var baseUrl: String? = nil + /** CDN adapter settings */ + public var settings: Dictionary? = nil + /** CDN adapter alias */ + public var systemName: String? = nil + /** CDN shared secret */ + public var sharedSecret: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public func setMultiRequestToken(adapterUrl: String) { + self.dict["adapterUrl"] = adapterUrl + } + + public func setMultiRequestToken(baseUrl: String) { + self.dict["baseUrl"] = baseUrl + } + + public func setMultiRequestToken(systemName: String) { + self.dict["systemName"] = systemName + } + + public func setMultiRequestToken(sharedSecret: String) { + self.dict["sharedSecret"] = sharedSecret + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Bool + } + if dict["adapterUrl"] != nil { + adapterUrl = dict["adapterUrl"] as? String + } + if dict["baseUrl"] != nil { + baseUrl = dict["baseUrl"] as? String + } + if dict["settings"] != nil { + settings = try JSONParser.parse(map: dict["settings"] as! [String: Any]) + } + if dict["systemName"] != nil { + systemName = dict["systemName"] as? String + } + if dict["sharedSecret"] != nil { + sharedSecret = dict["sharedSecret"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(isActive != nil) { + dict["isActive"] = isActive! + } + if(adapterUrl != nil) { + dict["adapterUrl"] = adapterUrl! + } + if(baseUrl != nil) { + dict["baseUrl"] = baseUrl! + } + if(settings != nil) { + dict["settings"] = settings!.toDictionary() + } + if(systemName != nil) { + dict["systemName"] = systemName! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CDNAdapterProfileListResponse.swift b/KalturaClient/Classes/Model/Objects/CDNAdapterProfileListResponse.swift new file mode 100644 index 000000000..f14713b5b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CDNAdapterProfileListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CDNAdapterProfileListResponse: ListResponse { + + public class CDNAdapterProfileListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Adapters */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CDNPartnerSettings.swift b/KalturaClient/Classes/Model/Objects/CDNPartnerSettings.swift new file mode 100644 index 000000000..4c911cac6 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CDNPartnerSettings.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CDNPartnerSettings: ObjectBase { + + public class CDNPartnerSettingsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var defaultAdapterId: BaseTokenizedObject { + get { + return self.append("defaultAdapterId") + } + } + + public var defaultRecordingAdapterId: BaseTokenizedObject { + get { + return self.append("defaultRecordingAdapterId") + } + } + } + + /** Default CDN adapter identifier */ + public var defaultAdapterId: Int? = nil + /** Default recording CDN adapter identifier */ + public var defaultRecordingAdapterId: Int? = nil + + + public func setMultiRequestToken(defaultAdapterId: String) { + self.dict["defaultAdapterId"] = defaultAdapterId + } + + public func setMultiRequestToken(defaultRecordingAdapterId: String) { + self.dict["defaultRecordingAdapterId"] = defaultRecordingAdapterId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["defaultAdapterId"] != nil { + defaultAdapterId = dict["defaultAdapterId"] as? Int + } + if dict["defaultRecordingAdapterId"] != nil { + defaultRecordingAdapterId = dict["defaultRecordingAdapterId"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(defaultAdapterId != nil) { + dict["defaultAdapterId"] = defaultAdapterId! + } + if(defaultRecordingAdapterId != nil) { + dict["defaultRecordingAdapterId"] = defaultRecordingAdapterId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CDVRAdapterProfile.swift b/KalturaClient/Classes/Model/Objects/CDVRAdapterProfile.swift new file mode 100644 index 000000000..12ac81e5d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CDVRAdapterProfile.swift @@ -0,0 +1,189 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** C-DVR Adapter */ +open class CDVRAdapterProfile: ObjectBase { + + public class CDVRAdapterProfileTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + + public var adapterUrl: BaseTokenizedObject { + get { + return self.append("adapterUrl") + } + } + + public var settings: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("settings")) + } + } + + public var externalIdentifier: BaseTokenizedObject { + get { + return self.append("externalIdentifier") + } + } + + public var sharedSecret: BaseTokenizedObject { + get { + return self.append("sharedSecret") + } + } + + public var dynamicLinksSupport: BaseTokenizedObject { + get { + return self.append("dynamicLinksSupport") + } + } + } + + /** C-DVR adapter identifier */ + public var id: Int? = nil + /** C-DVR adapter name */ + public var name: String? = nil + /** C-DVR adapter active status */ + public var isActive: Bool? = nil + /** C-DVR adapter adapter URL */ + public var adapterUrl: String? = nil + /** C-DVR adapter extra parameters */ + public var settings: Dictionary? = nil + /** C-DVR adapter external identifier */ + public var externalIdentifier: String? = nil + /** C-DVR shared secret */ + public var sharedSecret: String? = nil + /** Indicates whether the C-DVR adapter supports dynamic URLs */ + public var dynamicLinksSupport: Bool? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public func setMultiRequestToken(adapterUrl: String) { + self.dict["adapterUrl"] = adapterUrl + } + + public func setMultiRequestToken(externalIdentifier: String) { + self.dict["externalIdentifier"] = externalIdentifier + } + + public func setMultiRequestToken(sharedSecret: String) { + self.dict["sharedSecret"] = sharedSecret + } + + public func setMultiRequestToken(dynamicLinksSupport: String) { + self.dict["dynamicLinksSupport"] = dynamicLinksSupport + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Bool + } + if dict["adapterUrl"] != nil { + adapterUrl = dict["adapterUrl"] as? String + } + if dict["settings"] != nil { + settings = try JSONParser.parse(map: dict["settings"] as! [String: Any]) + } + if dict["externalIdentifier"] != nil { + externalIdentifier = dict["externalIdentifier"] as? String + } + if dict["sharedSecret"] != nil { + sharedSecret = dict["sharedSecret"] as? String + } + if dict["dynamicLinksSupport"] != nil { + dynamicLinksSupport = dict["dynamicLinksSupport"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(isActive != nil) { + dict["isActive"] = isActive! + } + if(adapterUrl != nil) { + dict["adapterUrl"] = adapterUrl! + } + if(settings != nil) { + dict["settings"] = settings!.toDictionary() + } + if(externalIdentifier != nil) { + dict["externalIdentifier"] = externalIdentifier! + } + if(dynamicLinksSupport != nil) { + dict["dynamicLinksSupport"] = dynamicLinksSupport! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CDVRAdapterProfileListResponse.swift b/KalturaClient/Classes/Model/Objects/CDVRAdapterProfileListResponse.swift new file mode 100644 index 000000000..a6e08b5f1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CDVRAdapterProfileListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** C-DVR adapter profiles */ +open class CDVRAdapterProfileListResponse: ListResponse { + + public class CDVRAdapterProfileListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** C-DVR adapter profiles */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CaptionPlaybackPluginData.swift b/KalturaClient/Classes/Model/Objects/CaptionPlaybackPluginData.swift new file mode 100644 index 000000000..ff479988f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CaptionPlaybackPluginData.swift @@ -0,0 +1,126 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CaptionPlaybackPluginData: ObjectBase { + + public class CaptionPlaybackPluginDataTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var url: BaseTokenizedObject { + get { + return self.append("url") + } + } + + public var language: BaseTokenizedObject { + get { + return self.append("language") + } + } + + public var label: BaseTokenizedObject { + get { + return self.append("label") + } + } + + public var format: BaseTokenizedObject { + get { + return self.append("format") + } + } + } + + /** url */ + public var url: String? = nil + /** Language */ + public var language: String? = nil + /** Label */ + public var label: String? = nil + /** Format */ + public var format: String? = nil + + + public func setMultiRequestToken(url: String) { + self.dict["url"] = url + } + + public func setMultiRequestToken(language: String) { + self.dict["language"] = language + } + + public func setMultiRequestToken(label: String) { + self.dict["label"] = label + } + + public func setMultiRequestToken(format: String) { + self.dict["format"] = format + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["url"] != nil { + url = dict["url"] as? String + } + if dict["language"] != nil { + language = dict["language"] as? String + } + if dict["label"] != nil { + label = dict["label"] as? String + } + if dict["format"] != nil { + format = dict["format"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(url != nil) { + dict["url"] = url! + } + if(language != nil) { + dict["language"] = language! + } + if(label != nil) { + dict["label"] = label! + } + if(format != nil) { + dict["format"] = format! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CategoryItem.swift b/KalturaClient/Classes/Model/Objects/CategoryItem.swift new file mode 100644 index 000000000..1c0eb3df8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CategoryItem.swift @@ -0,0 +1,230 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Category details */ +open class CategoryItem: CrudObject { + + public class CategoryItemTokenizer: CrudObject.CrudObjectTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var multilingualName: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multilingualName")) + } + } + + public var parentId: BaseTokenizedObject { + get { + return self.append("parentId") + } + } + + public var childrenIds: BaseTokenizedObject { + get { + return self.append("childrenIds") + } + } + + public var unifiedChannels: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("unifiedChannels")) + } + } + + public var dynamicData: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("dynamicData")) + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + + public var startDateInSeconds: BaseTokenizedObject { + get { + return self.append("startDateInSeconds") + } + } + + public var endDateInSeconds: BaseTokenizedObject { + get { + return self.append("endDateInSeconds") + } + } + } + + /** Unique identifier for the category */ + public var id: Int64? = nil + /** Category name */ + public var name: String? = nil + /** Category name */ + public var multilingualName: Array? = nil + /** Category parent identifier */ + public var parentId: Int64? = nil + /** Comma separated list of child categories' Ids. */ + public var childrenIds: String? = nil + /** List of unified Channels. */ + public var unifiedChannels: Array? = nil + /** Dynamic data */ + public var dynamicData: Dictionary? = nil + /** Specifies when was the Category last updated. Date and time represented as + epoch. */ + public var updateDate: Int64? = nil + /** Category active status */ + public var isActive: Bool? = nil + /** Start date in seconds */ + public var startDateInSeconds: Int64? = nil + /** End date in seconds */ + public var endDateInSeconds: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(parentId: String) { + self.dict["parentId"] = parentId + } + + public func setMultiRequestToken(childrenIds: String) { + self.dict["childrenIds"] = childrenIds + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public func setMultiRequestToken(startDateInSeconds: String) { + self.dict["startDateInSeconds"] = startDateInSeconds + } + + public func setMultiRequestToken(endDateInSeconds: String) { + self.dict["endDateInSeconds"] = endDateInSeconds + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["multilingualName"] != nil { + multilingualName = try JSONParser.parse(array: dict["multilingualName"] as! [Any]) + } + if dict["parentId"] != nil { + parentId = Int64("\(dict["parentId"]!)") + } + if dict["childrenIds"] != nil { + childrenIds = dict["childrenIds"] as? String + } + if dict["unifiedChannels"] != nil { + unifiedChannels = try JSONParser.parse(array: dict["unifiedChannels"] as! [Any]) + } + if dict["dynamicData"] != nil { + dynamicData = try JSONParser.parse(map: dict["dynamicData"] as! [String: Any]) + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Bool + } + if dict["startDateInSeconds"] != nil { + startDateInSeconds = Int64("\(dict["startDateInSeconds"]!)") + } + if dict["endDateInSeconds"] != nil { + endDateInSeconds = Int64("\(dict["endDateInSeconds"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(multilingualName != nil) { + dict["multilingualName"] = multilingualName!.map { value in value.toDictionary() } + } + if(childrenIds != nil) { + dict["childrenIds"] = childrenIds! + } + if(unifiedChannels != nil) { + dict["unifiedChannels"] = unifiedChannels!.map { value in value.toDictionary() } + } + if(dynamicData != nil) { + dict["dynamicData"] = dynamicData!.toDictionary() + } + if(isActive != nil) { + dict["isActive"] = isActive! + } + if(startDateInSeconds != nil) { + dict["startDateInSeconds"] = startDateInSeconds! + } + if(endDateInSeconds != nil) { + dict["endDateInSeconds"] = endDateInSeconds! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CategoryItemAncestorsFilter.swift b/KalturaClient/Classes/Model/Objects/CategoryItemAncestorsFilter.swift new file mode 100644 index 000000000..efc27276e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CategoryItemAncestorsFilter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CategoryItemAncestorsFilter: CategoryItemFilter { + + public class CategoryItemAncestorsFilterTokenizer: CategoryItemFilter.CategoryItemFilterTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** KSQL expression */ + public var id: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CategoryItemByIdInFilter.swift b/KalturaClient/Classes/Model/Objects/CategoryItemByIdInFilter.swift new file mode 100644 index 000000000..0ffa2cfc5 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CategoryItemByIdInFilter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CategoryItemByIdInFilter: CategoryItemFilter { + + public class CategoryItemByIdInFilterTokenizer: CategoryItemFilter.CategoryItemFilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** Category item identifiers */ + public var idIn: String? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CategoryItemFilter.swift b/KalturaClient/Classes/Model/Objects/CategoryItemFilter.swift new file mode 100644 index 000000000..accfe2853 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CategoryItemFilter.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CategoryItemFilter: CrudFilter { + + public class CategoryItemFilterTokenizer: CrudFilter.CrudFilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/CategoryItemListResponse.swift b/KalturaClient/Classes/Model/Objects/CategoryItemListResponse.swift new file mode 100644 index 000000000..c9ddf8658 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CategoryItemListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CategoryItemListResponse: ListResponse { + + public class CategoryItemListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of objects */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CategoryItemSearchFilter.swift b/KalturaClient/Classes/Model/Objects/CategoryItemSearchFilter.swift new file mode 100644 index 000000000..e4231c2b8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CategoryItemSearchFilter.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CategoryItemSearchFilter: CategoryItemFilter { + + public class CategoryItemSearchFilterTokenizer: CategoryItemFilter.CategoryItemFilterTokenizer { + + public var kSql: BaseTokenizedObject { + get { + return self.append("kSql") + } + } + + public var rootOnly: BaseTokenizedObject { + get { + return self.append("rootOnly") + } + } + } + + /** KSQL expression */ + public var kSql: String? = nil + /** Root only */ + public var rootOnly: Bool? = nil + + + public func setMultiRequestToken(kSql: String) { + self.dict["kSql"] = kSql + } + + public func setMultiRequestToken(rootOnly: String) { + self.dict["rootOnly"] = rootOnly + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["kSql"] != nil { + kSql = dict["kSql"] as? String + } + if dict["rootOnly"] != nil { + rootOnly = dict["rootOnly"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(kSql != nil) { + dict["kSql"] = kSql! + } + if(rootOnly != nil) { + dict["rootOnly"] = rootOnly! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CategoryTree.swift b/KalturaClient/Classes/Model/Objects/CategoryTree.swift new file mode 100644 index 000000000..b9caf3cc1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CategoryTree.swift @@ -0,0 +1,206 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Category details */ +open class CategoryTree: ObjectBase { + + public class CategoryTreeTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var multilingualName: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multilingualName")) + } + } + + public var children: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("children")) + } + } + + public var unifiedChannels: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("unifiedChannels")) + } + } + + public var dynamicData: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("dynamicData")) + } + } + + public var images: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("images")) + } + } + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + + public var startDateInSeconds: BaseTokenizedObject { + get { + return self.append("startDateInSeconds") + } + } + + public var endDateInSeconds: BaseTokenizedObject { + get { + return self.append("endDateInSeconds") + } + } + } + + /** Unique identifier for the category item */ + public var id: Int64? = nil + /** Category name */ + public var name: String? = nil + /** Category name */ + public var multilingualName: Array? = nil + /** List of category tree */ + public var children: Array? = nil + /** List of unified Channels. */ + public var unifiedChannels: Array? = nil + /** Dynamic data */ + public var dynamicData: Dictionary? = nil + /** Category images */ + public var images: Array? = nil + /** Category active status */ + public var isActive: Bool? = nil + /** Start date in seconds */ + public var startDateInSeconds: Int64? = nil + /** End date in seconds */ + public var endDateInSeconds: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public func setMultiRequestToken(startDateInSeconds: String) { + self.dict["startDateInSeconds"] = startDateInSeconds + } + + public func setMultiRequestToken(endDateInSeconds: String) { + self.dict["endDateInSeconds"] = endDateInSeconds + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["multilingualName"] != nil { + multilingualName = try JSONParser.parse(array: dict["multilingualName"] as! [Any]) + } + if dict["children"] != nil { + children = try JSONParser.parse(array: dict["children"] as! [Any]) + } + if dict["unifiedChannels"] != nil { + unifiedChannels = try JSONParser.parse(array: dict["unifiedChannels"] as! [Any]) + } + if dict["dynamicData"] != nil { + dynamicData = try JSONParser.parse(map: dict["dynamicData"] as! [String: Any]) + } + if dict["images"] != nil { + images = try JSONParser.parse(array: dict["images"] as! [Any]) + } + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Bool + } + if dict["startDateInSeconds"] != nil { + startDateInSeconds = Int64("\(dict["startDateInSeconds"]!)") + } + if dict["endDateInSeconds"] != nil { + endDateInSeconds = Int64("\(dict["endDateInSeconds"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(multilingualName != nil) { + dict["multilingualName"] = multilingualName!.map { value in value.toDictionary() } + } + if(unifiedChannels != nil) { + dict["unifiedChannels"] = unifiedChannels!.map { value in value.toDictionary() } + } + if(dynamicData != nil) { + dict["dynamicData"] = dynamicData!.toDictionary() + } + if(images != nil) { + dict["images"] = images!.map { value in value.toDictionary() } + } + if(isActive != nil) { + dict["isActive"] = isActive! + } + if(startDateInSeconds != nil) { + dict["startDateInSeconds"] = startDateInSeconds! + } + if(endDateInSeconds != nil) { + dict["endDateInSeconds"] = endDateInSeconds! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Channel.swift b/KalturaClient/Classes/Model/Objects/Channel.swift new file mode 100644 index 000000000..c8b5f6d59 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Channel.swift @@ -0,0 +1,277 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Channel details */ +open class Channel: BaseChannel { + + public class ChannelTokenizer: BaseChannel.BaseChannelTokenizer { + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var multilingualName: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multilingualName")) + } + } + + public var oldName: BaseTokenizedObject { + get { + return self.append("oldName") + } + } + + public var systemName: BaseTokenizedObject { + get { + return self.append("systemName") + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + + public var multilingualDescription: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multilingualDescription")) + } + } + + public var oldDescription: BaseTokenizedObject { + get { + return self.append("oldDescription") + } + } + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + + public func orderBy() -> T { + return T(self.append("orderBy")) + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + + public var supportSegmentBasedOrdering: BaseTokenizedObject { + get { + return self.append("supportSegmentBasedOrdering") + } + } + + public var assetUserRuleId: BaseTokenizedObject { + get { + return self.append("assetUserRuleId") + } + } + + public var metaData: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("metaData")) + } + } + } + + /** Channel name */ + public var name: String? = nil + /** Channel name */ + public var multilingualName: Array? = nil + /** Channel name */ + public var oldName: String? = nil + /** Channel system name */ + public var systemName: String? = nil + /** Cannel description */ + public var description: String? = nil + /** Cannel description */ + public var multilingualDescription: Array? = nil + /** Cannel description */ + public var oldDescription: String? = nil + /** active status */ + public var isActive: Bool? = nil + /** Channel order by */ + public var orderBy: ChannelOrder? = nil + /** Specifies when was the Channel was created. Date and time represented as epoch. */ + public var createDate: Int64? = nil + /** Specifies when was the Channel last updated. Date and time represented as epoch. */ + public var updateDate: Int64? = nil + /** Specifies whether the assets in this channel will be ordered based on their + match to the user's segments (see BEO-5524) */ + public var supportSegmentBasedOrdering: Bool? = nil + /** Asset user rule identifier */ + public var assetUserRuleId: Int64? = nil + /** key/value map field for extra data */ + public var metaData: Dictionary? = nil + + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(oldName: String) { + self.dict["oldName"] = oldName + } + + public func setMultiRequestToken(systemName: String) { + self.dict["systemName"] = systemName + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public func setMultiRequestToken(oldDescription: String) { + self.dict["oldDescription"] = oldDescription + } + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public func setMultiRequestToken(supportSegmentBasedOrdering: String) { + self.dict["supportSegmentBasedOrdering"] = supportSegmentBasedOrdering + } + + public func setMultiRequestToken(assetUserRuleId: String) { + self.dict["assetUserRuleId"] = assetUserRuleId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["multilingualName"] != nil { + multilingualName = try JSONParser.parse(array: dict["multilingualName"] as! [Any]) + } + if dict["oldName"] != nil { + oldName = dict["oldName"] as? String + } + if dict["systemName"] != nil { + systemName = dict["systemName"] as? String + } + if dict["description"] != nil { + description = dict["description"] as? String + } + if dict["multilingualDescription"] != nil { + multilingualDescription = try JSONParser.parse(array: dict["multilingualDescription"] as! [Any]) + } + if dict["oldDescription"] != nil { + oldDescription = dict["oldDescription"] as? String + } + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Bool + } + if dict["orderBy"] != nil { + orderBy = try JSONParser.parse(object: dict["orderBy"] as! [String: Any]) } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + if dict["supportSegmentBasedOrdering"] != nil { + supportSegmentBasedOrdering = dict["supportSegmentBasedOrdering"] as? Bool + } + if dict["assetUserRuleId"] != nil { + assetUserRuleId = Int64("\(dict["assetUserRuleId"]!)") + } + if dict["metaData"] != nil { + metaData = try JSONParser.parse(map: dict["metaData"] as! [String: Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(multilingualName != nil) { + dict["multilingualName"] = multilingualName!.map { value in value.toDictionary() } + } + if(oldName != nil) { + dict["oldName"] = oldName! + } + if(systemName != nil) { + dict["systemName"] = systemName! + } + if(multilingualDescription != nil) { + dict["multilingualDescription"] = multilingualDescription!.map { value in value.toDictionary() } + } + if(oldDescription != nil) { + dict["oldDescription"] = oldDescription! + } + if(isActive != nil) { + dict["isActive"] = isActive! + } + if(orderBy != nil) { + dict["orderBy"] = orderBy!.toDictionary() + } + if(supportSegmentBasedOrdering != nil) { + dict["supportSegmentBasedOrdering"] = supportSegmentBasedOrdering! + } + if(assetUserRuleId != nil) { + dict["assetUserRuleId"] = assetUserRuleId! + } + if(metaData != nil) { + dict["metaData"] = metaData!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ChannelEnrichmentHolder.swift b/KalturaClient/Classes/Model/Objects/ChannelEnrichmentHolder.swift new file mode 100644 index 000000000..8a8a70731 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ChannelEnrichmentHolder.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Holder object for channel enrichment enum */ +open class ChannelEnrichmentHolder: ObjectBase { + + public class ChannelEnrichmentHolderTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** Enrichment type */ + public var type: ChannelEnrichment? = nil + + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["type"] != nil { + type = ChannelEnrichment(rawValue: "\(dict["type"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(type != nil) { + dict["type"] = type!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ChannelExternalFilter.swift b/KalturaClient/Classes/Model/Objects/ChannelExternalFilter.swift new file mode 100644 index 000000000..ce558b514 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ChannelExternalFilter.swift @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ChannelExternalFilter: AssetFilter { + + public class ChannelExternalFilterTokenizer: AssetFilter.AssetFilterTokenizer { + + public var idEqual: BaseTokenizedObject { + get { + return self.append("idEqual") + } + } + + public var utcOffsetEqual: BaseTokenizedObject { + get { + return self.append("utcOffsetEqual") + } + } + + public var freeText: BaseTokenizedObject { + get { + return self.append("freeText") + } + } + } + + /** External Channel Id. */ + public var idEqual: Int? = nil + /** UtcOffsetEqual */ + public var utcOffsetEqual: Double? = nil + /** FreeTextEqual */ + public var freeText: String? = nil + + + public func setMultiRequestToken(idEqual: String) { + self.dict["idEqual"] = idEqual + } + + public func setMultiRequestToken(utcOffsetEqual: String) { + self.dict["utcOffsetEqual"] = utcOffsetEqual + } + + public func setMultiRequestToken(freeText: String) { + self.dict["freeText"] = freeText + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idEqual"] != nil { + idEqual = dict["idEqual"] as? Int + } + if dict["utcOffsetEqual"] != nil { + utcOffsetEqual = dict["utcOffsetEqual"] as? Double + } + if dict["freeText"] != nil { + freeText = dict["freeText"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idEqual != nil) { + dict["idEqual"] = idEqual! + } + if(utcOffsetEqual != nil) { + dict["utcOffsetEqual"] = utcOffsetEqual! + } + if(freeText != nil) { + dict["freeText"] = freeText! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ChannelFilter.swift b/KalturaClient/Classes/Model/Objects/ChannelFilter.swift new file mode 100644 index 000000000..82ed3c232 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ChannelFilter.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ChannelFilter: BaseSearchAssetFilter { + + public class ChannelFilterTokenizer: BaseSearchAssetFilter.BaseSearchAssetFilterTokenizer { + + public var idEqual: BaseTokenizedObject { + get { + return self.append("idEqual") + } + } + + public var excludeWatched: BaseTokenizedObject { + get { + return self.append("excludeWatched") + } + } + } + + /** Channel Id */ + public var idEqual: Int? = nil + /** Exclude watched asset. */ + public var excludeWatched: Bool? = nil + + + public func setMultiRequestToken(idEqual: String) { + self.dict["idEqual"] = idEqual + } + + public func setMultiRequestToken(excludeWatched: String) { + self.dict["excludeWatched"] = excludeWatched + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idEqual"] != nil { + idEqual = dict["idEqual"] as? Int + } + if dict["excludeWatched"] != nil { + excludeWatched = dict["excludeWatched"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idEqual != nil) { + dict["idEqual"] = idEqual! + } + if(excludeWatched != nil) { + dict["excludeWatched"] = excludeWatched! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ChannelListResponse.swift b/KalturaClient/Classes/Model/Objects/ChannelListResponse.swift new file mode 100644 index 000000000..8584fb5be --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ChannelListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ChannelListResponse: ListResponse { + + public class ChannelListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of channels */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ChannelOrder.swift b/KalturaClient/Classes/Model/Objects/ChannelOrder.swift new file mode 100644 index 000000000..323df73fa --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ChannelOrder.swift @@ -0,0 +1,103 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Channel order details */ +open class ChannelOrder: ObjectBase { + + public class ChannelOrderTokenizer: ObjectBase.ObjectBaseTokenizer { + + public func dynamicOrderBy() -> T { + return T(self.append("dynamicOrderBy")) + } + + public var orderBy: BaseTokenizedObject { + get { + return self.append("orderBy") + } + } + + public var period: BaseTokenizedObject { + get { + return self.append("period") + } + } + } + + /** Channel dynamic order by (meta) */ + public var dynamicOrderBy: DynamicOrderBy? = nil + /** Channel order by */ + public var orderBy: ChannelOrderBy? = nil + /** Sliding window period in minutes, used only when ordering by LIKES_DESC / + VOTES_DESC / RATINGS_DESC / VIEWS_DESC */ + public var period: Int? = nil + + + public func setMultiRequestToken(orderBy: String) { + self.dict["orderBy"] = orderBy + } + + public func setMultiRequestToken(period: String) { + self.dict["period"] = period + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["dynamicOrderBy"] != nil { + dynamicOrderBy = try JSONParser.parse(object: dict["dynamicOrderBy"] as! [String: Any]) } + if dict["orderBy"] != nil { + orderBy = ChannelOrderBy(rawValue: "\(dict["orderBy"]!)") + } + if dict["period"] != nil { + period = dict["period"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(dynamicOrderBy != nil) { + dict["dynamicOrderBy"] = dynamicOrderBy!.toDictionary() + } + if(orderBy != nil) { + dict["orderBy"] = orderBy!.rawValue + } + if(period != nil) { + dict["period"] = period! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ChannelsFilter.swift b/KalturaClient/Classes/Model/Objects/ChannelsFilter.swift new file mode 100644 index 000000000..2981b321d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ChannelsFilter.swift @@ -0,0 +1,144 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ChannelsFilter: Filter { + + public class ChannelsFilterTokenizer: Filter.FilterTokenizer { + + public var idEqual: BaseTokenizedObject { + get { + return self.append("idEqual") + } + } + + public var mediaIdEqual: BaseTokenizedObject { + get { + return self.append("mediaIdEqual") + } + } + + public var nameEqual: BaseTokenizedObject { + get { + return self.append("nameEqual") + } + } + + public var nameStartsWith: BaseTokenizedObject { + get { + return self.append("nameStartsWith") + } + } + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** channel identifier to filter by */ + public var idEqual: Int? = nil + /** media identifier to filter by */ + public var mediaIdEqual: Int64? = nil + /** Exact channel name to filter by */ + public var nameEqual: String? = nil + /** Channel name starts with (auto-complete) */ + public var nameStartsWith: String? = nil + /** Comma separated channel ids */ + public var idIn: String? = nil + + + public func setMultiRequestToken(idEqual: String) { + self.dict["idEqual"] = idEqual + } + + public func setMultiRequestToken(mediaIdEqual: String) { + self.dict["mediaIdEqual"] = mediaIdEqual + } + + public func setMultiRequestToken(nameEqual: String) { + self.dict["nameEqual"] = nameEqual + } + + public func setMultiRequestToken(nameStartsWith: String) { + self.dict["nameStartsWith"] = nameStartsWith + } + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idEqual"] != nil { + idEqual = dict["idEqual"] as? Int + } + if dict["mediaIdEqual"] != nil { + mediaIdEqual = Int64("\(dict["mediaIdEqual"]!)") + } + if dict["nameEqual"] != nil { + nameEqual = dict["nameEqual"] as? String + } + if dict["nameStartsWith"] != nil { + nameStartsWith = dict["nameStartsWith"] as? String + } + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idEqual != nil) { + dict["idEqual"] = idEqual! + } + if(mediaIdEqual != nil) { + dict["mediaIdEqual"] = mediaIdEqual! + } + if(nameEqual != nil) { + dict["nameEqual"] = nameEqual! + } + if(nameStartsWith != nil) { + dict["nameStartsWith"] = nameStartsWith! + } + if(idIn != nil) { + dict["idIn"] = idIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ClientConfiguration.swift b/KalturaClient/Classes/Model/Objects/ClientConfiguration.swift new file mode 100644 index 000000000..dbb6ae45b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ClientConfiguration.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Define client optional configurations */ +open class ClientConfiguration: ObjectBase { + + public class ClientConfigurationTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var clientTag: BaseTokenizedObject { + get { + return self.append("clientTag") + } + } + + public var apiVersion: BaseTokenizedObject { + get { + return self.append("apiVersion") + } + } + } + + /** Client Tag */ + public var clientTag: String? = nil + /** API client version */ + public var apiVersion: String? = nil + + + public func setMultiRequestToken(clientTag: String) { + self.dict["clientTag"] = clientTag + } + + public func setMultiRequestToken(apiVersion: String) { + self.dict["apiVersion"] = apiVersion + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["clientTag"] != nil { + clientTag = dict["clientTag"] as? String + } + if dict["apiVersion"] != nil { + apiVersion = dict["apiVersion"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(clientTag != nil) { + dict["clientTag"] = clientTag! + } + if(apiVersion != nil) { + dict["apiVersion"] = apiVersion! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CloudRecordingFilter.swift b/KalturaClient/Classes/Model/Objects/CloudRecordingFilter.swift new file mode 100644 index 000000000..c0441f2f2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CloudRecordingFilter.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Filtering cloud external recordings */ +open class CloudRecordingFilter: ExternalRecordingFilter { + + public class CloudRecordingFilterTokenizer: ExternalRecordingFilter.ExternalRecordingFilterTokenizer { + + public var adapterData: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("adapterData")) + } + } + } + + /** Adapter Data */ + public var adapterData: Dictionary? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["adapterData"] != nil { + adapterData = try JSONParser.parse(map: dict["adapterData"] as! [String: Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(adapterData != nil) { + dict["adapterData"] = adapterData!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CloudSeriesRecordingFilter.swift b/KalturaClient/Classes/Model/Objects/CloudSeriesRecordingFilter.swift new file mode 100644 index 000000000..0180c32b0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CloudSeriesRecordingFilter.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Cloud series filtering recordings */ +open class CloudSeriesRecordingFilter: SeriesRecordingFilter { + + public class CloudSeriesRecordingFilterTokenizer: SeriesRecordingFilter.SeriesRecordingFilterTokenizer { + + public var adapterData: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("adapterData")) + } + } + } + + /** Adapter Data */ + public var adapterData: Dictionary? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["adapterData"] != nil { + adapterData = try JSONParser.parse(map: dict["adapterData"] as! [String: Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(adapterData != nil) { + dict["adapterData"] = adapterData!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CognitoIdentity.swift b/KalturaClient/Classes/Model/Objects/CognitoIdentity.swift new file mode 100644 index 000000000..4d1ff6b2d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CognitoIdentity.swift @@ -0,0 +1,65 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CognitoIdentity: ObjectBase { + + public class CognitoIdentityTokenizer: ObjectBase.ObjectBaseTokenizer { + + public func iotDefault() -> T { + return T(self.append("iotDefault")) + } + } + + /** Default */ + public var iotDefault: IotDefault? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["iotDefault"] != nil { + iotDefault = try JSONParser.parse(object: dict["iotDefault"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(iotDefault != nil) { + dict["iotDefault"] = iotDefault!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CognitoUserPool.swift b/KalturaClient/Classes/Model/Objects/CognitoUserPool.swift new file mode 100644 index 000000000..0ea2ce8f4 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CognitoUserPool.swift @@ -0,0 +1,65 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CognitoUserPool: ObjectBase { + + public class CognitoUserPoolTokenizer: ObjectBase.ObjectBaseTokenizer { + + public func iotDefault() -> T { + return T(self.append("iotDefault")) + } + } + + /** Default */ + public var iotDefault: IotDefault? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["iotDefault"] != nil { + iotDefault = try JSONParser.parse(object: dict["iotDefault"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(iotDefault != nil) { + dict["iotDefault"] = iotDefault!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Collection.swift b/KalturaClient/Classes/Model/Objects/Collection.swift new file mode 100644 index 000000000..eb84f983f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Collection.swift @@ -0,0 +1,267 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Collection */ +open class Collection: ObjectBase { + + public class CollectionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var channels: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("channels")) + } + } + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + + public func discountModule() -> T { + return T(self.append("discountModule")) + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var multilingualName: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multilingualName")) + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + + public var multilingualDescription: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multilingualDescription")) + } + } + + public func usageModule() -> T { + return T(self.append("usageModule")) + } + + public var couponsGroups: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("couponsGroups")) + } + } + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + + public var productCodes: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("productCodes")) + } + } + + public var priceDetailsId: BaseTokenizedObject { + get { + return self.append("priceDetailsId") + } + } + } + + /** Collection identifier */ + public var id: String? = nil + /** A list of channels associated with this collection */ + public var channels: Array? = nil + /** The first date the collection is available for purchasing */ + public var startDate: Int64? = nil + /** The last date the collection is available for purchasing */ + public var endDate: Int64? = nil + /** The internal discount module for the subscription */ + public var discountModule: DiscountModule? = nil + /** Name of the subscription */ + public var name: String? = nil + /** Name of the subscription */ + public var multilingualName: Array? = nil + /** description of the subscription */ + public var description: String? = nil + /** description of the subscription */ + public var multilingualDescription: Array? = nil + /** Collection usage module */ + public var usageModule: UsageModule? = nil + /** List of Coupons group */ + public var couponsGroups: Array? = nil + /** External ID */ + public var externalId: String? = nil + /** List of Collection product codes */ + public var productCodes: Array? = nil + /** The ID of the price details associated with this collection */ + public var priceDetailsId: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(startDate: String) { + self.dict["startDate"] = startDate + } + + public func setMultiRequestToken(endDate: String) { + self.dict["endDate"] = endDate + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public func setMultiRequestToken(externalId: String) { + self.dict["externalId"] = externalId + } + + public func setMultiRequestToken(priceDetailsId: String) { + self.dict["priceDetailsId"] = priceDetailsId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["channels"] != nil { + channels = try JSONParser.parse(array: dict["channels"] as! [Any]) + } + if dict["startDate"] != nil { + startDate = Int64("\(dict["startDate"]!)") + } + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + if dict["discountModule"] != nil { + discountModule = try JSONParser.parse(object: dict["discountModule"] as! [String: Any]) } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["multilingualName"] != nil { + multilingualName = try JSONParser.parse(array: dict["multilingualName"] as! [Any]) + } + if dict["description"] != nil { + description = dict["description"] as? String + } + if dict["multilingualDescription"] != nil { + multilingualDescription = try JSONParser.parse(array: dict["multilingualDescription"] as! [Any]) + } + if dict["usageModule"] != nil { + usageModule = try JSONParser.parse(object: dict["usageModule"] as! [String: Any]) } + if dict["couponsGroups"] != nil { + couponsGroups = try JSONParser.parse(array: dict["couponsGroups"] as! [Any]) + } + if dict["externalId"] != nil { + externalId = dict["externalId"] as? String + } + if dict["productCodes"] != nil { + productCodes = try JSONParser.parse(array: dict["productCodes"] as! [Any]) + } + if dict["priceDetailsId"] != nil { + priceDetailsId = Int64("\(dict["priceDetailsId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(channels != nil) { + dict["channels"] = channels!.map { value in value.toDictionary() } + } + if(startDate != nil) { + dict["startDate"] = startDate! + } + if(endDate != nil) { + dict["endDate"] = endDate! + } + if(discountModule != nil) { + dict["discountModule"] = discountModule!.toDictionary() + } + if(multilingualName != nil) { + dict["multilingualName"] = multilingualName!.map { value in value.toDictionary() } + } + if(multilingualDescription != nil) { + dict["multilingualDescription"] = multilingualDescription!.map { value in value.toDictionary() } + } + if(usageModule != nil) { + dict["usageModule"] = usageModule!.toDictionary() + } + if(couponsGroups != nil) { + dict["couponsGroups"] = couponsGroups!.map { value in value.toDictionary() } + } + if(externalId != nil) { + dict["externalId"] = externalId! + } + if(productCodes != nil) { + dict["productCodes"] = productCodes!.map { value in value.toDictionary() } + } + if(priceDetailsId != nil) { + dict["priceDetailsId"] = priceDetailsId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CollectionEntitlement.swift b/KalturaClient/Classes/Model/Objects/CollectionEntitlement.swift new file mode 100644 index 000000000..a468cf983 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CollectionEntitlement.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CollectionEntitlement: Entitlement { + + public class CollectionEntitlementTokenizer: Entitlement.EntitlementTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/CollectionFilter.swift b/KalturaClient/Classes/Model/Objects/CollectionFilter.swift new file mode 100644 index 000000000..1606b65ce --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CollectionFilter.swift @@ -0,0 +1,109 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Collection Filter */ +open class CollectionFilter: Filter { + + public class CollectionFilterTokenizer: Filter.FilterTokenizer { + + public var collectionIdIn: BaseTokenizedObject { + get { + return self.append("collectionIdIn") + } + } + + public var mediaFileIdEqual: BaseTokenizedObject { + get { + return self.append("mediaFileIdEqual") + } + } + + public var couponGroupIdEqual: BaseTokenizedObject { + get { + return self.append("couponGroupIdEqual") + } + } + } + + /** Comma separated collection IDs */ + public var collectionIdIn: String? = nil + /** Media-file ID to get the subscriptions by */ + public var mediaFileIdEqual: Int? = nil + /** couponGroupIdEqual */ + public var couponGroupIdEqual: Int? = nil + + + public func setMultiRequestToken(collectionIdIn: String) { + self.dict["collectionIdIn"] = collectionIdIn + } + + public func setMultiRequestToken(mediaFileIdEqual: String) { + self.dict["mediaFileIdEqual"] = mediaFileIdEqual + } + + public func setMultiRequestToken(couponGroupIdEqual: String) { + self.dict["couponGroupIdEqual"] = couponGroupIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["collectionIdIn"] != nil { + collectionIdIn = dict["collectionIdIn"] as? String + } + if dict["mediaFileIdEqual"] != nil { + mediaFileIdEqual = dict["mediaFileIdEqual"] as? Int + } + if dict["couponGroupIdEqual"] != nil { + couponGroupIdEqual = dict["couponGroupIdEqual"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(collectionIdIn != nil) { + dict["collectionIdIn"] = collectionIdIn! + } + if(mediaFileIdEqual != nil) { + dict["mediaFileIdEqual"] = mediaFileIdEqual! + } + if(couponGroupIdEqual != nil) { + dict["couponGroupIdEqual"] = couponGroupIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CollectionListResponse.swift b/KalturaClient/Classes/Model/Objects/CollectionListResponse.swift new file mode 100644 index 000000000..b813ab389 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CollectionListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Collections list */ +open class CollectionListResponse: ListResponse { + + public class CollectionListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of collections */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CollectionPrice.swift b/KalturaClient/Classes/Model/Objects/CollectionPrice.swift new file mode 100644 index 000000000..f091aa627 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CollectionPrice.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Collection price details */ +open class CollectionPrice: ProductPrice { + + public class CollectionPriceTokenizer: ProductPrice.ProductPriceTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/CommercePartnerConfig.swift b/KalturaClient/Classes/Model/Objects/CommercePartnerConfig.swift new file mode 100644 index 000000000..b8d243cf2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CommercePartnerConfig.swift @@ -0,0 +1,70 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** partner configuration for commerce */ +open class CommercePartnerConfig: PartnerConfiguration { + + public class CommercePartnerConfigTokenizer: PartnerConfiguration.PartnerConfigurationTokenizer { + + public var bookmarkEventThresholds: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("bookmarkEventThresholds")) + } + } + } + + /** configuration for bookmark event threshold (when to dispatch the event) in + seconds. */ + public var bookmarkEventThresholds: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["bookmarkEventThresholds"] != nil { + bookmarkEventThresholds = try JSONParser.parse(array: dict["bookmarkEventThresholds"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(bookmarkEventThresholds != nil) { + dict["bookmarkEventThresholds"] = bookmarkEventThresholds!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Compensation.swift b/KalturaClient/Classes/Model/Objects/Compensation.swift new file mode 100644 index 000000000..adffc2da0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Compensation.swift @@ -0,0 +1,172 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Compensation request parameters */ +open class Compensation: ObjectBase { + + public class CompensationTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var subscriptionId: BaseTokenizedObject { + get { + return self.append("subscriptionId") + } + } + + public var compensationType: BaseTokenizedObject { + get { + return self.append("compensationType") + } + } + + public var amount: BaseTokenizedObject { + get { + return self.append("amount") + } + } + + public var totalRenewalIterations: BaseTokenizedObject { + get { + return self.append("totalRenewalIterations") + } + } + + public var appliedRenewalIterations: BaseTokenizedObject { + get { + return self.append("appliedRenewalIterations") + } + } + + public var purchaseId: BaseTokenizedObject { + get { + return self.append("purchaseId") + } + } + } + + /** Compensation identifier */ + public var id: Int64? = nil + /** Subscription identifier */ + public var subscriptionId: Int64? = nil + /** Compensation type */ + public var compensationType: CompensationType? = nil + /** Compensation amount */ + public var amount: Double? = nil + /** The number of renewals for compensation */ + public var totalRenewalIterations: Int? = nil + /** The number of renewals the compensation was already applied on */ + public var appliedRenewalIterations: Int? = nil + /** Purchase identifier */ + public var purchaseId: Int? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(subscriptionId: String) { + self.dict["subscriptionId"] = subscriptionId + } + + public func setMultiRequestToken(compensationType: String) { + self.dict["compensationType"] = compensationType + } + + public func setMultiRequestToken(amount: String) { + self.dict["amount"] = amount + } + + public func setMultiRequestToken(totalRenewalIterations: String) { + self.dict["totalRenewalIterations"] = totalRenewalIterations + } + + public func setMultiRequestToken(appliedRenewalIterations: String) { + self.dict["appliedRenewalIterations"] = appliedRenewalIterations + } + + public func setMultiRequestToken(purchaseId: String) { + self.dict["purchaseId"] = purchaseId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["subscriptionId"] != nil { + subscriptionId = Int64("\(dict["subscriptionId"]!)") + } + if dict["compensationType"] != nil { + compensationType = CompensationType(rawValue: "\(dict["compensationType"]!)") + } + if dict["amount"] != nil { + amount = dict["amount"] as? Double + } + if dict["totalRenewalIterations"] != nil { + totalRenewalIterations = dict["totalRenewalIterations"] as? Int + } + if dict["appliedRenewalIterations"] != nil { + appliedRenewalIterations = dict["appliedRenewalIterations"] as? Int + } + if dict["purchaseId"] != nil { + purchaseId = dict["purchaseId"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(compensationType != nil) { + dict["compensationType"] = compensationType!.rawValue + } + if(amount != nil) { + dict["amount"] = amount! + } + if(totalRenewalIterations != nil) { + dict["totalRenewalIterations"] = totalRenewalIterations! + } + if(purchaseId != nil) { + dict["purchaseId"] = purchaseId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ConcurrencyCondition.swift b/KalturaClient/Classes/Model/Objects/ConcurrencyCondition.swift new file mode 100644 index 000000000..ba2d93ae6 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ConcurrencyCondition.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset Condition */ +open class ConcurrencyCondition: AssetCondition { + + public class ConcurrencyConditionTokenizer: AssetCondition.AssetConditionTokenizer { + + public var limit: BaseTokenizedObject { + get { + return self.append("limit") + } + } + + public var concurrencyLimitationType: BaseTokenizedObject { + get { + return self.append("concurrencyLimitationType") + } + } + } + + /** Concurrency limitation */ + public var limit: Int? = nil + /** Concurrency limitation type */ + public var concurrencyLimitationType: ConcurrencyLimitationType? = nil + + + public func setMultiRequestToken(limit: String) { + self.dict["limit"] = limit + } + + public func setMultiRequestToken(concurrencyLimitationType: String) { + self.dict["concurrencyLimitationType"] = concurrencyLimitationType + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["limit"] != nil { + limit = dict["limit"] as? Int + } + if dict["concurrencyLimitationType"] != nil { + concurrencyLimitationType = ConcurrencyLimitationType(rawValue: "\(dict["concurrencyLimitationType"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(limit != nil) { + dict["limit"] = limit! + } + if(concurrencyLimitationType != nil) { + dict["concurrencyLimitationType"] = concurrencyLimitationType!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ConcurrencyPartnerConfig.swift b/KalturaClient/Classes/Model/Objects/ConcurrencyPartnerConfig.swift new file mode 100644 index 000000000..6921688a9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ConcurrencyPartnerConfig.swift @@ -0,0 +1,109 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Partner concurrency configuration */ +open class ConcurrencyPartnerConfig: PartnerConfiguration { + + public class ConcurrencyPartnerConfigTokenizer: PartnerConfiguration.PartnerConfigurationTokenizer { + + public var deviceFamilyIds: BaseTokenizedObject { + get { + return self.append("deviceFamilyIds") + } + } + + public var evictionPolicy: BaseTokenizedObject { + get { + return self.append("evictionPolicy") + } + } + + public var concurrencyThresholdInSeconds: BaseTokenizedObject { + get { + return self.append("concurrencyThresholdInSeconds") + } + } + } + + /** Comma separated list of device Family Ids order by their priority. */ + public var deviceFamilyIds: String? = nil + /** Policy of eviction devices */ + public var evictionPolicy: EvictionPolicyType? = nil + /** Concurrency threshold in seconds */ + public var concurrencyThresholdInSeconds: Int64? = nil + + + public func setMultiRequestToken(deviceFamilyIds: String) { + self.dict["deviceFamilyIds"] = deviceFamilyIds + } + + public func setMultiRequestToken(evictionPolicy: String) { + self.dict["evictionPolicy"] = evictionPolicy + } + + public func setMultiRequestToken(concurrencyThresholdInSeconds: String) { + self.dict["concurrencyThresholdInSeconds"] = concurrencyThresholdInSeconds + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["deviceFamilyIds"] != nil { + deviceFamilyIds = dict["deviceFamilyIds"] as? String + } + if dict["evictionPolicy"] != nil { + evictionPolicy = EvictionPolicyType(rawValue: "\(dict["evictionPolicy"]!)") + } + if dict["concurrencyThresholdInSeconds"] != nil { + concurrencyThresholdInSeconds = Int64("\(dict["concurrencyThresholdInSeconds"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(deviceFamilyIds != nil) { + dict["deviceFamilyIds"] = deviceFamilyIds! + } + if(evictionPolicy != nil) { + dict["evictionPolicy"] = evictionPolicy!.rawValue + } + if(concurrencyThresholdInSeconds != nil) { + dict["concurrencyThresholdInSeconds"] = concurrencyThresholdInSeconds! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ConcurrencyViolation.swift b/KalturaClient/Classes/Model/Objects/ConcurrencyViolation.swift new file mode 100644 index 000000000..a29689729 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ConcurrencyViolation.swift @@ -0,0 +1,162 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ConcurrencyViolation: EventObject { + + public class ConcurrencyViolationTokenizer: EventObject.EventObjectTokenizer { + + public var timestamp: BaseTokenizedObject { + get { + return self.append("timestamp") + } + } + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var violationRule: BaseTokenizedObject { + get { + return self.append("violationRule") + } + } + + public var householdId: BaseTokenizedObject { + get { + return self.append("householdId") + } + } + + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + } + + /** Timestamp */ + public var timestamp: Int64? = nil + /** UDID */ + public var udid: String? = nil + /** Asset Id */ + public var assetId: String? = nil + /** Violation Rule */ + public var violationRule: String? = nil + /** Household Id */ + public var householdId: String? = nil + /** User Id */ + public var userId: String? = nil + + + public func setMultiRequestToken(timestamp: String) { + self.dict["timestamp"] = timestamp + } + + public func setMultiRequestToken(udid: String) { + self.dict["udid"] = udid + } + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + public func setMultiRequestToken(violationRule: String) { + self.dict["violationRule"] = violationRule + } + + public func setMultiRequestToken(householdId: String) { + self.dict["householdId"] = householdId + } + + public func setMultiRequestToken(userId: String) { + self.dict["userId"] = userId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["timestamp"] != nil { + timestamp = Int64("\(dict["timestamp"]!)") + } + if dict["udid"] != nil { + udid = dict["udid"] as? String + } + if dict["assetId"] != nil { + assetId = dict["assetId"] as? String + } + if dict["violationRule"] != nil { + violationRule = dict["violationRule"] as? String + } + if dict["householdId"] != nil { + householdId = dict["householdId"] as? String + } + if dict["userId"] != nil { + userId = dict["userId"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(timestamp != nil) { + dict["timestamp"] = timestamp! + } + if(udid != nil) { + dict["udid"] = udid! + } + if(assetId != nil) { + dict["assetId"] = assetId! + } + if(violationRule != nil) { + dict["violationRule"] = violationRule! + } + if(householdId != nil) { + dict["householdId"] = householdId! + } + if(userId != nil) { + dict["userId"] = userId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Condition.swift b/KalturaClient/Classes/Model/Objects/Condition.swift new file mode 100644 index 000000000..05ff284c7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Condition.swift @@ -0,0 +1,88 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Condition */ +open class Condition: ObjectBase { + + public class ConditionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + } + + /** The type of the condition */ + public var type: RuleConditionType? = nil + /** Description */ + public var description: String? = nil + + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["type"] != nil { + type = RuleConditionType(rawValue: "\(dict["type"]!)") + } + if dict["description"] != nil { + description = dict["description"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(description != nil) { + dict["description"] = description! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ConfigurationGroup.swift b/KalturaClient/Classes/Model/Objects/ConfigurationGroup.swift new file mode 100644 index 000000000..efb021a57 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ConfigurationGroup.swift @@ -0,0 +1,157 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ConfigurationGroup: ObjectBase { + + public class ConfigurationGroupTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var isDefault: BaseTokenizedObject { + get { + return self.append("isDefault") + } + } + + public var tags: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("tags")) + } + } + + public var numberOfDevices: BaseTokenizedObject { + get { + return self.append("numberOfDevices") + } + } + + public var configurationIdentifiers: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("configurationIdentifiers")) + } + } + } + + /** Configuration group identifier */ + public var id: String? = nil + /** Configuration group name */ + public var name: String? = nil + /** Partner id */ + public var partnerId: Int? = nil + /** Is default */ + public var isDefault: Bool? = nil + /** tags */ + public var tags: Array? = nil + /** Number of devices */ + public var numberOfDevices: Int64? = nil + /** Configuration identifiers */ + public var configurationIdentifiers: Array? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(partnerId: String) { + self.dict["partnerId"] = partnerId + } + + public func setMultiRequestToken(isDefault: String) { + self.dict["isDefault"] = isDefault + } + + public func setMultiRequestToken(numberOfDevices: String) { + self.dict["numberOfDevices"] = numberOfDevices + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["partnerId"] != nil { + partnerId = dict["partnerId"] as? Int + } + if dict["isDefault"] != nil { + isDefault = dict["isDefault"] as? Bool + } + if dict["tags"] != nil { + tags = try JSONParser.parse(array: dict["tags"] as! [Any]) + } + if dict["numberOfDevices"] != nil { + numberOfDevices = Int64("\(dict["numberOfDevices"]!)") + } + if dict["configurationIdentifiers"] != nil { + configurationIdentifiers = try JSONParser.parse(array: dict["configurationIdentifiers"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(isDefault != nil) { + dict["isDefault"] = isDefault! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ConfigurationGroupDevice.swift b/KalturaClient/Classes/Model/Objects/ConfigurationGroupDevice.swift new file mode 100644 index 000000000..4a6a4704d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ConfigurationGroupDevice.swift @@ -0,0 +1,105 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ConfigurationGroupDevice: ObjectBase { + + public class ConfigurationGroupDeviceTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var configurationGroupId: BaseTokenizedObject { + get { + return self.append("configurationGroupId") + } + } + + public var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + } + + /** Configuration group id */ + public var configurationGroupId: String? = nil + /** Partner id */ + public var partnerId: Int? = nil + /** Device UDID */ + public var udid: String? = nil + + + public func setMultiRequestToken(configurationGroupId: String) { + self.dict["configurationGroupId"] = configurationGroupId + } + + public func setMultiRequestToken(partnerId: String) { + self.dict["partnerId"] = partnerId + } + + public func setMultiRequestToken(udid: String) { + self.dict["udid"] = udid + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["configurationGroupId"] != nil { + configurationGroupId = dict["configurationGroupId"] as? String + } + if dict["partnerId"] != nil { + partnerId = dict["partnerId"] as? Int + } + if dict["udid"] != nil { + udid = dict["udid"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(configurationGroupId != nil) { + dict["configurationGroupId"] = configurationGroupId! + } + if(udid != nil) { + dict["udid"] = udid! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ConfigurationGroupDeviceFilter.swift b/KalturaClient/Classes/Model/Objects/ConfigurationGroupDeviceFilter.swift new file mode 100644 index 000000000..04eaac6c4 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ConfigurationGroupDeviceFilter.swift @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Configuration group device filter */ +open class ConfigurationGroupDeviceFilter: Filter { + + public class ConfigurationGroupDeviceFilterTokenizer: Filter.FilterTokenizer { + + public var configurationGroupIdEqual: BaseTokenizedObject { + get { + return self.append("configurationGroupIdEqual") + } + } + } + + /** the ID of the configuration group for which to return related configurations + group devices */ + public var configurationGroupIdEqual: String? = nil + + + public func setMultiRequestToken(configurationGroupIdEqual: String) { + self.dict["configurationGroupIdEqual"] = configurationGroupIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["configurationGroupIdEqual"] != nil { + configurationGroupIdEqual = dict["configurationGroupIdEqual"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(configurationGroupIdEqual != nil) { + dict["configurationGroupIdEqual"] = configurationGroupIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ConfigurationGroupDeviceListResponse.swift b/KalturaClient/Classes/Model/Objects/ConfigurationGroupDeviceListResponse.swift new file mode 100644 index 000000000..fe70b50ff --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ConfigurationGroupDeviceListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Configuration group devices info wrapper */ +open class ConfigurationGroupDeviceListResponse: ListResponse { + + public class ConfigurationGroupDeviceListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Configuration group devices */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ConfigurationGroupListResponse.swift b/KalturaClient/Classes/Model/Objects/ConfigurationGroupListResponse.swift new file mode 100644 index 000000000..b96648160 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ConfigurationGroupListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Configuration groups info wrapper */ +open class ConfigurationGroupListResponse: ListResponse { + + public class ConfigurationGroupListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Configuration groups */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ConfigurationGroupTag.swift b/KalturaClient/Classes/Model/Objects/ConfigurationGroupTag.swift new file mode 100644 index 000000000..7de82b123 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ConfigurationGroupTag.swift @@ -0,0 +1,105 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ConfigurationGroupTag: ObjectBase { + + public class ConfigurationGroupTagTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var configurationGroupId: BaseTokenizedObject { + get { + return self.append("configurationGroupId") + } + } + + public var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var tag: BaseTokenizedObject { + get { + return self.append("tag") + } + } + } + + /** Configuration group identifier */ + public var configurationGroupId: String? = nil + /** Partner identifier */ + public var partnerId: Int? = nil + /** Tag */ + public var tag: String? = nil + + + public func setMultiRequestToken(configurationGroupId: String) { + self.dict["configurationGroupId"] = configurationGroupId + } + + public func setMultiRequestToken(partnerId: String) { + self.dict["partnerId"] = partnerId + } + + public func setMultiRequestToken(tag: String) { + self.dict["tag"] = tag + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["configurationGroupId"] != nil { + configurationGroupId = dict["configurationGroupId"] as? String + } + if dict["partnerId"] != nil { + partnerId = dict["partnerId"] as? Int + } + if dict["tag"] != nil { + tag = dict["tag"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(configurationGroupId != nil) { + dict["configurationGroupId"] = configurationGroupId! + } + if(tag != nil) { + dict["tag"] = tag! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ConfigurationGroupTagFilter.swift b/KalturaClient/Classes/Model/Objects/ConfigurationGroupTagFilter.swift new file mode 100644 index 000000000..0ec4dc3cd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ConfigurationGroupTagFilter.swift @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Configuration group tag filter */ +open class ConfigurationGroupTagFilter: Filter { + + public class ConfigurationGroupTagFilterTokenizer: Filter.FilterTokenizer { + + public var configurationGroupIdEqual: BaseTokenizedObject { + get { + return self.append("configurationGroupIdEqual") + } + } + } + + /** the ID of the configuration group for which to return related configurations + group tags */ + public var configurationGroupIdEqual: String? = nil + + + public func setMultiRequestToken(configurationGroupIdEqual: String) { + self.dict["configurationGroupIdEqual"] = configurationGroupIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["configurationGroupIdEqual"] != nil { + configurationGroupIdEqual = dict["configurationGroupIdEqual"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(configurationGroupIdEqual != nil) { + dict["configurationGroupIdEqual"] = configurationGroupIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ConfigurationGroupTagListResponse.swift b/KalturaClient/Classes/Model/Objects/ConfigurationGroupTagListResponse.swift new file mode 100644 index 000000000..f6ff2bb99 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ConfigurationGroupTagListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Configurations group tags info wrapper */ +open class ConfigurationGroupTagListResponse: ListResponse { + + public class ConfigurationGroupTagListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Configuration group tags */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ConfigurationIdentifier.swift b/KalturaClient/Classes/Model/Objects/ConfigurationIdentifier.swift new file mode 100644 index 000000000..ca817b304 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ConfigurationIdentifier.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ConfigurationIdentifier: ObjectBase { + + public class ConfigurationIdentifierTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + } + + /** Identifier */ + public var id: String? = nil + /** Name */ + public var name: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["name"] != nil { + name = dict["name"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(name != nil) { + dict["name"] = name! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Configurations.swift b/KalturaClient/Classes/Model/Objects/Configurations.swift new file mode 100644 index 000000000..35c25283c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Configurations.swift @@ -0,0 +1,210 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Configurations: ObjectBase { + + public class ConfigurationsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var configurationGroupId: BaseTokenizedObject { + get { + return self.append("configurationGroupId") + } + } + + public var appName: BaseTokenizedObject { + get { + return self.append("appName") + } + } + + public var clientVersion: BaseTokenizedObject { + get { + return self.append("clientVersion") + } + } + + public var platform: BaseTokenizedObject { + get { + return self.append("platform") + } + } + + public var externalPushId: BaseTokenizedObject { + get { + return self.append("externalPushId") + } + } + + public var isForceUpdate: BaseTokenizedObject { + get { + return self.append("isForceUpdate") + } + } + + public var content: BaseTokenizedObject { + get { + return self.append("content") + } + } + } + + /** Configuration id */ + public var id: String? = nil + /** Partner id */ + public var partnerId: Int? = nil + /** Configuration group id */ + public var configurationGroupId: String? = nil + /** Application name */ + public var appName: String? = nil + /** Client version */ + public var clientVersion: String? = nil + /** Platform: Android/iOS/WindowsPhone/Blackberry/STB/CTV/Other */ + public var platform: Platform? = nil + /** External push id */ + public var externalPushId: String? = nil + /** Is force update */ + public var isForceUpdate: Bool? = nil + /** Content */ + public var content: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(partnerId: String) { + self.dict["partnerId"] = partnerId + } + + public func setMultiRequestToken(configurationGroupId: String) { + self.dict["configurationGroupId"] = configurationGroupId + } + + public func setMultiRequestToken(appName: String) { + self.dict["appName"] = appName + } + + public func setMultiRequestToken(clientVersion: String) { + self.dict["clientVersion"] = clientVersion + } + + public func setMultiRequestToken(platform: String) { + self.dict["platform"] = platform + } + + public func setMultiRequestToken(externalPushId: String) { + self.dict["externalPushId"] = externalPushId + } + + public func setMultiRequestToken(isForceUpdate: String) { + self.dict["isForceUpdate"] = isForceUpdate + } + + public func setMultiRequestToken(content: String) { + self.dict["content"] = content + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["partnerId"] != nil { + partnerId = dict["partnerId"] as? Int + } + if dict["configurationGroupId"] != nil { + configurationGroupId = dict["configurationGroupId"] as? String + } + if dict["appName"] != nil { + appName = dict["appName"] as? String + } + if dict["clientVersion"] != nil { + clientVersion = dict["clientVersion"] as? String + } + if dict["platform"] != nil { + platform = Platform(rawValue: "\(dict["platform"]!)") + } + if dict["externalPushId"] != nil { + externalPushId = dict["externalPushId"] as? String + } + if dict["isForceUpdate"] != nil { + isForceUpdate = dict["isForceUpdate"] as? Bool + } + if dict["content"] != nil { + content = dict["content"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(configurationGroupId != nil) { + dict["configurationGroupId"] = configurationGroupId! + } + if(appName != nil) { + dict["appName"] = appName! + } + if(clientVersion != nil) { + dict["clientVersion"] = clientVersion! + } + if(platform != nil) { + dict["platform"] = platform!.rawValue + } + if(externalPushId != nil) { + dict["externalPushId"] = externalPushId! + } + if(isForceUpdate != nil) { + dict["isForceUpdate"] = isForceUpdate! + } + if(content != nil) { + dict["content"] = content! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ConfigurationsFilter.swift b/KalturaClient/Classes/Model/Objects/ConfigurationsFilter.swift new file mode 100644 index 000000000..2c9527703 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ConfigurationsFilter.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Configuration filter */ +open class ConfigurationsFilter: Filter { + + public class ConfigurationsFilterTokenizer: Filter.FilterTokenizer { + + public var configurationGroupIdEqual: BaseTokenizedObject { + get { + return self.append("configurationGroupIdEqual") + } + } + } + + /** the ID of the configuration group for which to return related configurations */ + public var configurationGroupIdEqual: String? = nil + + + public func setMultiRequestToken(configurationGroupIdEqual: String) { + self.dict["configurationGroupIdEqual"] = configurationGroupIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["configurationGroupIdEqual"] != nil { + configurationGroupIdEqual = dict["configurationGroupIdEqual"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(configurationGroupIdEqual != nil) { + dict["configurationGroupIdEqual"] = configurationGroupIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ConfigurationsListResponse.swift b/KalturaClient/Classes/Model/Objects/ConfigurationsListResponse.swift new file mode 100644 index 000000000..e47fed62c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ConfigurationsListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Configurations info wrapper */ +open class ConfigurationsListResponse: ListResponse { + + public class ConfigurationsListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Configurations */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ContentActionCondition.swift b/KalturaClient/Classes/Model/Objects/ContentActionCondition.swift new file mode 100644 index 000000000..51d621175 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ContentActionCondition.swift @@ -0,0 +1,129 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Segmentation condition regarding content actions */ +open class ContentActionCondition: ObjectBase { + + public class ContentActionConditionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var action: BaseTokenizedObject { + get { + return self.append("action") + } + } + + public var length: BaseTokenizedObject { + get { + return self.append("length") + } + } + + public var lengthType: BaseTokenizedObject { + get { + return self.append("lengthType") + } + } + + public var multiplier: BaseTokenizedObject { + get { + return self.append("multiplier") + } + } + } + + /** The relevant action to be examined */ + public var action: ContentAction? = nil + /** Optional - if action required specific length to be considered (in percentage or + minutes) */ + public var length: Int? = nil + /** Optional - if action required specific length to be considered (in percentage or + minutes) */ + public var lengthType: ContentActionConditionLengthType? = nil + /** Score multiplier - how much is a single action worth when considering the action */ + public var multiplier: Int? = nil + + + public func setMultiRequestToken(action: String) { + self.dict["action"] = action + } + + public func setMultiRequestToken(length: String) { + self.dict["length"] = length + } + + public func setMultiRequestToken(lengthType: String) { + self.dict["lengthType"] = lengthType + } + + public func setMultiRequestToken(multiplier: String) { + self.dict["multiplier"] = multiplier + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["action"] != nil { + action = ContentAction(rawValue: "\(dict["action"]!)") + } + if dict["length"] != nil { + length = dict["length"] as? Int + } + if dict["lengthType"] != nil { + lengthType = ContentActionConditionLengthType(rawValue: "\(dict["lengthType"]!)") + } + if dict["multiplier"] != nil { + multiplier = dict["multiplier"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(action != nil) { + dict["action"] = action!.rawValue + } + if(length != nil) { + dict["length"] = length! + } + if(lengthType != nil) { + dict["lengthType"] = lengthType!.rawValue + } + if(multiplier != nil) { + dict["multiplier"] = multiplier! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ContentResource.swift b/KalturaClient/Classes/Model/Objects/ContentResource.swift new file mode 100644 index 000000000..53cd9963a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ContentResource.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ContentResource: ObjectBase { + + public class ContentResourceTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/ContentScoreCondition.swift b/KalturaClient/Classes/Model/Objects/ContentScoreCondition.swift new file mode 100644 index 000000000..b8a358dfe --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ContentScoreCondition.swift @@ -0,0 +1,158 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Defines a condition which is essentially a combination of several content-based + actions, each has their own score multiplier */ +open class ContentScoreCondition: BaseSegmentCondition { + + public class ContentScoreConditionTokenizer: BaseSegmentCondition.BaseSegmentConditionTokenizer { + + public var minScore: BaseTokenizedObject { + get { + return self.append("minScore") + } + } + + public var maxScore: BaseTokenizedObject { + get { + return self.append("maxScore") + } + } + + public var days: BaseTokenizedObject { + get { + return self.append("days") + } + } + + public var field: BaseTokenizedObject { + get { + return self.append("field") + } + } + + public var values: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("values")) + } + } + + public var actions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("actions")) + } + } + } + + /** The minimum score to be met */ + public var minScore: Int? = nil + /** The maximum score to be met */ + public var maxScore: Int? = nil + /** How many days back should the actions be considered */ + public var days: Int? = nil + /** If condition should be applied on specific field (and not the one of the segment + value) */ + public var field: String? = nil + /** If condition should be applied on specific field (and not the one of the segment + value) - list of values to be considered together */ + public var values: Array? = nil + /** List of the actions that consist the condition */ + public var actions: Array? = nil + + + public func setMultiRequestToken(minScore: String) { + self.dict["minScore"] = minScore + } + + public func setMultiRequestToken(maxScore: String) { + self.dict["maxScore"] = maxScore + } + + public func setMultiRequestToken(days: String) { + self.dict["days"] = days + } + + public func setMultiRequestToken(field: String) { + self.dict["field"] = field + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["minScore"] != nil { + minScore = dict["minScore"] as? Int + } + if dict["maxScore"] != nil { + maxScore = dict["maxScore"] as? Int + } + if dict["days"] != nil { + days = dict["days"] as? Int + } + if dict["field"] != nil { + field = dict["field"] as? String + } + if dict["values"] != nil { + values = try JSONParser.parse(array: dict["values"] as! [Any]) + } + if dict["actions"] != nil { + actions = try JSONParser.parse(array: dict["actions"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(minScore != nil) { + dict["minScore"] = minScore! + } + if(maxScore != nil) { + dict["maxScore"] = maxScore! + } + if(days != nil) { + dict["days"] = days! + } + if(field != nil) { + dict["field"] = field! + } + if(values != nil) { + dict["values"] = values!.map { value in value.toDictionary() } + } + if(actions != nil) { + dict["actions"] = actions!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ContentSource.swift b/KalturaClient/Classes/Model/Objects/ContentSource.swift new file mode 100644 index 000000000..ce808178e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ContentSource.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Content based source (meta, tag etc.) */ +open class ContentSource: SegmentSource { + + public class ContentSourceTokenizer: SegmentSource.SegmentSourceTokenizer { + + public var field: BaseTokenizedObject { + get { + return self.append("field") + } + } + } + + /** Topic (meta or tag) name */ + public var field: String? = nil + + + public func setMultiRequestToken(field: String) { + self.dict["field"] = field + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["field"] != nil { + field = dict["field"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(field != nil) { + dict["field"] = field! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Country.swift b/KalturaClient/Classes/Model/Objects/Country.swift new file mode 100644 index 000000000..edb8b321c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Country.swift @@ -0,0 +1,214 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Country details */ +open class Country: ObjectBase { + + public class CountryTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var code: BaseTokenizedObject { + get { + return self.append("code") + } + } + + public var mainLanguageCode: BaseTokenizedObject { + get { + return self.append("mainLanguageCode") + } + } + + public var languagesCode: BaseTokenizedObject { + get { + return self.append("languagesCode") + } + } + + public var currency: BaseTokenizedObject { + get { + return self.append("currency") + } + } + + public var currencySign: BaseTokenizedObject { + get { + return self.append("currencySign") + } + } + + public var vatPercent: BaseTokenizedObject { + get { + return self.append("vatPercent") + } + } + + public var timeZoneId: BaseTokenizedObject { + get { + return self.append("timeZoneId") + } + } + } + + /** Country identifier */ + public var id: Int? = nil + /** Country name */ + public var name: String? = nil + /** Country code */ + public var code: String? = nil + /** The main language code in the country */ + public var mainLanguageCode: String? = nil + /** All the languages code that are supported in the country */ + public var languagesCode: String? = nil + /** Currency code */ + public var currency: String? = nil + /** Currency Sign */ + public var currencySign: String? = nil + /** Vat Percent in the country */ + public var vatPercent: Double? = nil + /** Time zone ID */ + public var timeZoneId: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(code: String) { + self.dict["code"] = code + } + + public func setMultiRequestToken(mainLanguageCode: String) { + self.dict["mainLanguageCode"] = mainLanguageCode + } + + public func setMultiRequestToken(languagesCode: String) { + self.dict["languagesCode"] = languagesCode + } + + public func setMultiRequestToken(currency: String) { + self.dict["currency"] = currency + } + + public func setMultiRequestToken(currencySign: String) { + self.dict["currencySign"] = currencySign + } + + public func setMultiRequestToken(vatPercent: String) { + self.dict["vatPercent"] = vatPercent + } + + public func setMultiRequestToken(timeZoneId: String) { + self.dict["timeZoneId"] = timeZoneId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["code"] != nil { + code = dict["code"] as? String + } + if dict["mainLanguageCode"] != nil { + mainLanguageCode = dict["mainLanguageCode"] as? String + } + if dict["languagesCode"] != nil { + languagesCode = dict["languagesCode"] as? String + } + if dict["currency"] != nil { + currency = dict["currency"] as? String + } + if dict["currencySign"] != nil { + currencySign = dict["currencySign"] as? String + } + if dict["vatPercent"] != nil { + vatPercent = dict["vatPercent"] as? Double + } + if dict["timeZoneId"] != nil { + timeZoneId = dict["timeZoneId"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(code != nil) { + dict["code"] = code! + } + if(mainLanguageCode != nil) { + dict["mainLanguageCode"] = mainLanguageCode! + } + if(languagesCode != nil) { + dict["languagesCode"] = languagesCode! + } + if(currency != nil) { + dict["currency"] = currency! + } + if(currencySign != nil) { + dict["currencySign"] = currencySign! + } + if(vatPercent != nil) { + dict["vatPercent"] = vatPercent! + } + if(timeZoneId != nil) { + dict["timeZoneId"] = timeZoneId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CountryCondition.swift b/KalturaClient/Classes/Model/Objects/CountryCondition.swift new file mode 100644 index 000000000..7e4b78578 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CountryCondition.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Country condition */ +open class CountryCondition: NotCondition { + + public class CountryConditionTokenizer: NotCondition.NotConditionTokenizer { + + public var countries: BaseTokenizedObject { + get { + return self.append("countries") + } + } + } + + /** Comma separated countries IDs list */ + public var countries: String? = nil + + + public func setMultiRequestToken(countries: String) { + self.dict["countries"] = countries + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["countries"] != nil { + countries = dict["countries"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(countries != nil) { + dict["countries"] = countries! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CountryFilter.swift b/KalturaClient/Classes/Model/Objects/CountryFilter.swift new file mode 100644 index 000000000..ff0cacb42 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CountryFilter.swift @@ -0,0 +1,109 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Country filter */ +open class CountryFilter: Filter { + + public class CountryFilterTokenizer: Filter.FilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + + public var ipEqual: BaseTokenizedObject { + get { + return self.append("ipEqual") + } + } + + public var ipEqualCurrent: BaseTokenizedObject { + get { + return self.append("ipEqualCurrent") + } + } + } + + /** Country identifiers */ + public var idIn: String? = nil + /** Ip to identify the country */ + public var ipEqual: String? = nil + /** Indicates if to get the IP from the request */ + public var ipEqualCurrent: Bool? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public func setMultiRequestToken(ipEqual: String) { + self.dict["ipEqual"] = ipEqual + } + + public func setMultiRequestToken(ipEqualCurrent: String) { + self.dict["ipEqualCurrent"] = ipEqualCurrent + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + if dict["ipEqual"] != nil { + ipEqual = dict["ipEqual"] as? String + } + if dict["ipEqualCurrent"] != nil { + ipEqualCurrent = dict["ipEqualCurrent"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + if(ipEqual != nil) { + dict["ipEqual"] = ipEqual! + } + if(ipEqualCurrent != nil) { + dict["ipEqualCurrent"] = ipEqualCurrent! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CountryListResponse.swift b/KalturaClient/Classes/Model/Objects/CountryListResponse.swift new file mode 100644 index 000000000..03653347c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CountryListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CountryListResponse: ListResponse { + + public class CountryListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Countries */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Coupon.swift b/KalturaClient/Classes/Model/Objects/Coupon.swift new file mode 100644 index 000000000..09af45123 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Coupon.swift @@ -0,0 +1,119 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Coupon details container */ +open class Coupon: ObjectBase { + + public class CouponTokenizer: ObjectBase.ObjectBaseTokenizer { + + public func couponsGroup() -> T { + return T(self.append("couponsGroup")) + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var totalUses: BaseTokenizedObject { + get { + return self.append("totalUses") + } + } + + public var leftUses: BaseTokenizedObject { + get { + return self.append("leftUses") + } + } + + public var couponCode: BaseTokenizedObject { + get { + return self.append("couponCode") + } + } + } + + /** Coupons group details */ + public var couponsGroup: CouponsGroup? = nil + /** Coupon status */ + public var status: CouponStatus? = nil + /** Total available coupon uses */ + public var totalUses: Int? = nil + /** Left coupon uses */ + public var leftUses: Int? = nil + /** Coupon code */ + public var couponCode: String? = nil + + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(totalUses: String) { + self.dict["totalUses"] = totalUses + } + + public func setMultiRequestToken(leftUses: String) { + self.dict["leftUses"] = leftUses + } + + public func setMultiRequestToken(couponCode: String) { + self.dict["couponCode"] = couponCode + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["couponsGroup"] != nil { + couponsGroup = try JSONParser.parse(object: dict["couponsGroup"] as! [String: Any]) } + if dict["status"] != nil { + status = CouponStatus(rawValue: "\(dict["status"]!)") + } + if dict["totalUses"] != nil { + totalUses = dict["totalUses"] as? Int + } + if dict["leftUses"] != nil { + leftUses = dict["leftUses"] as? Int + } + if dict["couponCode"] != nil { + couponCode = dict["couponCode"] as? String + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/CouponFilter.swift b/KalturaClient/Classes/Model/Objects/CouponFilter.swift new file mode 100644 index 000000000..ebc4872ce --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CouponFilter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CouponFilter: Filter { + + public class CouponFilterTokenizer: Filter.FilterTokenizer { + + public var couponCodesIn: BaseTokenizedObject { + get { + return self.append("couponCodesIn") + } + } + } + + /** Comma separated list of coupon codes. */ + public var couponCodesIn: String? = nil + + + public func setMultiRequestToken(couponCodesIn: String) { + self.dict["couponCodesIn"] = couponCodesIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["couponCodesIn"] != nil { + couponCodesIn = dict["couponCodesIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(couponCodesIn != nil) { + dict["couponCodesIn"] = couponCodesIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CouponGenerationOptions.swift b/KalturaClient/Classes/Model/Objects/CouponGenerationOptions.swift new file mode 100644 index 000000000..da3c776a8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CouponGenerationOptions.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Coupon generation options */ +open class CouponGenerationOptions: ObjectBase { + + public class CouponGenerationOptionsTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/CouponListResponse.swift b/KalturaClient/Classes/Model/Objects/CouponListResponse.swift new file mode 100644 index 000000000..44d52c8c8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CouponListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CouponListResponse: ListResponse { + + public class CouponListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Coupons */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CouponsGroup.swift b/KalturaClient/Classes/Model/Objects/CouponsGroup.swift new file mode 100644 index 000000000..eb8557edc --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CouponsGroup.swift @@ -0,0 +1,214 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Coupons group details */ +open class CouponsGroup: ObjectBase { + + public class CouponsGroupTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + + public var maxUsesNumber: BaseTokenizedObject { + get { + return self.append("maxUsesNumber") + } + } + + public var maxUsesNumberOnRenewableSub: BaseTokenizedObject { + get { + return self.append("maxUsesNumberOnRenewableSub") + } + } + + public var couponGroupType: BaseTokenizedObject { + get { + return self.append("couponGroupType") + } + } + + public var maxHouseholdUses: BaseTokenizedObject { + get { + return self.append("maxHouseholdUses") + } + } + + public var discountId: BaseTokenizedObject { + get { + return self.append("discountId") + } + } + } + + /** Coupon group identifier */ + public var id: String? = nil + /** Coupon group name */ + public var name: String? = nil + /** The first date the coupons in this coupons group are valid */ + public var startDate: Int64? = nil + /** The last date the coupons in this coupons group are valid */ + public var endDate: Int64? = nil + /** Maximum number of uses for each coupon in the group */ + public var maxUsesNumber: Int? = nil + /** Maximum number of uses for each coupon in the group on a renewable subscription */ + public var maxUsesNumberOnRenewableSub: Int? = nil + /** Type of the coupon group */ + public var couponGroupType: CouponGroupType? = nil + /** Maximum number of uses per household for each coupon in the group */ + public var maxHouseholdUses: Int? = nil + /** Discount ID */ + public var discountId: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(startDate: String) { + self.dict["startDate"] = startDate + } + + public func setMultiRequestToken(endDate: String) { + self.dict["endDate"] = endDate + } + + public func setMultiRequestToken(maxUsesNumber: String) { + self.dict["maxUsesNumber"] = maxUsesNumber + } + + public func setMultiRequestToken(maxUsesNumberOnRenewableSub: String) { + self.dict["maxUsesNumberOnRenewableSub"] = maxUsesNumberOnRenewableSub + } + + public func setMultiRequestToken(couponGroupType: String) { + self.dict["couponGroupType"] = couponGroupType + } + + public func setMultiRequestToken(maxHouseholdUses: String) { + self.dict["maxHouseholdUses"] = maxHouseholdUses + } + + public func setMultiRequestToken(discountId: String) { + self.dict["discountId"] = discountId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["startDate"] != nil { + startDate = Int64("\(dict["startDate"]!)") + } + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + if dict["maxUsesNumber"] != nil { + maxUsesNumber = dict["maxUsesNumber"] as? Int + } + if dict["maxUsesNumberOnRenewableSub"] != nil { + maxUsesNumberOnRenewableSub = dict["maxUsesNumberOnRenewableSub"] as? Int + } + if dict["couponGroupType"] != nil { + couponGroupType = CouponGroupType(rawValue: "\(dict["couponGroupType"]!)") + } + if dict["maxHouseholdUses"] != nil { + maxHouseholdUses = dict["maxHouseholdUses"] as? Int + } + if dict["discountId"] != nil { + discountId = Int64("\(dict["discountId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(startDate != nil) { + dict["startDate"] = startDate! + } + if(endDate != nil) { + dict["endDate"] = endDate! + } + if(maxUsesNumber != nil) { + dict["maxUsesNumber"] = maxUsesNumber! + } + if(maxUsesNumberOnRenewableSub != nil) { + dict["maxUsesNumberOnRenewableSub"] = maxUsesNumberOnRenewableSub! + } + if(couponGroupType != nil) { + dict["couponGroupType"] = couponGroupType!.rawValue + } + if(maxHouseholdUses != nil) { + dict["maxHouseholdUses"] = maxHouseholdUses! + } + if(discountId != nil) { + dict["discountId"] = discountId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CouponsGroupListResponse.swift b/KalturaClient/Classes/Model/Objects/CouponsGroupListResponse.swift new file mode 100644 index 000000000..88938eb7f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CouponsGroupListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Coupons group list */ +open class CouponsGroupListResponse: ListResponse { + + public class CouponsGroupListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of coupons groups */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CredentialsProvider.swift b/KalturaClient/Classes/Model/Objects/CredentialsProvider.swift new file mode 100644 index 000000000..0f3c7f467 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CredentialsProvider.swift @@ -0,0 +1,65 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CredentialsProvider: ObjectBase { + + public class CredentialsProviderTokenizer: ObjectBase.ObjectBaseTokenizer { + + public func cognitoIdentity() -> T { + return T(self.append("cognitoIdentity")) + } + } + + /** KalturaCognitoIdentity */ + public var cognitoIdentity: CognitoIdentity? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["cognitoIdentity"] != nil { + cognitoIdentity = try JSONParser.parse(object: dict["cognitoIdentity"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(cognitoIdentity != nil) { + dict["cognitoIdentity"] = cognitoIdentity!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CrudFilter.swift b/KalturaClient/Classes/Model/Objects/CrudFilter.swift new file mode 100644 index 000000000..0e22e7b4c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CrudFilter.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CrudFilter: Filter { + + public class CrudFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/CrudObject.swift b/KalturaClient/Classes/Model/Objects/CrudObject.swift new file mode 100644 index 000000000..f0f708add --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CrudObject.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CrudObject: OTTObjectSupportNullable { + + public class CrudObjectTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/Currency.swift b/KalturaClient/Classes/Model/Objects/Currency.swift new file mode 100644 index 000000000..56ce04db0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Currency.swift @@ -0,0 +1,145 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Currency details */ +open class Currency: ObjectBase { + + public class CurrencyTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var code: BaseTokenizedObject { + get { + return self.append("code") + } + } + + public var sign: BaseTokenizedObject { + get { + return self.append("sign") + } + } + + public var isDefault: BaseTokenizedObject { + get { + return self.append("isDefault") + } + } + } + + /** Identifier */ + public var id: Int? = nil + /** Currency name */ + public var name: String? = nil + /** Currency code */ + public var code: String? = nil + /** Currency Sign */ + public var sign: String? = nil + /** Is the default Currency of the account */ + public var isDefault: Bool? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(code: String) { + self.dict["code"] = code + } + + public func setMultiRequestToken(sign: String) { + self.dict["sign"] = sign + } + + public func setMultiRequestToken(isDefault: String) { + self.dict["isDefault"] = isDefault + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["code"] != nil { + code = dict["code"] as? String + } + if dict["sign"] != nil { + sign = dict["sign"] as? String + } + if dict["isDefault"] != nil { + isDefault = dict["isDefault"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(name != nil) { + dict["name"] = name! + } + if(code != nil) { + dict["code"] = code! + } + if(sign != nil) { + dict["sign"] = sign! + } + if(isDefault != nil) { + dict["isDefault"] = isDefault! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CurrencyFilter.swift b/KalturaClient/Classes/Model/Objects/CurrencyFilter.swift new file mode 100644 index 000000000..629772898 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CurrencyFilter.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Currency filter */ +open class CurrencyFilter: Filter { + + public class CurrencyFilterTokenizer: Filter.FilterTokenizer { + + public var codeIn: BaseTokenizedObject { + get { + return self.append("codeIn") + } + } + + public var excludePartner: BaseTokenizedObject { + get { + return self.append("excludePartner") + } + } + } + + /** Currency codes */ + public var codeIn: String? = nil + /** Exclude partner */ + public var excludePartner: Bool? = nil + + + public func setMultiRequestToken(codeIn: String) { + self.dict["codeIn"] = codeIn + } + + public func setMultiRequestToken(excludePartner: String) { + self.dict["excludePartner"] = excludePartner + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["codeIn"] != nil { + codeIn = dict["codeIn"] as? String + } + if dict["excludePartner"] != nil { + excludePartner = dict["excludePartner"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(codeIn != nil) { + dict["codeIn"] = codeIn! + } + if(excludePartner != nil) { + dict["excludePartner"] = excludePartner! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CurrencyListResponse.swift b/KalturaClient/Classes/Model/Objects/CurrencyListResponse.swift new file mode 100644 index 000000000..867febbec --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CurrencyListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CurrencyListResponse: ListResponse { + + public class CurrencyListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Currencies */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CustomDrmPlaybackPluginData.swift b/KalturaClient/Classes/Model/Objects/CustomDrmPlaybackPluginData.swift new file mode 100644 index 000000000..cdf756e2e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CustomDrmPlaybackPluginData.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class CustomDrmPlaybackPluginData: DrmPlaybackPluginData { + + public class CustomDrmPlaybackPluginDataTokenizer: DrmPlaybackPluginData.DrmPlaybackPluginDataTokenizer { + + public var data: BaseTokenizedObject { + get { + return self.append("data") + } + } + } + + /** Custom DRM license data */ + public var data: String? = nil + + + public func setMultiRequestToken(data: String) { + self.dict["data"] = data + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["data"] != nil { + data = dict["data"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(data != nil) { + dict["data"] = data! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DateCondition.swift b/KalturaClient/Classes/Model/Objects/DateCondition.swift new file mode 100644 index 000000000..3a0be6de3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DateCondition.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Date condition */ +open class DateCondition: NotCondition { + + public class DateConditionTokenizer: NotCondition.NotConditionTokenizer { + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + } + + /** Start date */ + public var startDate: Int64? = nil + /** End date */ + public var endDate: Int64? = nil + + + public func setMultiRequestToken(startDate: String) { + self.dict["startDate"] = startDate + } + + public func setMultiRequestToken(endDate: String) { + self.dict["endDate"] = endDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["startDate"] != nil { + startDate = Int64("\(dict["startDate"]!)") + } + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(startDate != nil) { + dict["startDate"] = startDate! + } + if(endDate != nil) { + dict["endDate"] = endDate! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DateTrigger.swift b/KalturaClient/Classes/Model/Objects/DateTrigger.swift new file mode 100644 index 000000000..86b04ca6c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DateTrigger.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class DateTrigger: Trigger { + + public class DateTriggerTokenizer: Trigger.TriggerTokenizer { + + public var date: BaseTokenizedObject { + get { + return self.append("date") + } + } + } + + /** Trigger date */ + public var date: Int64? = nil + + + public func setMultiRequestToken(date: String) { + self.dict["date"] = date + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["date"] != nil { + date = Int64("\(dict["date"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(date != nil) { + dict["date"] = date! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DefaultPlaybackAdapters.swift b/KalturaClient/Classes/Model/Objects/DefaultPlaybackAdapters.swift new file mode 100644 index 000000000..8f35ad02d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DefaultPlaybackAdapters.swift @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class DefaultPlaybackAdapters: ObjectBase { + + public class DefaultPlaybackAdaptersTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var mediaAdapterId: BaseTokenizedObject { + get { + return self.append("mediaAdapterId") + } + } + + public var epgAdapterId: BaseTokenizedObject { + get { + return self.append("epgAdapterId") + } + } + + public var recordingAdapterId: BaseTokenizedObject { + get { + return self.append("recordingAdapterId") + } + } + } + + /** Default adapter identifier for media */ + public var mediaAdapterId: Int64? = nil + /** Default adapter identifier for epg */ + public var epgAdapterId: Int64? = nil + /** Default adapter identifier for recording */ + public var recordingAdapterId: Int64? = nil + + + public func setMultiRequestToken(mediaAdapterId: String) { + self.dict["mediaAdapterId"] = mediaAdapterId + } + + public func setMultiRequestToken(epgAdapterId: String) { + self.dict["epgAdapterId"] = epgAdapterId + } + + public func setMultiRequestToken(recordingAdapterId: String) { + self.dict["recordingAdapterId"] = recordingAdapterId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["mediaAdapterId"] != nil { + mediaAdapterId = Int64("\(dict["mediaAdapterId"]!)") + } + if dict["epgAdapterId"] != nil { + epgAdapterId = Int64("\(dict["epgAdapterId"]!)") + } + if dict["recordingAdapterId"] != nil { + recordingAdapterId = Int64("\(dict["recordingAdapterId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(mediaAdapterId != nil) { + dict["mediaAdapterId"] = mediaAdapterId! + } + if(epgAdapterId != nil) { + dict["epgAdapterId"] = epgAdapterId! + } + if(recordingAdapterId != nil) { + dict["recordingAdapterId"] = recordingAdapterId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DefaultRegionFilter.swift b/KalturaClient/Classes/Model/Objects/DefaultRegionFilter.swift new file mode 100644 index 000000000..0adacf635 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DefaultRegionFilter.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class DefaultRegionFilter: BaseRegionFilter { + + public class DefaultRegionFilterTokenizer: BaseRegionFilter.BaseRegionFilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/DetachedResponseProfile.swift b/KalturaClient/Classes/Model/Objects/DetachedResponseProfile.swift new file mode 100644 index 000000000..1142b1d10 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DetachedResponseProfile.swift @@ -0,0 +1,98 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Define specific base profile response */ +open class DetachedResponseProfile: BaseResponseProfile { + + public class DetachedResponseProfileTokenizer: BaseResponseProfile.BaseResponseProfileTokenizer { + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public func filter() -> T { + return T(self.append("filter")) + } + + public var relatedProfiles: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("relatedProfiles")) + } + } + } + + /** name */ + public var name: String? = nil + /** filter */ + public var filter: RelatedObjectFilter? = nil + /** relatedProfiles */ + public var relatedProfiles: Array? = nil + + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["filter"] != nil { + filter = try JSONParser.parse(object: dict["filter"] as! [String: Any]) } + if dict["relatedProfiles"] != nil { + relatedProfiles = try JSONParser.parse(array: dict["relatedProfiles"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(filter != nil) { + dict["filter"] = filter!.toDictionary() + } + if(relatedProfiles != nil) { + dict["relatedProfiles"] = relatedProfiles!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DeviceBrand.swift b/KalturaClient/Classes/Model/Objects/DeviceBrand.swift new file mode 100644 index 000000000..2d955161a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceBrand.swift @@ -0,0 +1,103 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Device brand details */ +open class DeviceBrand: ObjectBase { + + public class DeviceBrandTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var deviceFamilyid: BaseTokenizedObject { + get { + return self.append("deviceFamilyid") + } + } + } + + /** Device brand identifier */ + public var id: Int64? = nil + /** Device brand name */ + public var name: String? = nil + /** Device family identifier */ + public var deviceFamilyid: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(deviceFamilyid: String) { + self.dict["deviceFamilyid"] = deviceFamilyid + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["deviceFamilyid"] != nil { + deviceFamilyid = Int64("\(dict["deviceFamilyid"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DeviceBrandListResponse.swift b/KalturaClient/Classes/Model/Objects/DeviceBrandListResponse.swift new file mode 100644 index 000000000..8ccc48a44 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceBrandListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class DeviceBrandListResponse: ListResponse { + + public class DeviceBrandListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Device brands */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DeviceFamily.swift b/KalturaClient/Classes/Model/Objects/DeviceFamily.swift new file mode 100644 index 000000000..a9703e8b0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceFamily.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Device family details */ +open class DeviceFamily: DeviceFamilyBase { + + public class DeviceFamilyTokenizer: DeviceFamilyBase.DeviceFamilyBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/DeviceFamilyBase.swift b/KalturaClient/Classes/Model/Objects/DeviceFamilyBase.swift new file mode 100644 index 000000000..b90aaecf6 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceFamilyBase.swift @@ -0,0 +1,88 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Device family details */ +open class DeviceFamilyBase: ObjectBase { + + public class DeviceFamilyBaseTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + } + + /** Device family identifier */ + public var id: Int64? = nil + /** Device family name */ + public var name: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DeviceFamilyListResponse.swift b/KalturaClient/Classes/Model/Objects/DeviceFamilyListResponse.swift new file mode 100644 index 000000000..bda18a565 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceFamilyListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class DeviceFamilyListResponse: ListResponse { + + public class DeviceFamilyListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Device families */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DevicePin.swift b/KalturaClient/Classes/Model/Objects/DevicePin.swift new file mode 100644 index 000000000..5399d4bf0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DevicePin.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Device pin */ +open class DevicePin: ObjectBase { + + public class DevicePinTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var pin: BaseTokenizedObject { + get { + return self.append("pin") + } + } + } + + /** Device pin */ + public var pin: String? = nil + + + public func setMultiRequestToken(pin: String) { + self.dict["pin"] = pin + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["pin"] != nil { + pin = dict["pin"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(pin != nil) { + dict["pin"] = pin! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DeviceReport.swift b/KalturaClient/Classes/Model/Objects/DeviceReport.swift new file mode 100644 index 000000000..2ce366354 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceReport.swift @@ -0,0 +1,247 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class DeviceReport: Report { + + public class DeviceReportTokenizer: Report.ReportTokenizer { + + public var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var configurationGroupId: BaseTokenizedObject { + get { + return self.append("configurationGroupId") + } + } + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + + public func pushParameters() -> T { + return T(self.append("pushParameters")) + } + + public var versionNumber: BaseTokenizedObject { + get { + return self.append("versionNumber") + } + } + + public var versionPlatform: BaseTokenizedObject { + get { + return self.append("versionPlatform") + } + } + + public var versionAppName: BaseTokenizedObject { + get { + return self.append("versionAppName") + } + } + + public var lastAccessIP: BaseTokenizedObject { + get { + return self.append("lastAccessIP") + } + } + + public var lastAccessDate: BaseTokenizedObject { + get { + return self.append("lastAccessDate") + } + } + + public var userAgent: BaseTokenizedObject { + get { + return self.append("userAgent") + } + } + + public var operationSystem: BaseTokenizedObject { + get { + return self.append("operationSystem") + } + } + } + + /** Partner unique identifier */ + public var partnerId: Int? = nil + /** Configuration group identifier which the version configuration the device last + received belongs to */ + public var configurationGroupId: String? = nil + /** Device unique identifier */ + public var udid: String? = nil + /** Device-Application push parameters */ + public var pushParameters: PushParams? = nil + /** Application version number */ + public var versionNumber: String? = nil + /** Application version type */ + public var versionPlatform: Platform? = nil + /** Application version name */ + public var versionAppName: String? = nil + /** Last access IP */ + public var lastAccessIP: String? = nil + /** Last device configuration request date */ + public var lastAccessDate: Int64? = nil + /** request header property */ + public var userAgent: String? = nil + /** Request header property Incase value cannot be found - returns + "Unknown 0.0" */ + public var operationSystem: String? = nil + + + public func setMultiRequestToken(partnerId: String) { + self.dict["partnerId"] = partnerId + } + + public func setMultiRequestToken(configurationGroupId: String) { + self.dict["configurationGroupId"] = configurationGroupId + } + + public func setMultiRequestToken(udid: String) { + self.dict["udid"] = udid + } + + public func setMultiRequestToken(versionNumber: String) { + self.dict["versionNumber"] = versionNumber + } + + public func setMultiRequestToken(versionPlatform: String) { + self.dict["versionPlatform"] = versionPlatform + } + + public func setMultiRequestToken(versionAppName: String) { + self.dict["versionAppName"] = versionAppName + } + + public func setMultiRequestToken(lastAccessIP: String) { + self.dict["lastAccessIP"] = lastAccessIP + } + + public func setMultiRequestToken(lastAccessDate: String) { + self.dict["lastAccessDate"] = lastAccessDate + } + + public func setMultiRequestToken(userAgent: String) { + self.dict["userAgent"] = userAgent + } + + public func setMultiRequestToken(operationSystem: String) { + self.dict["operationSystem"] = operationSystem + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["partnerId"] != nil { + partnerId = dict["partnerId"] as? Int + } + if dict["configurationGroupId"] != nil { + configurationGroupId = dict["configurationGroupId"] as? String + } + if dict["udid"] != nil { + udid = dict["udid"] as? String + } + if dict["pushParameters"] != nil { + pushParameters = try JSONParser.parse(object: dict["pushParameters"] as! [String: Any]) } + if dict["versionNumber"] != nil { + versionNumber = dict["versionNumber"] as? String + } + if dict["versionPlatform"] != nil { + versionPlatform = Platform(rawValue: "\(dict["versionPlatform"]!)") + } + if dict["versionAppName"] != nil { + versionAppName = dict["versionAppName"] as? String + } + if dict["lastAccessIP"] != nil { + lastAccessIP = dict["lastAccessIP"] as? String + } + if dict["lastAccessDate"] != nil { + lastAccessDate = Int64("\(dict["lastAccessDate"]!)") + } + if dict["userAgent"] != nil { + userAgent = dict["userAgent"] as? String + } + if dict["operationSystem"] != nil { + operationSystem = dict["operationSystem"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(partnerId != nil) { + dict["partnerId"] = partnerId! + } + if(configurationGroupId != nil) { + dict["configurationGroupId"] = configurationGroupId! + } + if(udid != nil) { + dict["udid"] = udid! + } + if(pushParameters != nil) { + dict["pushParameters"] = pushParameters!.toDictionary() + } + if(versionNumber != nil) { + dict["versionNumber"] = versionNumber! + } + if(versionPlatform != nil) { + dict["versionPlatform"] = versionPlatform!.rawValue + } + if(versionAppName != nil) { + dict["versionAppName"] = versionAppName! + } + if(lastAccessIP != nil) { + dict["lastAccessIP"] = lastAccessIP! + } + if(lastAccessDate != nil) { + dict["lastAccessDate"] = lastAccessDate! + } + if(userAgent != nil) { + dict["userAgent"] = userAgent! + } + if(operationSystem != nil) { + dict["operationSystem"] = operationSystem! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DeviceReportFilter.swift b/KalturaClient/Classes/Model/Objects/DeviceReportFilter.swift new file mode 100644 index 000000000..4a06d364e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceReportFilter.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Report filter */ +open class DeviceReportFilter: ReportFilter { + + public class DeviceReportFilterTokenizer: ReportFilter.ReportFilterTokenizer { + + public var lastAccessDateGreaterThanOrEqual: BaseTokenizedObject { + get { + return self.append("lastAccessDateGreaterThanOrEqual") + } + } + } + + /** Filter device configuration later than specific date */ + public var lastAccessDateGreaterThanOrEqual: Int64? = nil + + + public func setMultiRequestToken(lastAccessDateGreaterThanOrEqual: String) { + self.dict["lastAccessDateGreaterThanOrEqual"] = lastAccessDateGreaterThanOrEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["lastAccessDateGreaterThanOrEqual"] != nil { + lastAccessDateGreaterThanOrEqual = Int64("\(dict["lastAccessDateGreaterThanOrEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(lastAccessDateGreaterThanOrEqual != nil) { + dict["lastAccessDateGreaterThanOrEqual"] = lastAccessDateGreaterThanOrEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Discount.swift b/KalturaClient/Classes/Model/Objects/Discount.swift new file mode 100644 index 000000000..846b49352 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Discount.swift @@ -0,0 +1,66 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Discount */ +open class Discount: Price { + + public class DiscountTokenizer: Price.PriceTokenizer { + + public var percentage: BaseTokenizedObject { + get { + return self.append("percentage") + } + } + } + + /** The discount percentage */ + public var percentage: Int? = nil + + + public func setMultiRequestToken(percentage: String) { + self.dict["percentage"] = percentage + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["percentage"] != nil { + percentage = dict["percentage"] as? Int + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/DiscountDetails.swift b/KalturaClient/Classes/Model/Objects/DiscountDetails.swift new file mode 100644 index 000000000..5f0601f93 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DiscountDetails.swift @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Discount details */ +open class DiscountDetails: ObjectBase { + + public class DiscountDetailsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var multiCurrencyDiscount: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multiCurrencyDiscount")) + } + } + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + } + + /** The discount ID */ + public var id: Int? = nil + /** The price code name */ + public var name: String? = nil + /** Multi currency discounts for all countries and currencies */ + public var multiCurrencyDiscount: Array? = nil + /** Start date represented as epoch */ + public var startDate: Int64? = nil + /** End date represented as epoch */ + public var endDate: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(startDate: String) { + self.dict["startDate"] = startDate + } + + public func setMultiRequestToken(endDate: String) { + self.dict["endDate"] = endDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["multiCurrencyDiscount"] != nil { + multiCurrencyDiscount = try JSONParser.parse(array: dict["multiCurrencyDiscount"] as! [Any]) + } + if dict["startDate"] != nil { + startDate = Int64("\(dict["startDate"]!)") + } + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(multiCurrencyDiscount != nil) { + dict["multiCurrencyDiscount"] = multiCurrencyDiscount!.map { value in value.toDictionary() } + } + if(startDate != nil) { + dict["startDate"] = startDate! + } + if(endDate != nil) { + dict["endDate"] = endDate! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DiscountDetailsFilter.swift b/KalturaClient/Classes/Model/Objects/DiscountDetailsFilter.swift new file mode 100644 index 000000000..686e03f62 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DiscountDetailsFilter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class DiscountDetailsFilter: Filter { + + public class DiscountDetailsFilterTokenizer: Filter.FilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** Comma separated discount codes */ + public var idIn: String? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DiscountDetailsListResponse.swift b/KalturaClient/Classes/Model/Objects/DiscountDetailsListResponse.swift new file mode 100644 index 000000000..cf3b30114 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DiscountDetailsListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class DiscountDetailsListResponse: ListResponse { + + public class DiscountDetailsListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of price details */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DiscountModule.swift b/KalturaClient/Classes/Model/Objects/DiscountModule.swift new file mode 100644 index 000000000..794c66a8e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DiscountModule.swift @@ -0,0 +1,109 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Discount module */ +open class DiscountModule: ObjectBase { + + public class DiscountModuleTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var percent: BaseTokenizedObject { + get { + return self.append("percent") + } + } + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + } + + /** The discount percentage */ + public var percent: Double? = nil + /** The first date the discount is available */ + public var startDate: Int64? = nil + /** The last date the discount is available */ + public var endDate: Int64? = nil + + + public func setMultiRequestToken(percent: String) { + self.dict["percent"] = percent + } + + public func setMultiRequestToken(startDate: String) { + self.dict["startDate"] = startDate + } + + public func setMultiRequestToken(endDate: String) { + self.dict["endDate"] = endDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["percent"] != nil { + percent = dict["percent"] as? Double + } + if dict["startDate"] != nil { + startDate = Int64("\(dict["startDate"]!)") + } + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(percent != nil) { + dict["percent"] = percent! + } + if(startDate != nil) { + dict["startDate"] = startDate! + } + if(endDate != nil) { + dict["endDate"] = endDate! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Dispatcher.swift b/KalturaClient/Classes/Model/Objects/Dispatcher.swift new file mode 100644 index 000000000..3100473ed --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Dispatcher.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Dispatcher: ObjectBase { + + public class DispatcherTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/DoubleValue.swift b/KalturaClient/Classes/Model/Objects/DoubleValue.swift new file mode 100644 index 000000000..b61034710 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DoubleValue.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** A string representation to return an array of doubles */ +open class DoubleValue: Value { + + public class DoubleValueTokenizer: Value.ValueTokenizer { + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** Value */ + public var value: Double? = nil + + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["value"] != nil { + value = dict["value"] as? Double + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(value != nil) { + dict["value"] = value! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DrmPlaybackPluginData.swift b/KalturaClient/Classes/Model/Objects/DrmPlaybackPluginData.swift new file mode 100644 index 000000000..5a22718a1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DrmPlaybackPluginData.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class DrmPlaybackPluginData: PluginData { + + public class DrmPlaybackPluginDataTokenizer: PluginData.PluginDataTokenizer { + + public var scheme: BaseTokenizedObject { + get { + return self.append("scheme") + } + } + + public var licenseURL: BaseTokenizedObject { + get { + return self.append("licenseURL") + } + } + } + + /** Scheme */ + public var scheme: DrmSchemeName? = nil + /** License URL */ + public var licenseURL: String? = nil + + + public func setMultiRequestToken(scheme: String) { + self.dict["scheme"] = scheme + } + + public func setMultiRequestToken(licenseURL: String) { + self.dict["licenseURL"] = licenseURL + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["scheme"] != nil { + scheme = DrmSchemeName(rawValue: "\(dict["scheme"]!)") + } + if dict["licenseURL"] != nil { + licenseURL = dict["licenseURL"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(scheme != nil) { + dict["scheme"] = scheme!.rawValue + } + if(licenseURL != nil) { + dict["licenseURL"] = licenseURL! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DrmProfile.swift b/KalturaClient/Classes/Model/Objects/DrmProfile.swift new file mode 100644 index 000000000..e56c7801b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DrmProfile.swift @@ -0,0 +1,175 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** DRM Adapter */ +open class DrmProfile: ObjectBase { + + public class DrmProfileTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + + public var adapterUrl: BaseTokenizedObject { + get { + return self.append("adapterUrl") + } + } + + public var settings: BaseTokenizedObject { + get { + return self.append("settings") + } + } + + public var systemName: BaseTokenizedObject { + get { + return self.append("systemName") + } + } + + public var sharedSecret: BaseTokenizedObject { + get { + return self.append("sharedSecret") + } + } + } + + /** DRM adapter identifier */ + public var id: Int? = nil + /** DRM adapter name */ + public var name: String? = nil + /** DRM adapter active status */ + public var isActive: Bool? = nil + /** DRM adapter URL */ + public var adapterUrl: String? = nil + /** DRM adapter settings */ + public var settings: String? = nil + /** DRM adapter alias */ + public var systemName: String? = nil + /** DRM shared secret */ + public var sharedSecret: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public func setMultiRequestToken(adapterUrl: String) { + self.dict["adapterUrl"] = adapterUrl + } + + public func setMultiRequestToken(settings: String) { + self.dict["settings"] = settings + } + + public func setMultiRequestToken(systemName: String) { + self.dict["systemName"] = systemName + } + + public func setMultiRequestToken(sharedSecret: String) { + self.dict["sharedSecret"] = sharedSecret + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Bool + } + if dict["adapterUrl"] != nil { + adapterUrl = dict["adapterUrl"] as? String + } + if dict["settings"] != nil { + settings = dict["settings"] as? String + } + if dict["systemName"] != nil { + systemName = dict["systemName"] as? String + } + if dict["sharedSecret"] != nil { + sharedSecret = dict["sharedSecret"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(isActive != nil) { + dict["isActive"] = isActive! + } + if(adapterUrl != nil) { + dict["adapterUrl"] = adapterUrl! + } + if(settings != nil) { + dict["settings"] = settings! + } + if(systemName != nil) { + dict["systemName"] = systemName! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DrmProfileListResponse.swift b/KalturaClient/Classes/Model/Objects/DrmProfileListResponse.swift new file mode 100644 index 000000000..8ad16c525 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DrmProfileListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class DrmProfileListResponse: ListResponse { + + public class DrmProfileListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Adapters */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Duration.swift b/KalturaClient/Classes/Model/Objects/Duration.swift new file mode 100644 index 000000000..1202d62f4 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Duration.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** representation of duration time unit and value */ +open class Duration: ObjectBase { + + public class DurationTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var unit: BaseTokenizedObject { + get { + return self.append("unit") + } + } + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** duration unit */ + public var unit: DurationUnit? = nil + /** duration value */ + public var value: Int? = nil + + + public func setMultiRequestToken(unit: String) { + self.dict["unit"] = unit + } + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["unit"] != nil { + unit = DurationUnit(rawValue: "\(dict["unit"]!)") + } + if dict["value"] != nil { + value = dict["value"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(unit != nil) { + dict["unit"] = unit!.rawValue + } + if(value != nil) { + dict["value"] = value! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DynamicChannel.swift b/KalturaClient/Classes/Model/Objects/DynamicChannel.swift new file mode 100644 index 000000000..6884b3f02 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DynamicChannel.swift @@ -0,0 +1,119 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class DynamicChannel: Channel { + + public class DynamicChannelTokenizer: Channel.ChannelTokenizer { + + public var kSql: BaseTokenizedObject { + get { + return self.append("kSql") + } + } + + public var assetTypes: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("assetTypes")) + } + } + + public func groupBy() -> T { + return T(self.append("groupBy")) + } + } + + /** Search assets using dynamic criteria. Provided collection of nested expressions + with key, comparison operators, value, and logical conjunction. + Possible keys: any Tag or Meta defined in the system and the following reserved + keys: start_date, end_date. epg_id, media_id - for specific asset + IDs. geo_block - only valid value is "true": When + enabled, only assets that are not restriced to the user by geo-block rules will + return. parental_rules - only valid value is + "true": When enabled, only assets that the user + doesn't need to provide PIN code will return. + user_interests - only valid value is "true". When enabled, + only assets that the user defined as his interests (by tags and metas) will + return. epg_channel_id – the channel identifier of the EPG + program. *****Deprecated, please use linear_media_id instead***** + linear_media_id – the linear media identifier of the EPG program. + entitled_assets - valid values: "free", + "entitled", "both". free - gets only free to + watch assets. entitled - only those that the user is implicitly entitled to + watch. Comparison operators: for numerical fields =, >, + >=, <, <=, : (in). For alpha-numerical fields + =, != (not), ~ (like), !~, ^ (any word starts with), ^= (phrase starts with), + + (exists), !+ (not exists). Logical conjunction: and, or. + Search values are limited to 20 characters each. (maximum length + of entire filter is 4096 characters) */ + public var kSql: String? = nil + /** Asset types in the channel. -26 is EPG */ + public var assetTypes: Array? = nil + /** Channel group by */ + public var groupBy: AssetGroupBy? = nil + + + public func setMultiRequestToken(kSql: String) { + self.dict["kSql"] = kSql + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["kSql"] != nil { + kSql = dict["kSql"] as? String + } + if dict["assetTypes"] != nil { + assetTypes = try JSONParser.parse(array: dict["assetTypes"] as! [Any]) + } + if dict["groupBy"] != nil { + groupBy = try JSONParser.parse(object: dict["groupBy"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(kSql != nil) { + dict["kSql"] = kSql! + } + if(assetTypes != nil) { + dict["assetTypes"] = assetTypes!.map { value in value.toDictionary() } + } + if(groupBy != nil) { + dict["groupBy"] = groupBy!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DynamicOrderBy.swift b/KalturaClient/Classes/Model/Objects/DynamicOrderBy.swift new file mode 100644 index 000000000..38a9091bd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DynamicOrderBy.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Kaltura Asset Order */ +open class DynamicOrderBy: ObjectBase { + + public class DynamicOrderByTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var orderBy: BaseTokenizedObject { + get { + return self.append("orderBy") + } + } + } + + /** order by name */ + public var name: String? = nil + /** order by meta asc/desc */ + public var orderBy: MetaTagOrderBy? = nil + + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(orderBy: String) { + self.dict["orderBy"] = orderBy + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["orderBy"] != nil { + orderBy = MetaTagOrderBy(rawValue: "\(dict["orderBy"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(orderBy != nil) { + dict["orderBy"] = orderBy!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EmailMessage.swift b/KalturaClient/Classes/Model/Objects/EmailMessage.swift new file mode 100644 index 000000000..d9fd75f7b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EmailMessage.swift @@ -0,0 +1,212 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class EmailMessage: ObjectBase { + + public class EmailMessageTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var templateName: BaseTokenizedObject { + get { + return self.append("templateName") + } + } + + public var subject: BaseTokenizedObject { + get { + return self.append("subject") + } + } + + public var firstName: BaseTokenizedObject { + get { + return self.append("firstName") + } + } + + public var lastName: BaseTokenizedObject { + get { + return self.append("lastName") + } + } + + public var senderName: BaseTokenizedObject { + get { + return self.append("senderName") + } + } + + public var senderFrom: BaseTokenizedObject { + get { + return self.append("senderFrom") + } + } + + public var senderTo: BaseTokenizedObject { + get { + return self.append("senderTo") + } + } + + public var bccAddress: BaseTokenizedObject { + get { + return self.append("bccAddress") + } + } + + public var extraParameters: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("extraParameters")) + } + } + } + + /** email template name */ + public var templateName: String? = nil + /** email subject */ + public var subject: String? = nil + /** first name */ + public var firstName: String? = nil + /** last name */ + public var lastName: String? = nil + /** sender name */ + public var senderName: String? = nil + /** sender from */ + public var senderFrom: String? = nil + /** sender to */ + public var senderTo: String? = nil + /** bcc address - seperated by comma */ + public var bccAddress: String? = nil + /** extra parameters */ + public var extraParameters: Array? = nil + + + public func setMultiRequestToken(templateName: String) { + self.dict["templateName"] = templateName + } + + public func setMultiRequestToken(subject: String) { + self.dict["subject"] = subject + } + + public func setMultiRequestToken(firstName: String) { + self.dict["firstName"] = firstName + } + + public func setMultiRequestToken(lastName: String) { + self.dict["lastName"] = lastName + } + + public func setMultiRequestToken(senderName: String) { + self.dict["senderName"] = senderName + } + + public func setMultiRequestToken(senderFrom: String) { + self.dict["senderFrom"] = senderFrom + } + + public func setMultiRequestToken(senderTo: String) { + self.dict["senderTo"] = senderTo + } + + public func setMultiRequestToken(bccAddress: String) { + self.dict["bccAddress"] = bccAddress + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["templateName"] != nil { + templateName = dict["templateName"] as? String + } + if dict["subject"] != nil { + subject = dict["subject"] as? String + } + if dict["firstName"] != nil { + firstName = dict["firstName"] as? String + } + if dict["lastName"] != nil { + lastName = dict["lastName"] as? String + } + if dict["senderName"] != nil { + senderName = dict["senderName"] as? String + } + if dict["senderFrom"] != nil { + senderFrom = dict["senderFrom"] as? String + } + if dict["senderTo"] != nil { + senderTo = dict["senderTo"] as? String + } + if dict["bccAddress"] != nil { + bccAddress = dict["bccAddress"] as? String + } + if dict["extraParameters"] != nil { + extraParameters = try JSONParser.parse(array: dict["extraParameters"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(templateName != nil) { + dict["templateName"] = templateName! + } + if(subject != nil) { + dict["subject"] = subject! + } + if(firstName != nil) { + dict["firstName"] = firstName! + } + if(lastName != nil) { + dict["lastName"] = lastName! + } + if(senderName != nil) { + dict["senderName"] = senderName! + } + if(senderFrom != nil) { + dict["senderFrom"] = senderFrom! + } + if(senderTo != nil) { + dict["senderTo"] = senderTo! + } + if(bccAddress != nil) { + dict["bccAddress"] = bccAddress! + } + if(extraParameters != nil) { + dict["extraParameters"] = extraParameters!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EndDateOffsetRuleAction.swift b/KalturaClient/Classes/Model/Objects/EndDateOffsetRuleAction.swift new file mode 100644 index 000000000..8d254592f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EndDateOffsetRuleAction.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** End date offset action */ +open class EndDateOffsetRuleAction: TimeOffsetRuleAction { + + public class EndDateOffsetRuleActionTokenizer: TimeOffsetRuleAction.TimeOffsetRuleActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/Engagement.swift b/KalturaClient/Classes/Model/Objects/Engagement.swift new file mode 100644 index 000000000..64f3a6abb --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Engagement.swift @@ -0,0 +1,211 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Engagement */ +open class Engagement: ObjectBase { + + public class EngagementTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var totalNumberOfRecipients: BaseTokenizedObject { + get { + return self.append("totalNumberOfRecipients") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var adapterId: BaseTokenizedObject { + get { + return self.append("adapterId") + } + } + + public var adapterDynamicData: BaseTokenizedObject { + get { + return self.append("adapterDynamicData") + } + } + + public var intervalSeconds: BaseTokenizedObject { + get { + return self.append("intervalSeconds") + } + } + + public var userList: BaseTokenizedObject { + get { + return self.append("userList") + } + } + + public var sendTimeInSeconds: BaseTokenizedObject { + get { + return self.append("sendTimeInSeconds") + } + } + + public var couponGroupId: BaseTokenizedObject { + get { + return self.append("couponGroupId") + } + } + } + + /** Engagement id */ + public var id: Int? = nil + /** Total number of recipients */ + public var totalNumberOfRecipients: Int? = nil + /** Engagement type */ + public var type: EngagementType? = nil + /** Engagement adapter id */ + public var adapterId: Int? = nil + /** Engagement adapter dynamic data */ + public var adapterDynamicData: String? = nil + /** Interval (seconds) */ + public var intervalSeconds: Int? = nil + /** Manual User list */ + public var userList: String? = nil + /** Send time (seconds) */ + public var sendTimeInSeconds: Int64? = nil + /** Coupon GroupId */ + public var couponGroupId: Int? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(totalNumberOfRecipients: String) { + self.dict["totalNumberOfRecipients"] = totalNumberOfRecipients + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(adapterId: String) { + self.dict["adapterId"] = adapterId + } + + public func setMultiRequestToken(adapterDynamicData: String) { + self.dict["adapterDynamicData"] = adapterDynamicData + } + + public func setMultiRequestToken(intervalSeconds: String) { + self.dict["intervalSeconds"] = intervalSeconds + } + + public func setMultiRequestToken(userList: String) { + self.dict["userList"] = userList + } + + public func setMultiRequestToken(sendTimeInSeconds: String) { + self.dict["sendTimeInSeconds"] = sendTimeInSeconds + } + + public func setMultiRequestToken(couponGroupId: String) { + self.dict["couponGroupId"] = couponGroupId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["totalNumberOfRecipients"] != nil { + totalNumberOfRecipients = dict["totalNumberOfRecipients"] as? Int + } + if dict["type"] != nil { + type = EngagementType(rawValue: "\(dict["type"]!)") + } + if dict["adapterId"] != nil { + adapterId = dict["adapterId"] as? Int + } + if dict["adapterDynamicData"] != nil { + adapterDynamicData = dict["adapterDynamicData"] as? String + } + if dict["intervalSeconds"] != nil { + intervalSeconds = dict["intervalSeconds"] as? Int + } + if dict["userList"] != nil { + userList = dict["userList"] as? String + } + if dict["sendTimeInSeconds"] != nil { + sendTimeInSeconds = Int64("\(dict["sendTimeInSeconds"]!)") + } + if dict["couponGroupId"] != nil { + couponGroupId = dict["couponGroupId"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(type != nil) { + dict["type"] = type!.rawValue + } + if(adapterId != nil) { + dict["adapterId"] = adapterId! + } + if(adapterDynamicData != nil) { + dict["adapterDynamicData"] = adapterDynamicData! + } + if(intervalSeconds != nil) { + dict["intervalSeconds"] = intervalSeconds! + } + if(userList != nil) { + dict["userList"] = userList! + } + if(sendTimeInSeconds != nil) { + dict["sendTimeInSeconds"] = sendTimeInSeconds! + } + if(couponGroupId != nil) { + dict["couponGroupId"] = couponGroupId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EngagementAdapter.swift b/KalturaClient/Classes/Model/Objects/EngagementAdapter.swift new file mode 100644 index 000000000..948da4404 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EngagementAdapter.swift @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Engagement Adapter */ +open class EngagementAdapter: EngagementAdapterBase { + + public class EngagementAdapterTokenizer: EngagementAdapterBase.EngagementAdapterBaseTokenizer { + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + + public var adapterUrl: BaseTokenizedObject { + get { + return self.append("adapterUrl") + } + } + + public var providerUrl: BaseTokenizedObject { + get { + return self.append("providerUrl") + } + } + + public var engagementAdapterSettings: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("engagementAdapterSettings")) + } + } + + public var sharedSecret: BaseTokenizedObject { + get { + return self.append("sharedSecret") + } + } + } + + /** Engagement adapter active status */ + public var isActive: Bool? = nil + /** Engagement adapter adapter URL */ + public var adapterUrl: String? = nil + /** Engagement provider adapter URL */ + public var providerUrl: String? = nil + /** Engagement adapter extra parameters */ + public var engagementAdapterSettings: Dictionary? = nil + /** Shared Secret */ + public var sharedSecret: String? = nil + + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public func setMultiRequestToken(adapterUrl: String) { + self.dict["adapterUrl"] = adapterUrl + } + + public func setMultiRequestToken(providerUrl: String) { + self.dict["providerUrl"] = providerUrl + } + + public func setMultiRequestToken(sharedSecret: String) { + self.dict["sharedSecret"] = sharedSecret + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Bool + } + if dict["adapterUrl"] != nil { + adapterUrl = dict["adapterUrl"] as? String + } + if dict["providerUrl"] != nil { + providerUrl = dict["providerUrl"] as? String + } + if dict["engagementAdapterSettings"] != nil { + engagementAdapterSettings = try JSONParser.parse(map: dict["engagementAdapterSettings"] as! [String: Any]) + } + if dict["sharedSecret"] != nil { + sharedSecret = dict["sharedSecret"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(isActive != nil) { + dict["isActive"] = isActive! + } + if(adapterUrl != nil) { + dict["adapterUrl"] = adapterUrl! + } + if(providerUrl != nil) { + dict["providerUrl"] = providerUrl! + } + if(engagementAdapterSettings != nil) { + dict["engagementAdapterSettings"] = engagementAdapterSettings!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EngagementAdapterBase.swift b/KalturaClient/Classes/Model/Objects/EngagementAdapterBase.swift new file mode 100644 index 000000000..9ca5bc764 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EngagementAdapterBase.swift @@ -0,0 +1,88 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Engagement adapter basic */ +open class EngagementAdapterBase: ObjectBase { + + public class EngagementAdapterBaseTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + } + + /** Engagement adapter id */ + public var id: Int? = nil + /** Engagement adapter name */ + public var name: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EngagementAdapterListResponse.swift b/KalturaClient/Classes/Model/Objects/EngagementAdapterListResponse.swift new file mode 100644 index 000000000..acf1f7a5f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EngagementAdapterListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Engagement adapter list */ +open class EngagementAdapterListResponse: ListResponse { + + public class EngagementAdapterListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of Engagement adapter */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EngagementFilter.swift b/KalturaClient/Classes/Model/Objects/EngagementFilter.swift new file mode 100644 index 000000000..11f637532 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EngagementFilter.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class EngagementFilter: Filter { + + public class EngagementFilterTokenizer: Filter.FilterTokenizer { + + public var typeIn: BaseTokenizedObject { + get { + return self.append("typeIn") + } + } + + public var sendTimeGreaterThanOrEqual: BaseTokenizedObject { + get { + return self.append("sendTimeGreaterThanOrEqual") + } + } + } + + /** List of inbox message types to search within. */ + public var typeIn: String? = nil + /** SendTime GreaterThanOrEqual */ + public var sendTimeGreaterThanOrEqual: Int64? = nil + + + public func setMultiRequestToken(typeIn: String) { + self.dict["typeIn"] = typeIn + } + + public func setMultiRequestToken(sendTimeGreaterThanOrEqual: String) { + self.dict["sendTimeGreaterThanOrEqual"] = sendTimeGreaterThanOrEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["typeIn"] != nil { + typeIn = dict["typeIn"] as? String + } + if dict["sendTimeGreaterThanOrEqual"] != nil { + sendTimeGreaterThanOrEqual = Int64("\(dict["sendTimeGreaterThanOrEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(typeIn != nil) { + dict["typeIn"] = typeIn! + } + if(sendTimeGreaterThanOrEqual != nil) { + dict["sendTimeGreaterThanOrEqual"] = sendTimeGreaterThanOrEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EngagementListResponse.swift b/KalturaClient/Classes/Model/Objects/EngagementListResponse.swift new file mode 100644 index 000000000..9d8d908e3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EngagementListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Engagement adapter list */ +open class EngagementListResponse: ListResponse { + + public class EngagementListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of Engagement */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Entitlement.swift b/KalturaClient/Classes/Model/Objects/Entitlement.swift new file mode 100644 index 000000000..96bcba751 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Entitlement.swift @@ -0,0 +1,262 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Entitlement */ +open class Entitlement: ObjectBase { + + public class EntitlementTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var productId: BaseTokenizedObject { + get { + return self.append("productId") + } + } + + public var currentUses: BaseTokenizedObject { + get { + return self.append("currentUses") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + + public var currentDate: BaseTokenizedObject { + get { + return self.append("currentDate") + } + } + + public var lastViewDate: BaseTokenizedObject { + get { + return self.append("lastViewDate") + } + } + + public var purchaseDate: BaseTokenizedObject { + get { + return self.append("purchaseDate") + } + } + + public var paymentMethod: BaseTokenizedObject { + get { + return self.append("paymentMethod") + } + } + + public var deviceUdid: BaseTokenizedObject { + get { + return self.append("deviceUdid") + } + } + + public var deviceName: BaseTokenizedObject { + get { + return self.append("deviceName") + } + } + + public var isCancelationWindowEnabled: BaseTokenizedObject { + get { + return self.append("isCancelationWindowEnabled") + } + } + + public var maxUses: BaseTokenizedObject { + get { + return self.append("maxUses") + } + } + + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + + public var householdId: BaseTokenizedObject { + get { + return self.append("householdId") + } + } + } + + /** Purchase identifier (for subscriptions and collections only) */ + public var id: Int? = nil + /** Product identifier */ + public var productId: String? = nil + /** The current number of uses */ + public var currentUses: Int? = nil + /** The end date of the entitlement */ + public var endDate: Int64? = nil + /** Current date */ + public var currentDate: Int64? = nil + /** The last date the item was viewed */ + public var lastViewDate: Int64? = nil + /** Purchase date */ + public var purchaseDate: Int64? = nil + /** Payment Method */ + public var paymentMethod: PaymentMethodType? = nil + /** The UDID of the device from which the purchase was made */ + public var deviceUdid: String? = nil + /** The name of the device from which the purchase was made */ + public var deviceName: String? = nil + /** Indicates whether a cancelation window period is enabled */ + public var isCancelationWindowEnabled: Bool? = nil + /** The maximum number of uses available for this item (only for subscription and + PPV) */ + public var maxUses: Int? = nil + /** The Identifier of the purchasing user */ + public var userId: String? = nil + /** The Identifier of the purchasing household */ + public var householdId: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(productId: String) { + self.dict["productId"] = productId + } + + public func setMultiRequestToken(currentUses: String) { + self.dict["currentUses"] = currentUses + } + + public func setMultiRequestToken(endDate: String) { + self.dict["endDate"] = endDate + } + + public func setMultiRequestToken(currentDate: String) { + self.dict["currentDate"] = currentDate + } + + public func setMultiRequestToken(lastViewDate: String) { + self.dict["lastViewDate"] = lastViewDate + } + + public func setMultiRequestToken(purchaseDate: String) { + self.dict["purchaseDate"] = purchaseDate + } + + public func setMultiRequestToken(paymentMethod: String) { + self.dict["paymentMethod"] = paymentMethod + } + + public func setMultiRequestToken(deviceUdid: String) { + self.dict["deviceUdid"] = deviceUdid + } + + public func setMultiRequestToken(deviceName: String) { + self.dict["deviceName"] = deviceName + } + + public func setMultiRequestToken(isCancelationWindowEnabled: String) { + self.dict["isCancelationWindowEnabled"] = isCancelationWindowEnabled + } + + public func setMultiRequestToken(maxUses: String) { + self.dict["maxUses"] = maxUses + } + + public func setMultiRequestToken(userId: String) { + self.dict["userId"] = userId + } + + public func setMultiRequestToken(householdId: String) { + self.dict["householdId"] = householdId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["productId"] != nil { + productId = dict["productId"] as? String + } + if dict["currentUses"] != nil { + currentUses = dict["currentUses"] as? Int + } + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + if dict["currentDate"] != nil { + currentDate = Int64("\(dict["currentDate"]!)") + } + if dict["lastViewDate"] != nil { + lastViewDate = Int64("\(dict["lastViewDate"]!)") + } + if dict["purchaseDate"] != nil { + purchaseDate = Int64("\(dict["purchaseDate"]!)") + } + if dict["paymentMethod"] != nil { + paymentMethod = PaymentMethodType(rawValue: "\(dict["paymentMethod"]!)") + } + if dict["deviceUdid"] != nil { + deviceUdid = dict["deviceUdid"] as? String + } + if dict["deviceName"] != nil { + deviceName = dict["deviceName"] as? String + } + if dict["isCancelationWindowEnabled"] != nil { + isCancelationWindowEnabled = dict["isCancelationWindowEnabled"] as? Bool + } + if dict["maxUses"] != nil { + maxUses = dict["maxUses"] as? Int + } + if dict["userId"] != nil { + userId = dict["userId"] as? String + } + if dict["householdId"] != nil { + householdId = Int64("\(dict["householdId"]!)") + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/EntitlementFilter.swift b/KalturaClient/Classes/Model/Objects/EntitlementFilter.swift new file mode 100644 index 000000000..adb59b7a3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EntitlementFilter.swift @@ -0,0 +1,109 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Entitlements filter */ +open class EntitlementFilter: Filter { + + public class EntitlementFilterTokenizer: Filter.FilterTokenizer { + + public var productTypeEqual: BaseTokenizedObject { + get { + return self.append("productTypeEqual") + } + } + + public var entityReferenceEqual: BaseTokenizedObject { + get { + return self.append("entityReferenceEqual") + } + } + + public var isExpiredEqual: BaseTokenizedObject { + get { + return self.append("isExpiredEqual") + } + } + } + + /** The type of the entitlements to return */ + public var productTypeEqual: TransactionType? = nil + /** Reference type to filter by */ + public var entityReferenceEqual: EntityReferenceBy? = nil + /** Is expired */ + public var isExpiredEqual: Bool? = nil + + + public func setMultiRequestToken(productTypeEqual: String) { + self.dict["productTypeEqual"] = productTypeEqual + } + + public func setMultiRequestToken(entityReferenceEqual: String) { + self.dict["entityReferenceEqual"] = entityReferenceEqual + } + + public func setMultiRequestToken(isExpiredEqual: String) { + self.dict["isExpiredEqual"] = isExpiredEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["productTypeEqual"] != nil { + productTypeEqual = TransactionType(rawValue: "\(dict["productTypeEqual"]!)") + } + if dict["entityReferenceEqual"] != nil { + entityReferenceEqual = EntityReferenceBy(rawValue: "\(dict["entityReferenceEqual"]!)") + } + if dict["isExpiredEqual"] != nil { + isExpiredEqual = dict["isExpiredEqual"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(productTypeEqual != nil) { + dict["productTypeEqual"] = productTypeEqual!.rawValue + } + if(entityReferenceEqual != nil) { + dict["entityReferenceEqual"] = entityReferenceEqual!.rawValue + } + if(isExpiredEqual != nil) { + dict["isExpiredEqual"] = isExpiredEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EntitlementListResponse.swift b/KalturaClient/Classes/Model/Objects/EntitlementListResponse.swift new file mode 100644 index 000000000..ace7b8929 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EntitlementListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Entitlements list */ +open class EntitlementListResponse: ListResponse { + + public class EntitlementListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of entitlements */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EntitlementRenewal.swift b/KalturaClient/Classes/Model/Objects/EntitlementRenewal.swift new file mode 100644 index 000000000..a460bcafd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EntitlementRenewal.swift @@ -0,0 +1,137 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class EntitlementRenewal: ObjectBase { + + public class EntitlementRenewalTokenizer: ObjectBase.ObjectBaseTokenizer { + + public func price() -> T { + return T(self.append("price")) + } + + public var date: BaseTokenizedObject { + get { + return self.append("date") + } + } + + public var purchaseId: BaseTokenizedObject { + get { + return self.append("purchaseId") + } + } + + public var subscriptionId: BaseTokenizedObject { + get { + return self.append("subscriptionId") + } + } + + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + } + + /** Price that is going to be paid on the renewal */ + public var price: Price? = nil + /** Next renewal date */ + public var date: Int64? = nil + /** Puchase ID */ + public var purchaseId: Int64? = nil + /** Subscription ID */ + public var subscriptionId: Int64? = nil + /** User ID */ + public var userId: Int64? = nil + + + public func setMultiRequestToken(date: String) { + self.dict["date"] = date + } + + public func setMultiRequestToken(purchaseId: String) { + self.dict["purchaseId"] = purchaseId + } + + public func setMultiRequestToken(subscriptionId: String) { + self.dict["subscriptionId"] = subscriptionId + } + + public func setMultiRequestToken(userId: String) { + self.dict["userId"] = userId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["price"] != nil { + price = try JSONParser.parse(object: dict["price"] as! [String: Any]) } + if dict["date"] != nil { + date = Int64("\(dict["date"]!)") + } + if dict["purchaseId"] != nil { + purchaseId = Int64("\(dict["purchaseId"]!)") + } + if dict["subscriptionId"] != nil { + subscriptionId = Int64("\(dict["subscriptionId"]!)") + } + if dict["userId"] != nil { + userId = Int64("\(dict["userId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(price != nil) { + dict["price"] = price!.toDictionary() + } + if(date != nil) { + dict["date"] = date! + } + if(purchaseId != nil) { + dict["purchaseId"] = purchaseId! + } + if(subscriptionId != nil) { + dict["subscriptionId"] = subscriptionId! + } + if(userId != nil) { + dict["userId"] = userId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EntitlementRenewalBase.swift b/KalturaClient/Classes/Model/Objects/EntitlementRenewalBase.swift new file mode 100644 index 000000000..48911e6a9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EntitlementRenewalBase.swift @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class EntitlementRenewalBase: ObjectBase { + + public class EntitlementRenewalBaseTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var price: BaseTokenizedObject { + get { + return self.append("price") + } + } + + public var purchaseId: BaseTokenizedObject { + get { + return self.append("purchaseId") + } + } + + public var subscriptionId: BaseTokenizedObject { + get { + return self.append("subscriptionId") + } + } + } + + /** Price that is going to be paid on the renewal */ + public var price: Double? = nil + /** Puchase ID */ + public var purchaseId: Int64? = nil + /** Subscription ID */ + public var subscriptionId: Int64? = nil + + + public func setMultiRequestToken(price: String) { + self.dict["price"] = price + } + + public func setMultiRequestToken(purchaseId: String) { + self.dict["purchaseId"] = purchaseId + } + + public func setMultiRequestToken(subscriptionId: String) { + self.dict["subscriptionId"] = subscriptionId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["price"] != nil { + price = dict["price"] as? Double + } + if dict["purchaseId"] != nil { + purchaseId = Int64("\(dict["purchaseId"]!)") + } + if dict["subscriptionId"] != nil { + subscriptionId = Int64("\(dict["subscriptionId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(price != nil) { + dict["price"] = price! + } + if(purchaseId != nil) { + dict["purchaseId"] = purchaseId! + } + if(subscriptionId != nil) { + dict["subscriptionId"] = subscriptionId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EventNotification.swift b/KalturaClient/Classes/Model/Objects/EventNotification.swift new file mode 100644 index 000000000..088707a67 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EventNotification.swift @@ -0,0 +1,193 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Household Coupon details */ +open class EventNotification: CrudObject { + + public class EventNotificationTokenizer: CrudObject.CrudObjectTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var objectId: BaseTokenizedObject { + get { + return self.append("objectId") + } + } + + public var eventObjectType: BaseTokenizedObject { + get { + return self.append("eventObjectType") + } + } + + public var message: BaseTokenizedObject { + get { + return self.append("message") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var actionType: BaseTokenizedObject { + get { + return self.append("actionType") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + } + + /** Identifier */ + public var id: String? = nil + /** Object identifier */ + public var objectId: Int64? = nil + /** Event object type */ + public var eventObjectType: String? = nil + /** Message */ + public var message: String? = nil + /** Status */ + public var status: EventNotificationStatus? = nil + /** Action type */ + public var actionType: String? = nil + /** Create date */ + public var createDate: Int64? = nil + /** Update date */ + public var updateDate: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(objectId: String) { + self.dict["objectId"] = objectId + } + + public func setMultiRequestToken(eventObjectType: String) { + self.dict["eventObjectType"] = eventObjectType + } + + public func setMultiRequestToken(message: String) { + self.dict["message"] = message + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(actionType: String) { + self.dict["actionType"] = actionType + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["objectId"] != nil { + objectId = Int64("\(dict["objectId"]!)") + } + if dict["eventObjectType"] != nil { + eventObjectType = dict["eventObjectType"] as? String + } + if dict["message"] != nil { + message = dict["message"] as? String + } + if dict["status"] != nil { + status = EventNotificationStatus(rawValue: "\(dict["status"]!)") + } + if dict["actionType"] != nil { + actionType = dict["actionType"] as? String + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(objectId != nil) { + dict["objectId"] = objectId! + } + if(eventObjectType != nil) { + dict["eventObjectType"] = eventObjectType! + } + if(message != nil) { + dict["message"] = message! + } + if(status != nil) { + dict["status"] = status!.rawValue + } + if(actionType != nil) { + dict["actionType"] = actionType! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EventNotificationFilter.swift b/KalturaClient/Classes/Model/Objects/EventNotificationFilter.swift new file mode 100644 index 000000000..e608e599b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EventNotificationFilter.swift @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class EventNotificationFilter: CrudFilter { + + public class EventNotificationFilterTokenizer: CrudFilter.CrudFilterTokenizer { + + public var idEqual: BaseTokenizedObject { + get { + return self.append("idEqual") + } + } + + public var objectIdEqual: BaseTokenizedObject { + get { + return self.append("objectIdEqual") + } + } + + public var eventObjectTypeEqual: BaseTokenizedObject { + get { + return self.append("eventObjectTypeEqual") + } + } + } + + /** Indicates which event notification to return by their event notifications Id. */ + public var idEqual: String? = nil + /** Indicates which objectId to return by their event notifications. */ + public var objectIdEqual: Int64? = nil + /** Indicates which objectType to return by their event notifications. */ + public var eventObjectTypeEqual: String? = nil + + + public func setMultiRequestToken(idEqual: String) { + self.dict["idEqual"] = idEqual + } + + public func setMultiRequestToken(objectIdEqual: String) { + self.dict["objectIdEqual"] = objectIdEqual + } + + public func setMultiRequestToken(eventObjectTypeEqual: String) { + self.dict["eventObjectTypeEqual"] = eventObjectTypeEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idEqual"] != nil { + idEqual = dict["idEqual"] as? String + } + if dict["objectIdEqual"] != nil { + objectIdEqual = Int64("\(dict["objectIdEqual"]!)") + } + if dict["eventObjectTypeEqual"] != nil { + eventObjectTypeEqual = dict["eventObjectTypeEqual"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idEqual != nil) { + dict["idEqual"] = idEqual! + } + if(objectIdEqual != nil) { + dict["objectIdEqual"] = objectIdEqual! + } + if(eventObjectTypeEqual != nil) { + dict["eventObjectTypeEqual"] = eventObjectTypeEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EventNotificationListResponse.swift b/KalturaClient/Classes/Model/Objects/EventNotificationListResponse.swift new file mode 100644 index 000000000..15c5c46b1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EventNotificationListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class EventNotificationListResponse: ListResponse { + + public class EventNotificationListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of objects */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EventNotificationObjectScope.swift b/KalturaClient/Classes/Model/Objects/EventNotificationObjectScope.swift new file mode 100644 index 000000000..50e2a8c02 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EventNotificationObjectScope.swift @@ -0,0 +1,66 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Kaltura event notification object scope */ +open class EventNotificationObjectScope: EventNotificationScope { + + public class EventNotificationObjectScopeTokenizer: EventNotificationScope.EventNotificationScopeTokenizer { + + public func eventObject() -> T { + return T(self.append("eventObject")) + } + } + + /** Event object to fire */ + public var eventObject: EventObject? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["eventObject"] != nil { + eventObject = try JSONParser.parse(object: dict["eventObject"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(eventObject != nil) { + dict["eventObject"] = eventObject!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EventNotificationScope.swift b/KalturaClient/Classes/Model/Objects/EventNotificationScope.swift new file mode 100644 index 000000000..56fe588f3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EventNotificationScope.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Kaltura event notification scope */ +open class EventNotificationScope: ObjectBase { + + public class EventNotificationScopeTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/EventObject.swift b/KalturaClient/Classes/Model/Objects/EventObject.swift new file mode 100644 index 000000000..a3702e0d7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EventObject.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class EventObject: ObjectBase { + + public class EventObjectTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/ExportTask.swift b/KalturaClient/Classes/Model/Objects/ExportTask.swift new file mode 100644 index 000000000..549ea874d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ExportTask.swift @@ -0,0 +1,217 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Bulk export task */ +open class ExportTask: ObjectBase { + + public class ExportTaskTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var alias: BaseTokenizedObject { + get { + return self.append("alias") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var dataType: BaseTokenizedObject { + get { + return self.append("dataType") + } + } + + public var filter: BaseTokenizedObject { + get { + return self.append("filter") + } + } + + public var exportType: BaseTokenizedObject { + get { + return self.append("exportType") + } + } + + public var frequency: BaseTokenizedObject { + get { + return self.append("frequency") + } + } + + public var notificationUrl: BaseTokenizedObject { + get { + return self.append("notificationUrl") + } + } + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + } + + /** Task identifier */ + public var id: Int64? = nil + /** Alias for the task used to solicit an export using API */ + public var alias: String? = nil + /** Task display name */ + public var name: String? = nil + /** The data type exported in this task */ + public var dataType: ExportDataType? = nil + /** Filter to apply on the export, utilize KSQL. Note: KSQL currently + applies to media assets only. It cannot be used for USERS filtering */ + public var filter: String? = nil + /** Type of export batch – full or incremental */ + public var exportType: ExportType? = nil + /** How often the export should occur, reasonable minimum threshold should apply, + configurable in minutes */ + public var frequency: Int64? = nil + /** The URL for sending a notification when the task's export process is + done */ + public var notificationUrl: String? = nil + /** Indicates if the task is active or not */ + public var isActive: Bool? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(alias: String) { + self.dict["alias"] = alias + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(dataType: String) { + self.dict["dataType"] = dataType + } + + public func setMultiRequestToken(filter: String) { + self.dict["filter"] = filter + } + + public func setMultiRequestToken(exportType: String) { + self.dict["exportType"] = exportType + } + + public func setMultiRequestToken(frequency: String) { + self.dict["frequency"] = frequency + } + + public func setMultiRequestToken(notificationUrl: String) { + self.dict["notificationUrl"] = notificationUrl + } + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["alias"] != nil { + alias = dict["alias"] as? String + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["dataType"] != nil { + dataType = ExportDataType(rawValue: "\(dict["dataType"]!)") + } + if dict["filter"] != nil { + filter = dict["filter"] as? String + } + if dict["exportType"] != nil { + exportType = ExportType(rawValue: "\(dict["exportType"]!)") + } + if dict["frequency"] != nil { + frequency = Int64("\(dict["frequency"]!)") + } + if dict["notificationUrl"] != nil { + notificationUrl = dict["notificationUrl"] as? String + } + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(alias != nil) { + dict["alias"] = alias! + } + if(name != nil) { + dict["name"] = name! + } + if(dataType != nil) { + dict["dataType"] = dataType!.rawValue + } + if(filter != nil) { + dict["filter"] = filter! + } + if(exportType != nil) { + dict["exportType"] = exportType!.rawValue + } + if(frequency != nil) { + dict["frequency"] = frequency! + } + if(notificationUrl != nil) { + dict["notificationUrl"] = notificationUrl! + } + if(isActive != nil) { + dict["isActive"] = isActive! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ExportTaskFilter.swift b/KalturaClient/Classes/Model/Objects/ExportTaskFilter.swift new file mode 100644 index 000000000..86f999f99 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ExportTaskFilter.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Bulk export tasks filter */ +open class ExportTaskFilter: Filter { + + public class ExportTaskFilterTokenizer: Filter.FilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** Comma separated tasks identifiers */ + public var idIn: String? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ExportTaskListResponse.swift b/KalturaClient/Classes/Model/Objects/ExportTaskListResponse.swift new file mode 100644 index 000000000..14354da07 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ExportTaskListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Export task list wrapper */ +open class ExportTaskListResponse: ListResponse { + + public class ExportTaskListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Export task items */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ExternalChannelProfile.swift b/KalturaClient/Classes/Model/Objects/ExternalChannelProfile.swift new file mode 100644 index 000000000..8d340961d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ExternalChannelProfile.swift @@ -0,0 +1,206 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** OSS Adapter */ +open class ExternalChannelProfile: ObjectBase { + + public class ExternalChannelProfileTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + + public var externalIdentifier: BaseTokenizedObject { + get { + return self.append("externalIdentifier") + } + } + + public var filterExpression: BaseTokenizedObject { + get { + return self.append("filterExpression") + } + } + + public var recommendationEngineId: BaseTokenizedObject { + get { + return self.append("recommendationEngineId") + } + } + + public var enrichments: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("enrichments")) + } + } + + public var assetUserRuleId: BaseTokenizedObject { + get { + return self.append("assetUserRuleId") + } + } + + public var metaData: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("metaData")) + } + } + } + + /** External channel id */ + public var id: Int? = nil + /** External channel name */ + public var name: String? = nil + /** External channel active status */ + public var isActive: Bool? = nil + /** External channel external identifier */ + public var externalIdentifier: String? = nil + /** Filter expression */ + public var filterExpression: String? = nil + /** Recommendation engine id */ + public var recommendationEngineId: Int? = nil + /** Enrichments */ + public var enrichments: Array? = nil + /** Asset user rule identifier */ + public var assetUserRuleId: Int64? = nil + /** key/value map field for extra data */ + public var metaData: Dictionary? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public func setMultiRequestToken(externalIdentifier: String) { + self.dict["externalIdentifier"] = externalIdentifier + } + + public func setMultiRequestToken(filterExpression: String) { + self.dict["filterExpression"] = filterExpression + } + + public func setMultiRequestToken(recommendationEngineId: String) { + self.dict["recommendationEngineId"] = recommendationEngineId + } + + public func setMultiRequestToken(assetUserRuleId: String) { + self.dict["assetUserRuleId"] = assetUserRuleId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Bool + } + if dict["externalIdentifier"] != nil { + externalIdentifier = dict["externalIdentifier"] as? String + } + if dict["filterExpression"] != nil { + filterExpression = dict["filterExpression"] as? String + } + if dict["recommendationEngineId"] != nil { + recommendationEngineId = dict["recommendationEngineId"] as? Int + } + if dict["enrichments"] != nil { + enrichments = try JSONParser.parse(array: dict["enrichments"] as! [Any]) + } + if dict["assetUserRuleId"] != nil { + assetUserRuleId = Int64("\(dict["assetUserRuleId"]!)") + } + if dict["metaData"] != nil { + metaData = try JSONParser.parse(map: dict["metaData"] as! [String: Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(isActive != nil) { + dict["isActive"] = isActive! + } + if(externalIdentifier != nil) { + dict["externalIdentifier"] = externalIdentifier! + } + if(filterExpression != nil) { + dict["filterExpression"] = filterExpression! + } + if(recommendationEngineId != nil) { + dict["recommendationEngineId"] = recommendationEngineId! + } + if(enrichments != nil) { + dict["enrichments"] = enrichments!.map { value in value.toDictionary() } + } + if(assetUserRuleId != nil) { + dict["assetUserRuleId"] = assetUserRuleId! + } + if(metaData != nil) { + dict["metaData"] = metaData!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ExternalChannelProfileByIdInFilter.swift b/KalturaClient/Classes/Model/Objects/ExternalChannelProfileByIdInFilter.swift new file mode 100644 index 000000000..64c649b2a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ExternalChannelProfileByIdInFilter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ExternalChannelProfileByIdInFilter: ExternalChannelProfileFilter { + + public class ExternalChannelProfileByIdInFilterTokenizer: ExternalChannelProfileFilter.ExternalChannelProfileFilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** Comma separated external channel profile ids */ + public var idIn: String? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ExternalChannelProfileFilter.swift b/KalturaClient/Classes/Model/Objects/ExternalChannelProfileFilter.swift new file mode 100644 index 000000000..7c830c995 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ExternalChannelProfileFilter.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** External channel profile filter */ +open class ExternalChannelProfileFilter: Filter { + + public class ExternalChannelProfileFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/ExternalChannelProfileListResponse.swift b/KalturaClient/Classes/Model/Objects/ExternalChannelProfileListResponse.swift new file mode 100644 index 000000000..95f9cec07 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ExternalChannelProfileListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** External channel profiles */ +open class ExternalChannelProfileListResponse: ListResponse { + + public class ExternalChannelProfileListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** External channel profiles */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ExternalReceipt.swift b/KalturaClient/Classes/Model/Objects/ExternalReceipt.swift new file mode 100644 index 000000000..56580cbce --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ExternalReceipt.swift @@ -0,0 +1,92 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ExternalReceipt: PurchaseBase { + + public class ExternalReceiptTokenizer: PurchaseBase.PurchaseBaseTokenizer { + + public var receiptId: BaseTokenizedObject { + get { + return self.append("receiptId") + } + } + + public var paymentGatewayName: BaseTokenizedObject { + get { + return self.append("paymentGatewayName") + } + } + } + + /** A unique identifier that was provided by the In-App billing service to validate + the purchase */ + public var receiptId: String? = nil + /** The payment gateway name for the In-App billing service to be used. Possible + values: Google/Apple */ + public var paymentGatewayName: String? = nil + + + public func setMultiRequestToken(receiptId: String) { + self.dict["receiptId"] = receiptId + } + + public func setMultiRequestToken(paymentGatewayName: String) { + self.dict["paymentGatewayName"] = paymentGatewayName + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["receiptId"] != nil { + receiptId = dict["receiptId"] as? String + } + if dict["paymentGatewayName"] != nil { + paymentGatewayName = dict["paymentGatewayName"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(receiptId != nil) { + dict["receiptId"] = receiptId! + } + if(paymentGatewayName != nil) { + dict["paymentGatewayName"] = paymentGatewayName! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ExternalRecording.swift b/KalturaClient/Classes/Model/Objects/ExternalRecording.swift new file mode 100644 index 000000000..7ff333799 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ExternalRecording.swift @@ -0,0 +1,102 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ExternalRecording: Recording { + + public class ExternalRecordingTokenizer: Recording.RecordingTokenizer { + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + + public var metaData: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("metaData")) + } + } + + public var expiryDate: BaseTokenizedObject { + get { + return self.append("expiryDate") + } + } + } + + /** External identifier for the recording */ + public var externalId: String? = nil + /** key/value map field for extra data */ + public var metaData: Dictionary? = nil + /** Specifies until when the recording is available. Date and time represented as + epoch. */ + public var expiryDate: Int64? = nil + + + public func setMultiRequestToken(externalId: String) { + self.dict["externalId"] = externalId + } + + public func setMultiRequestToken(expiryDate: String) { + self.dict["expiryDate"] = expiryDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["externalId"] != nil { + externalId = dict["externalId"] as? String + } + if dict["metaData"] != nil { + metaData = try JSONParser.parse(map: dict["metaData"] as! [String: Any]) + } + if dict["expiryDate"] != nil { + expiryDate = Int64("\(dict["expiryDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(externalId != nil) { + dict["externalId"] = externalId! + } + if(metaData != nil) { + dict["metaData"] = metaData!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ExternalRecordingFilter.swift b/KalturaClient/Classes/Model/Objects/ExternalRecordingFilter.swift new file mode 100644 index 000000000..7c9ffa9bc --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ExternalRecordingFilter.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Filtering external recordings */ +open class ExternalRecordingFilter: RecordingFilter { + + public class ExternalRecordingFilterTokenizer: RecordingFilter.RecordingFilterTokenizer { + + public var metaData: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("metaData")) + } + } + } + + /** MetaData filtering */ + public var metaData: Dictionary? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["metaData"] != nil { + metaData = try JSONParser.parse(map: dict["metaData"] as! [String: Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(metaData != nil) { + dict["metaData"] = metaData!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ExternalRecordingResponseProfileFilter.swift b/KalturaClient/Classes/Model/Objects/ExternalRecordingResponseProfileFilter.swift new file mode 100644 index 000000000..c63abac4a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ExternalRecordingResponseProfileFilter.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Kaltura External Recording ResponseProfile Filter */ +open class ExternalRecordingResponseProfileFilter: RelatedObjectFilter { + + public class ExternalRecordingResponseProfileFilterTokenizer: RelatedObjectFilter.RelatedObjectFilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/ExternalSeriesRecording.swift b/KalturaClient/Classes/Model/Objects/ExternalSeriesRecording.swift new file mode 100644 index 000000000..be1c30928 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ExternalSeriesRecording.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ExternalSeriesRecording: SeriesRecording { + + public class ExternalSeriesRecordingTokenizer: SeriesRecording.SeriesRecordingTokenizer { + + public var metaData: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("metaData")) + } + } + } + + /** MetaData filtering */ + public var metaData: Dictionary? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["metaData"] != nil { + metaData = try JSONParser.parse(map: dict["metaData"] as! [String: Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(metaData != nil) { + dict["metaData"] = metaData!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FacebookPost.swift b/KalturaClient/Classes/Model/Objects/FacebookPost.swift new file mode 100644 index 000000000..b7cdc1cb0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FacebookPost.swift @@ -0,0 +1,86 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class FacebookPost: SocialNetworkComment { + + public class FacebookPostTokenizer: SocialNetworkComment.SocialNetworkCommentTokenizer { + + public var comments: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("comments")) + } + } + + public var link: BaseTokenizedObject { + get { + return self.append("link") + } + } + } + + /** List of comments on the post */ + public var comments: Array? = nil + /** A link associated to the post */ + public var link: String? = nil + + + public func setMultiRequestToken(link: String) { + self.dict["link"] = link + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["comments"] != nil { + comments = try JSONParser.parse(array: dict["comments"] as! [Any]) + } + if dict["link"] != nil { + link = dict["link"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(comments != nil) { + dict["comments"] = comments!.map { value in value.toDictionary() } + } + if(link != nil) { + dict["link"] = link! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FacebookSocial.swift b/KalturaClient/Classes/Model/Objects/FacebookSocial.swift new file mode 100644 index 000000000..c97bc79c4 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FacebookSocial.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class FacebookSocial: Social { + + public class FacebookSocialTokenizer: Social.SocialTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FairPlayPlaybackPluginData.swift b/KalturaClient/Classes/Model/Objects/FairPlayPlaybackPluginData.swift new file mode 100644 index 000000000..a82246ec2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FairPlayPlaybackPluginData.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class FairPlayPlaybackPluginData: DrmPlaybackPluginData { + + public class FairPlayPlaybackPluginDataTokenizer: DrmPlaybackPluginData.DrmPlaybackPluginDataTokenizer { + + public var certificate: BaseTokenizedObject { + get { + return self.append("certificate") + } + } + } + + /** Custom data string */ + public var certificate: String? = nil + + + public func setMultiRequestToken(certificate: String) { + self.dict["certificate"] = certificate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["certificate"] != nil { + certificate = dict["certificate"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(certificate != nil) { + dict["certificate"] = certificate! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Favorite.swift b/KalturaClient/Classes/Model/Objects/Favorite.swift new file mode 100644 index 000000000..5b1d92131 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Favorite.swift @@ -0,0 +1,106 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Favorite details */ +open class Favorite: ObjectBase { + + public class FavoriteTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var extraData: BaseTokenizedObject { + get { + return self.append("extraData") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + } + + /** AssetInfo Model */ + public var assetId: Int64? = nil + /** Extra Value */ + public var extraData: String? = nil + /** Specifies when was the favorite created. Date and time represented as epoch. */ + public var createDate: Int64? = nil + + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + public func setMultiRequestToken(extraData: String) { + self.dict["extraData"] = extraData + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetId"] != nil { + assetId = Int64("\(dict["assetId"]!)") + } + if dict["extraData"] != nil { + extraData = dict["extraData"] as? String + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetId != nil) { + dict["assetId"] = assetId! + } + if(extraData != nil) { + dict["extraData"] = extraData! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FavoriteFilter.swift b/KalturaClient/Classes/Model/Objects/FavoriteFilter.swift new file mode 100644 index 000000000..68ebcc65e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FavoriteFilter.swift @@ -0,0 +1,110 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Favorite request filter */ +open class FavoriteFilter: Filter { + + public class FavoriteFilterTokenizer: Filter.FilterTokenizer { + + public var mediaTypeEqual: BaseTokenizedObject { + get { + return self.append("mediaTypeEqual") + } + } + + public var mediaIdIn: BaseTokenizedObject { + get { + return self.append("mediaIdIn") + } + } + + public var udidEqualCurrent: BaseTokenizedObject { + get { + return self.append("udidEqualCurrent") + } + } + } + + /** Media type to filter by the favorite assets */ + public var mediaTypeEqual: Int? = nil + /** Media identifiers from which to filter the favorite assets */ + public var mediaIdIn: String? = nil + /** Indicates whether the results should be filtered by origin UDID using the + current */ + public var udidEqualCurrent: Bool? = nil + + + public func setMultiRequestToken(mediaTypeEqual: String) { + self.dict["mediaTypeEqual"] = mediaTypeEqual + } + + public func setMultiRequestToken(mediaIdIn: String) { + self.dict["mediaIdIn"] = mediaIdIn + } + + public func setMultiRequestToken(udidEqualCurrent: String) { + self.dict["udidEqualCurrent"] = udidEqualCurrent + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["mediaTypeEqual"] != nil { + mediaTypeEqual = dict["mediaTypeEqual"] as? Int + } + if dict["mediaIdIn"] != nil { + mediaIdIn = dict["mediaIdIn"] as? String + } + if dict["udidEqualCurrent"] != nil { + udidEqualCurrent = dict["udidEqualCurrent"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(mediaTypeEqual != nil) { + dict["mediaTypeEqual"] = mediaTypeEqual! + } + if(mediaIdIn != nil) { + dict["mediaIdIn"] = mediaIdIn! + } + if(udidEqualCurrent != nil) { + dict["udidEqualCurrent"] = udidEqualCurrent! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FavoriteListResponse.swift b/KalturaClient/Classes/Model/Objects/FavoriteListResponse.swift new file mode 100644 index 000000000..61610193d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FavoriteListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Favorite list */ +open class FavoriteListResponse: ListResponse { + + public class FavoriteListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of favorites */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Feed.swift b/KalturaClient/Classes/Model/Objects/Feed.swift new file mode 100644 index 000000000..474598e74 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Feed.swift @@ -0,0 +1,65 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Feed: ObjectBase { + + public class FeedTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + } + + /** Asset identifier */ + public var assetId: Int64? = nil + + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetId"] != nil { + assetId = Int64("\(dict["assetId"]!)") + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/Filter.swift b/KalturaClient/Classes/Model/Objects/Filter.swift new file mode 100644 index 000000000..7c618f59b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Filter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Filter: ObjectBase { + + public class FilterTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var orderBy: BaseTokenizedObject { + get { + return self.append("orderBy") + } + } + } + + /** order by */ + public var orderBy: String? = nil + + + public func setMultiRequestToken(orderBy: String) { + self.dict["orderBy"] = orderBy + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["orderBy"] != nil { + orderBy = dict["orderBy"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(orderBy != nil) { + dict["orderBy"] = orderBy! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterPager.swift b/KalturaClient/Classes/Model/Objects/FilterPager.swift new file mode 100644 index 000000000..66c356265 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterPager.swift @@ -0,0 +1,94 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** The KalturaFilterPager object enables paging management to be applied upon + service list actions */ +open class FilterPager: ObjectBase { + + public class FilterPagerTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var pageSize: BaseTokenizedObject { + get { + return self.append("pageSize") + } + } + + public var pageIndex: BaseTokenizedObject { + get { + return self.append("pageIndex") + } + } + } + + /** The number of objects to retrieve. Possible range 1 ≤ value ≤ 50. If omitted + or value < 1 - will be set to 25. If a value > 50 provided – + will be set to 50 */ + public var pageSize: Int? = nil + /** The page number for which {pageSize} of objects should be retrieved */ + public var pageIndex: Int? = nil + + + public func setMultiRequestToken(pageSize: String) { + self.dict["pageSize"] = pageSize + } + + public func setMultiRequestToken(pageIndex: String) { + self.dict["pageIndex"] = pageIndex + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["pageSize"] != nil { + pageSize = dict["pageSize"] as? Int + } + if dict["pageIndex"] != nil { + pageIndex = dict["pageIndex"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(pageSize != nil) { + dict["pageSize"] = pageSize! + } + if(pageIndex != nil) { + dict["pageIndex"] = pageIndex! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FollowDataBase.swift b/KalturaClient/Classes/Model/Objects/FollowDataBase.swift new file mode 100644 index 000000000..531549995 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FollowDataBase.swift @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class FollowDataBase: ObjectBase { + + public class FollowDataBaseTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var announcementId: BaseTokenizedObject { + get { + return self.append("announcementId") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var title: BaseTokenizedObject { + get { + return self.append("title") + } + } + + public var timestamp: BaseTokenizedObject { + get { + return self.append("timestamp") + } + } + + public var followPhrase: BaseTokenizedObject { + get { + return self.append("followPhrase") + } + } + } + + /** Announcement Id */ + public var announcementId: Int64? = nil + /** Status */ + public var status: Int? = nil + /** Title */ + public var title: String? = nil + /** Timestamp */ + public var timestamp: Int64? = nil + /** Follow Phrase */ + public var followPhrase: String? = nil + + + public func setMultiRequestToken(announcementId: String) { + self.dict["announcementId"] = announcementId + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(title: String) { + self.dict["title"] = title + } + + public func setMultiRequestToken(timestamp: String) { + self.dict["timestamp"] = timestamp + } + + public func setMultiRequestToken(followPhrase: String) { + self.dict["followPhrase"] = followPhrase + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["announcementId"] != nil { + announcementId = Int64("\(dict["announcementId"]!)") + } + if dict["status"] != nil { + status = dict["status"] as? Int + } + if dict["title"] != nil { + title = dict["title"] as? String + } + if dict["timestamp"] != nil { + timestamp = Int64("\(dict["timestamp"]!)") + } + if dict["followPhrase"] != nil { + followPhrase = dict["followPhrase"] as? String + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FollowTvSeries.swift b/KalturaClient/Classes/Model/Objects/FollowTvSeries.swift new file mode 100644 index 000000000..1bcb2eecd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FollowTvSeries.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class FollowTvSeries: FollowDataBase { + + public class FollowTvSeriesTokenizer: FollowDataBase.FollowDataBaseTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + } + + /** Asset Id */ + public var assetId: Int? = nil + + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetId"] != nil { + assetId = dict["assetId"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetId != nil) { + dict["assetId"] = assetId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FollowTvSeriesFilter.swift b/KalturaClient/Classes/Model/Objects/FollowTvSeriesFilter.swift new file mode 100644 index 000000000..6aaa7cccd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FollowTvSeriesFilter.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class FollowTvSeriesFilter: Filter { + + public class FollowTvSeriesFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FollowTvSeriesListResponse.swift b/KalturaClient/Classes/Model/Objects/FollowTvSeriesListResponse.swift new file mode 100644 index 000000000..8f32ae1b4 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FollowTvSeriesListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of message follow data. */ +open class FollowTvSeriesListResponse: ListResponse { + + public class FollowTvSeriesListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Follow data list */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/GeneralPartnerConfig.swift b/KalturaClient/Classes/Model/Objects/GeneralPartnerConfig.swift new file mode 100644 index 000000000..eacfe16b1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/GeneralPartnerConfig.swift @@ -0,0 +1,300 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Partner General configuration */ +open class GeneralPartnerConfig: PartnerConfiguration { + + public class GeneralPartnerConfigTokenizer: PartnerConfiguration.PartnerConfigurationTokenizer { + + public var partnerName: BaseTokenizedObject { + get { + return self.append("partnerName") + } + } + + public var mainLanguage: BaseTokenizedObject { + get { + return self.append("mainLanguage") + } + } + + public var secondaryLanguages: BaseTokenizedObject { + get { + return self.append("secondaryLanguages") + } + } + + public var deleteMediaPolicy: BaseTokenizedObject { + get { + return self.append("deleteMediaPolicy") + } + } + + public var mainCurrency: BaseTokenizedObject { + get { + return self.append("mainCurrency") + } + } + + public var secondaryCurrencies: BaseTokenizedObject { + get { + return self.append("secondaryCurrencies") + } + } + + public var downgradePolicy: BaseTokenizedObject { + get { + return self.append("downgradePolicy") + } + } + + public var mailSettings: BaseTokenizedObject { + get { + return self.append("mailSettings") + } + } + + public var dateFormat: BaseTokenizedObject { + get { + return self.append("dateFormat") + } + } + + public var householdLimitationModule: BaseTokenizedObject { + get { + return self.append("householdLimitationModule") + } + } + + public var enableRegionFiltering: BaseTokenizedObject { + get { + return self.append("enableRegionFiltering") + } + } + + public var defaultRegion: BaseTokenizedObject { + get { + return self.append("defaultRegion") + } + } + + public func rollingDeviceData() -> T { + return T(self.append("rollingDeviceData")) + } + + public var finishedPercentThreshold: BaseTokenizedObject { + get { + return self.append("finishedPercentThreshold") + } + } + } + + /** Partner name */ + public var partnerName: String? = nil + /** Main metadata language */ + public var mainLanguage: Int? = nil + /** A list of comma separated languages ids. */ + public var secondaryLanguages: String? = nil + /** Delete media policy */ + public var deleteMediaPolicy: DeleteMediaPolicy? = nil + /** Main currency */ + public var mainCurrency: Int? = nil + /** A list of comma separated currency ids. */ + public var secondaryCurrencies: String? = nil + /** Downgrade policy */ + public var downgradePolicy: DowngradePolicy? = nil + /** Mail settings */ + public var mailSettings: String? = nil + /** Default Date Format for Email notifications (default should be: DD Month YYYY) */ + public var dateFormat: String? = nil + /** Household limitation module */ + public var householdLimitationModule: Int? = nil + /** Enable Region Filtering */ + public var enableRegionFiltering: Bool? = nil + /** Default Region */ + public var defaultRegion: Int? = nil + /** Rolling Device Policy */ + public var rollingDeviceData: RollingDeviceRemovalData? = nil + /** Finished PercentThreshold */ + public var finishedPercentThreshold: Int? = nil + + + public func setMultiRequestToken(partnerName: String) { + self.dict["partnerName"] = partnerName + } + + public func setMultiRequestToken(mainLanguage: String) { + self.dict["mainLanguage"] = mainLanguage + } + + public func setMultiRequestToken(secondaryLanguages: String) { + self.dict["secondaryLanguages"] = secondaryLanguages + } + + public func setMultiRequestToken(deleteMediaPolicy: String) { + self.dict["deleteMediaPolicy"] = deleteMediaPolicy + } + + public func setMultiRequestToken(mainCurrency: String) { + self.dict["mainCurrency"] = mainCurrency + } + + public func setMultiRequestToken(secondaryCurrencies: String) { + self.dict["secondaryCurrencies"] = secondaryCurrencies + } + + public func setMultiRequestToken(downgradePolicy: String) { + self.dict["downgradePolicy"] = downgradePolicy + } + + public func setMultiRequestToken(mailSettings: String) { + self.dict["mailSettings"] = mailSettings + } + + public func setMultiRequestToken(dateFormat: String) { + self.dict["dateFormat"] = dateFormat + } + + public func setMultiRequestToken(householdLimitationModule: String) { + self.dict["householdLimitationModule"] = householdLimitationModule + } + + public func setMultiRequestToken(enableRegionFiltering: String) { + self.dict["enableRegionFiltering"] = enableRegionFiltering + } + + public func setMultiRequestToken(defaultRegion: String) { + self.dict["defaultRegion"] = defaultRegion + } + + public func setMultiRequestToken(finishedPercentThreshold: String) { + self.dict["finishedPercentThreshold"] = finishedPercentThreshold + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["partnerName"] != nil { + partnerName = dict["partnerName"] as? String + } + if dict["mainLanguage"] != nil { + mainLanguage = dict["mainLanguage"] as? Int + } + if dict["secondaryLanguages"] != nil { + secondaryLanguages = dict["secondaryLanguages"] as? String + } + if dict["deleteMediaPolicy"] != nil { + deleteMediaPolicy = DeleteMediaPolicy(rawValue: "\(dict["deleteMediaPolicy"]!)") + } + if dict["mainCurrency"] != nil { + mainCurrency = dict["mainCurrency"] as? Int + } + if dict["secondaryCurrencies"] != nil { + secondaryCurrencies = dict["secondaryCurrencies"] as? String + } + if dict["downgradePolicy"] != nil { + downgradePolicy = DowngradePolicy(rawValue: "\(dict["downgradePolicy"]!)") + } + if dict["mailSettings"] != nil { + mailSettings = dict["mailSettings"] as? String + } + if dict["dateFormat"] != nil { + dateFormat = dict["dateFormat"] as? String + } + if dict["householdLimitationModule"] != nil { + householdLimitationModule = dict["householdLimitationModule"] as? Int + } + if dict["enableRegionFiltering"] != nil { + enableRegionFiltering = dict["enableRegionFiltering"] as? Bool + } + if dict["defaultRegion"] != nil { + defaultRegion = dict["defaultRegion"] as? Int + } + if dict["rollingDeviceData"] != nil { + rollingDeviceData = try JSONParser.parse(object: dict["rollingDeviceData"] as! [String: Any]) } + if dict["finishedPercentThreshold"] != nil { + finishedPercentThreshold = dict["finishedPercentThreshold"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(partnerName != nil) { + dict["partnerName"] = partnerName! + } + if(mainLanguage != nil) { + dict["mainLanguage"] = mainLanguage! + } + if(secondaryLanguages != nil) { + dict["secondaryLanguages"] = secondaryLanguages! + } + if(deleteMediaPolicy != nil) { + dict["deleteMediaPolicy"] = deleteMediaPolicy!.rawValue + } + if(mainCurrency != nil) { + dict["mainCurrency"] = mainCurrency! + } + if(secondaryCurrencies != nil) { + dict["secondaryCurrencies"] = secondaryCurrencies! + } + if(downgradePolicy != nil) { + dict["downgradePolicy"] = downgradePolicy!.rawValue + } + if(mailSettings != nil) { + dict["mailSettings"] = mailSettings! + } + if(dateFormat != nil) { + dict["dateFormat"] = dateFormat! + } + if(householdLimitationModule != nil) { + dict["householdLimitationModule"] = householdLimitationModule! + } + if(enableRegionFiltering != nil) { + dict["enableRegionFiltering"] = enableRegionFiltering! + } + if(defaultRegion != nil) { + dict["defaultRegion"] = defaultRegion! + } + if(rollingDeviceData != nil) { + dict["rollingDeviceData"] = rollingDeviceData!.toDictionary() + } + if(finishedPercentThreshold != nil) { + dict["finishedPercentThreshold"] = finishedPercentThreshold! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/GenericListResponse.swift b/KalturaClient/Classes/Model/Objects/GenericListResponse.swift new file mode 100644 index 000000000..f3a640f38 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/GenericListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Generic response list */ +open class GenericListResponse: ListResponse { + + public class GenericListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of objects */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/GroupPermission.swift b/KalturaClient/Classes/Model/Objects/GroupPermission.swift new file mode 100644 index 000000000..4ef27c089 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/GroupPermission.swift @@ -0,0 +1,65 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class GroupPermission: Permission { + + public class GroupPermissionTokenizer: Permission.PermissionTokenizer { + + public var group: BaseTokenizedObject { + get { + return self.append("group") + } + } + } + + /** Permission identifier */ + public var group: String? = nil + + + public func setMultiRequestToken(group: String) { + self.dict["group"] = group + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["group"] != nil { + group = dict["group"] as? String + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/HeaderCondition.swift b/KalturaClient/Classes/Model/Objects/HeaderCondition.swift new file mode 100644 index 000000000..923769214 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HeaderCondition.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Header condition */ +open class HeaderCondition: NotCondition { + + public class HeaderConditionTokenizer: NotCondition.NotConditionTokenizer { + + public var key: BaseTokenizedObject { + get { + return self.append("key") + } + } + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** Header key */ + public var key: String? = nil + /** Header value */ + public var value: String? = nil + + + public func setMultiRequestToken(key: String) { + self.dict["key"] = key + } + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["key"] != nil { + key = dict["key"] as? String + } + if dict["value"] != nil { + value = dict["value"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(key != nil) { + dict["key"] = key! + } + if(value != nil) { + dict["value"] = value! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HomeNetwork.swift b/KalturaClient/Classes/Model/Objects/HomeNetwork.swift new file mode 100644 index 000000000..93f303df4 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HomeNetwork.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Home network details */ +open class HomeNetwork: ObjectBase { + + public class HomeNetworkTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + } + + /** Home network identifier */ + public var externalId: String? = nil + /** Home network name */ + public var name: String? = nil + /** Home network description */ + public var description: String? = nil + /** Is home network is active */ + public var isActive: Bool? = nil + + + public func setMultiRequestToken(externalId: String) { + self.dict["externalId"] = externalId + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["externalId"] != nil { + externalId = dict["externalId"] as? String + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["description"] != nil { + description = dict["description"] as? String + } + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(externalId != nil) { + dict["externalId"] = externalId! + } + if(name != nil) { + dict["name"] = name! + } + if(description != nil) { + dict["description"] = description! + } + if(isActive != nil) { + dict["isActive"] = isActive! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HomeNetworkListResponse.swift b/KalturaClient/Classes/Model/Objects/HomeNetworkListResponse.swift new file mode 100644 index 000000000..9459a8dcd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HomeNetworkListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Home networks */ +open class HomeNetworkListResponse: ListResponse { + + public class HomeNetworkListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Home networks */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Household.swift b/KalturaClient/Classes/Model/Objects/Household.swift new file mode 100644 index 000000000..c461bf6ec --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Household.swift @@ -0,0 +1,292 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Household details */ +open class Household: ObjectBase { + + public class HouseholdTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + + public var householdLimitationsId: BaseTokenizedObject { + get { + return self.append("householdLimitationsId") + } + } + + public var devicesLimit: BaseTokenizedObject { + get { + return self.append("devicesLimit") + } + } + + public var usersLimit: BaseTokenizedObject { + get { + return self.append("usersLimit") + } + } + + public var concurrentLimit: BaseTokenizedObject { + get { + return self.append("concurrentLimit") + } + } + + public var regionId: BaseTokenizedObject { + get { + return self.append("regionId") + } + } + + public var state: BaseTokenizedObject { + get { + return self.append("state") + } + } + + public var isFrequencyEnabled: BaseTokenizedObject { + get { + return self.append("isFrequencyEnabled") + } + } + + public var frequencyNextDeviceAction: BaseTokenizedObject { + get { + return self.append("frequencyNextDeviceAction") + } + } + + public var frequencyNextUserAction: BaseTokenizedObject { + get { + return self.append("frequencyNextUserAction") + } + } + + public var restriction: BaseTokenizedObject { + get { + return self.append("restriction") + } + } + + public var roleId: BaseTokenizedObject { + get { + return self.append("roleId") + } + } + } + + /** Household identifier */ + public var id: Int64? = nil + /** Household name */ + public var name: String? = nil + /** Household description */ + public var description: String? = nil + /** Household external identifier */ + public var externalId: String? = nil + /** Household limitation module identifier */ + public var householdLimitationsId: Int? = nil + /** The max number of the devices that can be added to the household */ + public var devicesLimit: Int? = nil + /** The max number of the users that can be added to the household */ + public var usersLimit: Int? = nil + /** The max number of concurrent streams in the household */ + public var concurrentLimit: Int? = nil + /** The households region identifier */ + public var regionId: Int? = nil + /** Household state */ + public var state: HouseholdState? = nil + /** Is household frequency enabled */ + public var isFrequencyEnabled: Bool? = nil + /** The next time a device is allowed to be removed from the household (epoch) */ + public var frequencyNextDeviceAction: Int64? = nil + /** The next time a user is allowed to be removed from the household (epoch) */ + public var frequencyNextUserAction: Int64? = nil + /** Household restriction */ + public var restriction: HouseholdRestriction? = nil + /** suspended roleId */ + public var roleId: Int? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public func setMultiRequestToken(externalId: String) { + self.dict["externalId"] = externalId + } + + public func setMultiRequestToken(householdLimitationsId: String) { + self.dict["householdLimitationsId"] = householdLimitationsId + } + + public func setMultiRequestToken(devicesLimit: String) { + self.dict["devicesLimit"] = devicesLimit + } + + public func setMultiRequestToken(usersLimit: String) { + self.dict["usersLimit"] = usersLimit + } + + public func setMultiRequestToken(concurrentLimit: String) { + self.dict["concurrentLimit"] = concurrentLimit + } + + public func setMultiRequestToken(regionId: String) { + self.dict["regionId"] = regionId + } + + public func setMultiRequestToken(state: String) { + self.dict["state"] = state + } + + public func setMultiRequestToken(isFrequencyEnabled: String) { + self.dict["isFrequencyEnabled"] = isFrequencyEnabled + } + + public func setMultiRequestToken(frequencyNextDeviceAction: String) { + self.dict["frequencyNextDeviceAction"] = frequencyNextDeviceAction + } + + public func setMultiRequestToken(frequencyNextUserAction: String) { + self.dict["frequencyNextUserAction"] = frequencyNextUserAction + } + + public func setMultiRequestToken(restriction: String) { + self.dict["restriction"] = restriction + } + + public func setMultiRequestToken(roleId: String) { + self.dict["roleId"] = roleId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["description"] != nil { + description = dict["description"] as? String + } + if dict["externalId"] != nil { + externalId = dict["externalId"] as? String + } + if dict["householdLimitationsId"] != nil { + householdLimitationsId = dict["householdLimitationsId"] as? Int + } + if dict["devicesLimit"] != nil { + devicesLimit = dict["devicesLimit"] as? Int + } + if dict["usersLimit"] != nil { + usersLimit = dict["usersLimit"] as? Int + } + if dict["concurrentLimit"] != nil { + concurrentLimit = dict["concurrentLimit"] as? Int + } + if dict["regionId"] != nil { + regionId = dict["regionId"] as? Int + } + if dict["state"] != nil { + state = HouseholdState(rawValue: "\(dict["state"]!)") + } + if dict["isFrequencyEnabled"] != nil { + isFrequencyEnabled = dict["isFrequencyEnabled"] as? Bool + } + if dict["frequencyNextDeviceAction"] != nil { + frequencyNextDeviceAction = Int64("\(dict["frequencyNextDeviceAction"]!)") + } + if dict["frequencyNextUserAction"] != nil { + frequencyNextUserAction = Int64("\(dict["frequencyNextUserAction"]!)") + } + if dict["restriction"] != nil { + restriction = HouseholdRestriction(rawValue: "\(dict["restriction"]!)") + } + if dict["roleId"] != nil { + roleId = dict["roleId"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(description != nil) { + dict["description"] = description! + } + if(externalId != nil) { + dict["externalId"] = externalId! + } + if(regionId != nil) { + dict["regionId"] = regionId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdCoupon.swift b/KalturaClient/Classes/Model/Objects/HouseholdCoupon.swift new file mode 100644 index 000000000..7f3466428 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdCoupon.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Household Coupon details */ +open class HouseholdCoupon: CrudObject { + + public class HouseholdCouponTokenizer: CrudObject.CrudObjectTokenizer { + + public var code: BaseTokenizedObject { + get { + return self.append("code") + } + } + + public var lastUsageDate: BaseTokenizedObject { + get { + return self.append("lastUsageDate") + } + } + } + + /** Coupon code */ + public var code: String? = nil + /** Last Usage Date */ + public var lastUsageDate: Int64? = nil + + + public func setMultiRequestToken(code: String) { + self.dict["code"] = code + } + + public func setMultiRequestToken(lastUsageDate: String) { + self.dict["lastUsageDate"] = lastUsageDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["code"] != nil { + code = dict["code"] as? String + } + if dict["lastUsageDate"] != nil { + lastUsageDate = Int64("\(dict["lastUsageDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(code != nil) { + dict["code"] = code! + } + if(lastUsageDate != nil) { + dict["lastUsageDate"] = lastUsageDate! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdCouponCodeFilter.swift b/KalturaClient/Classes/Model/Objects/HouseholdCouponCodeFilter.swift new file mode 100644 index 000000000..d2c2c1472 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdCouponCodeFilter.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Kaltura Houseold CouponCode Filter */ +open class HouseholdCouponCodeFilter: RelatedObjectFilter { + + public class HouseholdCouponCodeFilterTokenizer: RelatedObjectFilter.RelatedObjectFilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdCouponFilter.swift b/KalturaClient/Classes/Model/Objects/HouseholdCouponFilter.swift new file mode 100644 index 000000000..95dc1cdb7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdCouponFilter.swift @@ -0,0 +1,126 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class HouseholdCouponFilter: CrudFilter { + + public class HouseholdCouponFilterTokenizer: CrudFilter.CrudFilterTokenizer { + + public var businessModuleTypeEqual: BaseTokenizedObject { + get { + return self.append("businessModuleTypeEqual") + } + } + + public var businessModuleIdEqual: BaseTokenizedObject { + get { + return self.append("businessModuleIdEqual") + } + } + + public var couponCode: BaseTokenizedObject { + get { + return self.append("couponCode") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + } + + /** Indicates which household coupons list to return by their business module type. */ + public var businessModuleTypeEqual: TransactionType? = nil + /** Indicates which household coupons list to return by their business module ID. */ + public var businessModuleIdEqual: Int64? = nil + /** Allow clients to inquiry if a specific coupon is part of an HH’s wallet or not */ + public var couponCode: String? = nil + /** Allow clients to filter out coupons which are valid/invalid */ + public var status: CouponStatus? = nil + + + public func setMultiRequestToken(businessModuleTypeEqual: String) { + self.dict["businessModuleTypeEqual"] = businessModuleTypeEqual + } + + public func setMultiRequestToken(businessModuleIdEqual: String) { + self.dict["businessModuleIdEqual"] = businessModuleIdEqual + } + + public func setMultiRequestToken(couponCode: String) { + self.dict["couponCode"] = couponCode + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["businessModuleTypeEqual"] != nil { + businessModuleTypeEqual = TransactionType(rawValue: "\(dict["businessModuleTypeEqual"]!)") + } + if dict["businessModuleIdEqual"] != nil { + businessModuleIdEqual = Int64("\(dict["businessModuleIdEqual"]!)") + } + if dict["couponCode"] != nil { + couponCode = dict["couponCode"] as? String + } + if dict["status"] != nil { + status = CouponStatus(rawValue: "\(dict["status"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(businessModuleTypeEqual != nil) { + dict["businessModuleTypeEqual"] = businessModuleTypeEqual!.rawValue + } + if(businessModuleIdEqual != nil) { + dict["businessModuleIdEqual"] = businessModuleIdEqual! + } + if(couponCode != nil) { + dict["couponCode"] = couponCode! + } + if(status != nil) { + dict["status"] = status!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdCouponListResponse.swift b/KalturaClient/Classes/Model/Objects/HouseholdCouponListResponse.swift new file mode 100644 index 000000000..f21538cdf --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdCouponListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class HouseholdCouponListResponse: ListResponse { + + public class HouseholdCouponListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of objects */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdDevice.swift b/KalturaClient/Classes/Model/Objects/HouseholdDevice.swift new file mode 100644 index 000000000..b8353e83c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdDevice.swift @@ -0,0 +1,219 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Device details */ +open class HouseholdDevice: OTTObjectSupportNullable { + + public class HouseholdDeviceTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + public var householdId: BaseTokenizedObject { + get { + return self.append("householdId") + } + } + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var brandId: BaseTokenizedObject { + get { + return self.append("brandId") + } + } + + public var activatedOn: BaseTokenizedObject { + get { + return self.append("activatedOn") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var deviceFamilyId: BaseTokenizedObject { + get { + return self.append("deviceFamilyId") + } + } + + public func drm() -> T { + return T(self.append("drm")) + } + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + + public var macAddress: BaseTokenizedObject { + get { + return self.append("macAddress") + } + } + } + + /** Household identifier */ + public var householdId: Int? = nil + /** Device UDID */ + public var udid: String? = nil + /** Device name */ + public var name: String? = nil + /** Device brand identifier */ + public var brandId: Int? = nil + /** Device activation date (epoch) */ + public var activatedOn: Int64? = nil + /** Device state */ + public var status: DeviceStatus? = nil + /** Device family id */ + public var deviceFamilyId: Int64? = nil + /** Device DRM data */ + public var drm: CustomDrmPlaybackPluginData? = nil + /** external Id */ + public var externalId: String? = nil + /** mac address */ + public var macAddress: String? = nil + + + public func setMultiRequestToken(householdId: String) { + self.dict["householdId"] = householdId + } + + public func setMultiRequestToken(udid: String) { + self.dict["udid"] = udid + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(brandId: String) { + self.dict["brandId"] = brandId + } + + public func setMultiRequestToken(activatedOn: String) { + self.dict["activatedOn"] = activatedOn + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(deviceFamilyId: String) { + self.dict["deviceFamilyId"] = deviceFamilyId + } + + public func setMultiRequestToken(externalId: String) { + self.dict["externalId"] = externalId + } + + public func setMultiRequestToken(macAddress: String) { + self.dict["macAddress"] = macAddress + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["householdId"] != nil { + householdId = dict["householdId"] as? Int + } + if dict["udid"] != nil { + udid = dict["udid"] as? String + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["brandId"] != nil { + brandId = dict["brandId"] as? Int + } + if dict["activatedOn"] != nil { + activatedOn = Int64("\(dict["activatedOn"]!)") + } + if dict["status"] != nil { + status = DeviceStatus(rawValue: "\(dict["status"]!)") + } + if dict["deviceFamilyId"] != nil { + deviceFamilyId = Int64("\(dict["deviceFamilyId"]!)") + } + if dict["drm"] != nil { + drm = try JSONParser.parse(object: dict["drm"] as! [String: Any]) } + if dict["externalId"] != nil { + externalId = dict["externalId"] as? String + } + if dict["macAddress"] != nil { + macAddress = dict["macAddress"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(householdId != nil) { + dict["householdId"] = householdId! + } + if(udid != nil) { + dict["udid"] = udid! + } + if(name != nil) { + dict["name"] = name! + } + if(brandId != nil) { + dict["brandId"] = brandId! + } + if(activatedOn != nil) { + dict["activatedOn"] = activatedOn! + } + if(externalId != nil) { + dict["externalId"] = externalId! + } + if(macAddress != nil) { + dict["macAddress"] = macAddress! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdDeviceFamilyLimitations.swift b/KalturaClient/Classes/Model/Objects/HouseholdDeviceFamilyLimitations.swift new file mode 100644 index 000000000..87cd76045 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdDeviceFamilyLimitations.swift @@ -0,0 +1,109 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Device family limitations details */ +open class HouseholdDeviceFamilyLimitations: DeviceFamilyBase { + + public class HouseholdDeviceFamilyLimitationsTokenizer: DeviceFamilyBase.DeviceFamilyBaseTokenizer { + + public var frequency: BaseTokenizedObject { + get { + return self.append("frequency") + } + } + + public var deviceLimit: BaseTokenizedObject { + get { + return self.append("deviceLimit") + } + } + + public var concurrentLimit: BaseTokenizedObject { + get { + return self.append("concurrentLimit") + } + } + } + + /** Allowed device change frequency code */ + public var frequency: Int? = nil + /** Max number of devices allowed for this family */ + public var deviceLimit: Int? = nil + /** Max number of streams allowed for this family */ + public var concurrentLimit: Int? = nil + + + public func setMultiRequestToken(frequency: String) { + self.dict["frequency"] = frequency + } + + public func setMultiRequestToken(deviceLimit: String) { + self.dict["deviceLimit"] = deviceLimit + } + + public func setMultiRequestToken(concurrentLimit: String) { + self.dict["concurrentLimit"] = concurrentLimit + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["frequency"] != nil { + frequency = dict["frequency"] as? Int + } + if dict["deviceLimit"] != nil { + deviceLimit = dict["deviceLimit"] as? Int + } + if dict["concurrentLimit"] != nil { + concurrentLimit = dict["concurrentLimit"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(frequency != nil) { + dict["frequency"] = frequency! + } + if(deviceLimit != nil) { + dict["deviceLimit"] = deviceLimit! + } + if(concurrentLimit != nil) { + dict["concurrentLimit"] = concurrentLimit! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdDeviceFilter.swift b/KalturaClient/Classes/Model/Objects/HouseholdDeviceFilter.swift new file mode 100644 index 000000000..eba92047a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdDeviceFilter.swift @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class HouseholdDeviceFilter: Filter { + + public class HouseholdDeviceFilterTokenizer: Filter.FilterTokenizer { + + public var householdIdEqual: BaseTokenizedObject { + get { + return self.append("householdIdEqual") + } + } + + public var deviceFamilyIdIn: BaseTokenizedObject { + get { + return self.append("deviceFamilyIdIn") + } + } + + public var externalIdEqual: BaseTokenizedObject { + get { + return self.append("externalIdEqual") + } + } + } + + /** The identifier of the household */ + public var householdIdEqual: Int? = nil + /** Device family Ids */ + public var deviceFamilyIdIn: String? = nil + /** External Id */ + public var externalIdEqual: String? = nil + + + public func setMultiRequestToken(householdIdEqual: String) { + self.dict["householdIdEqual"] = householdIdEqual + } + + public func setMultiRequestToken(deviceFamilyIdIn: String) { + self.dict["deviceFamilyIdIn"] = deviceFamilyIdIn + } + + public func setMultiRequestToken(externalIdEqual: String) { + self.dict["externalIdEqual"] = externalIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["householdIdEqual"] != nil { + householdIdEqual = dict["householdIdEqual"] as? Int + } + if dict["deviceFamilyIdIn"] != nil { + deviceFamilyIdIn = dict["deviceFamilyIdIn"] as? String + } + if dict["externalIdEqual"] != nil { + externalIdEqual = dict["externalIdEqual"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(householdIdEqual != nil) { + dict["householdIdEqual"] = householdIdEqual! + } + if(deviceFamilyIdIn != nil) { + dict["deviceFamilyIdIn"] = deviceFamilyIdIn! + } + if(externalIdEqual != nil) { + dict["externalIdEqual"] = externalIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdDeviceListResponse.swift b/KalturaClient/Classes/Model/Objects/HouseholdDeviceListResponse.swift new file mode 100644 index 000000000..d7ff9058e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdDeviceListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class HouseholdDeviceListResponse: ListResponse { + + public class HouseholdDeviceListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Household devices */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdLimitations.swift b/KalturaClient/Classes/Model/Objects/HouseholdLimitations.swift new file mode 100644 index 000000000..4ee74da46 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdLimitations.swift @@ -0,0 +1,212 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Household limitations details */ +open class HouseholdLimitations: ObjectBase { + + public class HouseholdLimitationsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var concurrentLimit: BaseTokenizedObject { + get { + return self.append("concurrentLimit") + } + } + + public var deviceLimit: BaseTokenizedObject { + get { + return self.append("deviceLimit") + } + } + + public var deviceFrequency: BaseTokenizedObject { + get { + return self.append("deviceFrequency") + } + } + + public var deviceFrequencyDescription: BaseTokenizedObject { + get { + return self.append("deviceFrequencyDescription") + } + } + + public var userFrequency: BaseTokenizedObject { + get { + return self.append("userFrequency") + } + } + + public var userFrequencyDescription: BaseTokenizedObject { + get { + return self.append("userFrequencyDescription") + } + } + + public var npvrQuotaInSeconds: BaseTokenizedObject { + get { + return self.append("npvrQuotaInSeconds") + } + } + + public var usersLimit: BaseTokenizedObject { + get { + return self.append("usersLimit") + } + } + + public var deviceFamiliesLimitations: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("deviceFamiliesLimitations")) + } + } + } + + /** Household limitation module identifier */ + public var id: Int? = nil + /** Household limitation module name */ + public var name: String? = nil + /** Max number of streams allowed for the household */ + public var concurrentLimit: Int? = nil + /** Max number of devices allowed for the household */ + public var deviceLimit: Int? = nil + /** Allowed device change frequency code */ + public var deviceFrequency: Int? = nil + /** Allowed device change frequency description */ + public var deviceFrequencyDescription: String? = nil + /** Allowed user change frequency code */ + public var userFrequency: Int? = nil + /** Allowed user change frequency description */ + public var userFrequencyDescription: String? = nil + /** Allowed NPVR Quota in Seconds */ + public var npvrQuotaInSeconds: Int? = nil + /** Max number of users allowed for the household */ + public var usersLimit: Int? = nil + /** Device families limitations */ + public var deviceFamiliesLimitations: Array? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(concurrentLimit: String) { + self.dict["concurrentLimit"] = concurrentLimit + } + + public func setMultiRequestToken(deviceLimit: String) { + self.dict["deviceLimit"] = deviceLimit + } + + public func setMultiRequestToken(deviceFrequency: String) { + self.dict["deviceFrequency"] = deviceFrequency + } + + public func setMultiRequestToken(deviceFrequencyDescription: String) { + self.dict["deviceFrequencyDescription"] = deviceFrequencyDescription + } + + public func setMultiRequestToken(userFrequency: String) { + self.dict["userFrequency"] = userFrequency + } + + public func setMultiRequestToken(userFrequencyDescription: String) { + self.dict["userFrequencyDescription"] = userFrequencyDescription + } + + public func setMultiRequestToken(npvrQuotaInSeconds: String) { + self.dict["npvrQuotaInSeconds"] = npvrQuotaInSeconds + } + + public func setMultiRequestToken(usersLimit: String) { + self.dict["usersLimit"] = usersLimit + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["concurrentLimit"] != nil { + concurrentLimit = dict["concurrentLimit"] as? Int + } + if dict["deviceLimit"] != nil { + deviceLimit = dict["deviceLimit"] as? Int + } + if dict["deviceFrequency"] != nil { + deviceFrequency = dict["deviceFrequency"] as? Int + } + if dict["deviceFrequencyDescription"] != nil { + deviceFrequencyDescription = dict["deviceFrequencyDescription"] as? String + } + if dict["userFrequency"] != nil { + userFrequency = dict["userFrequency"] as? Int + } + if dict["userFrequencyDescription"] != nil { + userFrequencyDescription = dict["userFrequencyDescription"] as? String + } + if dict["npvrQuotaInSeconds"] != nil { + npvrQuotaInSeconds = dict["npvrQuotaInSeconds"] as? Int + } + if dict["usersLimit"] != nil { + usersLimit = dict["usersLimit"] as? Int + } + if dict["deviceFamiliesLimitations"] != nil { + deviceFamiliesLimitations = try JSONParser.parse(array: dict["deviceFamiliesLimitations"] as! [Any]) + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdLimitationsListResponse.swift b/KalturaClient/Classes/Model/Objects/HouseholdLimitationsListResponse.swift new file mode 100644 index 000000000..644c60b46 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdLimitationsListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Household limitations details */ +open class HouseholdLimitationsListResponse: ListResponse { + + public class HouseholdLimitationsListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Household limitations */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdPaymentGateway.swift b/KalturaClient/Classes/Model/Objects/HouseholdPaymentGateway.swift new file mode 100644 index 000000000..a37f36951 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdPaymentGateway.swift @@ -0,0 +1,131 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class HouseholdPaymentGateway: ObjectBase { + + public class HouseholdPaymentGatewayTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var isDefault: BaseTokenizedObject { + get { + return self.append("isDefault") + } + } + + public var selectedBy: BaseTokenizedObject { + get { + return self.append("selectedBy") + } + } + + public func suspendSettings() -> T { + return T(self.append("suspendSettings")) + } + } + + /** payment gateway id */ + public var id: Int? = nil + /** payment gateway name */ + public var name: String? = nil + /** Payment gateway default (true/false) */ + public var isDefault: Bool? = nil + /** distinction payment gateway selected by account or household */ + public var selectedBy: HouseholdPaymentGatewaySelectedBy? = nil + /** suspend settings */ + public var suspendSettings: SuspendSettings? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(isDefault: String) { + self.dict["isDefault"] = isDefault + } + + public func setMultiRequestToken(selectedBy: String) { + self.dict["selectedBy"] = selectedBy + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["isDefault"] != nil { + isDefault = dict["isDefault"] as? Bool + } + if dict["selectedBy"] != nil { + selectedBy = HouseholdPaymentGatewaySelectedBy(rawValue: "\(dict["selectedBy"]!)") + } + if dict["suspendSettings"] != nil { + suspendSettings = try JSONParser.parse(object: dict["suspendSettings"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(isDefault != nil) { + dict["isDefault"] = isDefault! + } + if(selectedBy != nil) { + dict["selectedBy"] = selectedBy!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdPaymentGatewayListResponse.swift b/KalturaClient/Classes/Model/Objects/HouseholdPaymentGatewayListResponse.swift new file mode 100644 index 000000000..ffd624566 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdPaymentGatewayListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of household payment gateways. */ +open class HouseholdPaymentGatewayListResponse: ListResponse { + + public class HouseholdPaymentGatewayListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Follow data list */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdPaymentMethod.swift b/KalturaClient/Classes/Model/Objects/HouseholdPaymentMethod.swift new file mode 100644 index 000000000..06ce0657e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdPaymentMethod.swift @@ -0,0 +1,156 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class HouseholdPaymentMethod: ObjectBase { + + public class HouseholdPaymentMethodTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + + public var details: BaseTokenizedObject { + get { + return self.append("details") + } + } + + public var isDefault: BaseTokenizedObject { + get { + return self.append("isDefault") + } + } + + public var paymentMethodProfileId: BaseTokenizedObject { + get { + return self.append("paymentMethodProfileId") + } + } + } + + /** Household payment method identifier (internal) */ + public var id: Int? = nil + /** External identifier for the household payment method */ + public var externalId: String? = nil + /** Payment-gateway identifier */ + public var paymentGatewayId: Int? = nil + /** Description of the payment method details */ + public var details: String? = nil + /** indicates whether the payment method is set as default for the household */ + public var isDefault: Bool? = nil + /** Payment method profile identifier */ + public var paymentMethodProfileId: Int? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(externalId: String) { + self.dict["externalId"] = externalId + } + + public func setMultiRequestToken(paymentGatewayId: String) { + self.dict["paymentGatewayId"] = paymentGatewayId + } + + public func setMultiRequestToken(details: String) { + self.dict["details"] = details + } + + public func setMultiRequestToken(isDefault: String) { + self.dict["isDefault"] = isDefault + } + + public func setMultiRequestToken(paymentMethodProfileId: String) { + self.dict["paymentMethodProfileId"] = paymentMethodProfileId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["externalId"] != nil { + externalId = dict["externalId"] as? String + } + if dict["paymentGatewayId"] != nil { + paymentGatewayId = dict["paymentGatewayId"] as? Int + } + if dict["details"] != nil { + details = dict["details"] as? String + } + if dict["isDefault"] != nil { + isDefault = dict["isDefault"] as? Bool + } + if dict["paymentMethodProfileId"] != nil { + paymentMethodProfileId = dict["paymentMethodProfileId"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(externalId != nil) { + dict["externalId"] = externalId! + } + if(paymentGatewayId != nil) { + dict["paymentGatewayId"] = paymentGatewayId! + } + if(details != nil) { + dict["details"] = details! + } + if(paymentMethodProfileId != nil) { + dict["paymentMethodProfileId"] = paymentMethodProfileId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdPaymentMethodListResponse.swift b/KalturaClient/Classes/Model/Objects/HouseholdPaymentMethodListResponse.swift new file mode 100644 index 000000000..4d091628b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdPaymentMethodListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of household payment methods. */ +open class HouseholdPaymentMethodListResponse: ListResponse { + + public class HouseholdPaymentMethodListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Follow data list */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdPremiumService.swift b/KalturaClient/Classes/Model/Objects/HouseholdPremiumService.swift new file mode 100644 index 000000000..5d2db7065 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdPremiumService.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Houshold premium service */ +open class HouseholdPremiumService: PremiumService { + + public class HouseholdPremiumServiceTokenizer: PremiumService.PremiumServiceTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdPremiumServiceListResponse.swift b/KalturaClient/Classes/Model/Objects/HouseholdPremiumServiceListResponse.swift new file mode 100644 index 000000000..ce22c0026 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdPremiumServiceListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Premium services list */ +open class HouseholdPremiumServiceListResponse: ListResponse { + + public class HouseholdPremiumServiceListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of premium services */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdQuota.swift b/KalturaClient/Classes/Model/Objects/HouseholdQuota.swift new file mode 100644 index 000000000..1445a4501 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdQuota.swift @@ -0,0 +1,95 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class HouseholdQuota: ObjectBase { + + public class HouseholdQuotaTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var householdId: BaseTokenizedObject { + get { + return self.append("householdId") + } + } + + public var totalQuota: BaseTokenizedObject { + get { + return self.append("totalQuota") + } + } + + public var availableQuota: BaseTokenizedObject { + get { + return self.append("availableQuota") + } + } + } + + /** Household identifier */ + public var householdId: Int64? = nil + /** Total quota that is allocated to the household */ + public var totalQuota: Int? = nil + /** Available quota that household has remaining */ + public var availableQuota: Int? = nil + + + public func setMultiRequestToken(householdId: String) { + self.dict["householdId"] = householdId + } + + public func setMultiRequestToken(totalQuota: String) { + self.dict["totalQuota"] = totalQuota + } + + public func setMultiRequestToken(availableQuota: String) { + self.dict["availableQuota"] = availableQuota + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["householdId"] != nil { + householdId = Int64("\(dict["householdId"]!)") + } + if dict["totalQuota"] != nil { + totalQuota = dict["totalQuota"] as? Int + } + if dict["availableQuota"] != nil { + availableQuota = dict["availableQuota"] as? Int + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdSegment.swift b/KalturaClient/Classes/Model/Objects/HouseholdSegment.swift new file mode 100644 index 000000000..ed0676ee7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdSegment.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Indicates a segment of a household */ +open class HouseholdSegment: CrudObject { + + public class HouseholdSegmentTokenizer: CrudObject.CrudObjectTokenizer { + + public var segmentId: BaseTokenizedObject { + get { + return self.append("segmentId") + } + } + + public var householdId: BaseTokenizedObject { + get { + return self.append("householdId") + } + } + } + + /** Segment Id */ + public var segmentId: Int64? = nil + /** Segment Id */ + public var householdId: Int64? = nil + + + public func setMultiRequestToken(segmentId: String) { + self.dict["segmentId"] = segmentId + } + + public func setMultiRequestToken(householdId: String) { + self.dict["householdId"] = householdId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["segmentId"] != nil { + segmentId = Int64("\(dict["segmentId"]!)") + } + if dict["householdId"] != nil { + householdId = Int64("\(dict["householdId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(segmentId != nil) { + dict["segmentId"] = segmentId! + } + if(householdId != nil) { + dict["householdId"] = householdId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdSegmentFilter.swift b/KalturaClient/Classes/Model/Objects/HouseholdSegmentFilter.swift new file mode 100644 index 000000000..e351ab630 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdSegmentFilter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class HouseholdSegmentFilter: CrudFilter { + + public class HouseholdSegmentFilterTokenizer: CrudFilter.CrudFilterTokenizer { + + public var kSql: BaseTokenizedObject { + get { + return self.append("kSql") + } + } + } + + /** KSQL expression */ + public var kSql: String? = nil + + + public func setMultiRequestToken(kSql: String) { + self.dict["kSql"] = kSql + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["kSql"] != nil { + kSql = dict["kSql"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(kSql != nil) { + dict["kSql"] = kSql! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdSegmentListResponse.swift b/KalturaClient/Classes/Model/Objects/HouseholdSegmentListResponse.swift new file mode 100644 index 000000000..5a44f1552 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdSegmentListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class HouseholdSegmentListResponse: ListResponse { + + public class HouseholdSegmentListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of objects */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdUser.swift b/KalturaClient/Classes/Model/Objects/HouseholdUser.swift new file mode 100644 index 000000000..3be148866 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdUser.swift @@ -0,0 +1,158 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Household user */ +open class HouseholdUser: ObjectBase { + + public class HouseholdUserTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var householdId: BaseTokenizedObject { + get { + return self.append("householdId") + } + } + + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + + public var isMaster: BaseTokenizedObject { + get { + return self.append("isMaster") + } + } + + public var householdMasterUsername: BaseTokenizedObject { + get { + return self.append("householdMasterUsername") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var isDefault: BaseTokenizedObject { + get { + return self.append("isDefault") + } + } + } + + /** The identifier of the household */ + public var householdId: Int? = nil + /** The identifier of the user */ + public var userId: String? = nil + /** True if the user added as master use */ + public var isMaster: Bool? = nil + /** The username of the household master for adding a user in status pending for the + household master to approve */ + public var householdMasterUsername: String? = nil + /** The status of the user in the household */ + public var status: HouseholdUserStatus? = nil + /** True if the user is a default user */ + public var isDefault: Bool? = nil + + + public func setMultiRequestToken(householdId: String) { + self.dict["householdId"] = householdId + } + + public func setMultiRequestToken(userId: String) { + self.dict["userId"] = userId + } + + public func setMultiRequestToken(isMaster: String) { + self.dict["isMaster"] = isMaster + } + + public func setMultiRequestToken(householdMasterUsername: String) { + self.dict["householdMasterUsername"] = householdMasterUsername + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(isDefault: String) { + self.dict["isDefault"] = isDefault + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["householdId"] != nil { + householdId = dict["householdId"] as? Int + } + if dict["userId"] != nil { + userId = dict["userId"] as? String + } + if dict["isMaster"] != nil { + isMaster = dict["isMaster"] as? Bool + } + if dict["householdMasterUsername"] != nil { + householdMasterUsername = dict["householdMasterUsername"] as? String + } + if dict["status"] != nil { + status = HouseholdUserStatus(rawValue: "\(dict["status"]!)") + } + if dict["isDefault"] != nil { + isDefault = dict["isDefault"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(householdId != nil) { + dict["householdId"] = householdId! + } + if(userId != nil) { + dict["userId"] = userId! + } + if(isMaster != nil) { + dict["isMaster"] = isMaster! + } + if(householdMasterUsername != nil) { + dict["householdMasterUsername"] = householdMasterUsername! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdUserFilter.swift b/KalturaClient/Classes/Model/Objects/HouseholdUserFilter.swift new file mode 100644 index 000000000..7553b48c8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdUserFilter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class HouseholdUserFilter: Filter { + + public class HouseholdUserFilterTokenizer: Filter.FilterTokenizer { + + public var householdIdEqual: BaseTokenizedObject { + get { + return self.append("householdIdEqual") + } + } + } + + /** The identifier of the household */ + public var householdIdEqual: Int? = nil + + + public func setMultiRequestToken(householdIdEqual: String) { + self.dict["householdIdEqual"] = householdIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["householdIdEqual"] != nil { + householdIdEqual = dict["householdIdEqual"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(householdIdEqual != nil) { + dict["householdIdEqual"] = householdIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdUserListResponse.swift b/KalturaClient/Classes/Model/Objects/HouseholdUserListResponse.swift new file mode 100644 index 000000000..2d589cdb1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdUserListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Household users list */ +open class HouseholdUserListResponse: ListResponse { + + public class HouseholdUserListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Household users */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Image.swift b/KalturaClient/Classes/Model/Objects/Image.swift new file mode 100644 index 000000000..ec611c570 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Image.swift @@ -0,0 +1,198 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Image: ObjectBase { + + public class ImageTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var version: BaseTokenizedObject { + get { + return self.append("version") + } + } + + public var imageTypeId: BaseTokenizedObject { + get { + return self.append("imageTypeId") + } + } + + public var imageObjectId: BaseTokenizedObject { + get { + return self.append("imageObjectId") + } + } + + public var imageObjectType: BaseTokenizedObject { + get { + return self.append("imageObjectType") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var url: BaseTokenizedObject { + get { + return self.append("url") + } + } + + public var contentId: BaseTokenizedObject { + get { + return self.append("contentId") + } + } + + public var isDefault: BaseTokenizedObject { + get { + return self.append("isDefault") + } + } + } + + /** Image ID */ + public var id: Int64? = nil + /** Image version */ + public var version: String? = nil + /** Image type ID */ + public var imageTypeId: Int64? = nil + /** ID of the object the image is related to */ + public var imageObjectId: Int64? = nil + /** Type of the object the image is related to */ + public var imageObjectType: ImageObjectType? = nil + /** Image content status */ + public var status: ImageStatus? = nil + /** Image URL */ + public var url: String? = nil + /** Image content ID */ + public var contentId: String? = nil + /** Specifies if the image is default for atleast one image type. */ + public var isDefault: Bool? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(version: String) { + self.dict["version"] = version + } + + public func setMultiRequestToken(imageTypeId: String) { + self.dict["imageTypeId"] = imageTypeId + } + + public func setMultiRequestToken(imageObjectId: String) { + self.dict["imageObjectId"] = imageObjectId + } + + public func setMultiRequestToken(imageObjectType: String) { + self.dict["imageObjectType"] = imageObjectType + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(url: String) { + self.dict["url"] = url + } + + public func setMultiRequestToken(contentId: String) { + self.dict["contentId"] = contentId + } + + public func setMultiRequestToken(isDefault: String) { + self.dict["isDefault"] = isDefault + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["version"] != nil { + version = dict["version"] as? String + } + if dict["imageTypeId"] != nil { + imageTypeId = Int64("\(dict["imageTypeId"]!)") + } + if dict["imageObjectId"] != nil { + imageObjectId = Int64("\(dict["imageObjectId"]!)") + } + if dict["imageObjectType"] != nil { + imageObjectType = ImageObjectType(rawValue: "\(dict["imageObjectType"]!)") + } + if dict["status"] != nil { + status = ImageStatus(rawValue: "\(dict["status"]!)") + } + if dict["url"] != nil { + url = dict["url"] as? String + } + if dict["contentId"] != nil { + contentId = dict["contentId"] as? String + } + if dict["isDefault"] != nil { + isDefault = dict["isDefault"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(imageTypeId != nil) { + dict["imageTypeId"] = imageTypeId! + } + if(imageObjectId != nil) { + dict["imageObjectId"] = imageObjectId! + } + if(imageObjectType != nil) { + dict["imageObjectType"] = imageObjectType!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ImageFilter.swift b/KalturaClient/Classes/Model/Objects/ImageFilter.swift new file mode 100644 index 000000000..c38afd85e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ImageFilter.swift @@ -0,0 +1,144 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ImageFilter: Filter { + + public class ImageFilterTokenizer: Filter.FilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + + public var imageObjectIdEqual: BaseTokenizedObject { + get { + return self.append("imageObjectIdEqual") + } + } + + public var imageObjectTypeEqual: BaseTokenizedObject { + get { + return self.append("imageObjectTypeEqual") + } + } + + public var isDefaultEqual: BaseTokenizedObject { + get { + return self.append("isDefaultEqual") + } + } + + public var imageObjectIdIn: BaseTokenizedObject { + get { + return self.append("imageObjectIdIn") + } + } + } + + /** IDs to filter by */ + public var idIn: String? = nil + /** ID of the object the is related to, to filter by */ + public var imageObjectIdEqual: Int64? = nil + /** Type of the object the image is related to, to filter by */ + public var imageObjectTypeEqual: ImageObjectType? = nil + /** Filter images that are default on at least on image type or not default at any */ + public var isDefaultEqual: Bool? = nil + /** Comma separated imageObject ids list */ + public var imageObjectIdIn: String? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public func setMultiRequestToken(imageObjectIdEqual: String) { + self.dict["imageObjectIdEqual"] = imageObjectIdEqual + } + + public func setMultiRequestToken(imageObjectTypeEqual: String) { + self.dict["imageObjectTypeEqual"] = imageObjectTypeEqual + } + + public func setMultiRequestToken(isDefaultEqual: String) { + self.dict["isDefaultEqual"] = isDefaultEqual + } + + public func setMultiRequestToken(imageObjectIdIn: String) { + self.dict["imageObjectIdIn"] = imageObjectIdIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + if dict["imageObjectIdEqual"] != nil { + imageObjectIdEqual = Int64("\(dict["imageObjectIdEqual"]!)") + } + if dict["imageObjectTypeEqual"] != nil { + imageObjectTypeEqual = ImageObjectType(rawValue: "\(dict["imageObjectTypeEqual"]!)") + } + if dict["isDefaultEqual"] != nil { + isDefaultEqual = dict["isDefaultEqual"] as? Bool + } + if dict["imageObjectIdIn"] != nil { + imageObjectIdIn = dict["imageObjectIdIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + if(imageObjectIdEqual != nil) { + dict["imageObjectIdEqual"] = imageObjectIdEqual! + } + if(imageObjectTypeEqual != nil) { + dict["imageObjectTypeEqual"] = imageObjectTypeEqual!.rawValue + } + if(isDefaultEqual != nil) { + dict["isDefaultEqual"] = isDefaultEqual! + } + if(imageObjectIdIn != nil) { + dict["imageObjectIdIn"] = imageObjectIdIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ImageListResponse.swift b/KalturaClient/Classes/Model/Objects/ImageListResponse.swift new file mode 100644 index 000000000..b98c9750a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ImageListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ImageListResponse: ListResponse { + + public class ImageListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of images */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ImageType.swift b/KalturaClient/Classes/Model/Objects/ImageType.swift new file mode 100644 index 000000000..f39071014 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ImageType.swift @@ -0,0 +1,160 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Image type */ +open class ImageType: ObjectBase { + + public class ImageTypeTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var systemName: BaseTokenizedObject { + get { + return self.append("systemName") + } + } + + public var ratioId: BaseTokenizedObject { + get { + return self.append("ratioId") + } + } + + public var helpText: BaseTokenizedObject { + get { + return self.append("helpText") + } + } + + public var defaultImageId: BaseTokenizedObject { + get { + return self.append("defaultImageId") + } + } + } + + /** Image type ID */ + public var id: Int64? = nil + /** Name */ + public var name: String? = nil + /** System name */ + public var systemName: String? = nil + /** Ration ID */ + public var ratioId: Int64? = nil + /** Help text */ + public var helpText: String? = nil + /** Default image ID */ + public var defaultImageId: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(systemName: String) { + self.dict["systemName"] = systemName + } + + public func setMultiRequestToken(ratioId: String) { + self.dict["ratioId"] = ratioId + } + + public func setMultiRequestToken(helpText: String) { + self.dict["helpText"] = helpText + } + + public func setMultiRequestToken(defaultImageId: String) { + self.dict["defaultImageId"] = defaultImageId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["systemName"] != nil { + systemName = dict["systemName"] as? String + } + if dict["ratioId"] != nil { + ratioId = Int64("\(dict["ratioId"]!)") + } + if dict["helpText"] != nil { + helpText = dict["helpText"] as? String + } + if dict["defaultImageId"] != nil { + defaultImageId = Int64("\(dict["defaultImageId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(systemName != nil) { + dict["systemName"] = systemName! + } + if(ratioId != nil) { + dict["ratioId"] = ratioId! + } + if(helpText != nil) { + dict["helpText"] = helpText! + } + if(defaultImageId != nil) { + dict["defaultImageId"] = defaultImageId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ImageTypeFilter.swift b/KalturaClient/Classes/Model/Objects/ImageTypeFilter.swift new file mode 100644 index 000000000..5e3c7f670 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ImageTypeFilter.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ImageTypeFilter: Filter { + + public class ImageTypeFilterTokenizer: Filter.FilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + + public var ratioIdIn: BaseTokenizedObject { + get { + return self.append("ratioIdIn") + } + } + } + + /** IDs to filter by */ + public var idIn: String? = nil + /** Ratio IDs to filter by */ + public var ratioIdIn: String? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public func setMultiRequestToken(ratioIdIn: String) { + self.dict["ratioIdIn"] = ratioIdIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + if dict["ratioIdIn"] != nil { + ratioIdIn = dict["ratioIdIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + if(ratioIdIn != nil) { + dict["ratioIdIn"] = ratioIdIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ImageTypeListResponse.swift b/KalturaClient/Classes/Model/Objects/ImageTypeListResponse.swift new file mode 100644 index 000000000..3745b6040 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ImageTypeListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ImageTypeListResponse: ListResponse { + + public class ImageTypeListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of partner image types */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/InboxMessage.swift b/KalturaClient/Classes/Model/Objects/InboxMessage.swift new file mode 100644 index 000000000..b1805970e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/InboxMessage.swift @@ -0,0 +1,153 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class InboxMessage: ObjectBase { + + public class InboxMessageTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var message: BaseTokenizedObject { + get { + return self.append("message") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var createdAt: BaseTokenizedObject { + get { + return self.append("createdAt") + } + } + + public var url: BaseTokenizedObject { + get { + return self.append("url") + } + } + } + + /** message id */ + public var id: String? = nil + /** message */ + public var message: String? = nil + /** Status */ + public var status: InboxMessageStatus? = nil + /** Type */ + public var type: InboxMessageType? = nil + /** Created at */ + public var createdAt: Int64? = nil + /** url */ + public var url: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(message: String) { + self.dict["message"] = message + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(createdAt: String) { + self.dict["createdAt"] = createdAt + } + + public func setMultiRequestToken(url: String) { + self.dict["url"] = url + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["message"] != nil { + message = dict["message"] as? String + } + if dict["status"] != nil { + status = InboxMessageStatus(rawValue: "\(dict["status"]!)") + } + if dict["type"] != nil { + type = InboxMessageType(rawValue: "\(dict["type"]!)") + } + if dict["createdAt"] != nil { + createdAt = Int64("\(dict["createdAt"]!)") + } + if dict["url"] != nil { + url = dict["url"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(message != nil) { + dict["message"] = message! + } + if(type != nil) { + dict["type"] = type!.rawValue + } + if(url != nil) { + dict["url"] = url! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/InboxMessageFilter.swift b/KalturaClient/Classes/Model/Objects/InboxMessageFilter.swift new file mode 100644 index 000000000..75bb7f167 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/InboxMessageFilter.swift @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class InboxMessageFilter: Filter { + + public class InboxMessageFilterTokenizer: Filter.FilterTokenizer { + + public var typeIn: BaseTokenizedObject { + get { + return self.append("typeIn") + } + } + + public var createdAtGreaterThanOrEqual: BaseTokenizedObject { + get { + return self.append("createdAtGreaterThanOrEqual") + } + } + + public var createdAtLessThanOrEqual: BaseTokenizedObject { + get { + return self.append("createdAtLessThanOrEqual") + } + } + } + + /** List of inbox message types to search within. */ + public var typeIn: String? = nil + /** createdAtGreaterThanOrEqual */ + public var createdAtGreaterThanOrEqual: Int64? = nil + /** createdAtLessThanOrEqual */ + public var createdAtLessThanOrEqual: Int64? = nil + + + public func setMultiRequestToken(typeIn: String) { + self.dict["typeIn"] = typeIn + } + + public func setMultiRequestToken(createdAtGreaterThanOrEqual: String) { + self.dict["createdAtGreaterThanOrEqual"] = createdAtGreaterThanOrEqual + } + + public func setMultiRequestToken(createdAtLessThanOrEqual: String) { + self.dict["createdAtLessThanOrEqual"] = createdAtLessThanOrEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["typeIn"] != nil { + typeIn = dict["typeIn"] as? String + } + if dict["createdAtGreaterThanOrEqual"] != nil { + createdAtGreaterThanOrEqual = Int64("\(dict["createdAtGreaterThanOrEqual"]!)") + } + if dict["createdAtLessThanOrEqual"] != nil { + createdAtLessThanOrEqual = Int64("\(dict["createdAtLessThanOrEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(typeIn != nil) { + dict["typeIn"] = typeIn! + } + if(createdAtGreaterThanOrEqual != nil) { + dict["createdAtGreaterThanOrEqual"] = createdAtGreaterThanOrEqual! + } + if(createdAtLessThanOrEqual != nil) { + dict["createdAtLessThanOrEqual"] = createdAtLessThanOrEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/InboxMessageListResponse.swift b/KalturaClient/Classes/Model/Objects/InboxMessageListResponse.swift new file mode 100644 index 000000000..7a3376890 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/InboxMessageListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of inbox message. */ +open class InboxMessageListResponse: ListResponse { + + public class InboxMessageListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Follow data list */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IngestProfile.swift b/KalturaClient/Classes/Model/Objects/IngestProfile.swift new file mode 100644 index 000000000..05384bb89 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestProfile.swift @@ -0,0 +1,228 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Ingest profile */ +open class IngestProfile: ObjectBase { + + public class IngestProfileTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + + public var assetTypeId: BaseTokenizedObject { + get { + return self.append("assetTypeId") + } + } + + public var transformationAdapterUrl: BaseTokenizedObject { + get { + return self.append("transformationAdapterUrl") + } + } + + public var transformationAdapterSettings: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("transformationAdapterSettings")) + } + } + + public var transformationAdapterSharedSecret: BaseTokenizedObject { + get { + return self.append("transformationAdapterSharedSecret") + } + } + + public var defaultAutoFillPolicy: BaseTokenizedObject { + get { + return self.append("defaultAutoFillPolicy") + } + } + + public var defaultOverlapPolicy: BaseTokenizedObject { + get { + return self.append("defaultOverlapPolicy") + } + } + + public var overlapChannels: BaseTokenizedObject { + get { + return self.append("overlapChannels") + } + } + } + + /** Ingest profile identifier */ + public var id: Int? = nil + /** Ingest profile name */ + public var name: String? = nil + /** Ingest profile externalId */ + public var externalId: String? = nil + /** Type of assets that this profile suppose to ingest: 0 - EPG, 1 - MEDIA */ + public var assetTypeId: Int? = nil + /** Transformation Adapter URL */ + public var transformationAdapterUrl: String? = nil + /** Transformation Adapter settings */ + public var transformationAdapterSettings: Dictionary? = nil + /** Transformation Adapter shared secret */ + public var transformationAdapterSharedSecret: String? = nil + /** Ingest profile default Auto-fill policy */ + public var defaultAutoFillPolicy: IngestProfileAutofillPolicy? = nil + /** Ingest profile default Overlap policy */ + public var defaultOverlapPolicy: IngestProfileOverlapPolicy? = nil + /** Ingest profile overlap channels */ + public var overlapChannels: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(externalId: String) { + self.dict["externalId"] = externalId + } + + public func setMultiRequestToken(assetTypeId: String) { + self.dict["assetTypeId"] = assetTypeId + } + + public func setMultiRequestToken(transformationAdapterUrl: String) { + self.dict["transformationAdapterUrl"] = transformationAdapterUrl + } + + public func setMultiRequestToken(transformationAdapterSharedSecret: String) { + self.dict["transformationAdapterSharedSecret"] = transformationAdapterSharedSecret + } + + public func setMultiRequestToken(defaultAutoFillPolicy: String) { + self.dict["defaultAutoFillPolicy"] = defaultAutoFillPolicy + } + + public func setMultiRequestToken(defaultOverlapPolicy: String) { + self.dict["defaultOverlapPolicy"] = defaultOverlapPolicy + } + + public func setMultiRequestToken(overlapChannels: String) { + self.dict["overlapChannels"] = overlapChannels + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["externalId"] != nil { + externalId = dict["externalId"] as? String + } + if dict["assetTypeId"] != nil { + assetTypeId = dict["assetTypeId"] as? Int + } + if dict["transformationAdapterUrl"] != nil { + transformationAdapterUrl = dict["transformationAdapterUrl"] as? String + } + if dict["transformationAdapterSettings"] != nil { + transformationAdapterSettings = try JSONParser.parse(map: dict["transformationAdapterSettings"] as! [String: Any]) + } + if dict["transformationAdapterSharedSecret"] != nil { + transformationAdapterSharedSecret = dict["transformationAdapterSharedSecret"] as? String + } + if dict["defaultAutoFillPolicy"] != nil { + defaultAutoFillPolicy = IngestProfileAutofillPolicy(rawValue: "\(dict["defaultAutoFillPolicy"]!)") + } + if dict["defaultOverlapPolicy"] != nil { + defaultOverlapPolicy = IngestProfileOverlapPolicy(rawValue: "\(dict["defaultOverlapPolicy"]!)") + } + if dict["overlapChannels"] != nil { + overlapChannels = dict["overlapChannels"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(externalId != nil) { + dict["externalId"] = externalId! + } + if(assetTypeId != nil) { + dict["assetTypeId"] = assetTypeId! + } + if(transformationAdapterUrl != nil) { + dict["transformationAdapterUrl"] = transformationAdapterUrl! + } + if(transformationAdapterSettings != nil) { + dict["transformationAdapterSettings"] = transformationAdapterSettings!.toDictionary() + } + if(transformationAdapterSharedSecret != nil) { + dict["transformationAdapterSharedSecret"] = transformationAdapterSharedSecret! + } + if(defaultAutoFillPolicy != nil) { + dict["defaultAutoFillPolicy"] = defaultAutoFillPolicy!.rawValue + } + if(defaultOverlapPolicy != nil) { + dict["defaultOverlapPolicy"] = defaultOverlapPolicy!.rawValue + } + if(overlapChannels != nil) { + dict["overlapChannels"] = overlapChannels! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IngestProfileListResponse.swift b/KalturaClient/Classes/Model/Objects/IngestProfileListResponse.swift new file mode 100644 index 000000000..877e04462 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestProfileListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class IngestProfileListResponse: ListResponse { + + public class IngestProfileListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Adapters */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IntegerValue.swift b/KalturaClient/Classes/Model/Objects/IntegerValue.swift new file mode 100644 index 000000000..6bdd8b18a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IntegerValue.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** A string representation to return an array of ints */ +open class IntegerValue: Value { + + public class IntegerValueTokenizer: Value.ValueTokenizer { + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** Value */ + public var value: Int? = nil + + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["value"] != nil { + value = dict["value"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(value != nil) { + dict["value"] = value! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IntegerValueListResponse.swift b/KalturaClient/Classes/Model/Objects/IntegerValueListResponse.swift new file mode 100644 index 000000000..ea33d1433 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IntegerValueListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Integer list wrapper */ +open class IntegerValueListResponse: ListResponse { + + public class IntegerValueListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Interger value items */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Iot.swift b/KalturaClient/Classes/Model/Objects/Iot.swift new file mode 100644 index 000000000..35e61e97a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Iot.swift @@ -0,0 +1,271 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** IOT DEVICE */ +open class Iot: CrudObject { + + public class IotTokenizer: CrudObject.CrudObjectTokenizer { + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + + public var accessKey: BaseTokenizedObject { + get { + return self.append("accessKey") + } + } + + public var accessSecretKey: BaseTokenizedObject { + get { + return self.append("accessSecretKey") + } + } + + public var username: BaseTokenizedObject { + get { + return self.append("username") + } + } + + public var userPassword: BaseTokenizedObject { + get { + return self.append("userPassword") + } + } + + public var identityId: BaseTokenizedObject { + get { + return self.append("identityId") + } + } + + public var thingArn: BaseTokenizedObject { + get { + return self.append("thingArn") + } + } + + public var thingId: BaseTokenizedObject { + get { + return self.append("thingId") + } + } + + public var principal: BaseTokenizedObject { + get { + return self.append("principal") + } + } + + public var endPoint: BaseTokenizedObject { + get { + return self.append("endPoint") + } + } + + public var extendedEndPoint: BaseTokenizedObject { + get { + return self.append("extendedEndPoint") + } + } + + public var identityPoolId: BaseTokenizedObject { + get { + return self.append("identityPoolId") + } + } + } + + /** id */ + public var udid: String? = nil + /** accessKey */ + public var accessKey: String? = nil + /** accessSecretKey */ + public var accessSecretKey: String? = nil + /** Username */ + public var username: String? = nil + /** UserPassword */ + public var userPassword: String? = nil + /** IdentityId */ + public var identityId: String? = nil + /** ThingArn */ + public var thingArn: String? = nil + /** ThingId */ + public var thingId: String? = nil + /** Principal */ + public var principal: String? = nil + /** EndPoint */ + public var endPoint: String? = nil + /** ExtendedEndPoint */ + public var extendedEndPoint: String? = nil + /** IdentityPoolId */ + public var identityPoolId: String? = nil + + + public func setMultiRequestToken(udid: String) { + self.dict["udid"] = udid + } + + public func setMultiRequestToken(accessKey: String) { + self.dict["accessKey"] = accessKey + } + + public func setMultiRequestToken(accessSecretKey: String) { + self.dict["accessSecretKey"] = accessSecretKey + } + + public func setMultiRequestToken(username: String) { + self.dict["username"] = username + } + + public func setMultiRequestToken(userPassword: String) { + self.dict["userPassword"] = userPassword + } + + public func setMultiRequestToken(identityId: String) { + self.dict["identityId"] = identityId + } + + public func setMultiRequestToken(thingArn: String) { + self.dict["thingArn"] = thingArn + } + + public func setMultiRequestToken(thingId: String) { + self.dict["thingId"] = thingId + } + + public func setMultiRequestToken(principal: String) { + self.dict["principal"] = principal + } + + public func setMultiRequestToken(endPoint: String) { + self.dict["endPoint"] = endPoint + } + + public func setMultiRequestToken(extendedEndPoint: String) { + self.dict["extendedEndPoint"] = extendedEndPoint + } + + public func setMultiRequestToken(identityPoolId: String) { + self.dict["identityPoolId"] = identityPoolId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["udid"] != nil { + udid = dict["udid"] as? String + } + if dict["accessKey"] != nil { + accessKey = dict["accessKey"] as? String + } + if dict["accessSecretKey"] != nil { + accessSecretKey = dict["accessSecretKey"] as? String + } + if dict["username"] != nil { + username = dict["username"] as? String + } + if dict["userPassword"] != nil { + userPassword = dict["userPassword"] as? String + } + if dict["identityId"] != nil { + identityId = dict["identityId"] as? String + } + if dict["thingArn"] != nil { + thingArn = dict["thingArn"] as? String + } + if dict["thingId"] != nil { + thingId = dict["thingId"] as? String + } + if dict["principal"] != nil { + principal = dict["principal"] as? String + } + if dict["endPoint"] != nil { + endPoint = dict["endPoint"] as? String + } + if dict["extendedEndPoint"] != nil { + extendedEndPoint = dict["extendedEndPoint"] as? String + } + if dict["identityPoolId"] != nil { + identityPoolId = dict["identityPoolId"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(udid != nil) { + dict["udid"] = udid! + } + if(accessKey != nil) { + dict["accessKey"] = accessKey! + } + if(accessSecretKey != nil) { + dict["accessSecretKey"] = accessSecretKey! + } + if(username != nil) { + dict["username"] = username! + } + if(userPassword != nil) { + dict["userPassword"] = userPassword! + } + if(identityId != nil) { + dict["identityId"] = identityId! + } + if(thingArn != nil) { + dict["thingArn"] = thingArn! + } + if(thingId != nil) { + dict["thingId"] = thingId! + } + if(principal != nil) { + dict["principal"] = principal! + } + if(endPoint != nil) { + dict["endPoint"] = endPoint! + } + if(extendedEndPoint != nil) { + dict["extendedEndPoint"] = extendedEndPoint! + } + if(identityPoolId != nil) { + dict["identityPoolId"] = identityPoolId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IotClientConfiguration.swift b/KalturaClient/Classes/Model/Objects/IotClientConfiguration.swift new file mode 100644 index 000000000..785db5ef2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IotClientConfiguration.swift @@ -0,0 +1,113 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Iot client Configuration */ +open class IotClientConfiguration: ObjectBase { + + public class IotClientConfigurationTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var announcementTopic: BaseTokenizedObject { + get { + return self.append("announcementTopic") + } + } + + public func credentialsProvider() -> T { + return T(self.append("credentialsProvider")) + } + + public func cognitoUserPool() -> T { + return T(self.append("cognitoUserPool")) + } + + public var json: BaseTokenizedObject { + get { + return self.append("json") + } + } + } + + /** announcementTopic */ + public var announcementTopic: String? = nil + /** KalturaCredentialsProvider */ + public var credentialsProvider: CredentialsProvider? = nil + /** CognitoUserPool */ + public var cognitoUserPool: CognitoUserPool? = nil + /** json */ + public var json: String? = nil + + + public func setMultiRequestToken(announcementTopic: String) { + self.dict["announcementTopic"] = announcementTopic + } + + public func setMultiRequestToken(json: String) { + self.dict["json"] = json + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["announcementTopic"] != nil { + announcementTopic = dict["announcementTopic"] as? String + } + if dict["credentialsProvider"] != nil { + credentialsProvider = try JSONParser.parse(object: dict["credentialsProvider"] as! [String: Any]) } + if dict["cognitoUserPool"] != nil { + cognitoUserPool = try JSONParser.parse(object: dict["cognitoUserPool"] as! [String: Any]) } + if dict["json"] != nil { + json = dict["json"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(announcementTopic != nil) { + dict["announcementTopic"] = announcementTopic! + } + if(credentialsProvider != nil) { + dict["credentialsProvider"] = credentialsProvider!.toDictionary() + } + if(cognitoUserPool != nil) { + dict["cognitoUserPool"] = cognitoUserPool!.toDictionary() + } + if(json != nil) { + dict["json"] = json! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IotDefault.swift b/KalturaClient/Classes/Model/Objects/IotDefault.swift new file mode 100644 index 000000000..5ccc201a9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IotDefault.swift @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class IotDefault: ObjectBase { + + public class IotDefaultTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var poolId: BaseTokenizedObject { + get { + return self.append("poolId") + } + } + + public var region: BaseTokenizedObject { + get { + return self.append("region") + } + } + + public var appClientId: BaseTokenizedObject { + get { + return self.append("appClientId") + } + } + } + + /** PoolId */ + public var poolId: String? = nil + /** Region */ + public var region: String? = nil + /** AppClientId */ + public var appClientId: String? = nil + + + public func setMultiRequestToken(poolId: String) { + self.dict["poolId"] = poolId + } + + public func setMultiRequestToken(region: String) { + self.dict["region"] = region + } + + public func setMultiRequestToken(appClientId: String) { + self.dict["appClientId"] = appClientId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["poolId"] != nil { + poolId = dict["poolId"] as? String + } + if dict["region"] != nil { + region = dict["region"] as? String + } + if dict["appClientId"] != nil { + appClientId = dict["appClientId"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(poolId != nil) { + dict["poolId"] = poolId! + } + if(region != nil) { + dict["region"] = region! + } + if(appClientId != nil) { + dict["appClientId"] = appClientId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IotFilter.swift b/KalturaClient/Classes/Model/Objects/IotFilter.swift new file mode 100644 index 000000000..2e29338c5 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IotFilter.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Iot settings filter */ +open class IotFilter: CrudFilter { + + public class IotFilterTokenizer: CrudFilter.CrudFilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/IotProfile.swift b/KalturaClient/Classes/Model/Objects/IotProfile.swift new file mode 100644 index 000000000..befe2f9e1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IotProfile.swift @@ -0,0 +1,84 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** IOT PROFILE */ +open class IotProfile: CrudObject { + + public class IotProfileTokenizer: CrudObject.CrudObjectTokenizer { + + public var adapterUrl: BaseTokenizedObject { + get { + return self.append("adapterUrl") + } + } + + public func iotProfileAws() -> T { + return T(self.append("iotProfileAws")) + } + } + + /** adapterUrl */ + public var adapterUrl: String? = nil + /** kalturaIotProfileAws */ + public var iotProfileAws: IotProfileAws? = nil + + + public func setMultiRequestToken(adapterUrl: String) { + self.dict["adapterUrl"] = adapterUrl + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["adapterUrl"] != nil { + adapterUrl = dict["adapterUrl"] as? String + } + if dict["iotProfileAws"] != nil { + iotProfileAws = try JSONParser.parse(object: dict["iotProfileAws"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(adapterUrl != nil) { + dict["adapterUrl"] = adapterUrl! + } + if(iotProfileAws != nil) { + dict["iotProfileAws"] = iotProfileAws!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IotProfileAws.swift b/KalturaClient/Classes/Model/Objects/IotProfileAws.swift new file mode 100644 index 000000000..5dc80673c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IotProfileAws.swift @@ -0,0 +1,199 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** kalturaIotProfileAws */ +open class IotProfileAws: CrudObject { + + public class IotProfileAwsTokenizer: CrudObject.CrudObjectTokenizer { + + public var iotEndPoint: BaseTokenizedObject { + get { + return self.append("iotEndPoint") + } + } + + public var accessKeyId: BaseTokenizedObject { + get { + return self.append("accessKeyId") + } + } + + public var secretAccessKey: BaseTokenizedObject { + get { + return self.append("secretAccessKey") + } + } + + public var userPoolId: BaseTokenizedObject { + get { + return self.append("userPoolId") + } + } + + public var clientId: BaseTokenizedObject { + get { + return self.append("clientId") + } + } + + public var identityPoolId: BaseTokenizedObject { + get { + return self.append("identityPoolId") + } + } + + public var region: BaseTokenizedObject { + get { + return self.append("region") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + } + + /** iotEndPoint */ + public var iotEndPoint: String? = nil + /** accessKeyId */ + public var accessKeyId: String? = nil + /** secretAccessKey */ + public var secretAccessKey: String? = nil + /** userPoolId */ + public var userPoolId: String? = nil + /** clientId */ + public var clientId: String? = nil + /** identityPoolId */ + public var identityPoolId: String? = nil + /** region */ + public var region: String? = nil + /** updateDate */ + public var updateDate: Int64? = nil + + + public func setMultiRequestToken(iotEndPoint: String) { + self.dict["iotEndPoint"] = iotEndPoint + } + + public func setMultiRequestToken(accessKeyId: String) { + self.dict["accessKeyId"] = accessKeyId + } + + public func setMultiRequestToken(secretAccessKey: String) { + self.dict["secretAccessKey"] = secretAccessKey + } + + public func setMultiRequestToken(userPoolId: String) { + self.dict["userPoolId"] = userPoolId + } + + public func setMultiRequestToken(clientId: String) { + self.dict["clientId"] = clientId + } + + public func setMultiRequestToken(identityPoolId: String) { + self.dict["identityPoolId"] = identityPoolId + } + + public func setMultiRequestToken(region: String) { + self.dict["region"] = region + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["iotEndPoint"] != nil { + iotEndPoint = dict["iotEndPoint"] as? String + } + if dict["accessKeyId"] != nil { + accessKeyId = dict["accessKeyId"] as? String + } + if dict["secretAccessKey"] != nil { + secretAccessKey = dict["secretAccessKey"] as? String + } + if dict["userPoolId"] != nil { + userPoolId = dict["userPoolId"] as? String + } + if dict["clientId"] != nil { + clientId = dict["clientId"] as? String + } + if dict["identityPoolId"] != nil { + identityPoolId = dict["identityPoolId"] as? String + } + if dict["region"] != nil { + region = dict["region"] as? String + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(iotEndPoint != nil) { + dict["iotEndPoint"] = iotEndPoint! + } + if(accessKeyId != nil) { + dict["accessKeyId"] = accessKeyId! + } + if(secretAccessKey != nil) { + dict["secretAccessKey"] = secretAccessKey! + } + if(userPoolId != nil) { + dict["userPoolId"] = userPoolId! + } + if(clientId != nil) { + dict["clientId"] = clientId! + } + if(identityPoolId != nil) { + dict["identityPoolId"] = identityPoolId! + } + if(region != nil) { + dict["region"] = region! + } + if(updateDate != nil) { + dict["updateDate"] = updateDate! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IotProfileFilter.swift b/KalturaClient/Classes/Model/Objects/IotProfileFilter.swift new file mode 100644 index 000000000..cc330731e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IotProfileFilter.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Iot settings filter */ +open class IotProfileFilter: CrudFilter { + + public class IotProfileFilterTokenizer: CrudFilter.CrudFilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/IpRangeCondition.swift b/KalturaClient/Classes/Model/Objects/IpRangeCondition.swift new file mode 100644 index 000000000..f4e3ec3bd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IpRangeCondition.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** IP range condition */ +open class IpRangeCondition: Condition { + + public class IpRangeConditionTokenizer: Condition.ConditionTokenizer { + + public var fromIP: BaseTokenizedObject { + get { + return self.append("fromIP") + } + } + + public var toIP: BaseTokenizedObject { + get { + return self.append("toIP") + } + } + } + + /** From IP address range */ + public var fromIP: String? = nil + /** TO IP address range */ + public var toIP: String? = nil + + + public func setMultiRequestToken(fromIP: String) { + self.dict["fromIP"] = fromIP + } + + public func setMultiRequestToken(toIP: String) { + self.dict["toIP"] = toIP + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["fromIP"] != nil { + fromIP = dict["fromIP"] as? String + } + if dict["toIP"] != nil { + toIP = dict["toIP"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(fromIP != nil) { + dict["fromIP"] = fromIP! + } + if(toIP != nil) { + dict["toIP"] = toIP! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/KeyValue.swift b/KalturaClient/Classes/Model/Objects/KeyValue.swift new file mode 100644 index 000000000..2e17670d5 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/KeyValue.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class KeyValue: ObjectBase { + + public class KeyValueTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var key: BaseTokenizedObject { + get { + return self.append("key") + } + } + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** Key */ + public var key: String? = nil + /** Value */ + public var value: String? = nil + + + public func setMultiRequestToken(key: String) { + self.dict["key"] = key + } + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["key"] != nil { + key = dict["key"] as? String + } + if dict["value"] != nil { + value = dict["value"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(key != nil) { + dict["key"] = key! + } + if(value != nil) { + dict["value"] = value! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/KsqlSegmentAction.swift b/KalturaClient/Classes/Model/Objects/KsqlSegmentAction.swift new file mode 100644 index 000000000..69b9d6669 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/KsqlSegmentAction.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Segment action with ksql */ +open class KsqlSegmentAction: BaseSegmentAction { + + public class KsqlSegmentActionTokenizer: BaseSegmentAction.BaseSegmentActionTokenizer { + + public var ksql: BaseTokenizedObject { + get { + return self.append("ksql") + } + } + } + + /** KSQL */ + public var ksql: String? = nil + + + public func setMultiRequestToken(ksql: String) { + self.dict["ksql"] = ksql + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["ksql"] != nil { + ksql = dict["ksql"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(ksql != nil) { + dict["ksql"] = ksql! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Language.swift b/KalturaClient/Classes/Model/Objects/Language.swift new file mode 100644 index 000000000..7b4a9eb51 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Language.swift @@ -0,0 +1,163 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Language details */ +open class Language: ObjectBase { + + public class LanguageTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var systemName: BaseTokenizedObject { + get { + return self.append("systemName") + } + } + + public var code: BaseTokenizedObject { + get { + return self.append("code") + } + } + + public var direction: BaseTokenizedObject { + get { + return self.append("direction") + } + } + + public var isDefault: BaseTokenizedObject { + get { + return self.append("isDefault") + } + } + } + + /** Identifier */ + public var id: Int? = nil + /** Language name */ + public var name: String? = nil + /** Language system name */ + public var systemName: String? = nil + /** Language code */ + public var code: String? = nil + /** Language direction (LTR/RTL) */ + public var direction: String? = nil + /** Is the default language of the account */ + public var isDefault: Bool? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(systemName: String) { + self.dict["systemName"] = systemName + } + + public func setMultiRequestToken(code: String) { + self.dict["code"] = code + } + + public func setMultiRequestToken(direction: String) { + self.dict["direction"] = direction + } + + public func setMultiRequestToken(isDefault: String) { + self.dict["isDefault"] = isDefault + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["systemName"] != nil { + systemName = dict["systemName"] as? String + } + if dict["code"] != nil { + code = dict["code"] as? String + } + if dict["direction"] != nil { + direction = dict["direction"] as? String + } + if dict["isDefault"] != nil { + isDefault = dict["isDefault"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(name != nil) { + dict["name"] = name! + } + if(systemName != nil) { + dict["systemName"] = systemName! + } + if(code != nil) { + dict["code"] = code! + } + if(direction != nil) { + dict["direction"] = direction! + } + if(isDefault != nil) { + dict["isDefault"] = isDefault! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/LanguageFilter.swift b/KalturaClient/Classes/Model/Objects/LanguageFilter.swift new file mode 100644 index 000000000..55f4b0d1c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/LanguageFilter.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Language filter */ +open class LanguageFilter: Filter { + + public class LanguageFilterTokenizer: Filter.FilterTokenizer { + + public var codeIn: BaseTokenizedObject { + get { + return self.append("codeIn") + } + } + + public var excludePartner: BaseTokenizedObject { + get { + return self.append("excludePartner") + } + } + } + + /** Language codes */ + public var codeIn: String? = nil + /** Exclude partner */ + public var excludePartner: Bool? = nil + + + public func setMultiRequestToken(codeIn: String) { + self.dict["codeIn"] = codeIn + } + + public func setMultiRequestToken(excludePartner: String) { + self.dict["excludePartner"] = excludePartner + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["codeIn"] != nil { + codeIn = dict["codeIn"] as? String + } + if dict["excludePartner"] != nil { + excludePartner = dict["excludePartner"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(codeIn != nil) { + dict["codeIn"] = codeIn! + } + if(excludePartner != nil) { + dict["excludePartner"] = excludePartner! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/LanguageListResponse.swift b/KalturaClient/Classes/Model/Objects/LanguageListResponse.swift new file mode 100644 index 000000000..cc706a13e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/LanguageListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class LanguageListResponse: ListResponse { + + public class LanguageListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Languages */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/LicensedUrl.swift b/KalturaClient/Classes/Model/Objects/LicensedUrl.swift new file mode 100644 index 000000000..b5dc79ea7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/LicensedUrl.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class LicensedUrl: ObjectBase { + + public class LicensedUrlTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var mainUrl: BaseTokenizedObject { + get { + return self.append("mainUrl") + } + } + + public var altUrl: BaseTokenizedObject { + get { + return self.append("altUrl") + } + } + } + + /** Main licensed URL */ + public var mainUrl: String? = nil + /** An alternate URL to use in case the main fails */ + public var altUrl: String? = nil + + + public func setMultiRequestToken(mainUrl: String) { + self.dict["mainUrl"] = mainUrl + } + + public func setMultiRequestToken(altUrl: String) { + self.dict["altUrl"] = altUrl + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["mainUrl"] != nil { + mainUrl = dict["mainUrl"] as? String + } + if dict["altUrl"] != nil { + altUrl = dict["altUrl"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(mainUrl != nil) { + dict["mainUrl"] = mainUrl! + } + if(altUrl != nil) { + dict["altUrl"] = altUrl! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/LicensedUrlBaseRequest.swift b/KalturaClient/Classes/Model/Objects/LicensedUrlBaseRequest.swift new file mode 100644 index 000000000..7c8cb6d52 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/LicensedUrlBaseRequest.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class LicensedUrlBaseRequest: ObjectBase { + + public class LicensedUrlBaseRequestTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + } + + /** Asset identifier */ + public var assetId: String? = nil + + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetId"] != nil { + assetId = dict["assetId"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetId != nil) { + dict["assetId"] = assetId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/LicensedUrlEpgRequest.swift b/KalturaClient/Classes/Model/Objects/LicensedUrlEpgRequest.swift new file mode 100644 index 000000000..120b3110d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/LicensedUrlEpgRequest.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class LicensedUrlEpgRequest: LicensedUrlMediaRequest { + + public class LicensedUrlEpgRequestTokenizer: LicensedUrlMediaRequest.LicensedUrlMediaRequestTokenizer { + + public var streamType: BaseTokenizedObject { + get { + return self.append("streamType") + } + } + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + } + + /** The stream type to get the URL for */ + public var streamType: StreamType? = nil + /** The start date of the stream (epoch) */ + public var startDate: Int64? = nil + + + public func setMultiRequestToken(streamType: String) { + self.dict["streamType"] = streamType + } + + public func setMultiRequestToken(startDate: String) { + self.dict["startDate"] = startDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["streamType"] != nil { + streamType = StreamType(rawValue: "\(dict["streamType"]!)") + } + if dict["startDate"] != nil { + startDate = Int64("\(dict["startDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(streamType != nil) { + dict["streamType"] = streamType!.rawValue + } + if(startDate != nil) { + dict["startDate"] = startDate! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/LicensedUrlMediaRequest.swift b/KalturaClient/Classes/Model/Objects/LicensedUrlMediaRequest.swift new file mode 100644 index 000000000..4bcb89c8c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/LicensedUrlMediaRequest.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class LicensedUrlMediaRequest: LicensedUrlBaseRequest { + + public class LicensedUrlMediaRequestTokenizer: LicensedUrlBaseRequest.LicensedUrlBaseRequestTokenizer { + + public var contentId: BaseTokenizedObject { + get { + return self.append("contentId") + } + } + + public var baseUrl: BaseTokenizedObject { + get { + return self.append("baseUrl") + } + } + } + + /** Identifier of the content to get the link for (file identifier) */ + public var contentId: Int? = nil + /** Base URL for the licensed URLs */ + public var baseUrl: String? = nil + + + public func setMultiRequestToken(contentId: String) { + self.dict["contentId"] = contentId + } + + public func setMultiRequestToken(baseUrl: String) { + self.dict["baseUrl"] = baseUrl + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["contentId"] != nil { + contentId = dict["contentId"] as? Int + } + if dict["baseUrl"] != nil { + baseUrl = dict["baseUrl"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(contentId != nil) { + dict["contentId"] = contentId! + } + if(baseUrl != nil) { + dict["baseUrl"] = baseUrl! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/LicensedUrlRecordingRequest.swift b/KalturaClient/Classes/Model/Objects/LicensedUrlRecordingRequest.swift new file mode 100644 index 000000000..de4ddce65 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/LicensedUrlRecordingRequest.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class LicensedUrlRecordingRequest: LicensedUrlBaseRequest { + + public class LicensedUrlRecordingRequestTokenizer: LicensedUrlBaseRequest.LicensedUrlBaseRequestTokenizer { + + public var fileType: BaseTokenizedObject { + get { + return self.append("fileType") + } + } + } + + /** The file type for the URL */ + public var fileType: String? = nil + + + public func setMultiRequestToken(fileType: String) { + self.dict["fileType"] = fileType + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["fileType"] != nil { + fileType = dict["fileType"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(fileType != nil) { + dict["fileType"] = fileType! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ListResponse.swift b/KalturaClient/Classes/Model/Objects/ListResponse.swift new file mode 100644 index 000000000..2f8875567 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ListResponse.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ListResponse: ObjectBase { + + public class ListResponseTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var totalCount: BaseTokenizedObject { + get { + return self.append("totalCount") + } + } + } + + /** Total items */ + public var totalCount: Int? = nil + + + public func setMultiRequestToken(totalCount: String) { + self.dict["totalCount"] = totalCount + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["totalCount"] != nil { + totalCount = dict["totalCount"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(totalCount != nil) { + dict["totalCount"] = totalCount! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/LiveAsset.swift b/KalturaClient/Classes/Model/Objects/LiveAsset.swift new file mode 100644 index 000000000..9e9e5bd06 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/LiveAsset.swift @@ -0,0 +1,342 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Linear media asset info */ +open class LiveAsset: MediaAsset { + + public class LiveAssetTokenizer: MediaAsset.MediaAssetTokenizer { + + public var enableCdvrState: BaseTokenizedObject { + get { + return self.append("enableCdvrState") + } + } + + public var enableCatchUpState: BaseTokenizedObject { + get { + return self.append("enableCatchUpState") + } + } + + public var enableStartOverState: BaseTokenizedObject { + get { + return self.append("enableStartOverState") + } + } + + public var bufferCatchUpSetting: BaseTokenizedObject { + get { + return self.append("bufferCatchUpSetting") + } + } + + public var bufferTrickPlaySetting: BaseTokenizedObject { + get { + return self.append("bufferTrickPlaySetting") + } + } + + public var enableRecordingPlaybackNonEntitledChannelState: BaseTokenizedObject { + get { + return self.append("enableRecordingPlaybackNonEntitledChannelState") + } + } + + public var enableTrickPlayState: BaseTokenizedObject { + get { + return self.append("enableTrickPlayState") + } + } + + public var externalEpgIngestId: BaseTokenizedObject { + get { + return self.append("externalEpgIngestId") + } + } + + public var externalCdvrId: BaseTokenizedObject { + get { + return self.append("externalCdvrId") + } + } + + public var enableCdvr: BaseTokenizedObject { + get { + return self.append("enableCdvr") + } + } + + public var enableCatchUp: BaseTokenizedObject { + get { + return self.append("enableCatchUp") + } + } + + public var enableStartOver: BaseTokenizedObject { + get { + return self.append("enableStartOver") + } + } + + public var catchUpBuffer: BaseTokenizedObject { + get { + return self.append("catchUpBuffer") + } + } + + public var trickPlayBuffer: BaseTokenizedObject { + get { + return self.append("trickPlayBuffer") + } + } + + public var enableRecordingPlaybackNonEntitledChannel: BaseTokenizedObject { + get { + return self.append("enableRecordingPlaybackNonEntitledChannel") + } + } + + public var enableTrickPlay: BaseTokenizedObject { + get { + return self.append("enableTrickPlay") + } + } + + public var channelType: BaseTokenizedObject { + get { + return self.append("channelType") + } + } + } + + /** Enable CDVR, configuration only */ + public var enableCdvrState: TimeShiftedTvState? = nil + /** Enable catch-up, configuration only */ + public var enableCatchUpState: TimeShiftedTvState? = nil + /** Enable start over, configuration only */ + public var enableStartOverState: TimeShiftedTvState? = nil + /** buffer Catch-up, configuration only */ + public var bufferCatchUpSetting: Int64? = nil + /** buffer Trick-play, configuration only */ + public var bufferTrickPlaySetting: Int64? = nil + /** Enable Recording playback for non entitled channel, configuration only */ + public var enableRecordingPlaybackNonEntitledChannelState: TimeShiftedTvState? = nil + /** Enable trick-play, configuration only */ + public var enableTrickPlayState: TimeShiftedTvState? = nil + /** External identifier used when ingesting programs for this linear media asset */ + public var externalEpgIngestId: String? = nil + /** External identifier for the CDVR */ + public var externalCdvrId: String? = nil + /** Is CDVR enabled for this asset */ + public var enableCdvr: Bool? = nil + /** Is catch-up enabled for this asset */ + public var enableCatchUp: Bool? = nil + /** Is start over enabled for this asset */ + public var enableStartOver: Bool? = nil + /** summed Catch-up buffer, the TimeShiftedTvPartnerSettings are also taken into + consideration */ + public var catchUpBuffer: Int64? = nil + /** summed Trick-play buffer, the TimeShiftedTvPartnerSettings are also taken into + consideration */ + public var trickPlayBuffer: Int64? = nil + /** Is recording playback for non entitled channel enabled for this asset */ + public var enableRecordingPlaybackNonEntitledChannel: Bool? = nil + /** Is trick-play enabled for this asset */ + public var enableTrickPlay: Bool? = nil + /** channel type, possible values: UNKNOWN, DTT, OTT, DTT_AND_OTT */ + public var channelType: LinearChannelType? = nil + + + public func setMultiRequestToken(enableCdvrState: String) { + self.dict["enableCdvrState"] = enableCdvrState + } + + public func setMultiRequestToken(enableCatchUpState: String) { + self.dict["enableCatchUpState"] = enableCatchUpState + } + + public func setMultiRequestToken(enableStartOverState: String) { + self.dict["enableStartOverState"] = enableStartOverState + } + + public func setMultiRequestToken(bufferCatchUpSetting: String) { + self.dict["bufferCatchUpSetting"] = bufferCatchUpSetting + } + + public func setMultiRequestToken(bufferTrickPlaySetting: String) { + self.dict["bufferTrickPlaySetting"] = bufferTrickPlaySetting + } + + public func setMultiRequestToken(enableRecordingPlaybackNonEntitledChannelState: String) { + self.dict["enableRecordingPlaybackNonEntitledChannelState"] = enableRecordingPlaybackNonEntitledChannelState + } + + public func setMultiRequestToken(enableTrickPlayState: String) { + self.dict["enableTrickPlayState"] = enableTrickPlayState + } + + public func setMultiRequestToken(externalEpgIngestId: String) { + self.dict["externalEpgIngestId"] = externalEpgIngestId + } + + public func setMultiRequestToken(externalCdvrId: String) { + self.dict["externalCdvrId"] = externalCdvrId + } + + public func setMultiRequestToken(enableCdvr: String) { + self.dict["enableCdvr"] = enableCdvr + } + + public func setMultiRequestToken(enableCatchUp: String) { + self.dict["enableCatchUp"] = enableCatchUp + } + + public func setMultiRequestToken(enableStartOver: String) { + self.dict["enableStartOver"] = enableStartOver + } + + public func setMultiRequestToken(catchUpBuffer: String) { + self.dict["catchUpBuffer"] = catchUpBuffer + } + + public func setMultiRequestToken(trickPlayBuffer: String) { + self.dict["trickPlayBuffer"] = trickPlayBuffer + } + + public func setMultiRequestToken(enableRecordingPlaybackNonEntitledChannel: String) { + self.dict["enableRecordingPlaybackNonEntitledChannel"] = enableRecordingPlaybackNonEntitledChannel + } + + public func setMultiRequestToken(enableTrickPlay: String) { + self.dict["enableTrickPlay"] = enableTrickPlay + } + + public func setMultiRequestToken(channelType: String) { + self.dict["channelType"] = channelType + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["enableCdvrState"] != nil { + enableCdvrState = TimeShiftedTvState(rawValue: "\(dict["enableCdvrState"]!)") + } + if dict["enableCatchUpState"] != nil { + enableCatchUpState = TimeShiftedTvState(rawValue: "\(dict["enableCatchUpState"]!)") + } + if dict["enableStartOverState"] != nil { + enableStartOverState = TimeShiftedTvState(rawValue: "\(dict["enableStartOverState"]!)") + } + if dict["bufferCatchUpSetting"] != nil { + bufferCatchUpSetting = Int64("\(dict["bufferCatchUpSetting"]!)") + } + if dict["bufferTrickPlaySetting"] != nil { + bufferTrickPlaySetting = Int64("\(dict["bufferTrickPlaySetting"]!)") + } + if dict["enableRecordingPlaybackNonEntitledChannelState"] != nil { + enableRecordingPlaybackNonEntitledChannelState = TimeShiftedTvState(rawValue: "\(dict["enableRecordingPlaybackNonEntitledChannelState"]!)") + } + if dict["enableTrickPlayState"] != nil { + enableTrickPlayState = TimeShiftedTvState(rawValue: "\(dict["enableTrickPlayState"]!)") + } + if dict["externalEpgIngestId"] != nil { + externalEpgIngestId = dict["externalEpgIngestId"] as? String + } + if dict["externalCdvrId"] != nil { + externalCdvrId = dict["externalCdvrId"] as? String + } + if dict["enableCdvr"] != nil { + enableCdvr = dict["enableCdvr"] as? Bool + } + if dict["enableCatchUp"] != nil { + enableCatchUp = dict["enableCatchUp"] as? Bool + } + if dict["enableStartOver"] != nil { + enableStartOver = dict["enableStartOver"] as? Bool + } + if dict["catchUpBuffer"] != nil { + catchUpBuffer = Int64("\(dict["catchUpBuffer"]!)") + } + if dict["trickPlayBuffer"] != nil { + trickPlayBuffer = Int64("\(dict["trickPlayBuffer"]!)") + } + if dict["enableRecordingPlaybackNonEntitledChannel"] != nil { + enableRecordingPlaybackNonEntitledChannel = dict["enableRecordingPlaybackNonEntitledChannel"] as? Bool + } + if dict["enableTrickPlay"] != nil { + enableTrickPlay = dict["enableTrickPlay"] as? Bool + } + if dict["channelType"] != nil { + channelType = LinearChannelType(rawValue: "\(dict["channelType"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(enableCdvrState != nil) { + dict["enableCdvrState"] = enableCdvrState!.rawValue + } + if(enableCatchUpState != nil) { + dict["enableCatchUpState"] = enableCatchUpState!.rawValue + } + if(enableStartOverState != nil) { + dict["enableStartOverState"] = enableStartOverState!.rawValue + } + if(bufferCatchUpSetting != nil) { + dict["bufferCatchUpSetting"] = bufferCatchUpSetting! + } + if(bufferTrickPlaySetting != nil) { + dict["bufferTrickPlaySetting"] = bufferTrickPlaySetting! + } + if(enableRecordingPlaybackNonEntitledChannelState != nil) { + dict["enableRecordingPlaybackNonEntitledChannelState"] = enableRecordingPlaybackNonEntitledChannelState!.rawValue + } + if(enableTrickPlayState != nil) { + dict["enableTrickPlayState"] = enableTrickPlayState!.rawValue + } + if(externalEpgIngestId != nil) { + dict["externalEpgIngestId"] = externalEpgIngestId! + } + if(externalCdvrId != nil) { + dict["externalCdvrId"] = externalCdvrId! + } + if(channelType != nil) { + dict["channelType"] = channelType!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/LoginResponse.swift b/KalturaClient/Classes/Model/Objects/LoginResponse.swift new file mode 100644 index 000000000..72f26c3e0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/LoginResponse.swift @@ -0,0 +1,76 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class LoginResponse: ObjectBase { + + public class LoginResponseTokenizer: ObjectBase.ObjectBaseTokenizer { + + public func user() -> T { + return T(self.append("user")) + } + + public func loginSession() -> T { + return T(self.append("loginSession")) + } + } + + /** User */ + public var user: OTTUser? = nil + /** Kaltura login session details */ + public var loginSession: LoginSession? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["user"] != nil { + user = try JSONParser.parse(object: dict["user"] as! [String: Any]) } + if dict["loginSession"] != nil { + loginSession = try JSONParser.parse(object: dict["loginSession"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(user != nil) { + dict["user"] = user!.toDictionary() + } + if(loginSession != nil) { + dict["loginSession"] = loginSession!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/LoginSession.swift b/KalturaClient/Classes/Model/Objects/LoginSession.swift new file mode 100644 index 000000000..29b9ab7e0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/LoginSession.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Login response */ +open class LoginSession: ObjectBase { + + public class LoginSessionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var ks: BaseTokenizedObject { + get { + return self.append("ks") + } + } + + public var expiry: BaseTokenizedObject { + get { + return self.append("expiry") + } + } + } + + /** Access token in a KS format */ + public var ks: String? = nil + /** Expiration */ + public var expiry: Int64? = nil + + + public func setMultiRequestToken(ks: String) { + self.dict["ks"] = ks + } + + public func setMultiRequestToken(expiry: String) { + self.dict["expiry"] = expiry + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["ks"] != nil { + ks = dict["ks"] as? String + } + if dict["expiry"] != nil { + expiry = Int64("\(dict["expiry"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(ks != nil) { + dict["ks"] = ks! + } + if(expiry != nil) { + dict["expiry"] = expiry! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/LongValue.swift b/KalturaClient/Classes/Model/Objects/LongValue.swift new file mode 100644 index 000000000..e8a96c9b8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/LongValue.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** A string representation to return an array of longs */ +open class LongValue: Value { + + public class LongValueTokenizer: Value.ValueTokenizer { + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** Value */ + public var value: Int64? = nil + + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["value"] != nil { + value = Int64("\(dict["value"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(value != nil) { + dict["value"] = value! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MailDispatcher.swift b/KalturaClient/Classes/Model/Objects/MailDispatcher.swift new file mode 100644 index 000000000..0b223ec4b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MailDispatcher.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class MailDispatcher: Dispatcher { + + public class MailDispatcherTokenizer: Dispatcher.DispatcherTokenizer { + + public var bodyTemplate: BaseTokenizedObject { + get { + return self.append("bodyTemplate") + } + } + + public var subjectTemplate: BaseTokenizedObject { + get { + return self.append("subjectTemplate") + } + } + } + + /** Mail body template */ + public var bodyTemplate: String? = nil + /** Mail subjsct template */ + public var subjectTemplate: String? = nil + + + public func setMultiRequestToken(bodyTemplate: String) { + self.dict["bodyTemplate"] = bodyTemplate + } + + public func setMultiRequestToken(subjectTemplate: String) { + self.dict["subjectTemplate"] = subjectTemplate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["bodyTemplate"] != nil { + bodyTemplate = dict["bodyTemplate"] as? String + } + if dict["subjectTemplate"] != nil { + subjectTemplate = dict["subjectTemplate"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(bodyTemplate != nil) { + dict["bodyTemplate"] = bodyTemplate! + } + if(subjectTemplate != nil) { + dict["subjectTemplate"] = subjectTemplate! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ManualChannel.swift b/KalturaClient/Classes/Model/Objects/ManualChannel.swift new file mode 100644 index 000000000..5fbf8f79a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ManualChannel.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ManualChannel: Channel { + + public class ManualChannelTokenizer: Channel.ChannelTokenizer { + + public var mediaIds: BaseTokenizedObject { + get { + return self.append("mediaIds") + } + } + } + + /** A list of comma separated media ids associated with this channel, according to + the order of the medias in the channel. */ + public var mediaIds: String? = nil + + + public func setMultiRequestToken(mediaIds: String) { + self.dict["mediaIds"] = mediaIds + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["mediaIds"] != nil { + mediaIds = dict["mediaIds"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(mediaIds != nil) { + dict["mediaIds"] = mediaIds! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MediaAsset.swift b/KalturaClient/Classes/Model/Objects/MediaAsset.swift new file mode 100644 index 000000000..956c05588 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MediaAsset.swift @@ -0,0 +1,163 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Media-asset info */ +open class MediaAsset: Asset { + + public class MediaAssetTokenizer: Asset.AssetTokenizer { + + public var externalIds: BaseTokenizedObject { + get { + return self.append("externalIds") + } + } + + public var entryId: BaseTokenizedObject { + get { + return self.append("entryId") + } + } + + public var deviceRuleId: BaseTokenizedObject { + get { + return self.append("deviceRuleId") + } + } + + public var geoBlockRuleId: BaseTokenizedObject { + get { + return self.append("geoBlockRuleId") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var inheritancePolicy: BaseTokenizedObject { + get { + return self.append("inheritancePolicy") + } + } + } + + /** External identifiers */ + public var externalIds: String? = nil + /** Entry Identifier */ + public var entryId: String? = nil + /** Device rule identifier */ + public var deviceRuleId: Int? = nil + /** Geo block rule identifier */ + public var geoBlockRuleId: Int? = nil + /** The media asset status */ + public var status: Bool? = nil + /** The media asset inheritance policy */ + public var inheritancePolicy: AssetInheritancePolicy? = nil + + + public func setMultiRequestToken(externalIds: String) { + self.dict["externalIds"] = externalIds + } + + public func setMultiRequestToken(entryId: String) { + self.dict["entryId"] = entryId + } + + public func setMultiRequestToken(deviceRuleId: String) { + self.dict["deviceRuleId"] = deviceRuleId + } + + public func setMultiRequestToken(geoBlockRuleId: String) { + self.dict["geoBlockRuleId"] = geoBlockRuleId + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(inheritancePolicy: String) { + self.dict["inheritancePolicy"] = inheritancePolicy + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["externalIds"] != nil { + externalIds = dict["externalIds"] as? String + } + if dict["entryId"] != nil { + entryId = dict["entryId"] as? String + } + if dict["deviceRuleId"] != nil { + deviceRuleId = dict["deviceRuleId"] as? Int + } + if dict["geoBlockRuleId"] != nil { + geoBlockRuleId = dict["geoBlockRuleId"] as? Int + } + if dict["status"] != nil { + status = dict["status"] as? Bool + } + if dict["inheritancePolicy"] != nil { + inheritancePolicy = AssetInheritancePolicy(rawValue: "\(dict["inheritancePolicy"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(externalIds != nil) { + dict["externalIds"] = externalIds! + } + if(entryId != nil) { + dict["entryId"] = entryId! + } + if(deviceRuleId != nil) { + dict["deviceRuleId"] = deviceRuleId! + } + if(geoBlockRuleId != nil) { + dict["geoBlockRuleId"] = geoBlockRuleId! + } + if(status != nil) { + dict["status"] = status! + } + if(inheritancePolicy != nil) { + dict["inheritancePolicy"] = inheritancePolicy!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MediaConcurrencyRule.swift b/KalturaClient/Classes/Model/Objects/MediaConcurrencyRule.swift new file mode 100644 index 000000000..374f915e3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MediaConcurrencyRule.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Media concurrency rule */ +open class MediaConcurrencyRule: ObjectBase { + + public class MediaConcurrencyRuleTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var concurrencyLimitationType: BaseTokenizedObject { + get { + return self.append("concurrencyLimitationType") + } + } + + public var limitation: BaseTokenizedObject { + get { + return self.append("limitation") + } + } + } + + /** Media concurrency rule identifier */ + public var id: String? = nil + /** Media concurrency rule name */ + public var name: String? = nil + /** Concurrency limitation type */ + public var concurrencyLimitationType: ConcurrencyLimitationType? = nil + /** Limitation */ + public var limitation: Int? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(concurrencyLimitationType: String) { + self.dict["concurrencyLimitationType"] = concurrencyLimitationType + } + + public func setMultiRequestToken(limitation: String) { + self.dict["limitation"] = limitation + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["concurrencyLimitationType"] != nil { + concurrencyLimitationType = ConcurrencyLimitationType(rawValue: "\(dict["concurrencyLimitationType"]!)") + } + if dict["limitation"] != nil { + limitation = dict["limitation"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(name != nil) { + dict["name"] = name! + } + if(concurrencyLimitationType != nil) { + dict["concurrencyLimitationType"] = concurrencyLimitationType!.rawValue + } + if(limitation != nil) { + dict["limitation"] = limitation! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MediaConcurrencyRuleListResponse.swift b/KalturaClient/Classes/Model/Objects/MediaConcurrencyRuleListResponse.swift new file mode 100644 index 000000000..201d17dfc --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MediaConcurrencyRuleListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class MediaConcurrencyRuleListResponse: ListResponse { + + public class MediaConcurrencyRuleListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Media CONCURRENCY RULES */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MediaFile.swift b/KalturaClient/Classes/Model/Objects/MediaFile.swift new file mode 100644 index 000000000..84fe89e2e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MediaFile.swift @@ -0,0 +1,427 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Media file details */ +open class MediaFile: AssetFile { + + public class MediaFileTokenizer: AssetFile.AssetFileTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var typeId: BaseTokenizedObject { + get { + return self.append("typeId") + } + } + + public var duration: BaseTokenizedObject { + get { + return self.append("duration") + } + } + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + + public var altExternalId: BaseTokenizedObject { + get { + return self.append("altExternalId") + } + } + + public var fileSize: BaseTokenizedObject { + get { + return self.append("fileSize") + } + } + + public var additionalData: BaseTokenizedObject { + get { + return self.append("additionalData") + } + } + + public var altStreamingCode: BaseTokenizedObject { + get { + return self.append("altStreamingCode") + } + } + + public var alternativeCdnAdapaterProfileId: BaseTokenizedObject { + get { + return self.append("alternativeCdnAdapaterProfileId") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + + public var externalStoreId: BaseTokenizedObject { + get { + return self.append("externalStoreId") + } + } + + public var isDefaultLanguage: BaseTokenizedObject { + get { + return self.append("isDefaultLanguage") + } + } + + public var language: BaseTokenizedObject { + get { + return self.append("language") + } + } + + public var orderNum: BaseTokenizedObject { + get { + return self.append("orderNum") + } + } + + public var outputProtecationLevel: BaseTokenizedObject { + get { + return self.append("outputProtecationLevel") + } + } + + public var cdnAdapaterProfileId: BaseTokenizedObject { + get { + return self.append("cdnAdapaterProfileId") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var catalogEndDate: BaseTokenizedObject { + get { + return self.append("catalogEndDate") + } + } + } + + /** Unique identifier for the asset */ + public var assetId: Int? = nil + /** File unique identifier */ + public var id: Int? = nil + /** Deprecated - Device types as defined in the system */ + public var type: String? = nil + /** Device types identifier as defined in the system */ + public var typeId: Int? = nil + /** Duration of the media file */ + public var duration: Int64? = nil + /** External identifier for the media file */ + public var externalId: String? = nil + /** Alternative external identifier for the media file */ + public var altExternalId: String? = nil + /** File size */ + public var fileSize: Int64? = nil + /** Additional Data */ + public var additionalData: String? = nil + /** Alternative streaming code */ + public var altStreamingCode: String? = nil + /** Alternative cdn adapter profile identifier */ + public var alternativeCdnAdapaterProfileId: Int64? = nil + /** EndDate */ + public var endDate: Int64? = nil + /** StartDate */ + public var startDate: Int64? = nil + /** ExternalStoreId */ + public var externalStoreId: String? = nil + /** IsDefaultLanguage */ + public var isDefaultLanguage: Bool? = nil + /** Language */ + public var language: String? = nil + /** OrderNum */ + public var orderNum: Int? = nil + /** OutputProtecationLevel */ + public var outputProtecationLevel: String? = nil + /** cdn adapter profile identifier */ + public var cdnAdapaterProfileId: Int64? = nil + /** The media file status */ + public var status: Bool? = nil + /** Catalog end date */ + public var catalogEndDate: Int64? = nil + + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(typeId: String) { + self.dict["typeId"] = typeId + } + + public func setMultiRequestToken(duration: String) { + self.dict["duration"] = duration + } + + public func setMultiRequestToken(externalId: String) { + self.dict["externalId"] = externalId + } + + public func setMultiRequestToken(altExternalId: String) { + self.dict["altExternalId"] = altExternalId + } + + public func setMultiRequestToken(fileSize: String) { + self.dict["fileSize"] = fileSize + } + + public func setMultiRequestToken(additionalData: String) { + self.dict["additionalData"] = additionalData + } + + public func setMultiRequestToken(altStreamingCode: String) { + self.dict["altStreamingCode"] = altStreamingCode + } + + public func setMultiRequestToken(alternativeCdnAdapaterProfileId: String) { + self.dict["alternativeCdnAdapaterProfileId"] = alternativeCdnAdapaterProfileId + } + + public func setMultiRequestToken(endDate: String) { + self.dict["endDate"] = endDate + } + + public func setMultiRequestToken(startDate: String) { + self.dict["startDate"] = startDate + } + + public func setMultiRequestToken(externalStoreId: String) { + self.dict["externalStoreId"] = externalStoreId + } + + public func setMultiRequestToken(isDefaultLanguage: String) { + self.dict["isDefaultLanguage"] = isDefaultLanguage + } + + public func setMultiRequestToken(language: String) { + self.dict["language"] = language + } + + public func setMultiRequestToken(orderNum: String) { + self.dict["orderNum"] = orderNum + } + + public func setMultiRequestToken(outputProtecationLevel: String) { + self.dict["outputProtecationLevel"] = outputProtecationLevel + } + + public func setMultiRequestToken(cdnAdapaterProfileId: String) { + self.dict["cdnAdapaterProfileId"] = cdnAdapaterProfileId + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(catalogEndDate: String) { + self.dict["catalogEndDate"] = catalogEndDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetId"] != nil { + assetId = dict["assetId"] as? Int + } + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["type"] != nil { + type = dict["type"] as? String + } + if dict["typeId"] != nil { + typeId = dict["typeId"] as? Int + } + if dict["duration"] != nil { + duration = Int64("\(dict["duration"]!)") + } + if dict["externalId"] != nil { + externalId = dict["externalId"] as? String + } + if dict["altExternalId"] != nil { + altExternalId = dict["altExternalId"] as? String + } + if dict["fileSize"] != nil { + fileSize = Int64("\(dict["fileSize"]!)") + } + if dict["additionalData"] != nil { + additionalData = dict["additionalData"] as? String + } + if dict["altStreamingCode"] != nil { + altStreamingCode = dict["altStreamingCode"] as? String + } + if dict["alternativeCdnAdapaterProfileId"] != nil { + alternativeCdnAdapaterProfileId = Int64("\(dict["alternativeCdnAdapaterProfileId"]!)") + } + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + if dict["startDate"] != nil { + startDate = Int64("\(dict["startDate"]!)") + } + if dict["externalStoreId"] != nil { + externalStoreId = dict["externalStoreId"] as? String + } + if dict["isDefaultLanguage"] != nil { + isDefaultLanguage = dict["isDefaultLanguage"] as? Bool + } + if dict["language"] != nil { + language = dict["language"] as? String + } + if dict["orderNum"] != nil { + orderNum = dict["orderNum"] as? Int + } + if dict["outputProtecationLevel"] != nil { + outputProtecationLevel = dict["outputProtecationLevel"] as? String + } + if dict["cdnAdapaterProfileId"] != nil { + cdnAdapaterProfileId = Int64("\(dict["cdnAdapaterProfileId"]!)") + } + if dict["status"] != nil { + status = dict["status"] as? Bool + } + if dict["catalogEndDate"] != nil { + catalogEndDate = Int64("\(dict["catalogEndDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetId != nil) { + dict["assetId"] = assetId! + } + if(typeId != nil) { + dict["typeId"] = typeId! + } + if(duration != nil) { + dict["duration"] = duration! + } + if(externalId != nil) { + dict["externalId"] = externalId! + } + if(altExternalId != nil) { + dict["altExternalId"] = altExternalId! + } + if(fileSize != nil) { + dict["fileSize"] = fileSize! + } + if(additionalData != nil) { + dict["additionalData"] = additionalData! + } + if(altStreamingCode != nil) { + dict["altStreamingCode"] = altStreamingCode! + } + if(alternativeCdnAdapaterProfileId != nil) { + dict["alternativeCdnAdapaterProfileId"] = alternativeCdnAdapaterProfileId! + } + if(endDate != nil) { + dict["endDate"] = endDate! + } + if(startDate != nil) { + dict["startDate"] = startDate! + } + if(externalStoreId != nil) { + dict["externalStoreId"] = externalStoreId! + } + if(isDefaultLanguage != nil) { + dict["isDefaultLanguage"] = isDefaultLanguage! + } + if(language != nil) { + dict["language"] = language! + } + if(orderNum != nil) { + dict["orderNum"] = orderNum! + } + if(outputProtecationLevel != nil) { + dict["outputProtecationLevel"] = outputProtecationLevel! + } + if(cdnAdapaterProfileId != nil) { + dict["cdnAdapaterProfileId"] = cdnAdapaterProfileId! + } + if(status != nil) { + dict["status"] = status! + } + if(catalogEndDate != nil) { + dict["catalogEndDate"] = catalogEndDate! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MediaFileFilter.swift b/KalturaClient/Classes/Model/Objects/MediaFileFilter.swift new file mode 100644 index 000000000..4579c15de --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MediaFileFilter.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class MediaFileFilter: Filter { + + public class MediaFileFilterTokenizer: Filter.FilterTokenizer { + + public var assetIdEqual: BaseTokenizedObject { + get { + return self.append("assetIdEqual") + } + } + + public var idEqual: BaseTokenizedObject { + get { + return self.append("idEqual") + } + } + } + + /** Asset identifier to filter by */ + public var assetIdEqual: Int64? = nil + /** Asset file identifier to filter by */ + public var idEqual: Int64? = nil + + + public func setMultiRequestToken(assetIdEqual: String) { + self.dict["assetIdEqual"] = assetIdEqual + } + + public func setMultiRequestToken(idEqual: String) { + self.dict["idEqual"] = idEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetIdEqual"] != nil { + assetIdEqual = Int64("\(dict["assetIdEqual"]!)") + } + if dict["idEqual"] != nil { + idEqual = Int64("\(dict["idEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetIdEqual != nil) { + dict["assetIdEqual"] = assetIdEqual! + } + if(idEqual != nil) { + dict["idEqual"] = idEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MediaFileListResponse.swift b/KalturaClient/Classes/Model/Objects/MediaFileListResponse.swift new file mode 100644 index 000000000..61b13ae10 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MediaFileListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Media-file list */ +open class MediaFileListResponse: ListResponse { + + public class MediaFileListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of media-file types */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MediaFileType.swift b/KalturaClient/Classes/Model/Objects/MediaFileType.swift new file mode 100644 index 000000000..b02afd52f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MediaFileType.swift @@ -0,0 +1,262 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Media-file type */ +open class MediaFileType: ObjectBase { + + public class MediaFileTypeTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + + public var isTrailer: BaseTokenizedObject { + get { + return self.append("isTrailer") + } + } + + public var streamerType: BaseTokenizedObject { + get { + return self.append("streamerType") + } + } + + public var drmProfileId: BaseTokenizedObject { + get { + return self.append("drmProfileId") + } + } + + public var quality: BaseTokenizedObject { + get { + return self.append("quality") + } + } + + public var videoCodecs: BaseTokenizedObject { + get { + return self.append("videoCodecs") + } + } + + public var audioCodecs: BaseTokenizedObject { + get { + return self.append("audioCodecs") + } + } + } + + /** Unique identifier */ + public var id: Int? = nil + /** Unique name */ + public var name: String? = nil + /** Unique description */ + public var description: String? = nil + /** Indicates if media-file type is active or disabled */ + public var status: Bool? = nil + /** Specifies when was the type was created. Date and time represented as epoch. */ + public var createDate: Int64? = nil + /** Specifies when was the type last updated. Date and time represented as epoch. */ + public var updateDate: Int64? = nil + /** Specifies whether playback as trailer is allowed */ + public var isTrailer: Bool? = nil + /** Defines playback streamer type */ + public var streamerType: MediaFileStreamerType? = nil + /** DRM adapter-profile identifier, use -1 for uDRM, 0 for no DRM. */ + public var drmProfileId: Int? = nil + /** Media file type quality */ + public var quality: MediaFileTypeQuality? = nil + /** List of comma separated video codecs */ + public var videoCodecs: String? = nil + /** List of comma separated audio codecs */ + public var audioCodecs: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public func setMultiRequestToken(isTrailer: String) { + self.dict["isTrailer"] = isTrailer + } + + public func setMultiRequestToken(streamerType: String) { + self.dict["streamerType"] = streamerType + } + + public func setMultiRequestToken(drmProfileId: String) { + self.dict["drmProfileId"] = drmProfileId + } + + public func setMultiRequestToken(quality: String) { + self.dict["quality"] = quality + } + + public func setMultiRequestToken(videoCodecs: String) { + self.dict["videoCodecs"] = videoCodecs + } + + public func setMultiRequestToken(audioCodecs: String) { + self.dict["audioCodecs"] = audioCodecs + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["description"] != nil { + description = dict["description"] as? String + } + if dict["status"] != nil { + status = dict["status"] as? Bool + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + if dict["isTrailer"] != nil { + isTrailer = dict["isTrailer"] as? Bool + } + if dict["streamerType"] != nil { + streamerType = MediaFileStreamerType(rawValue: "\(dict["streamerType"]!)") + } + if dict["drmProfileId"] != nil { + drmProfileId = dict["drmProfileId"] as? Int + } + if dict["quality"] != nil { + quality = MediaFileTypeQuality(rawValue: "\(dict["quality"]!)") + } + if dict["videoCodecs"] != nil { + videoCodecs = dict["videoCodecs"] as? String + } + if dict["audioCodecs"] != nil { + audioCodecs = dict["audioCodecs"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(description != nil) { + dict["description"] = description! + } + if(status != nil) { + dict["status"] = status! + } + if(isTrailer != nil) { + dict["isTrailer"] = isTrailer! + } + if(streamerType != nil) { + dict["streamerType"] = streamerType!.rawValue + } + if(drmProfileId != nil) { + dict["drmProfileId"] = drmProfileId! + } + if(quality != nil) { + dict["quality"] = quality!.rawValue + } + if(videoCodecs != nil) { + dict["videoCodecs"] = videoCodecs! + } + if(audioCodecs != nil) { + dict["audioCodecs"] = audioCodecs! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MediaFileTypeListResponse.swift b/KalturaClient/Classes/Model/Objects/MediaFileTypeListResponse.swift new file mode 100644 index 000000000..6f5d18c35 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MediaFileTypeListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Media-file types list */ +open class MediaFileTypeListResponse: ListResponse { + + public class MediaFileTypeListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of media-file types */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MediaImage.swift b/KalturaClient/Classes/Model/Objects/MediaImage.swift new file mode 100644 index 000000000..2569004b9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MediaImage.swift @@ -0,0 +1,178 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Image details */ +open class MediaImage: ObjectBase { + + public class MediaImageTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var ratio: BaseTokenizedObject { + get { + return self.append("ratio") + } + } + + public var width: BaseTokenizedObject { + get { + return self.append("width") + } + } + + public var height: BaseTokenizedObject { + get { + return self.append("height") + } + } + + public var url: BaseTokenizedObject { + get { + return self.append("url") + } + } + + public var version: BaseTokenizedObject { + get { + return self.append("version") + } + } + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var isDefault: BaseTokenizedObject { + get { + return self.append("isDefault") + } + } + } + + /** Image aspect ratio */ + public var ratio: String? = nil + /** Image width */ + public var width: Int? = nil + /** Image height */ + public var height: Int? = nil + /** Image URL */ + public var url: String? = nil + /** Image Version */ + public var version: Int? = nil + /** Image ID */ + public var id: String? = nil + /** Determined whether image was taken from default configuration or not */ + public var isDefault: Bool? = nil + + + public func setMultiRequestToken(ratio: String) { + self.dict["ratio"] = ratio + } + + public func setMultiRequestToken(width: String) { + self.dict["width"] = width + } + + public func setMultiRequestToken(height: String) { + self.dict["height"] = height + } + + public func setMultiRequestToken(url: String) { + self.dict["url"] = url + } + + public func setMultiRequestToken(version: String) { + self.dict["version"] = version + } + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(isDefault: String) { + self.dict["isDefault"] = isDefault + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["ratio"] != nil { + ratio = dict["ratio"] as? String + } + if dict["width"] != nil { + width = dict["width"] as? Int + } + if dict["height"] != nil { + height = dict["height"] as? Int + } + if dict["url"] != nil { + url = dict["url"] as? String + } + if dict["version"] != nil { + version = dict["version"] as? Int + } + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["isDefault"] != nil { + isDefault = dict["isDefault"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(ratio != nil) { + dict["ratio"] = ratio! + } + if(width != nil) { + dict["width"] = width! + } + if(height != nil) { + dict["height"] = height! + } + if(url != nil) { + dict["url"] = url! + } + if(version != nil) { + dict["version"] = version! + } + if(isDefault != nil) { + dict["isDefault"] = isDefault! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Message.swift b/KalturaClient/Classes/Model/Objects/Message.swift new file mode 100644 index 000000000..b937010ec --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Message.swift @@ -0,0 +1,105 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Message */ +open class Message: ObjectBase { + + public class MessageTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var code: BaseTokenizedObject { + get { + return self.append("code") + } + } + + public var message: BaseTokenizedObject { + get { + return self.append("message") + } + } + + public var args: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("args")) + } + } + } + + /** Massage code */ + public var code: Int? = nil + /** Message details */ + public var message: String? = nil + /** Message args */ + public var args: Dictionary? = nil + + + public func setMultiRequestToken(code: String) { + self.dict["code"] = code + } + + public func setMultiRequestToken(message: String) { + self.dict["message"] = message + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["code"] != nil { + code = dict["code"] as? Int + } + if dict["message"] != nil { + message = dict["message"] as? String + } + if dict["args"] != nil { + args = try JSONParser.parse(map: dict["args"] as! [String: Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(code != nil) { + dict["code"] = code! + } + if(message != nil) { + dict["message"] = message! + } + if(args != nil) { + dict["args"] = args!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MessageTemplate.swift b/KalturaClient/Classes/Model/Objects/MessageTemplate.swift new file mode 100644 index 000000000..965997d4f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MessageTemplate.swift @@ -0,0 +1,217 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class MessageTemplate: ObjectBase { + + public class MessageTemplateTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var message: BaseTokenizedObject { + get { + return self.append("message") + } + } + + public var dateFormat: BaseTokenizedObject { + get { + return self.append("dateFormat") + } + } + + public var messageType: BaseTokenizedObject { + get { + return self.append("messageType") + } + } + + public var sound: BaseTokenizedObject { + get { + return self.append("sound") + } + } + + public var action: BaseTokenizedObject { + get { + return self.append("action") + } + } + + public var url: BaseTokenizedObject { + get { + return self.append("url") + } + } + + public var mailTemplate: BaseTokenizedObject { + get { + return self.append("mailTemplate") + } + } + + public var mailSubject: BaseTokenizedObject { + get { + return self.append("mailSubject") + } + } + + public var ratioId: BaseTokenizedObject { + get { + return self.append("ratioId") + } + } + } + + /** The message template with placeholders */ + public var message: String? = nil + /** Default date format for the date & time entries used in the template */ + public var dateFormat: String? = nil + /** Template type. Possible values: Series, Reminder,Churn, SeriesReminder */ + public var messageType: MessageTemplateType? = nil + /** Sound file name to play upon message arrival to the device (if supported by + target device) */ + public var sound: String? = nil + /** an optional action */ + public var action: String? = nil + /** URL template for deep linking. Example - /app/location/{mediaId} */ + public var url: String? = nil + /** Mail template name */ + public var mailTemplate: String? = nil + /** Mail subject */ + public var mailSubject: String? = nil + /** Ratio identifier */ + public var ratioId: String? = nil + + + public func setMultiRequestToken(message: String) { + self.dict["message"] = message + } + + public func setMultiRequestToken(dateFormat: String) { + self.dict["dateFormat"] = dateFormat + } + + public func setMultiRequestToken(messageType: String) { + self.dict["messageType"] = messageType + } + + public func setMultiRequestToken(sound: String) { + self.dict["sound"] = sound + } + + public func setMultiRequestToken(action: String) { + self.dict["action"] = action + } + + public func setMultiRequestToken(url: String) { + self.dict["url"] = url + } + + public func setMultiRequestToken(mailTemplate: String) { + self.dict["mailTemplate"] = mailTemplate + } + + public func setMultiRequestToken(mailSubject: String) { + self.dict["mailSubject"] = mailSubject + } + + public func setMultiRequestToken(ratioId: String) { + self.dict["ratioId"] = ratioId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["message"] != nil { + message = dict["message"] as? String + } + if dict["dateFormat"] != nil { + dateFormat = dict["dateFormat"] as? String + } + if dict["messageType"] != nil { + messageType = MessageTemplateType(rawValue: "\(dict["messageType"]!)") + } + if dict["sound"] != nil { + sound = dict["sound"] as? String + } + if dict["action"] != nil { + action = dict["action"] as? String + } + if dict["url"] != nil { + url = dict["url"] as? String + } + if dict["mailTemplate"] != nil { + mailTemplate = dict["mailTemplate"] as? String + } + if dict["mailSubject"] != nil { + mailSubject = dict["mailSubject"] as? String + } + if dict["ratioId"] != nil { + ratioId = dict["ratioId"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(message != nil) { + dict["message"] = message! + } + if(dateFormat != nil) { + dict["dateFormat"] = dateFormat! + } + if(messageType != nil) { + dict["messageType"] = messageType!.rawValue + } + if(sound != nil) { + dict["sound"] = sound! + } + if(action != nil) { + dict["action"] = action! + } + if(url != nil) { + dict["url"] = url! + } + if(mailTemplate != nil) { + dict["mailTemplate"] = mailTemplate! + } + if(mailSubject != nil) { + dict["mailSubject"] = mailSubject! + } + if(ratioId != nil) { + dict["ratioId"] = ratioId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Meta.swift b/KalturaClient/Classes/Model/Objects/Meta.swift new file mode 100644 index 000000000..34b5079ce --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Meta.swift @@ -0,0 +1,255 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset meta */ +open class Meta: ObjectBase { + + public class MetaTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var multilingualName: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multilingualName")) + } + } + + public var systemName: BaseTokenizedObject { + get { + return self.append("systemName") + } + } + + public var dataType: BaseTokenizedObject { + get { + return self.append("dataType") + } + } + + public var multipleValue: BaseTokenizedObject { + get { + return self.append("multipleValue") + } + } + + public var isProtected: BaseTokenizedObject { + get { + return self.append("isProtected") + } + } + + public var helpText: BaseTokenizedObject { + get { + return self.append("helpText") + } + } + + public var features: BaseTokenizedObject { + get { + return self.append("features") + } + } + + public var parentId: BaseTokenizedObject { + get { + return self.append("parentId") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + } + + /** Meta id */ + public var id: String? = nil + /** Meta name for the partner */ + public var name: String? = nil + /** Meta name for the partner */ + public var multilingualName: Array? = nil + /** Meta system name for the partner */ + public var systemName: String? = nil + /** Meta data type */ + public var dataType: MetaDataType? = nil + /** Does the meta contain multiple values */ + public var multipleValue: Bool? = nil + /** Is the meta protected by the system */ + public var isProtected: Bool? = nil + /** The help text of the meta to be displayed on the UI. */ + public var helpText: String? = nil + /** List of supported features */ + public var features: String? = nil + /** Parent meta id */ + public var parentId: String? = nil + /** Specifies when was the meta created. Date and time represented as epoch. */ + public var createDate: Int64? = nil + /** Specifies when was the meta last updated. Date and time represented as epoch. */ + public var updateDate: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(systemName: String) { + self.dict["systemName"] = systemName + } + + public func setMultiRequestToken(dataType: String) { + self.dict["dataType"] = dataType + } + + public func setMultiRequestToken(multipleValue: String) { + self.dict["multipleValue"] = multipleValue + } + + public func setMultiRequestToken(isProtected: String) { + self.dict["isProtected"] = isProtected + } + + public func setMultiRequestToken(helpText: String) { + self.dict["helpText"] = helpText + } + + public func setMultiRequestToken(features: String) { + self.dict["features"] = features + } + + public func setMultiRequestToken(parentId: String) { + self.dict["parentId"] = parentId + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["multilingualName"] != nil { + multilingualName = try JSONParser.parse(array: dict["multilingualName"] as! [Any]) + } + if dict["systemName"] != nil { + systemName = dict["systemName"] as? String + } + if dict["dataType"] != nil { + dataType = MetaDataType(rawValue: "\(dict["dataType"]!)") + } + if dict["multipleValue"] != nil { + multipleValue = dict["multipleValue"] as? Bool + } + if dict["isProtected"] != nil { + isProtected = dict["isProtected"] as? Bool + } + if dict["helpText"] != nil { + helpText = dict["helpText"] as? String + } + if dict["features"] != nil { + features = dict["features"] as? String + } + if dict["parentId"] != nil { + parentId = dict["parentId"] as? String + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(multilingualName != nil) { + dict["multilingualName"] = multilingualName!.map { value in value.toDictionary() } + } + if(systemName != nil) { + dict["systemName"] = systemName! + } + if(dataType != nil) { + dict["dataType"] = dataType!.rawValue + } + if(multipleValue != nil) { + dict["multipleValue"] = multipleValue! + } + if(isProtected != nil) { + dict["isProtected"] = isProtected! + } + if(helpText != nil) { + dict["helpText"] = helpText! + } + if(features != nil) { + dict["features"] = features! + } + if(parentId != nil) { + dict["parentId"] = parentId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MetaFilter.swift b/KalturaClient/Classes/Model/Objects/MetaFilter.swift new file mode 100644 index 000000000..c4023c5e7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MetaFilter.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Meta filter */ +open class MetaFilter: Filter { + + public class MetaFilterTokenizer: Filter.FilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + + public var assetStructIdEqual: BaseTokenizedObject { + get { + return self.append("assetStructIdEqual") + } + } + + public var dataTypeEqual: BaseTokenizedObject { + get { + return self.append("dataTypeEqual") + } + } + + public var multipleValueEqual: BaseTokenizedObject { + get { + return self.append("multipleValueEqual") + } + } + } + + /** Comma separated identifiers */ + public var idIn: String? = nil + /** Filter Metas that are contained in a specific asset struct */ + public var assetStructIdEqual: Int64? = nil + /** Meta data type to filter by */ + public var dataTypeEqual: MetaDataType? = nil + /** Filter metas by multipleValueEqual value */ + public var multipleValueEqual: Bool? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public func setMultiRequestToken(assetStructIdEqual: String) { + self.dict["assetStructIdEqual"] = assetStructIdEqual + } + + public func setMultiRequestToken(dataTypeEqual: String) { + self.dict["dataTypeEqual"] = dataTypeEqual + } + + public func setMultiRequestToken(multipleValueEqual: String) { + self.dict["multipleValueEqual"] = multipleValueEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + if dict["assetStructIdEqual"] != nil { + assetStructIdEqual = Int64("\(dict["assetStructIdEqual"]!)") + } + if dict["dataTypeEqual"] != nil { + dataTypeEqual = MetaDataType(rawValue: "\(dict["dataTypeEqual"]!)") + } + if dict["multipleValueEqual"] != nil { + multipleValueEqual = dict["multipleValueEqual"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + if(assetStructIdEqual != nil) { + dict["assetStructIdEqual"] = assetStructIdEqual! + } + if(dataTypeEqual != nil) { + dict["dataTypeEqual"] = dataTypeEqual!.rawValue + } + if(multipleValueEqual != nil) { + dict["multipleValueEqual"] = multipleValueEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MetaListResponse.swift b/KalturaClient/Classes/Model/Objects/MetaListResponse.swift new file mode 100644 index 000000000..a01f8dd8b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MetaListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Meta list response */ +open class MetaListResponse: ListResponse { + + public class MetaListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list asset meta */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MonetizationCondition.swift b/KalturaClient/Classes/Model/Objects/MonetizationCondition.swift new file mode 100644 index 000000000..d2a8f82ee --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MonetizationCondition.swift @@ -0,0 +1,164 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Defines a condition which is essentially a combination of several + monetization-based actions, each has their own score multiplier */ +open class MonetizationCondition: BaseSegmentCondition { + + public class MonetizationConditionTokenizer: BaseSegmentCondition.BaseSegmentConditionTokenizer { + + public var minValue: BaseTokenizedObject { + get { + return self.append("minValue") + } + } + + public var maxValue: BaseTokenizedObject { + get { + return self.append("maxValue") + } + } + + public var days: BaseTokenizedObject { + get { + return self.append("days") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var operator_: BaseTokenizedObject { + get { + return self.append("operator_") + } + } + + public var businessModuleIdIn: BaseTokenizedObject { + get { + return self.append("businessModuleIdIn") + } + } + } + + /** The minimum value to be met */ + public var minValue: Int? = nil + /** The maximum value to be met */ + public var maxValue: Int? = nil + /** How many days back should the actions be considered */ + public var days: Int? = nil + /** Purchase type */ + public var type: MonetizationType? = nil + /** Mathermtical operator to calculate */ + public var operator_: MathemticalOperatorType? = nil + /** Comma saperated list of business module IDs */ + public var businessModuleIdIn: String? = nil + + + public func setMultiRequestToken(minValue: String) { + self.dict["minValue"] = minValue + } + + public func setMultiRequestToken(maxValue: String) { + self.dict["maxValue"] = maxValue + } + + public func setMultiRequestToken(days: String) { + self.dict["days"] = days + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(operator_: String) { + self.dict["operator"] = operator_ + } + + public func setMultiRequestToken(businessModuleIdIn: String) { + self.dict["businessModuleIdIn"] = businessModuleIdIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["minValue"] != nil { + minValue = dict["minValue"] as? Int + } + if dict["maxValue"] != nil { + maxValue = dict["maxValue"] as? Int + } + if dict["days"] != nil { + days = dict["days"] as? Int + } + if dict["type"] != nil { + type = MonetizationType(rawValue: "\(dict["type"]!)") + } + if dict["operator"] != nil { + operator_ = MathemticalOperatorType(rawValue: "\(dict["operator"]!)") + } + if dict["businessModuleIdIn"] != nil { + businessModuleIdIn = dict["businessModuleIdIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(minValue != nil) { + dict["minValue"] = minValue! + } + if(maxValue != nil) { + dict["maxValue"] = maxValue! + } + if(days != nil) { + dict["days"] = days! + } + if(type != nil) { + dict["type"] = type!.rawValue + } + if(operator_ != nil) { + dict["operator"] = operator_!.rawValue + } + if(businessModuleIdIn != nil) { + dict["businessModuleIdIn"] = businessModuleIdIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MonetizationSource.swift b/KalturaClient/Classes/Model/Objects/MonetizationSource.swift new file mode 100644 index 000000000..488b30b93 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MonetizationSource.swift @@ -0,0 +1,109 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Monetization based source (purchases etc.) */ +open class MonetizationSource: SegmentSource { + + public class MonetizationSourceTokenizer: SegmentSource.SegmentSourceTokenizer { + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var operator_: BaseTokenizedObject { + get { + return self.append("operator_") + } + } + + public var days: BaseTokenizedObject { + get { + return self.append("days") + } + } + } + + /** Purchase type */ + public var type: MonetizationType? = nil + /** Mathermtical operator to calculate */ + public var operator_: MathemticalOperatorType? = nil + /** Days to consider when checking the users' purchaes */ + public var days: Int? = nil + + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(operator_: String) { + self.dict["operator"] = operator_ + } + + public func setMultiRequestToken(days: String) { + self.dict["days"] = days + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["type"] != nil { + type = MonetizationType(rawValue: "\(dict["type"]!)") + } + if dict["operator"] != nil { + operator_ = MathemticalOperatorType(rawValue: "\(dict["operator"]!)") + } + if dict["days"] != nil { + days = dict["days"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(type != nil) { + dict["type"] = type!.rawValue + } + if(operator_ != nil) { + dict["operator"] = operator_!.rawValue + } + if(days != nil) { + dict["days"] = days! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MultilingualStringValue.swift b/KalturaClient/Classes/Model/Objects/MultilingualStringValue.swift new file mode 100644 index 000000000..d0ccc7e40 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MultilingualStringValue.swift @@ -0,0 +1,84 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Array of translated strings */ +open class MultilingualStringValue: Value { + + public class MultilingualStringValueTokenizer: Value.ValueTokenizer { + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + + public var multilingualValue: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multilingualValue")) + } + } + } + + /** Value */ + public var value: String? = nil + /** Value */ + public var multilingualValue: Array? = nil + + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["value"] != nil { + value = dict["value"] as? String + } + if dict["multilingualValue"] != nil { + multilingualValue = try JSONParser.parse(array: dict["multilingualValue"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(multilingualValue != nil) { + dict["multilingualValue"] = multilingualValue!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/MultilingualStringValueArray.swift b/KalturaClient/Classes/Model/Objects/MultilingualStringValueArray.swift new file mode 100644 index 000000000..78fcbea00 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/MultilingualStringValueArray.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Array of translated strings */ +open class MultilingualStringValueArray: ObjectBase { + + public class MultilingualStringValueArrayTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** List of string values */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/NetworkActionStatus.swift b/KalturaClient/Classes/Model/Objects/NetworkActionStatus.swift new file mode 100644 index 000000000..c338ac1af --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/NetworkActionStatus.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class NetworkActionStatus: ObjectBase { + + public class NetworkActionStatusTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var network: BaseTokenizedObject { + get { + return self.append("network") + } + } + } + + /** Status */ + public var status: SocialStatus? = nil + /** Social network */ + public var network: SocialNetwork? = nil + + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(network: String) { + self.dict["network"] = network + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["status"] != nil { + status = SocialStatus(rawValue: "\(dict["status"]!)") + } + if dict["network"] != nil { + network = SocialNetwork(rawValue: "\(dict["network"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(status != nil) { + dict["status"] = status!.rawValue + } + if(network != nil) { + dict["network"] = network!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/NotCondition.swift b/KalturaClient/Classes/Model/Objects/NotCondition.swift new file mode 100644 index 000000000..2a95c002f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/NotCondition.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Not condition */ +open class NotCondition: Condition { + + public class NotConditionTokenizer: Condition.ConditionTokenizer { + + public var not: BaseTokenizedObject { + get { + return self.append("not") + } + } + } + + /** Indicates whether to apply not on the other properties in the condition */ + public var not: Bool? = nil + + + public func setMultiRequestToken(not: String) { + self.dict["not"] = not + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["not"] != nil { + not = dict["not"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(not != nil) { + dict["not"] = not! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/NotificationsPartnerSettings.swift b/KalturaClient/Classes/Model/Objects/NotificationsPartnerSettings.swift new file mode 100644 index 000000000..84f1afae1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/NotificationsPartnerSettings.swift @@ -0,0 +1,378 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class NotificationsPartnerSettings: ObjectBase { + + public class NotificationsPartnerSettingsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var pushNotificationEnabled: BaseTokenizedObject { + get { + return self.append("pushNotificationEnabled") + } + } + + public var pushSystemAnnouncementsEnabled: BaseTokenizedObject { + get { + return self.append("pushSystemAnnouncementsEnabled") + } + } + + public var pushStartHour: BaseTokenizedObject { + get { + return self.append("pushStartHour") + } + } + + public var pushEndHour: BaseTokenizedObject { + get { + return self.append("pushEndHour") + } + } + + public var inboxEnabled: BaseTokenizedObject { + get { + return self.append("inboxEnabled") + } + } + + public var messageTTLDays: BaseTokenizedObject { + get { + return self.append("messageTTLDays") + } + } + + public var automaticIssueFollowNotification: BaseTokenizedObject { + get { + return self.append("automaticIssueFollowNotification") + } + } + + public var topicExpirationDurationDays: BaseTokenizedObject { + get { + return self.append("topicExpirationDurationDays") + } + } + + public var reminderEnabled: BaseTokenizedObject { + get { + return self.append("reminderEnabled") + } + } + + public var reminderOffsetSec: BaseTokenizedObject { + get { + return self.append("reminderOffsetSec") + } + } + + public var pushAdapterUrl: BaseTokenizedObject { + get { + return self.append("pushAdapterUrl") + } + } + + public var churnMailTemplateName: BaseTokenizedObject { + get { + return self.append("churnMailTemplateName") + } + } + + public var churnMailSubject: BaseTokenizedObject { + get { + return self.append("churnMailSubject") + } + } + + public var senderEmail: BaseTokenizedObject { + get { + return self.append("senderEmail") + } + } + + public var mailSenderName: BaseTokenizedObject { + get { + return self.append("mailSenderName") + } + } + + public var mailNotificationAdapterId: BaseTokenizedObject { + get { + return self.append("mailNotificationAdapterId") + } + } + + public var smsEnabled: BaseTokenizedObject { + get { + return self.append("smsEnabled") + } + } + + public var iotEnabled: BaseTokenizedObject { + get { + return self.append("iotEnabled") + } + } + } + + /** Push notification capability is enabled for the account */ + public var pushNotificationEnabled: Bool? = nil + /** System announcement capability is enabled for the account */ + public var pushSystemAnnouncementsEnabled: Bool? = nil + /** Window start time (UTC) for send automated push messages */ + public var pushStartHour: Int? = nil + /** Window end time (UTC) for send automated push messages */ + public var pushEndHour: Int? = nil + /** Inbox enabled */ + public var inboxEnabled: Bool? = nil + /** Message TTL in days */ + public var messageTTLDays: Int? = nil + /** Automatic issue follow notification */ + public var automaticIssueFollowNotification: Bool? = nil + /** Topic expiration duration in days */ + public var topicExpirationDurationDays: Int? = nil + /** Reminder enabled */ + public var reminderEnabled: Bool? = nil + /** Offset time (UTC) in seconds for send reminder */ + public var reminderOffsetSec: Int? = nil + /** Push adapter URL */ + public var pushAdapterUrl: String? = nil + /** Churn mail template name */ + public var churnMailTemplateName: String? = nil + /** Churn mail subject */ + public var churnMailSubject: String? = nil + /** Sender email */ + public var senderEmail: String? = nil + /** Mail sender name */ + public var mailSenderName: String? = nil + /** Mail notification adapter identifier */ + public var mailNotificationAdapterId: Int64? = nil + /** SMS capability is enabled for the account */ + public var smsEnabled: Bool? = nil + /** IOT capability is enabled for the account */ + public var iotEnabled: Bool? = nil + + + public func setMultiRequestToken(pushNotificationEnabled: String) { + self.dict["pushNotificationEnabled"] = pushNotificationEnabled + } + + public func setMultiRequestToken(pushSystemAnnouncementsEnabled: String) { + self.dict["pushSystemAnnouncementsEnabled"] = pushSystemAnnouncementsEnabled + } + + public func setMultiRequestToken(pushStartHour: String) { + self.dict["pushStartHour"] = pushStartHour + } + + public func setMultiRequestToken(pushEndHour: String) { + self.dict["pushEndHour"] = pushEndHour + } + + public func setMultiRequestToken(inboxEnabled: String) { + self.dict["inboxEnabled"] = inboxEnabled + } + + public func setMultiRequestToken(messageTTLDays: String) { + self.dict["messageTTLDays"] = messageTTLDays + } + + public func setMultiRequestToken(automaticIssueFollowNotification: String) { + self.dict["automaticIssueFollowNotification"] = automaticIssueFollowNotification + } + + public func setMultiRequestToken(topicExpirationDurationDays: String) { + self.dict["topicExpirationDurationDays"] = topicExpirationDurationDays + } + + public func setMultiRequestToken(reminderEnabled: String) { + self.dict["reminderEnabled"] = reminderEnabled + } + + public func setMultiRequestToken(reminderOffsetSec: String) { + self.dict["reminderOffsetSec"] = reminderOffsetSec + } + + public func setMultiRequestToken(pushAdapterUrl: String) { + self.dict["pushAdapterUrl"] = pushAdapterUrl + } + + public func setMultiRequestToken(churnMailTemplateName: String) { + self.dict["churnMailTemplateName"] = churnMailTemplateName + } + + public func setMultiRequestToken(churnMailSubject: String) { + self.dict["churnMailSubject"] = churnMailSubject + } + + public func setMultiRequestToken(senderEmail: String) { + self.dict["senderEmail"] = senderEmail + } + + public func setMultiRequestToken(mailSenderName: String) { + self.dict["mailSenderName"] = mailSenderName + } + + public func setMultiRequestToken(mailNotificationAdapterId: String) { + self.dict["mailNotificationAdapterId"] = mailNotificationAdapterId + } + + public func setMultiRequestToken(smsEnabled: String) { + self.dict["smsEnabled"] = smsEnabled + } + + public func setMultiRequestToken(iotEnabled: String) { + self.dict["iotEnabled"] = iotEnabled + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["pushNotificationEnabled"] != nil { + pushNotificationEnabled = dict["pushNotificationEnabled"] as? Bool + } + if dict["pushSystemAnnouncementsEnabled"] != nil { + pushSystemAnnouncementsEnabled = dict["pushSystemAnnouncementsEnabled"] as? Bool + } + if dict["pushStartHour"] != nil { + pushStartHour = dict["pushStartHour"] as? Int + } + if dict["pushEndHour"] != nil { + pushEndHour = dict["pushEndHour"] as? Int + } + if dict["inboxEnabled"] != nil { + inboxEnabled = dict["inboxEnabled"] as? Bool + } + if dict["messageTTLDays"] != nil { + messageTTLDays = dict["messageTTLDays"] as? Int + } + if dict["automaticIssueFollowNotification"] != nil { + automaticIssueFollowNotification = dict["automaticIssueFollowNotification"] as? Bool + } + if dict["topicExpirationDurationDays"] != nil { + topicExpirationDurationDays = dict["topicExpirationDurationDays"] as? Int + } + if dict["reminderEnabled"] != nil { + reminderEnabled = dict["reminderEnabled"] as? Bool + } + if dict["reminderOffsetSec"] != nil { + reminderOffsetSec = dict["reminderOffsetSec"] as? Int + } + if dict["pushAdapterUrl"] != nil { + pushAdapterUrl = dict["pushAdapterUrl"] as? String + } + if dict["churnMailTemplateName"] != nil { + churnMailTemplateName = dict["churnMailTemplateName"] as? String + } + if dict["churnMailSubject"] != nil { + churnMailSubject = dict["churnMailSubject"] as? String + } + if dict["senderEmail"] != nil { + senderEmail = dict["senderEmail"] as? String + } + if dict["mailSenderName"] != nil { + mailSenderName = dict["mailSenderName"] as? String + } + if dict["mailNotificationAdapterId"] != nil { + mailNotificationAdapterId = Int64("\(dict["mailNotificationAdapterId"]!)") + } + if dict["smsEnabled"] != nil { + smsEnabled = dict["smsEnabled"] as? Bool + } + if dict["iotEnabled"] != nil { + iotEnabled = dict["iotEnabled"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(pushNotificationEnabled != nil) { + dict["pushNotificationEnabled"] = pushNotificationEnabled! + } + if(pushSystemAnnouncementsEnabled != nil) { + dict["pushSystemAnnouncementsEnabled"] = pushSystemAnnouncementsEnabled! + } + if(pushStartHour != nil) { + dict["pushStartHour"] = pushStartHour! + } + if(pushEndHour != nil) { + dict["pushEndHour"] = pushEndHour! + } + if(inboxEnabled != nil) { + dict["inboxEnabled"] = inboxEnabled! + } + if(messageTTLDays != nil) { + dict["messageTTLDays"] = messageTTLDays! + } + if(automaticIssueFollowNotification != nil) { + dict["automaticIssueFollowNotification"] = automaticIssueFollowNotification! + } + if(topicExpirationDurationDays != nil) { + dict["topicExpirationDurationDays"] = topicExpirationDurationDays! + } + if(reminderEnabled != nil) { + dict["reminderEnabled"] = reminderEnabled! + } + if(reminderOffsetSec != nil) { + dict["reminderOffsetSec"] = reminderOffsetSec! + } + if(pushAdapterUrl != nil) { + dict["pushAdapterUrl"] = pushAdapterUrl! + } + if(churnMailTemplateName != nil) { + dict["churnMailTemplateName"] = churnMailTemplateName! + } + if(churnMailSubject != nil) { + dict["churnMailSubject"] = churnMailSubject! + } + if(senderEmail != nil) { + dict["senderEmail"] = senderEmail! + } + if(mailSenderName != nil) { + dict["mailSenderName"] = mailSenderName! + } + if(mailNotificationAdapterId != nil) { + dict["mailNotificationAdapterId"] = mailNotificationAdapterId! + } + if(smsEnabled != nil) { + dict["smsEnabled"] = smsEnabled! + } + if(iotEnabled != nil) { + dict["iotEnabled"] = iotEnabled! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/NotificationsSettings.swift b/KalturaClient/Classes/Model/Objects/NotificationsSettings.swift new file mode 100644 index 000000000..67c2120d5 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/NotificationsSettings.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class NotificationsSettings: ObjectBase { + + public class NotificationsSettingsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var pushNotificationEnabled: BaseTokenizedObject { + get { + return self.append("pushNotificationEnabled") + } + } + + public var pushFollowEnabled: BaseTokenizedObject { + get { + return self.append("pushFollowEnabled") + } + } + + public var mailEnabled: BaseTokenizedObject { + get { + return self.append("mailEnabled") + } + } + + public var smsEnabled: BaseTokenizedObject { + get { + return self.append("smsEnabled") + } + } + } + + /** Specify if the user want to receive push notifications or not */ + public var pushNotificationEnabled: Bool? = nil + /** Specify if the user will be notified for followed content via push. (requires + push_notification_enabled to be enabled) */ + public var pushFollowEnabled: Bool? = nil + /** Specify if the user wants to receive mail notifications or not */ + public var mailEnabled: Bool? = nil + /** Specify if the user wants to receive SMS notifications or not */ + public var smsEnabled: Bool? = nil + + + public func setMultiRequestToken(pushNotificationEnabled: String) { + self.dict["pushNotificationEnabled"] = pushNotificationEnabled + } + + public func setMultiRequestToken(pushFollowEnabled: String) { + self.dict["pushFollowEnabled"] = pushFollowEnabled + } + + public func setMultiRequestToken(mailEnabled: String) { + self.dict["mailEnabled"] = mailEnabled + } + + public func setMultiRequestToken(smsEnabled: String) { + self.dict["smsEnabled"] = smsEnabled + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["pushNotificationEnabled"] != nil { + pushNotificationEnabled = dict["pushNotificationEnabled"] as? Bool + } + if dict["pushFollowEnabled"] != nil { + pushFollowEnabled = dict["pushFollowEnabled"] as? Bool + } + if dict["mailEnabled"] != nil { + mailEnabled = dict["mailEnabled"] as? Bool + } + if dict["smsEnabled"] != nil { + smsEnabled = dict["smsEnabled"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(pushNotificationEnabled != nil) { + dict["pushNotificationEnabled"] = pushNotificationEnabled! + } + if(pushFollowEnabled != nil) { + dict["pushFollowEnabled"] = pushFollowEnabled! + } + if(mailEnabled != nil) { + dict["mailEnabled"] = mailEnabled! + } + if(smsEnabled != nil) { + dict["smsEnabled"] = smsEnabled! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/NpvrPremiumService.swift b/KalturaClient/Classes/Model/Objects/NpvrPremiumService.swift new file mode 100644 index 000000000..ebefb83a5 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/NpvrPremiumService.swift @@ -0,0 +1,66 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Npvr Premium Service */ +open class NpvrPremiumService: PremiumService { + + public class NpvrPremiumServiceTokenizer: PremiumService.PremiumServiceTokenizer { + + public var quotaInMinutes: BaseTokenizedObject { + get { + return self.append("quotaInMinutes") + } + } + } + + /** Quota in minutes */ + public var quotaInMinutes: Int64? = nil + + + public func setMultiRequestToken(quotaInMinutes: String) { + self.dict["quotaInMinutes"] = quotaInMinutes + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["quotaInMinutes"] != nil { + quotaInMinutes = Int64("\(dict["quotaInMinutes"]!)") + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/OSSAdapterBaseProfile.swift b/KalturaClient/Classes/Model/Objects/OSSAdapterBaseProfile.swift new file mode 100644 index 000000000..e3a5d1bc4 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/OSSAdapterBaseProfile.swift @@ -0,0 +1,88 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** OSS adapter basic */ +open class OSSAdapterBaseProfile: ObjectBase { + + public class OSSAdapterBaseProfileTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + } + + /** OSS adapter id */ + public var id: Int? = nil + /** OSS adapter name */ + public var name: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/OSSAdapterProfile.swift b/KalturaClient/Classes/Model/Objects/OSSAdapterProfile.swift new file mode 100644 index 000000000..908ca6445 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/OSSAdapterProfile.swift @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** OSS Adapter */ +open class OSSAdapterProfile: OSSAdapterBaseProfile { + + public class OSSAdapterProfileTokenizer: OSSAdapterBaseProfile.OSSAdapterBaseProfileTokenizer { + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + + public var adapterUrl: BaseTokenizedObject { + get { + return self.append("adapterUrl") + } + } + + public var ossAdapterSettings: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("ossAdapterSettings")) + } + } + + public var externalIdentifier: BaseTokenizedObject { + get { + return self.append("externalIdentifier") + } + } + + public var sharedSecret: BaseTokenizedObject { + get { + return self.append("sharedSecret") + } + } + } + + /** OSS adapter active status */ + public var isActive: Bool? = nil + /** OSS adapter adapter URL */ + public var adapterUrl: String? = nil + /** OSS adapter extra parameters */ + public var ossAdapterSettings: Dictionary? = nil + /** OSS adapter external identifier */ + public var externalIdentifier: String? = nil + /** Shared Secret */ + public var sharedSecret: String? = nil + + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public func setMultiRequestToken(adapterUrl: String) { + self.dict["adapterUrl"] = adapterUrl + } + + public func setMultiRequestToken(externalIdentifier: String) { + self.dict["externalIdentifier"] = externalIdentifier + } + + public func setMultiRequestToken(sharedSecret: String) { + self.dict["sharedSecret"] = sharedSecret + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Bool + } + if dict["adapterUrl"] != nil { + adapterUrl = dict["adapterUrl"] as? String + } + if dict["ossAdapterSettings"] != nil { + ossAdapterSettings = try JSONParser.parse(map: dict["ossAdapterSettings"] as! [String: Any]) + } + if dict["externalIdentifier"] != nil { + externalIdentifier = dict["externalIdentifier"] as? String + } + if dict["sharedSecret"] != nil { + sharedSecret = dict["sharedSecret"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(isActive != nil) { + dict["isActive"] = isActive! + } + if(adapterUrl != nil) { + dict["adapterUrl"] = adapterUrl! + } + if(ossAdapterSettings != nil) { + dict["ossAdapterSettings"] = ossAdapterSettings!.toDictionary() + } + if(externalIdentifier != nil) { + dict["externalIdentifier"] = externalIdentifier! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/OSSAdapterProfileListResponse.swift b/KalturaClient/Classes/Model/Objects/OSSAdapterProfileListResponse.swift new file mode 100644 index 000000000..fa7229aa2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/OSSAdapterProfileListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** OSS adapter-profiles list */ +open class OSSAdapterProfileListResponse: ListResponse { + + public class OSSAdapterProfileListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of OSS adapter-profiles */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/OTTCategory.swift b/KalturaClient/Classes/Model/Objects/OTTCategory.swift new file mode 100644 index 000000000..73b027e7a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/OTTCategory.swift @@ -0,0 +1,148 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Category details */ +open class OTTCategory: ObjectBase { + + public class OTTCategoryTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var parentCategoryId: BaseTokenizedObject { + get { + return self.append("parentCategoryId") + } + } + + public var childCategories: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("childCategories")) + } + } + + public var channels: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("channels")) + } + } + + public var images: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("images")) + } + } + } + + /** Unique identifier for the category */ + public var id: Int64? = nil + /** Category name */ + public var name: String? = nil + /** Category parent identifier */ + public var parentCategoryId: Int64? = nil + /** Child categories */ + public var childCategories: Array? = nil + /** Category channels */ + public var channels: Array? = nil + /** Category images */ + public var images: Array? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(parentCategoryId: String) { + self.dict["parentCategoryId"] = parentCategoryId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["parentCategoryId"] != nil { + parentCategoryId = Int64("\(dict["parentCategoryId"]!)") + } + if dict["childCategories"] != nil { + childCategories = try JSONParser.parse(array: dict["childCategories"] as! [Any]) + } + if dict["channels"] != nil { + channels = try JSONParser.parse(array: dict["channels"] as! [Any]) + } + if dict["images"] != nil { + images = try JSONParser.parse(array: dict["images"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(parentCategoryId != nil) { + dict["parentCategoryId"] = parentCategoryId! + } + if(childCategories != nil) { + dict["childCategories"] = childCategories!.map { value in value.toDictionary() } + } + if(channels != nil) { + dict["channels"] = channels!.map { value in value.toDictionary() } + } + if(images != nil) { + dict["images"] = images!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/OTTObjectSupportNullable.swift b/KalturaClient/Classes/Model/Objects/OTTObjectSupportNullable.swift new file mode 100644 index 000000000..8da93c2cd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/OTTObjectSupportNullable.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class OTTObjectSupportNullable: ObjectBase { + + public class OTTObjectSupportNullableTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/OTTUser.swift b/KalturaClient/Classes/Model/Objects/OTTUser.swift new file mode 100644 index 000000000..45de9e174 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/OTTUser.swift @@ -0,0 +1,362 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** User */ +open class OTTUser: BaseOTTUser { + + public class OTTUserTokenizer: BaseOTTUser.BaseOTTUserTokenizer { + + public var householdId: BaseTokenizedObject { + get { + return self.append("householdId") + } + } + + public var email: BaseTokenizedObject { + get { + return self.append("email") + } + } + + public var address: BaseTokenizedObject { + get { + return self.append("address") + } + } + + public var city: BaseTokenizedObject { + get { + return self.append("city") + } + } + + public var countryId: BaseTokenizedObject { + get { + return self.append("countryId") + } + } + + public var zip: BaseTokenizedObject { + get { + return self.append("zip") + } + } + + public var phone: BaseTokenizedObject { + get { + return self.append("phone") + } + } + + public var affiliateCode: BaseTokenizedObject { + get { + return self.append("affiliateCode") + } + } + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + + public func userType() -> T { + return T(self.append("userType")) + } + + public var dynamicData: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("dynamicData")) + } + } + + public var isHouseholdMaster: BaseTokenizedObject { + get { + return self.append("isHouseholdMaster") + } + } + + public var suspensionState: BaseTokenizedObject { + get { + return self.append("suspensionState") + } + } + + public var userState: BaseTokenizedObject { + get { + return self.append("userState") + } + } + + public var roleIds: BaseTokenizedObject { + get { + return self.append("roleIds") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + + public var lastLoginDate: BaseTokenizedObject { + get { + return self.append("lastLoginDate") + } + } + + public var failedLoginCount: BaseTokenizedObject { + get { + return self.append("failedLoginCount") + } + } + } + + /** Household identifier */ + public var householdId: Int? = nil + /** Email */ + public var email: String? = nil + /** Address */ + public var address: String? = nil + /** City */ + public var city: String? = nil + /** Country identifier */ + public var countryId: Int? = nil + /** Zip code */ + public var zip: String? = nil + /** Phone */ + public var phone: String? = nil + /** Affiliate code */ + public var affiliateCode: String? = nil + /** External user identifier */ + public var externalId: String? = nil + /** User type */ + public var userType: OTTUserType? = nil + /** Dynamic data */ + public var dynamicData: Dictionary? = nil + /** Is the user the household master */ + public var isHouseholdMaster: Bool? = nil + /** Suspension state */ + public var suspensionState: HouseholdSuspensionState? = nil + /** User state */ + public var userState: UserState? = nil + /** Comma separated list of role Ids. */ + public var roleIds: String? = nil + /** User create date */ + public var createDate: Int64? = nil + /** User last update date */ + public var updateDate: Int64? = nil + /** The date of the last successful login */ + public var lastLoginDate: Int64? = nil + /** The number of failed login attempts since the last successful login */ + public var failedLoginCount: Int? = nil + + + public func setMultiRequestToken(householdId: String) { + self.dict["householdId"] = householdId + } + + public func setMultiRequestToken(email: String) { + self.dict["email"] = email + } + + public func setMultiRequestToken(address: String) { + self.dict["address"] = address + } + + public func setMultiRequestToken(city: String) { + self.dict["city"] = city + } + + public func setMultiRequestToken(countryId: String) { + self.dict["countryId"] = countryId + } + + public func setMultiRequestToken(zip: String) { + self.dict["zip"] = zip + } + + public func setMultiRequestToken(phone: String) { + self.dict["phone"] = phone + } + + public func setMultiRequestToken(affiliateCode: String) { + self.dict["affiliateCode"] = affiliateCode + } + + public func setMultiRequestToken(externalId: String) { + self.dict["externalId"] = externalId + } + + public func setMultiRequestToken(isHouseholdMaster: String) { + self.dict["isHouseholdMaster"] = isHouseholdMaster + } + + public func setMultiRequestToken(suspensionState: String) { + self.dict["suspensionState"] = suspensionState + } + + public func setMultiRequestToken(userState: String) { + self.dict["userState"] = userState + } + + public func setMultiRequestToken(roleIds: String) { + self.dict["roleIds"] = roleIds + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public func setMultiRequestToken(lastLoginDate: String) { + self.dict["lastLoginDate"] = lastLoginDate + } + + public func setMultiRequestToken(failedLoginCount: String) { + self.dict["failedLoginCount"] = failedLoginCount + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["householdId"] != nil { + householdId = dict["householdId"] as? Int + } + if dict["email"] != nil { + email = dict["email"] as? String + } + if dict["address"] != nil { + address = dict["address"] as? String + } + if dict["city"] != nil { + city = dict["city"] as? String + } + if dict["countryId"] != nil { + countryId = dict["countryId"] as? Int + } + if dict["zip"] != nil { + zip = dict["zip"] as? String + } + if dict["phone"] != nil { + phone = dict["phone"] as? String + } + if dict["affiliateCode"] != nil { + affiliateCode = dict["affiliateCode"] as? String + } + if dict["externalId"] != nil { + externalId = dict["externalId"] as? String + } + if dict["userType"] != nil { + userType = try JSONParser.parse(object: dict["userType"] as! [String: Any]) } + if dict["dynamicData"] != nil { + dynamicData = try JSONParser.parse(map: dict["dynamicData"] as! [String: Any]) + } + if dict["isHouseholdMaster"] != nil { + isHouseholdMaster = dict["isHouseholdMaster"] as? Bool + } + if dict["suspensionState"] != nil { + suspensionState = HouseholdSuspensionState(rawValue: "\(dict["suspensionState"]!)") + } + if dict["userState"] != nil { + userState = UserState(rawValue: "\(dict["userState"]!)") + } + if dict["roleIds"] != nil { + roleIds = dict["roleIds"] as? String + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + if dict["lastLoginDate"] != nil { + lastLoginDate = Int64("\(dict["lastLoginDate"]!)") + } + if dict["failedLoginCount"] != nil { + failedLoginCount = dict["failedLoginCount"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(email != nil) { + dict["email"] = email! + } + if(address != nil) { + dict["address"] = address! + } + if(city != nil) { + dict["city"] = city! + } + if(countryId != nil) { + dict["countryId"] = countryId! + } + if(zip != nil) { + dict["zip"] = zip! + } + if(phone != nil) { + dict["phone"] = phone! + } + if(affiliateCode != nil) { + dict["affiliateCode"] = affiliateCode! + } + if(externalId != nil) { + dict["externalId"] = externalId! + } + if(userType != nil) { + dict["userType"] = userType!.toDictionary() + } + if(dynamicData != nil) { + dict["dynamicData"] = dynamicData!.toDictionary() + } + if(roleIds != nil) { + dict["roleIds"] = roleIds! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/OTTUserDynamicData.swift b/KalturaClient/Classes/Model/Objects/OTTUserDynamicData.swift new file mode 100644 index 000000000..360b4f48c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/OTTUserDynamicData.swift @@ -0,0 +1,99 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** User dynamic data */ +open class OTTUserDynamicData: ObjectBase { + + public class OTTUserDynamicDataTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + + public var key: BaseTokenizedObject { + get { + return self.append("key") + } + } + + public func value() -> T { + return T(self.append("value")) + } + } + + /** User identifier */ + public var userId: String? = nil + /** Key */ + public var key: String? = nil + /** Value */ + public var value: StringValue? = nil + + + public func setMultiRequestToken(userId: String) { + self.dict["userId"] = userId + } + + public func setMultiRequestToken(key: String) { + self.dict["key"] = key + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["userId"] != nil { + userId = dict["userId"] as? String + } + if dict["key"] != nil { + key = dict["key"] as? String + } + if dict["value"] != nil { + value = try JSONParser.parse(object: dict["value"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(key != nil) { + dict["key"] = key! + } + if(value != nil) { + dict["value"] = value!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/OTTUserFilter.swift b/KalturaClient/Classes/Model/Objects/OTTUserFilter.swift new file mode 100644 index 000000000..e0b1f05f0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/OTTUserFilter.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** OTT User filter */ +open class OTTUserFilter: Filter { + + public class OTTUserFilterTokenizer: Filter.FilterTokenizer { + + public var usernameEqual: BaseTokenizedObject { + get { + return self.append("usernameEqual") + } + } + + public var externalIdEqual: BaseTokenizedObject { + get { + return self.append("externalIdEqual") + } + } + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + + public var roleIdsIn: BaseTokenizedObject { + get { + return self.append("roleIdsIn") + } + } + } + + /** Username */ + public var usernameEqual: String? = nil + /** User external identifier */ + public var externalIdEqual: String? = nil + /** List of user identifiers separated by ',' */ + public var idIn: String? = nil + /** Comma separated list of role Ids. */ + public var roleIdsIn: String? = nil + + + public func setMultiRequestToken(usernameEqual: String) { + self.dict["usernameEqual"] = usernameEqual + } + + public func setMultiRequestToken(externalIdEqual: String) { + self.dict["externalIdEqual"] = externalIdEqual + } + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public func setMultiRequestToken(roleIdsIn: String) { + self.dict["roleIdsIn"] = roleIdsIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["usernameEqual"] != nil { + usernameEqual = dict["usernameEqual"] as? String + } + if dict["externalIdEqual"] != nil { + externalIdEqual = dict["externalIdEqual"] as? String + } + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + if dict["roleIdsIn"] != nil { + roleIdsIn = dict["roleIdsIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(usernameEqual != nil) { + dict["usernameEqual"] = usernameEqual! + } + if(externalIdEqual != nil) { + dict["externalIdEqual"] = externalIdEqual! + } + if(idIn != nil) { + dict["idIn"] = idIn! + } + if(roleIdsIn != nil) { + dict["roleIdsIn"] = roleIdsIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/OTTUserListResponse.swift b/KalturaClient/Classes/Model/Objects/OTTUserListResponse.swift new file mode 100644 index 000000000..175247c8a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/OTTUserListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Users list */ +open class OTTUserListResponse: ListResponse { + + public class OTTUserListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of users */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/OTTUserType.swift b/KalturaClient/Classes/Model/Objects/OTTUserType.swift new file mode 100644 index 000000000..6d85030b5 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/OTTUserType.swift @@ -0,0 +1,88 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** User type */ +open class OTTUserType: ObjectBase { + + public class OTTUserTypeTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + } + + /** User type identifier */ + public var id: Int? = nil + /** User type description */ + public var description: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["description"] != nil { + description = dict["description"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(description != nil) { + dict["description"] = description! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ObjectVirtualAssetInfo.swift b/KalturaClient/Classes/Model/Objects/ObjectVirtualAssetInfo.swift new file mode 100644 index 000000000..93cb2763f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ObjectVirtualAssetInfo.swift @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ObjectVirtualAssetInfo: ObjectBase { + + public class ObjectVirtualAssetInfoTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var assetStructId: BaseTokenizedObject { + get { + return self.append("assetStructId") + } + } + + public var metaId: BaseTokenizedObject { + get { + return self.append("metaId") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** Asset struct identifier */ + public var assetStructId: Int? = nil + /** Meta identifier */ + public var metaId: Int? = nil + /** Object virtual asset info type */ + public var type: ObjectVirtualAssetInfoType? = nil + + + public func setMultiRequestToken(assetStructId: String) { + self.dict["assetStructId"] = assetStructId + } + + public func setMultiRequestToken(metaId: String) { + self.dict["metaId"] = metaId + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetStructId"] != nil { + assetStructId = dict["assetStructId"] as? Int + } + if dict["metaId"] != nil { + metaId = dict["metaId"] as? Int + } + if dict["type"] != nil { + type = ObjectVirtualAssetInfoType(rawValue: "\(dict["type"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetStructId != nil) { + dict["assetStructId"] = assetStructId! + } + if(metaId != nil) { + dict["metaId"] = metaId! + } + if(type != nil) { + dict["type"] = type!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ObjectVirtualAssetPartnerConfig.swift b/KalturaClient/Classes/Model/Objects/ObjectVirtualAssetPartnerConfig.swift new file mode 100644 index 000000000..f91ed81d5 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ObjectVirtualAssetPartnerConfig.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ObjectVirtualAssetPartnerConfig: PartnerConfiguration { + + public class ObjectVirtualAssetPartnerConfigTokenizer: PartnerConfiguration.PartnerConfigurationTokenizer { + + public var objectVirtualAssets: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objectVirtualAssets")) + } + } + } + + /** List of object virtual asset info */ + public var objectVirtualAssets: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objectVirtualAssets"] != nil { + objectVirtualAssets = try JSONParser.parse(array: dict["objectVirtualAssets"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objectVirtualAssets != nil) { + dict["objectVirtualAssets"] = objectVirtualAssets!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/OrCondition.swift b/KalturaClient/Classes/Model/Objects/OrCondition.swift new file mode 100644 index 000000000..b3469ad61 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/OrCondition.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class OrCondition: NotCondition { + + public class OrConditionTokenizer: NotCondition.NotConditionTokenizer { + + public var conditions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("conditions")) + } + } + } + + /** List of conditions with or between them */ + public var conditions: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["conditions"] != nil { + conditions = try JSONParser.parse(array: dict["conditions"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(conditions != nil) { + dict["conditions"] = conditions!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ParentalRule.swift b/KalturaClient/Classes/Model/Objects/ParentalRule.swift new file mode 100644 index 000000000..8fa88b703 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ParentalRule.swift @@ -0,0 +1,304 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Parental rule */ +open class ParentalRule: ObjectBase { + + public class ParentalRuleTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + + public var order: BaseTokenizedObject { + get { + return self.append("order") + } + } + + public var mediaTag: BaseTokenizedObject { + get { + return self.append("mediaTag") + } + } + + public var epgTag: BaseTokenizedObject { + get { + return self.append("epgTag") + } + } + + public var blockAnonymousAccess: BaseTokenizedObject { + get { + return self.append("blockAnonymousAccess") + } + } + + public var ruleType: BaseTokenizedObject { + get { + return self.append("ruleType") + } + } + + public var mediaTagValues: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("mediaTagValues")) + } + } + + public var epgTagValues: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("epgTagValues")) + } + } + + public var isDefault: BaseTokenizedObject { + get { + return self.append("isDefault") + } + } + + public var origin: BaseTokenizedObject { + get { + return self.append("origin") + } + } + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + } + + /** Unique parental rule identifier */ + public var id: Int64? = nil + /** Rule display name */ + public var name: String? = nil + /** Explanatory description */ + public var description: String? = nil + /** Rule order within the full list of rules */ + public var order: Int? = nil + /** Media asset tag ID to in which to look for corresponding trigger values */ + public var mediaTag: Int? = nil + /** EPG asset tag ID to in which to look for corresponding trigger values */ + public var epgTag: Int? = nil + /** Content that correspond to this rule is not available for guests */ + public var blockAnonymousAccess: Bool? = nil + /** Rule type – Movies, TV series or both */ + public var ruleType: ParentalRuleType? = nil + /** Media tag values that trigger rule */ + public var mediaTagValues: Array? = nil + /** EPG tag values that trigger rule */ + public var epgTagValues: Array? = nil + /** Is the rule the default rule of the account */ + public var isDefault: Bool? = nil + /** Where was this rule defined account, household or user */ + public var origin: RuleLevel? = nil + /** active status */ + public var isActive: Bool? = nil + /** Specifies when was the parental rule created. Date and time represented as + epoch. */ + public var createDate: Int64? = nil + /** Specifies when was the parental rule last updated. Date and time represented as + epoch. */ + public var updateDate: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public func setMultiRequestToken(order: String) { + self.dict["order"] = order + } + + public func setMultiRequestToken(mediaTag: String) { + self.dict["mediaTag"] = mediaTag + } + + public func setMultiRequestToken(epgTag: String) { + self.dict["epgTag"] = epgTag + } + + public func setMultiRequestToken(blockAnonymousAccess: String) { + self.dict["blockAnonymousAccess"] = blockAnonymousAccess + } + + public func setMultiRequestToken(ruleType: String) { + self.dict["ruleType"] = ruleType + } + + public func setMultiRequestToken(isDefault: String) { + self.dict["isDefault"] = isDefault + } + + public func setMultiRequestToken(origin: String) { + self.dict["origin"] = origin + } + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["description"] != nil { + description = dict["description"] as? String + } + if dict["order"] != nil { + order = dict["order"] as? Int + } + if dict["mediaTag"] != nil { + mediaTag = dict["mediaTag"] as? Int + } + if dict["epgTag"] != nil { + epgTag = dict["epgTag"] as? Int + } + if dict["blockAnonymousAccess"] != nil { + blockAnonymousAccess = dict["blockAnonymousAccess"] as? Bool + } + if dict["ruleType"] != nil { + ruleType = ParentalRuleType(rawValue: "\(dict["ruleType"]!)") + } + if dict["mediaTagValues"] != nil { + mediaTagValues = try JSONParser.parse(array: dict["mediaTagValues"] as! [Any]) + } + if dict["epgTagValues"] != nil { + epgTagValues = try JSONParser.parse(array: dict["epgTagValues"] as! [Any]) + } + if dict["isDefault"] != nil { + isDefault = dict["isDefault"] as? Bool + } + if dict["origin"] != nil { + origin = RuleLevel(rawValue: "\(dict["origin"]!)") + } + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Bool + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(description != nil) { + dict["description"] = description! + } + if(order != nil) { + dict["order"] = order! + } + if(mediaTag != nil) { + dict["mediaTag"] = mediaTag! + } + if(epgTag != nil) { + dict["epgTag"] = epgTag! + } + if(blockAnonymousAccess != nil) { + dict["blockAnonymousAccess"] = blockAnonymousAccess! + } + if(ruleType != nil) { + dict["ruleType"] = ruleType!.rawValue + } + if(mediaTagValues != nil) { + dict["mediaTagValues"] = mediaTagValues!.map { value in value.toDictionary() } + } + if(epgTagValues != nil) { + dict["epgTagValues"] = epgTagValues!.map { value in value.toDictionary() } + } + if(isActive != nil) { + dict["isActive"] = isActive! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ParentalRuleFilter.swift b/KalturaClient/Classes/Model/Objects/ParentalRuleFilter.swift new file mode 100644 index 000000000..8a9543b27 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ParentalRuleFilter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ParentalRuleFilter: Filter { + + public class ParentalRuleFilterTokenizer: Filter.FilterTokenizer { + + public var entityReferenceEqual: BaseTokenizedObject { + get { + return self.append("entityReferenceEqual") + } + } + } + + /** Reference type to filter by */ + public var entityReferenceEqual: EntityReferenceBy? = nil + + + public func setMultiRequestToken(entityReferenceEqual: String) { + self.dict["entityReferenceEqual"] = entityReferenceEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["entityReferenceEqual"] != nil { + entityReferenceEqual = EntityReferenceBy(rawValue: "\(dict["entityReferenceEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(entityReferenceEqual != nil) { + dict["entityReferenceEqual"] = entityReferenceEqual!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ParentalRuleListResponse.swift b/KalturaClient/Classes/Model/Objects/ParentalRuleListResponse.swift new file mode 100644 index 000000000..0fd6d5de0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ParentalRuleListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** ParentalRules list */ +open class ParentalRuleListResponse: ListResponse { + + public class ParentalRuleListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of parental rules */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PartnerConfiguration.swift b/KalturaClient/Classes/Model/Objects/PartnerConfiguration.swift new file mode 100644 index 000000000..752bb4713 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PartnerConfiguration.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Partner base configuration */ +open class PartnerConfiguration: ObjectBase { + + public class PartnerConfigurationTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/PartnerConfigurationFilter.swift b/KalturaClient/Classes/Model/Objects/PartnerConfigurationFilter.swift new file mode 100644 index 000000000..224835bec --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PartnerConfigurationFilter.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Partner configuration filter */ +open class PartnerConfigurationFilter: Filter { + + public class PartnerConfigurationFilterTokenizer: Filter.FilterTokenizer { + + public var partnerConfigurationTypeEqual: BaseTokenizedObject { + get { + return self.append("partnerConfigurationTypeEqual") + } + } + } + + /** Indicates which partner configuration list to return */ + public var partnerConfigurationTypeEqual: PartnerConfigurationType? = nil + + + public func setMultiRequestToken(partnerConfigurationTypeEqual: String) { + self.dict["partnerConfigurationTypeEqual"] = partnerConfigurationTypeEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["partnerConfigurationTypeEqual"] != nil { + partnerConfigurationTypeEqual = PartnerConfigurationType(rawValue: "\(dict["partnerConfigurationTypeEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(partnerConfigurationTypeEqual != nil) { + dict["partnerConfigurationTypeEqual"] = partnerConfigurationTypeEqual!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PartnerConfigurationListResponse.swift b/KalturaClient/Classes/Model/Objects/PartnerConfigurationListResponse.swift new file mode 100644 index 000000000..b1c110ae1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PartnerConfigurationListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PartnerConfigurationListResponse: ListResponse { + + public class PartnerConfigurationListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Partner Configurations */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PasswordPolicy.swift b/KalturaClient/Classes/Model/Objects/PasswordPolicy.swift new file mode 100644 index 000000000..8f25b0502 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PasswordPolicy.swift @@ -0,0 +1,175 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Password policy settings */ +open class PasswordPolicy: CrudObject { + + public class PasswordPolicyTokenizer: CrudObject.CrudObjectTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var userRoleIds: BaseTokenizedObject { + get { + return self.append("userRoleIds") + } + } + + public var historyCount: BaseTokenizedObject { + get { + return self.append("historyCount") + } + } + + public var expiration: BaseTokenizedObject { + get { + return self.append("expiration") + } + } + + public var complexities: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("complexities")) + } + } + + public var lockoutFailuresCount: BaseTokenizedObject { + get { + return self.append("lockoutFailuresCount") + } + } + } + + /** id */ + public var id: Int64? = nil + /** Name */ + public var name: String? = nil + /** Comma separated UserRole Ids list which the policy is applied on */ + public var userRoleIds: String? = nil + /** The number of passwords that should be remembered for each user so that they + cannot be reused. */ + public var historyCount: Int? = nil + /** When should the password expire (will represent time as days). */ + public var expiration: Int? = nil + /** array of KalturaRegex */ + public var complexities: Array? = nil + /** the number of passwords failures before the account is locked. */ + public var lockoutFailuresCount: Int? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(userRoleIds: String) { + self.dict["userRoleIds"] = userRoleIds + } + + public func setMultiRequestToken(historyCount: String) { + self.dict["historyCount"] = historyCount + } + + public func setMultiRequestToken(expiration: String) { + self.dict["expiration"] = expiration + } + + public func setMultiRequestToken(lockoutFailuresCount: String) { + self.dict["lockoutFailuresCount"] = lockoutFailuresCount + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["userRoleIds"] != nil { + userRoleIds = dict["userRoleIds"] as? String + } + if dict["historyCount"] != nil { + historyCount = dict["historyCount"] as? Int + } + if dict["expiration"] != nil { + expiration = dict["expiration"] as? Int + } + if dict["complexities"] != nil { + complexities = try JSONParser.parse(array: dict["complexities"] as! [Any]) + } + if dict["lockoutFailuresCount"] != nil { + lockoutFailuresCount = dict["lockoutFailuresCount"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(userRoleIds != nil) { + dict["userRoleIds"] = userRoleIds! + } + if(historyCount != nil) { + dict["historyCount"] = historyCount! + } + if(expiration != nil) { + dict["expiration"] = expiration! + } + if(complexities != nil) { + dict["complexities"] = complexities!.map { value in value.toDictionary() } + } + if(lockoutFailuresCount != nil) { + dict["lockoutFailuresCount"] = lockoutFailuresCount! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PasswordPolicyFilter.swift b/KalturaClient/Classes/Model/Objects/PasswordPolicyFilter.swift new file mode 100644 index 000000000..ebbd7904c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PasswordPolicyFilter.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Password policy settings filter */ +open class PasswordPolicyFilter: CrudFilter { + + public class PasswordPolicyFilterTokenizer: CrudFilter.CrudFilterTokenizer { + + public var userRoleIdIn: BaseTokenizedObject { + get { + return self.append("userRoleIdIn") + } + } + } + + /** Comma separated list of role Ids. */ + public var userRoleIdIn: String? = nil + + + public func setMultiRequestToken(userRoleIdIn: String) { + self.dict["userRoleIdIn"] = userRoleIdIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["userRoleIdIn"] != nil { + userRoleIdIn = dict["userRoleIdIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(userRoleIdIn != nil) { + dict["userRoleIdIn"] = userRoleIdIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PasswordPolicyListResponse.swift b/KalturaClient/Classes/Model/Objects/PasswordPolicyListResponse.swift new file mode 100644 index 000000000..ad3c042c5 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PasswordPolicyListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PasswordPolicyListResponse: ListResponse { + + public class PasswordPolicyListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of objects */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PaymentGatewayBaseProfile.swift b/KalturaClient/Classes/Model/Objects/PaymentGatewayBaseProfile.swift new file mode 100644 index 000000000..799275bc2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PaymentGatewayBaseProfile.swift @@ -0,0 +1,124 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Payment gateway base profile */ +open class PaymentGatewayBaseProfile: ObjectBase { + + public class PaymentGatewayBaseProfileTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var isDefault: BaseTokenizedObject { + get { + return self.append("isDefault") + } + } + + public var selectedBy: BaseTokenizedObject { + get { + return self.append("selectedBy") + } + } + } + + /** payment gateway id */ + public var id: Int? = nil + /** payment gateway name */ + public var name: String? = nil + /** Payment gateway default (true/false) */ + public var isDefault: Bool? = nil + /** distinction payment gateway selected by account or household */ + public var selectedBy: HouseholdPaymentGatewaySelectedBy? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(isDefault: String) { + self.dict["isDefault"] = isDefault + } + + public func setMultiRequestToken(selectedBy: String) { + self.dict["selectedBy"] = selectedBy + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["isDefault"] != nil { + isDefault = dict["isDefault"] as? Bool + } + if dict["selectedBy"] != nil { + selectedBy = HouseholdPaymentGatewaySelectedBy(rawValue: "\(dict["selectedBy"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(isDefault != nil) { + dict["isDefault"] = isDefault! + } + if(selectedBy != nil) { + dict["selectedBy"] = selectedBy!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PaymentGatewayConfiguration.swift b/KalturaClient/Classes/Model/Objects/PaymentGatewayConfiguration.swift new file mode 100644 index 000000000..605ce4163 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PaymentGatewayConfiguration.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PaymentGatewayConfiguration: ObjectBase { + + public class PaymentGatewayConfigurationTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var paymentGatewayConfiguration: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("paymentGatewayConfiguration")) + } + } + } + + /** Payment gateway configuration */ + public var paymentGatewayConfiguration: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["paymentGatewayConfiguration"] != nil { + paymentGatewayConfiguration = try JSONParser.parse(array: dict["paymentGatewayConfiguration"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(paymentGatewayConfiguration != nil) { + dict["paymentGatewayConfiguration"] = paymentGatewayConfiguration!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PaymentGatewayProfile.swift b/KalturaClient/Classes/Model/Objects/PaymentGatewayProfile.swift new file mode 100644 index 000000000..ff2b3a3db --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PaymentGatewayProfile.swift @@ -0,0 +1,285 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Payment gateway profile */ +open class PaymentGatewayProfile: PaymentGatewayBaseProfile { + + public class PaymentGatewayProfileTokenizer: PaymentGatewayBaseProfile.PaymentGatewayBaseProfileTokenizer { + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + + public var adapterUrl: BaseTokenizedObject { + get { + return self.append("adapterUrl") + } + } + + public var transactUrl: BaseTokenizedObject { + get { + return self.append("transactUrl") + } + } + + public var statusUrl: BaseTokenizedObject { + get { + return self.append("statusUrl") + } + } + + public var renewUrl: BaseTokenizedObject { + get { + return self.append("renewUrl") + } + } + + public var paymentGatewaySettings: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("paymentGatewaySettings")) + } + } + + public var externalIdentifier: BaseTokenizedObject { + get { + return self.append("externalIdentifier") + } + } + + public var pendingInterval: BaseTokenizedObject { + get { + return self.append("pendingInterval") + } + } + + public var pendingRetries: BaseTokenizedObject { + get { + return self.append("pendingRetries") + } + } + + public var sharedSecret: BaseTokenizedObject { + get { + return self.append("sharedSecret") + } + } + + public var renewIntervalMinutes: BaseTokenizedObject { + get { + return self.append("renewIntervalMinutes") + } + } + + public var renewStartMinutes: BaseTokenizedObject { + get { + return self.append("renewStartMinutes") + } + } + + public var externalVerification: BaseTokenizedObject { + get { + return self.append("externalVerification") + } + } + } + + /** Payment gateway is active status */ + public var isActive: Int? = nil + /** Payment gateway adapter URL */ + public var adapterUrl: String? = nil + /** Payment gateway transact URL */ + public var transactUrl: String? = nil + /** Payment gateway status URL */ + public var statusUrl: String? = nil + /** Payment gateway renew URL */ + public var renewUrl: String? = nil + /** Payment gateway extra parameters */ + public var paymentGatewaySettings: Dictionary? = nil + /** Payment gateway external identifier */ + public var externalIdentifier: String? = nil + /** Pending Interval in minutes */ + public var pendingInterval: Int? = nil + /** Pending Retries */ + public var pendingRetries: Int? = nil + /** Shared Secret */ + public var sharedSecret: String? = nil + /** Renew Interval Minutes */ + public var renewIntervalMinutes: Int? = nil + /** Renew Start Minutes */ + public var renewStartMinutes: Int? = nil + /** Payment gateway external verification */ + public var externalVerification: Bool? = nil + + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public func setMultiRequestToken(adapterUrl: String) { + self.dict["adapterUrl"] = adapterUrl + } + + public func setMultiRequestToken(transactUrl: String) { + self.dict["transactUrl"] = transactUrl + } + + public func setMultiRequestToken(statusUrl: String) { + self.dict["statusUrl"] = statusUrl + } + + public func setMultiRequestToken(renewUrl: String) { + self.dict["renewUrl"] = renewUrl + } + + public func setMultiRequestToken(externalIdentifier: String) { + self.dict["externalIdentifier"] = externalIdentifier + } + + public func setMultiRequestToken(pendingInterval: String) { + self.dict["pendingInterval"] = pendingInterval + } + + public func setMultiRequestToken(pendingRetries: String) { + self.dict["pendingRetries"] = pendingRetries + } + + public func setMultiRequestToken(sharedSecret: String) { + self.dict["sharedSecret"] = sharedSecret + } + + public func setMultiRequestToken(renewIntervalMinutes: String) { + self.dict["renewIntervalMinutes"] = renewIntervalMinutes + } + + public func setMultiRequestToken(renewStartMinutes: String) { + self.dict["renewStartMinutes"] = renewStartMinutes + } + + public func setMultiRequestToken(externalVerification: String) { + self.dict["externalVerification"] = externalVerification + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Int + } + if dict["adapterUrl"] != nil { + adapterUrl = dict["adapterUrl"] as? String + } + if dict["transactUrl"] != nil { + transactUrl = dict["transactUrl"] as? String + } + if dict["statusUrl"] != nil { + statusUrl = dict["statusUrl"] as? String + } + if dict["renewUrl"] != nil { + renewUrl = dict["renewUrl"] as? String + } + if dict["paymentGatewaySettings"] != nil { + paymentGatewaySettings = try JSONParser.parse(map: dict["paymentGatewaySettings"] as! [String: Any]) + } + if dict["externalIdentifier"] != nil { + externalIdentifier = dict["externalIdentifier"] as? String + } + if dict["pendingInterval"] != nil { + pendingInterval = dict["pendingInterval"] as? Int + } + if dict["pendingRetries"] != nil { + pendingRetries = dict["pendingRetries"] as? Int + } + if dict["sharedSecret"] != nil { + sharedSecret = dict["sharedSecret"] as? String + } + if dict["renewIntervalMinutes"] != nil { + renewIntervalMinutes = dict["renewIntervalMinutes"] as? Int + } + if dict["renewStartMinutes"] != nil { + renewStartMinutes = dict["renewStartMinutes"] as? Int + } + if dict["externalVerification"] != nil { + externalVerification = dict["externalVerification"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(isActive != nil) { + dict["isActive"] = isActive! + } + if(adapterUrl != nil) { + dict["adapterUrl"] = adapterUrl! + } + if(transactUrl != nil) { + dict["transactUrl"] = transactUrl! + } + if(statusUrl != nil) { + dict["statusUrl"] = statusUrl! + } + if(renewUrl != nil) { + dict["renewUrl"] = renewUrl! + } + if(paymentGatewaySettings != nil) { + dict["paymentGatewaySettings"] = paymentGatewaySettings!.toDictionary() + } + if(externalIdentifier != nil) { + dict["externalIdentifier"] = externalIdentifier! + } + if(pendingInterval != nil) { + dict["pendingInterval"] = pendingInterval! + } + if(pendingRetries != nil) { + dict["pendingRetries"] = pendingRetries! + } + if(sharedSecret != nil) { + dict["sharedSecret"] = sharedSecret! + } + if(renewIntervalMinutes != nil) { + dict["renewIntervalMinutes"] = renewIntervalMinutes! + } + if(renewStartMinutes != nil) { + dict["renewStartMinutes"] = renewStartMinutes! + } + if(externalVerification != nil) { + dict["externalVerification"] = externalVerification! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PaymentGatewayProfileListResponse.swift b/KalturaClient/Classes/Model/Objects/PaymentGatewayProfileListResponse.swift new file mode 100644 index 000000000..aa03c9ad1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PaymentGatewayProfileListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** PaymentGatewayProfile list */ +open class PaymentGatewayProfileListResponse: ListResponse { + + public class PaymentGatewayProfileListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of payment-gateway profiles */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PaymentMethodProfile.swift b/KalturaClient/Classes/Model/Objects/PaymentMethodProfile.swift new file mode 100644 index 000000000..3bb513c82 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PaymentMethodProfile.swift @@ -0,0 +1,123 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PaymentMethodProfile: ObjectBase { + + public class PaymentMethodProfileTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var allowMultiInstance: BaseTokenizedObject { + get { + return self.append("allowMultiInstance") + } + } + } + + /** Payment method identifier (internal) */ + public var id: Int? = nil + /** Payment gateway identifier (internal) */ + public var paymentGatewayId: Int? = nil + /** Payment method name */ + public var name: String? = nil + /** Indicates whether the payment method allow multiple instances */ + public var allowMultiInstance: Bool? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(paymentGatewayId: String) { + self.dict["paymentGatewayId"] = paymentGatewayId + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(allowMultiInstance: String) { + self.dict["allowMultiInstance"] = allowMultiInstance + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["paymentGatewayId"] != nil { + paymentGatewayId = dict["paymentGatewayId"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["allowMultiInstance"] != nil { + allowMultiInstance = dict["allowMultiInstance"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(paymentGatewayId != nil) { + dict["paymentGatewayId"] = paymentGatewayId! + } + if(name != nil) { + dict["name"] = name! + } + if(allowMultiInstance != nil) { + dict["allowMultiInstance"] = allowMultiInstance! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PaymentMethodProfileFilter.swift b/KalturaClient/Classes/Model/Objects/PaymentMethodProfileFilter.swift new file mode 100644 index 000000000..3549333b7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PaymentMethodProfileFilter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PaymentMethodProfileFilter: Filter { + + public class PaymentMethodProfileFilterTokenizer: Filter.FilterTokenizer { + + public var paymentGatewayIdEqual: BaseTokenizedObject { + get { + return self.append("paymentGatewayIdEqual") + } + } + } + + /** Payment gateway identifier to list the payment methods for */ + public var paymentGatewayIdEqual: Int? = nil + + + public func setMultiRequestToken(paymentGatewayIdEqual: String) { + self.dict["paymentGatewayIdEqual"] = paymentGatewayIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["paymentGatewayIdEqual"] != nil { + paymentGatewayIdEqual = dict["paymentGatewayIdEqual"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(paymentGatewayIdEqual != nil) { + dict["paymentGatewayIdEqual"] = paymentGatewayIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PaymentMethodProfileListResponse.swift b/KalturaClient/Classes/Model/Objects/PaymentMethodProfileListResponse.swift new file mode 100644 index 000000000..64e3eb290 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PaymentMethodProfileListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of payment method profiles. */ +open class PaymentMethodProfileListResponse: ListResponse { + + public class PaymentMethodProfileListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Payment method profiles list */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PaymentPartnerConfig.swift b/KalturaClient/Classes/Model/Objects/PaymentPartnerConfig.swift new file mode 100644 index 000000000..0ca5df342 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PaymentPartnerConfig.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Partner billing configuration */ +open class PaymentPartnerConfig: PartnerConfiguration { + + public class PaymentPartnerConfigTokenizer: PartnerConfiguration.PartnerConfigurationTokenizer { + + public var unifiedBillingCycles: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("unifiedBillingCycles")) + } + } + } + + /** configuration for unified billing cycles. */ + public var unifiedBillingCycles: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["unifiedBillingCycles"] != nil { + unifiedBillingCycles = try JSONParser.parse(array: dict["unifiedBillingCycles"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(unifiedBillingCycles != nil) { + dict["unifiedBillingCycles"] = unifiedBillingCycles!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Permission.swift b/KalturaClient/Classes/Model/Objects/Permission.swift new file mode 100644 index 000000000..c86ac7e2a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Permission.swift @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Permission: ObjectBase { + + public class PermissionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var friendlyName: BaseTokenizedObject { + get { + return self.append("friendlyName") + } + } + + public var dependsOnPermissionNames: BaseTokenizedObject { + get { + return self.append("dependsOnPermissionNames") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** Permission identifier */ + public var id: Int64? = nil + /** Permission name */ + public var name: String? = nil + /** Permission friendly name */ + public var friendlyName: String? = nil + /** Comma separated permissions names from type SPECIAL_FEATURE */ + public var dependsOnPermissionNames: String? = nil + /** Comma separated permissions names from type SPECIAL_FEATURE */ + public var type: PermissionType? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(friendlyName: String) { + self.dict["friendlyName"] = friendlyName + } + + public func setMultiRequestToken(dependsOnPermissionNames: String) { + self.dict["dependsOnPermissionNames"] = dependsOnPermissionNames + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["friendlyName"] != nil { + friendlyName = dict["friendlyName"] as? String + } + if dict["dependsOnPermissionNames"] != nil { + dependsOnPermissionNames = dict["dependsOnPermissionNames"] as? String + } + if dict["type"] != nil { + type = PermissionType(rawValue: "\(dict["type"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(friendlyName != nil) { + dict["friendlyName"] = friendlyName! + } + if(type != nil) { + dict["type"] = type!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PermissionFilter.swift b/KalturaClient/Classes/Model/Objects/PermissionFilter.swift new file mode 100644 index 000000000..fda9722cc --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PermissionFilter.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Permissions filter */ +open class PermissionFilter: Filter { + + public class PermissionFilterTokenizer: Filter.FilterTokenizer { + + public var currentUserPermissionsContains: BaseTokenizedObject { + get { + return self.append("currentUserPermissionsContains") + } + } + + public var roleIdIn: BaseTokenizedObject { + get { + return self.append("roleIdIn") + } + } + } + + /** Indicates whether the results should be filtered by userId using the current */ + public var currentUserPermissionsContains: Bool? = nil + /** Return permissions by role ID */ + public var roleIdIn: Int64? = nil + + + public func setMultiRequestToken(currentUserPermissionsContains: String) { + self.dict["currentUserPermissionsContains"] = currentUserPermissionsContains + } + + public func setMultiRequestToken(roleIdIn: String) { + self.dict["roleIdIn"] = roleIdIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["currentUserPermissionsContains"] != nil { + currentUserPermissionsContains = dict["currentUserPermissionsContains"] as? Bool + } + if dict["roleIdIn"] != nil { + roleIdIn = Int64("\(dict["roleIdIn"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(currentUserPermissionsContains != nil) { + dict["currentUserPermissionsContains"] = currentUserPermissionsContains! + } + if(roleIdIn != nil) { + dict["roleIdIn"] = roleIdIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PermissionListResponse.swift b/KalturaClient/Classes/Model/Objects/PermissionListResponse.swift new file mode 100644 index 000000000..35bd45565 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PermissionListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Permissions list */ +open class PermissionListResponse: ListResponse { + + public class PermissionListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of permissions */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PersistedFilter.swift b/KalturaClient/Classes/Model/Objects/PersistedFilter.swift new file mode 100644 index 000000000..4f70e31e3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PersistedFilter.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PersistedFilter: Filter { + + public class PersistedFilterTokenizer: Filter.FilterTokenizer { + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + } + + /** Name for the presisted filter. If empty, no action will be done. If has value, + the filter will be saved and persisted in user's search history. */ + public var name: String? = nil + + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["name"] != nil { + name = dict["name"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PersonalFeed.swift b/KalturaClient/Classes/Model/Objects/PersonalFeed.swift new file mode 100644 index 000000000..d68613982 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PersonalFeed.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PersonalFeed: Feed { + + public class PersonalFeedTokenizer: Feed.FeedTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/PersonalFeedFilter.swift b/KalturaClient/Classes/Model/Objects/PersonalFeedFilter.swift new file mode 100644 index 000000000..724b6a834 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PersonalFeedFilter.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PersonalFeedFilter: Filter { + + public class PersonalFeedFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/PersonalFeedListResponse.swift b/KalturaClient/Classes/Model/Objects/PersonalFeedListResponse.swift new file mode 100644 index 000000000..4857b7443 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PersonalFeedListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of message follow data. */ +open class PersonalFeedListResponse: ListResponse { + + public class PersonalFeedListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Follow data list */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PersonalList.swift b/KalturaClient/Classes/Model/Objects/PersonalList.swift new file mode 100644 index 000000000..fce806c14 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PersonalList.swift @@ -0,0 +1,161 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PersonalList: ObjectBase { + + public class PersonalListTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var ksql: BaseTokenizedObject { + get { + return self.append("ksql") + } + } + + public var partnerListType: BaseTokenizedObject { + get { + return self.append("partnerListType") + } + } + } + + /** Id */ + public var id: Int64? = nil + /** Name */ + public var name: String? = nil + /** Create Date */ + public var createDate: Int64? = nil + /** Search assets using dynamic criteria. Provided collection of nested expressions + with key, comparison operators, value, and logical conjunction. + Possible keys: any Tag or Meta defined in the system and the following reserved + keys: start_date, end_date. epg_id, media_id - for specific asset + IDs. geo_block - only valid value is "true": When + enabled, only assets that are not restricted to the user by geo-block rules will + return. parental_rules - only valid value is + "true": When enabled, only assets that the user + doesn't need to provide PIN code will return. + user_interests - only valid value is "true". When enabled, + only assets that the user defined as his interests (by tags and metas) will + return. epg_channel_id – the channel identifier of the EPG + program. entitled_assets - valid values: "free", + "entitled", "not_entitled", + "both". free - gets only free to watch assets. entitled - only + those that the user is implicitly entitled to watch. asset_type - + valid values: "media", "epg", + "recording" or any number that represents media type in group. + Comparison operators: for numerical fields =, >, >=, + <, <=, : (in). For alpha-numerical fields =, != + (not), ~ (like), !~, ^ (any word starts with), ^= (phrase starts with), + + (exists), !+ (not exists). Logical conjunction: and, or. + Search values are limited to 20 characters each for the next operators: ~, + !~, ^, ^= (maximum length of entire filter is 4096 characters) */ + public var ksql: String? = nil + /** Partner List Type (optional) */ + public var partnerListType: Int? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(ksql: String) { + self.dict["ksql"] = ksql + } + + public func setMultiRequestToken(partnerListType: String) { + self.dict["partnerListType"] = partnerListType + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["ksql"] != nil { + ksql = dict["ksql"] as? String + } + if dict["partnerListType"] != nil { + partnerListType = dict["partnerListType"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(ksql != nil) { + dict["ksql"] = ksql! + } + if(partnerListType != nil) { + dict["partnerListType"] = partnerListType! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PersonalListFilter.swift b/KalturaClient/Classes/Model/Objects/PersonalListFilter.swift new file mode 100644 index 000000000..2c3d6a1fa --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PersonalListFilter.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PersonalListFilter: Filter { + + public class PersonalListFilterTokenizer: Filter.FilterTokenizer { + + public var partnerListTypeIn: BaseTokenizedObject { + get { + return self.append("partnerListTypeIn") + } + } + } + + /** Comma separated list of partner list types to search within. If + omitted – all types should be included. */ + public var partnerListTypeIn: String? = nil + + + public func setMultiRequestToken(partnerListTypeIn: String) { + self.dict["partnerListTypeIn"] = partnerListTypeIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["partnerListTypeIn"] != nil { + partnerListTypeIn = dict["partnerListTypeIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(partnerListTypeIn != nil) { + dict["partnerListTypeIn"] = partnerListTypeIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PersonalListListResponse.swift b/KalturaClient/Classes/Model/Objects/PersonalListListResponse.swift new file mode 100644 index 000000000..c82401809 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PersonalListListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of KalturaPersonalList. */ +open class PersonalListListResponse: ListResponse { + + public class PersonalListListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Follow data list */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PersonalListSearchFilter.swift b/KalturaClient/Classes/Model/Objects/PersonalListSearchFilter.swift new file mode 100644 index 000000000..60981f995 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PersonalListSearchFilter.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PersonalListSearchFilter: BaseSearchAssetFilter { + + public class PersonalListSearchFilterTokenizer: BaseSearchAssetFilter.BaseSearchAssetFilterTokenizer { + + public var partnerListTypeIn: BaseTokenizedObject { + get { + return self.append("partnerListTypeIn") + } + } + } + + /** Comma separated list of partner list types to search within. If + omitted – all types should be included. */ + public var partnerListTypeIn: String? = nil + + + public func setMultiRequestToken(partnerListTypeIn: String) { + self.dict["partnerListTypeIn"] = partnerListTypeIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["partnerListTypeIn"] != nil { + partnerListTypeIn = dict["partnerListTypeIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(partnerListTypeIn != nil) { + dict["partnerListTypeIn"] = partnerListTypeIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Pin.swift b/KalturaClient/Classes/Model/Objects/Pin.swift new file mode 100644 index 000000000..1166c146f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Pin.swift @@ -0,0 +1,109 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** PIN and its origin of definition */ +open class Pin: ObjectBase { + + public class PinTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var pin: BaseTokenizedObject { + get { + return self.append("pin") + } + } + + public var origin: BaseTokenizedObject { + get { + return self.append("origin") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** PIN code */ + public var pin: String? = nil + /** Where the PIN was defined at – account, household or user */ + public var origin: RuleLevel? = nil + /** PIN type */ + public var type: PinType? = nil + + + public func setMultiRequestToken(pin: String) { + self.dict["pin"] = pin + } + + public func setMultiRequestToken(origin: String) { + self.dict["origin"] = origin + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["pin"] != nil { + pin = dict["pin"] as? String + } + if dict["origin"] != nil { + origin = RuleLevel(rawValue: "\(dict["origin"]!)") + } + if dict["type"] != nil { + type = PinType(rawValue: "\(dict["type"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(pin != nil) { + dict["pin"] = pin! + } + if(origin != nil) { + dict["origin"] = origin!.rawValue + } + if(type != nil) { + dict["type"] = type!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PlaybackContext.swift b/KalturaClient/Classes/Model/Objects/PlaybackContext.swift new file mode 100644 index 000000000..244cf7685 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PlaybackContext.swift @@ -0,0 +1,124 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PlaybackContext: ObjectBase { + + public class PlaybackContextTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var sources: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("sources")) + } + } + + public var actions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("actions")) + } + } + + public var messages: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("messages")) + } + } + + public var playbackCaptions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("playbackCaptions")) + } + } + + public var plugins: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("plugins")) + } + } + } + + /** Sources */ + public var sources: Array? = nil + /** Actions */ + public var actions: Array? = nil + /** Messages */ + public var messages: Array? = nil + /** Playback captions */ + public var playbackCaptions: Array? = nil + /** Plugins */ + public var plugins: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["sources"] != nil { + sources = try JSONParser.parse(array: dict["sources"] as! [Any]) + } + if dict["actions"] != nil { + actions = try JSONParser.parse(array: dict["actions"] as! [Any]) + } + if dict["messages"] != nil { + messages = try JSONParser.parse(array: dict["messages"] as! [Any]) + } + if dict["playbackCaptions"] != nil { + playbackCaptions = try JSONParser.parse(array: dict["playbackCaptions"] as! [Any]) + } + if dict["plugins"] != nil { + plugins = try JSONParser.parse(array: dict["plugins"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(sources != nil) { + dict["sources"] = sources!.map { value in value.toDictionary() } + } + if(actions != nil) { + dict["actions"] = actions!.map { value in value.toDictionary() } + } + if(messages != nil) { + dict["messages"] = messages!.map { value in value.toDictionary() } + } + if(playbackCaptions != nil) { + dict["playbackCaptions"] = playbackCaptions!.map { value in value.toDictionary() } + } + if(plugins != nil) { + dict["plugins"] = plugins!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PlaybackContextOptions.swift b/KalturaClient/Classes/Model/Objects/PlaybackContextOptions.swift new file mode 100644 index 000000000..f9e9b2531 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PlaybackContextOptions.swift @@ -0,0 +1,158 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PlaybackContextOptions: ObjectBase { + + public class PlaybackContextOptionsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var mediaProtocol: BaseTokenizedObject { + get { + return self.append("mediaProtocol") + } + } + + public var streamerType: BaseTokenizedObject { + get { + return self.append("streamerType") + } + } + + public var assetFileIds: BaseTokenizedObject { + get { + return self.append("assetFileIds") + } + } + + public var adapterData: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("adapterData")) + } + } + + public var context: BaseTokenizedObject { + get { + return self.append("context") + } + } + + public var urlType: BaseTokenizedObject { + get { + return self.append("urlType") + } + } + } + + /** Protocol of the specific media object (http / https). */ + public var mediaProtocol: String? = nil + /** Playback streamer type: applehttp, mpegdash, url, smothstreaming, none */ + public var streamerType: String? = nil + /** List of comma separated media file IDs */ + public var assetFileIds: String? = nil + /** key/value map field for extra data */ + public var adapterData: Dictionary? = nil + /** Playback context type */ + public var context: PlaybackContextType? = nil + /** Url type */ + public var urlType: UrlType? = nil + + + public func setMultiRequestToken(mediaProtocol: String) { + self.dict["mediaProtocol"] = mediaProtocol + } + + public func setMultiRequestToken(streamerType: String) { + self.dict["streamerType"] = streamerType + } + + public func setMultiRequestToken(assetFileIds: String) { + self.dict["assetFileIds"] = assetFileIds + } + + public func setMultiRequestToken(context: String) { + self.dict["context"] = context + } + + public func setMultiRequestToken(urlType: String) { + self.dict["urlType"] = urlType + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["mediaProtocol"] != nil { + mediaProtocol = dict["mediaProtocol"] as? String + } + if dict["streamerType"] != nil { + streamerType = dict["streamerType"] as? String + } + if dict["assetFileIds"] != nil { + assetFileIds = dict["assetFileIds"] as? String + } + if dict["adapterData"] != nil { + adapterData = try JSONParser.parse(map: dict["adapterData"] as! [String: Any]) + } + if dict["context"] != nil { + context = PlaybackContextType(rawValue: "\(dict["context"]!)") + } + if dict["urlType"] != nil { + urlType = UrlType(rawValue: "\(dict["urlType"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(mediaProtocol != nil) { + dict["mediaProtocol"] = mediaProtocol! + } + if(streamerType != nil) { + dict["streamerType"] = streamerType! + } + if(assetFileIds != nil) { + dict["assetFileIds"] = assetFileIds! + } + if(adapterData != nil) { + dict["adapterData"] = adapterData!.toDictionary() + } + if(context != nil) { + dict["context"] = context!.rawValue + } + if(urlType != nil) { + dict["urlType"] = urlType!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PlaybackPartnerConfig.swift b/KalturaClient/Classes/Model/Objects/PlaybackPartnerConfig.swift new file mode 100644 index 000000000..d52268697 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PlaybackPartnerConfig.swift @@ -0,0 +1,66 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Playback adapter partner configuration */ +open class PlaybackPartnerConfig: PartnerConfiguration { + + public class PlaybackPartnerConfigTokenizer: PartnerConfiguration.PartnerConfigurationTokenizer { + + public func defaultAdapters() -> T { + return T(self.append("defaultAdapters")) + } + } + + /** default adapter configuration for: media, epg,recording. */ + public var defaultAdapters: DefaultPlaybackAdapters? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["defaultAdapters"] != nil { + defaultAdapters = try JSONParser.parse(object: dict["defaultAdapters"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(defaultAdapters != nil) { + dict["defaultAdapters"] = defaultAdapters!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PlaybackPluginData.swift b/KalturaClient/Classes/Model/Objects/PlaybackPluginData.swift new file mode 100644 index 000000000..7407e3a8f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PlaybackPluginData.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PlaybackPluginData: ObjectBase { + + public class PlaybackPluginDataTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/PlaybackProfile.swift b/KalturaClient/Classes/Model/Objects/PlaybackProfile.swift new file mode 100644 index 000000000..8cca564c5 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PlaybackProfile.swift @@ -0,0 +1,175 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Playback profile */ +open class PlaybackProfile: ObjectBase { + + public class PlaybackProfileTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + + public var adapterUrl: BaseTokenizedObject { + get { + return self.append("adapterUrl") + } + } + + public var settings: BaseTokenizedObject { + get { + return self.append("settings") + } + } + + public var systemName: BaseTokenizedObject { + get { + return self.append("systemName") + } + } + + public var sharedSecret: BaseTokenizedObject { + get { + return self.append("sharedSecret") + } + } + } + + /** Playback profile identifier */ + public var id: Int? = nil + /** Playback profile name */ + public var name: String? = nil + /** Playback profile active status */ + public var isActive: Bool? = nil + /** Playback profile URL */ + public var adapterUrl: String? = nil + /** Playback profile settings */ + public var settings: String? = nil + /** Playback profile alias */ + public var systemName: String? = nil + /** Playback adapter shared secret */ + public var sharedSecret: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public func setMultiRequestToken(adapterUrl: String) { + self.dict["adapterUrl"] = adapterUrl + } + + public func setMultiRequestToken(settings: String) { + self.dict["settings"] = settings + } + + public func setMultiRequestToken(systemName: String) { + self.dict["systemName"] = systemName + } + + public func setMultiRequestToken(sharedSecret: String) { + self.dict["sharedSecret"] = sharedSecret + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Bool + } + if dict["adapterUrl"] != nil { + adapterUrl = dict["adapterUrl"] as? String + } + if dict["settings"] != nil { + settings = dict["settings"] as? String + } + if dict["systemName"] != nil { + systemName = dict["systemName"] as? String + } + if dict["sharedSecret"] != nil { + sharedSecret = dict["sharedSecret"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(isActive != nil) { + dict["isActive"] = isActive! + } + if(adapterUrl != nil) { + dict["adapterUrl"] = adapterUrl! + } + if(settings != nil) { + dict["settings"] = settings! + } + if(systemName != nil) { + dict["systemName"] = systemName! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PlaybackProfileFilter.swift b/KalturaClient/Classes/Model/Objects/PlaybackProfileFilter.swift new file mode 100644 index 000000000..98fafee84 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PlaybackProfileFilter.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** User asset rule filter */ +open class PlaybackProfileFilter: Filter { + + public class PlaybackProfileFilterTokenizer: Filter.FilterTokenizer { + + public var playbackProfileEqual: BaseTokenizedObject { + get { + return self.append("playbackProfileEqual") + } + } + } + + /** Playback profile to filter by */ + public var playbackProfileEqual: Int? = nil + + + public func setMultiRequestToken(playbackProfileEqual: String) { + self.dict["playbackProfileEqual"] = playbackProfileEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["playbackProfileEqual"] != nil { + playbackProfileEqual = dict["playbackProfileEqual"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(playbackProfileEqual != nil) { + dict["playbackProfileEqual"] = playbackProfileEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PlaybackProfileListResponse.swift b/KalturaClient/Classes/Model/Objects/PlaybackProfileListResponse.swift new file mode 100644 index 000000000..48f3942a7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PlaybackProfileListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PlaybackProfileListResponse: ListResponse { + + public class PlaybackProfileListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of Engagement adapter */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PlaybackSource.swift b/KalturaClient/Classes/Model/Objects/PlaybackSource.swift new file mode 100644 index 000000000..6d76c7d36 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PlaybackSource.swift @@ -0,0 +1,124 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PlaybackSource: MediaFile { + + public class PlaybackSourceTokenizer: MediaFile.MediaFileTokenizer { + + public var format: BaseTokenizedObject { + get { + return self.append("format") + } + } + + public var protocols: BaseTokenizedObject { + get { + return self.append("protocols") + } + } + + public var drm: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("drm")) + } + } + + public var isTokenized: BaseTokenizedObject { + get { + return self.append("isTokenized") + } + } + } + + /** Source format according to delivery profile streamer type (applehttp, mpegdash + etc.) */ + public var format: String? = nil + /** Comma separated string according to deliveryProfile media protocols + ('http,https' etc.) */ + public var protocols: String? = nil + /** DRM data object containing relevant license URL ,scheme name and certificate */ + public var drm: Array? = nil + /** Is Tokenized */ + public var isTokenized: Bool? = nil + + + public func setMultiRequestToken(format: String) { + self.dict["format"] = format + } + + public func setMultiRequestToken(protocols: String) { + self.dict["protocols"] = protocols + } + + public func setMultiRequestToken(isTokenized: String) { + self.dict["isTokenized"] = isTokenized + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["format"] != nil { + format = dict["format"] as? String + } + if dict["protocols"] != nil { + protocols = dict["protocols"] as? String + } + if dict["drm"] != nil { + drm = try JSONParser.parse(array: dict["drm"] as! [Any]) + } + if dict["isTokenized"] != nil { + isTokenized = dict["isTokenized"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(format != nil) { + dict["format"] = format! + } + if(protocols != nil) { + dict["protocols"] = protocols! + } + if(drm != nil) { + dict["drm"] = drm!.map { value in value.toDictionary() } + } + if(isTokenized != nil) { + dict["isTokenized"] = isTokenized! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PluginData.swift b/KalturaClient/Classes/Model/Objects/PluginData.swift new file mode 100644 index 000000000..69977e1fc --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PluginData.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PluginData: ObjectBase { + + public class PluginDataTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/Ppv.swift b/KalturaClient/Classes/Model/Objects/Ppv.swift new file mode 100644 index 000000000..cafa75444 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Ppv.swift @@ -0,0 +1,219 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** PPV details */ +open class Ppv: ObjectBase { + + public class PpvTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public func price() -> T { + return T(self.append("price")) + } + + public var fileTypes: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("fileTypes")) + } + } + + public func discountModule() -> T { + return T(self.append("discountModule")) + } + + public func couponsGroup() -> T { + return T(self.append("couponsGroup")) + } + + public var descriptions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("descriptions")) + } + } + + public var productCode: BaseTokenizedObject { + get { + return self.append("productCode") + } + } + + public var isSubscriptionOnly: BaseTokenizedObject { + get { + return self.append("isSubscriptionOnly") + } + } + + public var firstDeviceLimitation: BaseTokenizedObject { + get { + return self.append("firstDeviceLimitation") + } + } + + public func usageModule() -> T { + return T(self.append("usageModule")) + } + } + + /** PPV identifier */ + public var id: String? = nil + /** the name for the ppv */ + public var name: String? = nil + /** The price of the ppv */ + public var price: PriceDetails? = nil + /** A list of file types identifiers that are supported in this ppv */ + public var fileTypes: Array? = nil + /** The internal discount module for the ppv */ + public var discountModule: DiscountModule? = nil + /** Coupons group for the ppv */ + public var couponsGroup: CouponsGroup? = nil + /** A list of the descriptions of the ppv on different languages (language code and + translation) */ + public var descriptions: Array? = nil + /** Product code for the ppv */ + public var productCode: String? = nil + /** Indicates whether or not this ppv can be purchased standalone or only as part of + a subscription */ + public var isSubscriptionOnly: Bool? = nil + /** Indicates whether or not this ppv can be consumed only on the first device */ + public var firstDeviceLimitation: Bool? = nil + /** PPV usage module */ + public var usageModule: UsageModule? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(productCode: String) { + self.dict["productCode"] = productCode + } + + public func setMultiRequestToken(isSubscriptionOnly: String) { + self.dict["isSubscriptionOnly"] = isSubscriptionOnly + } + + public func setMultiRequestToken(firstDeviceLimitation: String) { + self.dict["firstDeviceLimitation"] = firstDeviceLimitation + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["price"] != nil { + price = try JSONParser.parse(object: dict["price"] as! [String: Any]) } + if dict["fileTypes"] != nil { + fileTypes = try JSONParser.parse(array: dict["fileTypes"] as! [Any]) + } + if dict["discountModule"] != nil { + discountModule = try JSONParser.parse(object: dict["discountModule"] as! [String: Any]) } + if dict["couponsGroup"] != nil { + couponsGroup = try JSONParser.parse(object: dict["couponsGroup"] as! [String: Any]) } + if dict["descriptions"] != nil { + descriptions = try JSONParser.parse(array: dict["descriptions"] as! [Any]) + } + if dict["productCode"] != nil { + productCode = dict["productCode"] as? String + } + if dict["isSubscriptionOnly"] != nil { + isSubscriptionOnly = dict["isSubscriptionOnly"] as? Bool + } + if dict["firstDeviceLimitation"] != nil { + firstDeviceLimitation = dict["firstDeviceLimitation"] as? Bool + } + if dict["usageModule"] != nil { + usageModule = try JSONParser.parse(object: dict["usageModule"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(name != nil) { + dict["name"] = name! + } + if(price != nil) { + dict["price"] = price!.toDictionary() + } + if(fileTypes != nil) { + dict["fileTypes"] = fileTypes!.map { value in value.toDictionary() } + } + if(discountModule != nil) { + dict["discountModule"] = discountModule!.toDictionary() + } + if(couponsGroup != nil) { + dict["couponsGroup"] = couponsGroup!.toDictionary() + } + if(descriptions != nil) { + dict["descriptions"] = descriptions!.map { value in value.toDictionary() } + } + if(productCode != nil) { + dict["productCode"] = productCode! + } + if(isSubscriptionOnly != nil) { + dict["isSubscriptionOnly"] = isSubscriptionOnly! + } + if(firstDeviceLimitation != nil) { + dict["firstDeviceLimitation"] = firstDeviceLimitation! + } + if(usageModule != nil) { + dict["usageModule"] = usageModule!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PpvEntitlement.swift b/KalturaClient/Classes/Model/Objects/PpvEntitlement.swift new file mode 100644 index 000000000..3ef8a1ccb --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PpvEntitlement.swift @@ -0,0 +1,81 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** KalturaPpvEntitlement */ +open class PpvEntitlement: Entitlement { + + public class PpvEntitlementTokenizer: Entitlement.EntitlementTokenizer { + + public var mediaFileId: BaseTokenizedObject { + get { + return self.append("mediaFileId") + } + } + + public var mediaId: BaseTokenizedObject { + get { + return self.append("mediaId") + } + } + } + + /** Media file identifier */ + public var mediaFileId: Int? = nil + /** Media identifier */ + public var mediaId: Int? = nil + + + public func setMultiRequestToken(mediaFileId: String) { + self.dict["mediaFileId"] = mediaFileId + } + + public func setMultiRequestToken(mediaId: String) { + self.dict["mediaId"] = mediaId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["mediaFileId"] != nil { + mediaFileId = dict["mediaFileId"] as? Int + } + if dict["mediaId"] != nil { + mediaId = dict["mediaId"] as? Int + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/PpvFilter.swift b/KalturaClient/Classes/Model/Objects/PpvFilter.swift new file mode 100644 index 000000000..3a7a8c63c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PpvFilter.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Filtering Asset Struct Metas */ +open class PpvFilter: Filter { + + public class PpvFilterTokenizer: Filter.FilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + + public var couponGroupIdEqual: BaseTokenizedObject { + get { + return self.append("couponGroupIdEqual") + } + } + } + + /** Comma separated identifiers */ + public var idIn: String? = nil + /** couponGroupIdEqual */ + public var couponGroupIdEqual: Int? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public func setMultiRequestToken(couponGroupIdEqual: String) { + self.dict["couponGroupIdEqual"] = couponGroupIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + if dict["couponGroupIdEqual"] != nil { + couponGroupIdEqual = dict["couponGroupIdEqual"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + if(couponGroupIdEqual != nil) { + dict["couponGroupIdEqual"] = couponGroupIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PpvListResponse.swift b/KalturaClient/Classes/Model/Objects/PpvListResponse.swift new file mode 100644 index 000000000..2bd0b862d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PpvListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Prices list */ +open class PpvListResponse: ListResponse { + + public class PpvListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of PPV */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PpvPrice.swift b/KalturaClient/Classes/Model/Objects/PpvPrice.swift new file mode 100644 index 000000000..668e7551e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PpvPrice.swift @@ -0,0 +1,351 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** PPV price details */ +open class PpvPrice: ProductPrice { + + public class PpvPriceTokenizer: ProductPrice.ProductPriceTokenizer { + + public var fileId: BaseTokenizedObject { + get { + return self.append("fileId") + } + } + + public var ppvModuleId: BaseTokenizedObject { + get { + return self.append("ppvModuleId") + } + } + + public var isSubscriptionOnly: BaseTokenizedObject { + get { + return self.append("isSubscriptionOnly") + } + } + + public func fullPrice() -> T { + return T(self.append("fullPrice")) + } + + public var subscriptionId: BaseTokenizedObject { + get { + return self.append("subscriptionId") + } + } + + public var collectionId: BaseTokenizedObject { + get { + return self.append("collectionId") + } + } + + public var prePaidId: BaseTokenizedObject { + get { + return self.append("prePaidId") + } + } + + public var ppvDescriptions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("ppvDescriptions")) + } + } + + public var purchaseUserId: BaseTokenizedObject { + get { + return self.append("purchaseUserId") + } + } + + public var purchasedMediaFileId: BaseTokenizedObject { + get { + return self.append("purchasedMediaFileId") + } + } + + public var relatedMediaFileIds: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("relatedMediaFileIds")) + } + } + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + + public var discountEndDate: BaseTokenizedObject { + get { + return self.append("discountEndDate") + } + } + + public var firstDeviceName: BaseTokenizedObject { + get { + return self.append("firstDeviceName") + } + } + + public var isInCancelationPeriod: BaseTokenizedObject { + get { + return self.append("isInCancelationPeriod") + } + } + + public var ppvProductCode: BaseTokenizedObject { + get { + return self.append("ppvProductCode") + } + } + } + + /** Media file identifier */ + public var fileId: Int? = nil + /** The associated PPV module identifier */ + public var ppvModuleId: String? = nil + /** Denotes whether this object is available only as part of a subscription or can + be sold separately */ + public var isSubscriptionOnly: Bool? = nil + /** The full price of the item (with no discounts) */ + public var fullPrice: Price? = nil + /** The identifier of the relevant subscription */ + public var subscriptionId: String? = nil + /** The identifier of the relevant collection */ + public var collectionId: String? = nil + /** The identifier of the relevant pre paid */ + public var prePaidId: String? = nil + /** A list of the descriptions of the PPV module on different languages (language + code and translation) */ + public var ppvDescriptions: Array? = nil + /** If the item already purchased - the identifier of the user (in the household) + who purchased this item */ + public var purchaseUserId: String? = nil + /** If the item already purchased - the identifier of the purchased file */ + public var purchasedMediaFileId: Int? = nil + /** Related media files identifiers (different types) */ + public var relatedMediaFileIds: Array? = nil + /** If the item already purchased - since when the user can start watching the item */ + public var startDate: Int64? = nil + /** If the item already purchased - until when the user can watch the item */ + public var endDate: Int64? = nil + /** Discount end date */ + public var discountEndDate: Int64? = nil + /** If the item already purchased and played - the name of the device on which it + was first played */ + public var firstDeviceName: String? = nil + /** If waiver period is enabled - donates whether the user is still in the + cancelation window */ + public var isInCancelationPeriod: Bool? = nil + /** The PPV product code */ + public var ppvProductCode: String? = nil + + + public func setMultiRequestToken(fileId: String) { + self.dict["fileId"] = fileId + } + + public func setMultiRequestToken(ppvModuleId: String) { + self.dict["ppvModuleId"] = ppvModuleId + } + + public func setMultiRequestToken(isSubscriptionOnly: String) { + self.dict["isSubscriptionOnly"] = isSubscriptionOnly + } + + public func setMultiRequestToken(subscriptionId: String) { + self.dict["subscriptionId"] = subscriptionId + } + + public func setMultiRequestToken(collectionId: String) { + self.dict["collectionId"] = collectionId + } + + public func setMultiRequestToken(prePaidId: String) { + self.dict["prePaidId"] = prePaidId + } + + public func setMultiRequestToken(purchaseUserId: String) { + self.dict["purchaseUserId"] = purchaseUserId + } + + public func setMultiRequestToken(purchasedMediaFileId: String) { + self.dict["purchasedMediaFileId"] = purchasedMediaFileId + } + + public func setMultiRequestToken(startDate: String) { + self.dict["startDate"] = startDate + } + + public func setMultiRequestToken(endDate: String) { + self.dict["endDate"] = endDate + } + + public func setMultiRequestToken(discountEndDate: String) { + self.dict["discountEndDate"] = discountEndDate + } + + public func setMultiRequestToken(firstDeviceName: String) { + self.dict["firstDeviceName"] = firstDeviceName + } + + public func setMultiRequestToken(isInCancelationPeriod: String) { + self.dict["isInCancelationPeriod"] = isInCancelationPeriod + } + + public func setMultiRequestToken(ppvProductCode: String) { + self.dict["ppvProductCode"] = ppvProductCode + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["fileId"] != nil { + fileId = dict["fileId"] as? Int + } + if dict["ppvModuleId"] != nil { + ppvModuleId = dict["ppvModuleId"] as? String + } + if dict["isSubscriptionOnly"] != nil { + isSubscriptionOnly = dict["isSubscriptionOnly"] as? Bool + } + if dict["fullPrice"] != nil { + fullPrice = try JSONParser.parse(object: dict["fullPrice"] as! [String: Any]) } + if dict["subscriptionId"] != nil { + subscriptionId = dict["subscriptionId"] as? String + } + if dict["collectionId"] != nil { + collectionId = dict["collectionId"] as? String + } + if dict["prePaidId"] != nil { + prePaidId = dict["prePaidId"] as? String + } + if dict["ppvDescriptions"] != nil { + ppvDescriptions = try JSONParser.parse(array: dict["ppvDescriptions"] as! [Any]) + } + if dict["purchaseUserId"] != nil { + purchaseUserId = dict["purchaseUserId"] as? String + } + if dict["purchasedMediaFileId"] != nil { + purchasedMediaFileId = dict["purchasedMediaFileId"] as? Int + } + if dict["relatedMediaFileIds"] != nil { + relatedMediaFileIds = try JSONParser.parse(array: dict["relatedMediaFileIds"] as! [Any]) + } + if dict["startDate"] != nil { + startDate = Int64("\(dict["startDate"]!)") + } + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + if dict["discountEndDate"] != nil { + discountEndDate = Int64("\(dict["discountEndDate"]!)") + } + if dict["firstDeviceName"] != nil { + firstDeviceName = dict["firstDeviceName"] as? String + } + if dict["isInCancelationPeriod"] != nil { + isInCancelationPeriod = dict["isInCancelationPeriod"] as? Bool + } + if dict["ppvProductCode"] != nil { + ppvProductCode = dict["ppvProductCode"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(fileId != nil) { + dict["fileId"] = fileId! + } + if(ppvModuleId != nil) { + dict["ppvModuleId"] = ppvModuleId! + } + if(isSubscriptionOnly != nil) { + dict["isSubscriptionOnly"] = isSubscriptionOnly! + } + if(fullPrice != nil) { + dict["fullPrice"] = fullPrice!.toDictionary() + } + if(subscriptionId != nil) { + dict["subscriptionId"] = subscriptionId! + } + if(collectionId != nil) { + dict["collectionId"] = collectionId! + } + if(prePaidId != nil) { + dict["prePaidId"] = prePaidId! + } + if(ppvDescriptions != nil) { + dict["ppvDescriptions"] = ppvDescriptions!.map { value in value.toDictionary() } + } + if(purchaseUserId != nil) { + dict["purchaseUserId"] = purchaseUserId! + } + if(purchasedMediaFileId != nil) { + dict["purchasedMediaFileId"] = purchasedMediaFileId! + } + if(relatedMediaFileIds != nil) { + dict["relatedMediaFileIds"] = relatedMediaFileIds!.map { value in value.toDictionary() } + } + if(startDate != nil) { + dict["startDate"] = startDate! + } + if(endDate != nil) { + dict["endDate"] = endDate! + } + if(discountEndDate != nil) { + dict["discountEndDate"] = discountEndDate! + } + if(firstDeviceName != nil) { + dict["firstDeviceName"] = firstDeviceName! + } + if(isInCancelationPeriod != nil) { + dict["isInCancelationPeriod"] = isInCancelationPeriod! + } + if(ppvProductCode != nil) { + dict["ppvProductCode"] = ppvProductCode! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PremiumService.swift b/KalturaClient/Classes/Model/Objects/PremiumService.swift new file mode 100644 index 000000000..9f23382fd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PremiumService.swift @@ -0,0 +1,88 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Premium service */ +open class PremiumService: ObjectBase { + + public class PremiumServiceTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + } + + /** Service identifier */ + public var id: Int64? = nil + /** Service name / description */ + public var name: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PreviewModule.swift b/KalturaClient/Classes/Model/Objects/PreviewModule.swift new file mode 100644 index 000000000..22a704cca --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PreviewModule.swift @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Preview module */ +open class PreviewModule: ObjectBase { + + public class PreviewModuleTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var lifeCycle: BaseTokenizedObject { + get { + return self.append("lifeCycle") + } + } + + public var nonRenewablePeriod: BaseTokenizedObject { + get { + return self.append("nonRenewablePeriod") + } + } + } + + /** Preview module identifier */ + public var id: Int64? = nil + /** Preview module name */ + public var name: String? = nil + /** Preview module life cycle - for how long the preview module is active */ + public var lifeCycle: Int? = nil + /** The time you can't buy the item to which the preview module is assigned + to again */ + public var nonRenewablePeriod: Int? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(lifeCycle: String) { + self.dict["lifeCycle"] = lifeCycle + } + + public func setMultiRequestToken(nonRenewablePeriod: String) { + self.dict["nonRenewablePeriod"] = nonRenewablePeriod + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["lifeCycle"] != nil { + lifeCycle = dict["lifeCycle"] as? Int + } + if dict["nonRenewablePeriod"] != nil { + nonRenewablePeriod = dict["nonRenewablePeriod"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(lifeCycle != nil) { + dict["lifeCycle"] = lifeCycle! + } + if(nonRenewablePeriod != nil) { + dict["nonRenewablePeriod"] = nonRenewablePeriod! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Price.swift b/KalturaClient/Classes/Model/Objects/Price.swift new file mode 100644 index 000000000..30e1d3b06 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Price.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Price */ +open class Price: ObjectBase { + + public class PriceTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var amount: BaseTokenizedObject { + get { + return self.append("amount") + } + } + + public var currency: BaseTokenizedObject { + get { + return self.append("currency") + } + } + + public var currencySign: BaseTokenizedObject { + get { + return self.append("currencySign") + } + } + + public var countryId: BaseTokenizedObject { + get { + return self.append("countryId") + } + } + } + + /** Price */ + public var amount: Double? = nil + /** Currency */ + public var currency: String? = nil + /** Currency Sign */ + public var currencySign: String? = nil + /** Country ID */ + public var countryId: Int64? = nil + + + public func setMultiRequestToken(amount: String) { + self.dict["amount"] = amount + } + + public func setMultiRequestToken(currency: String) { + self.dict["currency"] = currency + } + + public func setMultiRequestToken(currencySign: String) { + self.dict["currencySign"] = currencySign + } + + public func setMultiRequestToken(countryId: String) { + self.dict["countryId"] = countryId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["amount"] != nil { + amount = dict["amount"] as? Double + } + if dict["currency"] != nil { + currency = dict["currency"] as? String + } + if dict["currencySign"] != nil { + currencySign = dict["currencySign"] as? String + } + if dict["countryId"] != nil { + countryId = Int64("\(dict["countryId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(amount != nil) { + dict["amount"] = amount! + } + if(currency != nil) { + dict["currency"] = currency! + } + if(currencySign != nil) { + dict["currencySign"] = currencySign! + } + if(countryId != nil) { + dict["countryId"] = countryId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PriceDetails.swift b/KalturaClient/Classes/Model/Objects/PriceDetails.swift new file mode 100644 index 000000000..7384d3eb3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PriceDetails.swift @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Price details */ +open class PriceDetails: ObjectBase { + + public class PriceDetailsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public func price() -> T { + return T(self.append("price")) + } + + public var multiCurrencyPrice: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multiCurrencyPrice")) + } + } + + public var descriptions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("descriptions")) + } + } + } + + /** The price code identifier */ + public var id: Int? = nil + /** The price code name */ + public var name: String? = nil + /** The price */ + public var price: Price? = nil + /** Multi currency prices for all countries and currencies */ + public var multiCurrencyPrice: Array? = nil + /** A list of the descriptions for this price on different languages (language code + and translation) */ + public var descriptions: Array? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["price"] != nil { + price = try JSONParser.parse(object: dict["price"] as! [String: Any]) } + if dict["multiCurrencyPrice"] != nil { + multiCurrencyPrice = try JSONParser.parse(array: dict["multiCurrencyPrice"] as! [Any]) + } + if dict["descriptions"] != nil { + descriptions = try JSONParser.parse(array: dict["descriptions"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(multiCurrencyPrice != nil) { + dict["multiCurrencyPrice"] = multiCurrencyPrice!.map { value in value.toDictionary() } + } + if(descriptions != nil) { + dict["descriptions"] = descriptions!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PriceDetailsFilter.swift b/KalturaClient/Classes/Model/Objects/PriceDetailsFilter.swift new file mode 100644 index 000000000..e0d7be409 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PriceDetailsFilter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PriceDetailsFilter: Filter { + + public class PriceDetailsFilterTokenizer: Filter.FilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** Comma separated price identifiers */ + public var idIn: String? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PriceDetailsListResponse.swift b/KalturaClient/Classes/Model/Objects/PriceDetailsListResponse.swift new file mode 100644 index 000000000..fcd2f31bd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PriceDetailsListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PriceDetailsListResponse: ListResponse { + + public class PriceDetailsListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of price details */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PricePlan.swift b/KalturaClient/Classes/Model/Objects/PricePlan.swift new file mode 100644 index 000000000..498dec51d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PricePlan.swift @@ -0,0 +1,119 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Price plan */ +open class PricePlan: UsageModule { + + public class PricePlanTokenizer: UsageModule.UsageModuleTokenizer { + + public var isRenewable: BaseTokenizedObject { + get { + return self.append("isRenewable") + } + } + + public var renewalsNumber: BaseTokenizedObject { + get { + return self.append("renewalsNumber") + } + } + + public var discountId: BaseTokenizedObject { + get { + return self.append("discountId") + } + } + + public var priceDetailsId: BaseTokenizedObject { + get { + return self.append("priceDetailsId") + } + } + } + + /** Denotes whether or not this object can be renewed */ + public var isRenewable: Bool? = nil + /** Defines the number of times the module will be renewed (for the life_cycle + period) */ + public var renewalsNumber: Int? = nil + /** The discount module identifier of the price plan */ + public var discountId: Int64? = nil + /** The ID of the price details associated with this price plan */ + public var priceDetailsId: Int64? = nil + + + public func setMultiRequestToken(isRenewable: String) { + self.dict["isRenewable"] = isRenewable + } + + public func setMultiRequestToken(renewalsNumber: String) { + self.dict["renewalsNumber"] = renewalsNumber + } + + public func setMultiRequestToken(discountId: String) { + self.dict["discountId"] = discountId + } + + public func setMultiRequestToken(priceDetailsId: String) { + self.dict["priceDetailsId"] = priceDetailsId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["isRenewable"] != nil { + isRenewable = dict["isRenewable"] as? Bool + } + if dict["renewalsNumber"] != nil { + renewalsNumber = dict["renewalsNumber"] as? Int + } + if dict["discountId"] != nil { + discountId = Int64("\(dict["discountId"]!)") + } + if dict["priceDetailsId"] != nil { + priceDetailsId = Int64("\(dict["priceDetailsId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(priceDetailsId != nil) { + dict["priceDetailsId"] = priceDetailsId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PricePlanFilter.swift b/KalturaClient/Classes/Model/Objects/PricePlanFilter.swift new file mode 100644 index 000000000..7ff007d35 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PricePlanFilter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PricePlanFilter: Filter { + + public class PricePlanFilterTokenizer: Filter.FilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** Comma separated price plans identifiers */ + public var idIn: String? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PricePlanListResponse.swift b/KalturaClient/Classes/Model/Objects/PricePlanListResponse.swift new file mode 100644 index 000000000..0c08a86d5 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PricePlanListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PricePlanListResponse: ListResponse { + + public class PricePlanListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of price plans */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ProductCode.swift b/KalturaClient/Classes/Model/Objects/ProductCode.swift new file mode 100644 index 000000000..b55ca3ed7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ProductCode.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Product Code */ +open class ProductCode: ObjectBase { + + public class ProductCodeTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var inappProvider: BaseTokenizedObject { + get { + return self.append("inappProvider") + } + } + + public var code: BaseTokenizedObject { + get { + return self.append("code") + } + } + } + + /** Provider Name */ + public var inappProvider: String? = nil + /** Product Code */ + public var code: String? = nil + + + public func setMultiRequestToken(inappProvider: String) { + self.dict["inappProvider"] = inappProvider + } + + public func setMultiRequestToken(code: String) { + self.dict["code"] = code + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["inappProvider"] != nil { + inappProvider = dict["inappProvider"] as? String + } + if dict["code"] != nil { + code = dict["code"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(inappProvider != nil) { + dict["inappProvider"] = inappProvider! + } + if(code != nil) { + dict["code"] = code! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ProductPrice.swift b/KalturaClient/Classes/Model/Objects/ProductPrice.swift new file mode 100644 index 000000000..6592c335b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ProductPrice.swift @@ -0,0 +1,119 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ProductPrice: ObjectBase { + + public class ProductPriceTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var productId: BaseTokenizedObject { + get { + return self.append("productId") + } + } + + public var productType: BaseTokenizedObject { + get { + return self.append("productType") + } + } + + public func price() -> T { + return T(self.append("price")) + } + + public var purchaseStatus: BaseTokenizedObject { + get { + return self.append("purchaseStatus") + } + } + } + + /** Product identifier */ + public var productId: String? = nil + /** Product Type */ + public var productType: TransactionType? = nil + /** Product price */ + public var price: Price? = nil + /** Product purchase status */ + public var purchaseStatus: PurchaseStatus? = nil + + + public func setMultiRequestToken(productId: String) { + self.dict["productId"] = productId + } + + public func setMultiRequestToken(productType: String) { + self.dict["productType"] = productType + } + + public func setMultiRequestToken(purchaseStatus: String) { + self.dict["purchaseStatus"] = purchaseStatus + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["productId"] != nil { + productId = dict["productId"] as? String + } + if dict["productType"] != nil { + productType = TransactionType(rawValue: "\(dict["productType"]!)") + } + if dict["price"] != nil { + price = try JSONParser.parse(object: dict["price"] as! [String: Any]) } + if dict["purchaseStatus"] != nil { + purchaseStatus = PurchaseStatus(rawValue: "\(dict["purchaseStatus"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(productId != nil) { + dict["productId"] = productId! + } + if(productType != nil) { + dict["productType"] = productType!.rawValue + } + if(price != nil) { + dict["price"] = price!.toDictionary() + } + if(purchaseStatus != nil) { + dict["purchaseStatus"] = purchaseStatus!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ProductPriceFilter.swift b/KalturaClient/Classes/Model/Objects/ProductPriceFilter.swift new file mode 100644 index 000000000..32853cd5c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ProductPriceFilter.swift @@ -0,0 +1,144 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ProductPriceFilter: Filter { + + public class ProductPriceFilterTokenizer: Filter.FilterTokenizer { + + public var subscriptionIdIn: BaseTokenizedObject { + get { + return self.append("subscriptionIdIn") + } + } + + public var fileIdIn: BaseTokenizedObject { + get { + return self.append("fileIdIn") + } + } + + public var collectionIdIn: BaseTokenizedObject { + get { + return self.append("collectionIdIn") + } + } + + public var isLowest: BaseTokenizedObject { + get { + return self.append("isLowest") + } + } + + public var couponCodeEqual: BaseTokenizedObject { + get { + return self.append("couponCodeEqual") + } + } + } + + /** Comma separated subscriptions identifiers */ + public var subscriptionIdIn: String? = nil + /** Comma separated media files identifiers */ + public var fileIdIn: String? = nil + /** Comma separated collections identifiers */ + public var collectionIdIn: String? = nil + /** A flag that indicates if only the lowest price of an item should return */ + public var isLowest: Bool? = nil + /** Discount coupon code */ + public var couponCodeEqual: String? = nil + + + public func setMultiRequestToken(subscriptionIdIn: String) { + self.dict["subscriptionIdIn"] = subscriptionIdIn + } + + public func setMultiRequestToken(fileIdIn: String) { + self.dict["fileIdIn"] = fileIdIn + } + + public func setMultiRequestToken(collectionIdIn: String) { + self.dict["collectionIdIn"] = collectionIdIn + } + + public func setMultiRequestToken(isLowest: String) { + self.dict["isLowest"] = isLowest + } + + public func setMultiRequestToken(couponCodeEqual: String) { + self.dict["couponCodeEqual"] = couponCodeEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["subscriptionIdIn"] != nil { + subscriptionIdIn = dict["subscriptionIdIn"] as? String + } + if dict["fileIdIn"] != nil { + fileIdIn = dict["fileIdIn"] as? String + } + if dict["collectionIdIn"] != nil { + collectionIdIn = dict["collectionIdIn"] as? String + } + if dict["isLowest"] != nil { + isLowest = dict["isLowest"] as? Bool + } + if dict["couponCodeEqual"] != nil { + couponCodeEqual = dict["couponCodeEqual"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(subscriptionIdIn != nil) { + dict["subscriptionIdIn"] = subscriptionIdIn! + } + if(fileIdIn != nil) { + dict["fileIdIn"] = fileIdIn! + } + if(collectionIdIn != nil) { + dict["collectionIdIn"] = collectionIdIn! + } + if(isLowest != nil) { + dict["isLowest"] = isLowest! + } + if(couponCodeEqual != nil) { + dict["couponCodeEqual"] = couponCodeEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ProductPriceListResponse.swift b/KalturaClient/Classes/Model/Objects/ProductPriceListResponse.swift new file mode 100644 index 000000000..0cb1e0e7b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ProductPriceListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Prices list */ +open class ProductPriceListResponse: ListResponse { + + public class ProductPriceListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of prices */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ProductsPriceListResponse.swift b/KalturaClient/Classes/Model/Objects/ProductsPriceListResponse.swift new file mode 100644 index 000000000..fa0b2d54c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ProductsPriceListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Prices list */ +open class ProductsPriceListResponse: ListResponse { + + public class ProductsPriceListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of prices */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ProgramAsset.swift b/KalturaClient/Classes/Model/Objects/ProgramAsset.swift new file mode 100644 index 000000000..92622f553 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ProgramAsset.swift @@ -0,0 +1,211 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Program-asset info */ +open class ProgramAsset: Asset { + + public class ProgramAssetTokenizer: Asset.AssetTokenizer { + + public var epgChannelId: BaseTokenizedObject { + get { + return self.append("epgChannelId") + } + } + + public var epgId: BaseTokenizedObject { + get { + return self.append("epgId") + } + } + + public var relatedMediaId: BaseTokenizedObject { + get { + return self.append("relatedMediaId") + } + } + + public var crid: BaseTokenizedObject { + get { + return self.append("crid") + } + } + + public var linearAssetId: BaseTokenizedObject { + get { + return self.append("linearAssetId") + } + } + + public var enableCdvr: BaseTokenizedObject { + get { + return self.append("enableCdvr") + } + } + + public var enableCatchUp: BaseTokenizedObject { + get { + return self.append("enableCatchUp") + } + } + + public var enableStartOver: BaseTokenizedObject { + get { + return self.append("enableStartOver") + } + } + + public var enableTrickPlay: BaseTokenizedObject { + get { + return self.append("enableTrickPlay") + } + } + } + + /** EPG channel identifier */ + public var epgChannelId: Int64? = nil + /** EPG identifier */ + public var epgId: String? = nil + /** Ralated media identifier */ + public var relatedMediaId: Int64? = nil + /** Unique identifier for the program */ + public var crid: String? = nil + /** Id of linear media asset */ + public var linearAssetId: Int64? = nil + /** Is CDVR enabled for this asset */ + public var enableCdvr: Bool? = nil + /** Is catch-up enabled for this asset */ + public var enableCatchUp: Bool? = nil + /** Is start over enabled for this asset */ + public var enableStartOver: Bool? = nil + /** Is trick-play enabled for this asset */ + public var enableTrickPlay: Bool? = nil + + + public func setMultiRequestToken(epgChannelId: String) { + self.dict["epgChannelId"] = epgChannelId + } + + public func setMultiRequestToken(epgId: String) { + self.dict["epgId"] = epgId + } + + public func setMultiRequestToken(relatedMediaId: String) { + self.dict["relatedMediaId"] = relatedMediaId + } + + public func setMultiRequestToken(crid: String) { + self.dict["crid"] = crid + } + + public func setMultiRequestToken(linearAssetId: String) { + self.dict["linearAssetId"] = linearAssetId + } + + public func setMultiRequestToken(enableCdvr: String) { + self.dict["enableCdvr"] = enableCdvr + } + + public func setMultiRequestToken(enableCatchUp: String) { + self.dict["enableCatchUp"] = enableCatchUp + } + + public func setMultiRequestToken(enableStartOver: String) { + self.dict["enableStartOver"] = enableStartOver + } + + public func setMultiRequestToken(enableTrickPlay: String) { + self.dict["enableTrickPlay"] = enableTrickPlay + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["epgChannelId"] != nil { + epgChannelId = Int64("\(dict["epgChannelId"]!)") + } + if dict["epgId"] != nil { + epgId = dict["epgId"] as? String + } + if dict["relatedMediaId"] != nil { + relatedMediaId = Int64("\(dict["relatedMediaId"]!)") + } + if dict["crid"] != nil { + crid = dict["crid"] as? String + } + if dict["linearAssetId"] != nil { + linearAssetId = Int64("\(dict["linearAssetId"]!)") + } + if dict["enableCdvr"] != nil { + enableCdvr = dict["enableCdvr"] as? Bool + } + if dict["enableCatchUp"] != nil { + enableCatchUp = dict["enableCatchUp"] as? Bool + } + if dict["enableStartOver"] != nil { + enableStartOver = dict["enableStartOver"] as? Bool + } + if dict["enableTrickPlay"] != nil { + enableTrickPlay = dict["enableTrickPlay"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(relatedMediaId != nil) { + dict["relatedMediaId"] = relatedMediaId! + } + if(crid != nil) { + dict["crid"] = crid! + } + if(linearAssetId != nil) { + dict["linearAssetId"] = linearAssetId! + } + if(enableCdvr != nil) { + dict["enableCdvr"] = enableCdvr! + } + if(enableCatchUp != nil) { + dict["enableCatchUp"] = enableCatchUp! + } + if(enableStartOver != nil) { + dict["enableStartOver"] = enableStartOver! + } + if(enableTrickPlay != nil) { + dict["enableTrickPlay"] = enableTrickPlay! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PropertySkipCondition.swift b/KalturaClient/Classes/Model/Objects/PropertySkipCondition.swift new file mode 100644 index 000000000..0ec70ce9e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PropertySkipCondition.swift @@ -0,0 +1,109 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Skips current request according to condition on given property */ +open class PropertySkipCondition: SkipCondition { + + public class PropertySkipConditionTokenizer: SkipCondition.SkipConditionTokenizer { + + public var propertyPath: BaseTokenizedObject { + get { + return self.append("propertyPath") + } + } + + public var operator_: BaseTokenizedObject { + get { + return self.append("operator_") + } + } + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** The property path on which the condition is checked */ + public var propertyPath: String? = nil + /** The operator that applies the check to the condition */ + public var operator_: SkipOperators? = nil + /** The value on which the condition is checked */ + public var value: String? = nil + + + public func setMultiRequestToken(propertyPath: String) { + self.dict["propertyPath"] = propertyPath + } + + public func setMultiRequestToken(operator_: String) { + self.dict["operator"] = operator_ + } + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["propertyPath"] != nil { + propertyPath = dict["propertyPath"] as? String + } + if dict["operator"] != nil { + operator_ = SkipOperators(rawValue: "\(dict["operator"]!)") + } + if dict["value"] != nil { + value = dict["value"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(propertyPath != nil) { + dict["propertyPath"] = propertyPath! + } + if(operator_ != nil) { + dict["operator"] = operator_!.rawValue + } + if(value != nil) { + dict["value"] = value! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PublicCouponGenerationOptions.swift b/KalturaClient/Classes/Model/Objects/PublicCouponGenerationOptions.swift new file mode 100644 index 000000000..18b89aaa0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PublicCouponGenerationOptions.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PublicCouponGenerationOptions: CouponGenerationOptions { + + public class PublicCouponGenerationOptionsTokenizer: CouponGenerationOptions.CouponGenerationOptionsTokenizer { + + public var code: BaseTokenizedObject { + get { + return self.append("code") + } + } + } + + /** Coupon code (name) */ + public var code: String? = nil + + + public func setMultiRequestToken(code: String) { + self.dict["code"] = code + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["code"] != nil { + code = dict["code"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(code != nil) { + dict["code"] = code! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Purchase.swift b/KalturaClient/Classes/Model/Objects/Purchase.swift new file mode 100644 index 000000000..0e74c1fd7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Purchase.swift @@ -0,0 +1,147 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Purchase: PurchaseBase { + + public class PurchaseTokenizer: PurchaseBase.PurchaseBaseTokenizer { + + public var currency: BaseTokenizedObject { + get { + return self.append("currency") + } + } + + public var price: BaseTokenizedObject { + get { + return self.append("price") + } + } + + public var paymentMethodId: BaseTokenizedObject { + get { + return self.append("paymentMethodId") + } + } + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + + public var coupon: BaseTokenizedObject { + get { + return self.append("coupon") + } + } + } + + /** Identifier for paying currency, according to ISO 4217 */ + public var currency: String? = nil + /** Net sum to charge – as a one-time transaction. Price must match the previously + provided price for the specified content. */ + public var price: Double? = nil + /** Identifier for a pre-entered payment method. If not provided – the + household’s default payment method is used */ + public var paymentMethodId: Int? = nil + /** Identifier for a pre-associated payment gateway. If not provided – the + account’s default payment gateway is used */ + public var paymentGatewayId: Int? = nil + /** Coupon code */ + public var coupon: String? = nil + + + public func setMultiRequestToken(currency: String) { + self.dict["currency"] = currency + } + + public func setMultiRequestToken(price: String) { + self.dict["price"] = price + } + + public func setMultiRequestToken(paymentMethodId: String) { + self.dict["paymentMethodId"] = paymentMethodId + } + + public func setMultiRequestToken(paymentGatewayId: String) { + self.dict["paymentGatewayId"] = paymentGatewayId + } + + public func setMultiRequestToken(coupon: String) { + self.dict["coupon"] = coupon + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["currency"] != nil { + currency = dict["currency"] as? String + } + if dict["price"] != nil { + price = dict["price"] as? Double + } + if dict["paymentMethodId"] != nil { + paymentMethodId = dict["paymentMethodId"] as? Int + } + if dict["paymentGatewayId"] != nil { + paymentGatewayId = dict["paymentGatewayId"] as? Int + } + if dict["coupon"] != nil { + coupon = dict["coupon"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(currency != nil) { + dict["currency"] = currency! + } + if(price != nil) { + dict["price"] = price! + } + if(paymentMethodId != nil) { + dict["paymentMethodId"] = paymentMethodId! + } + if(paymentGatewayId != nil) { + dict["paymentGatewayId"] = paymentGatewayId! + } + if(coupon != nil) { + dict["coupon"] = coupon! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PurchaseBase.swift b/KalturaClient/Classes/Model/Objects/PurchaseBase.swift new file mode 100644 index 000000000..4036e7e1c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PurchaseBase.swift @@ -0,0 +1,126 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PurchaseBase: ObjectBase { + + public class PurchaseBaseTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var productId: BaseTokenizedObject { + get { + return self.append("productId") + } + } + + public var contentId: BaseTokenizedObject { + get { + return self.append("contentId") + } + } + + public var productType: BaseTokenizedObject { + get { + return self.append("productType") + } + } + + public var adapterData: BaseTokenizedObject { + get { + return self.append("adapterData") + } + } + } + + /** Identifier for the package from which this content is offered */ + public var productId: Int? = nil + /** Identifier for the content to purchase. Relevant only if Product type = PPV */ + public var contentId: Int? = nil + /** Package type. Possible values: PPV, Subscription, Collection */ + public var productType: TransactionType? = nil + /** Additional data for the adapter */ + public var adapterData: String? = nil + + + public func setMultiRequestToken(productId: String) { + self.dict["productId"] = productId + } + + public func setMultiRequestToken(contentId: String) { + self.dict["contentId"] = contentId + } + + public func setMultiRequestToken(productType: String) { + self.dict["productType"] = productType + } + + public func setMultiRequestToken(adapterData: String) { + self.dict["adapterData"] = adapterData + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["productId"] != nil { + productId = dict["productId"] as? Int + } + if dict["contentId"] != nil { + contentId = dict["contentId"] as? Int + } + if dict["productType"] != nil { + productType = TransactionType(rawValue: "\(dict["productType"]!)") + } + if dict["adapterData"] != nil { + adapterData = dict["adapterData"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(productId != nil) { + dict["productId"] = productId! + } + if(contentId != nil) { + dict["contentId"] = contentId! + } + if(productType != nil) { + dict["productType"] = productType!.rawValue + } + if(adapterData != nil) { + dict["adapterData"] = adapterData! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PurchaseSession.swift b/KalturaClient/Classes/Model/Objects/PurchaseSession.swift new file mode 100644 index 000000000..cd9c04763 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PurchaseSession.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PurchaseSession: Purchase { + + public class PurchaseSessionTokenizer: Purchase.PurchaseTokenizer { + + public var previewModuleId: BaseTokenizedObject { + get { + return self.append("previewModuleId") + } + } + } + + /** Preview module identifier (relevant only for subscription) */ + public var previewModuleId: Int? = nil + + + public func setMultiRequestToken(previewModuleId: String) { + self.dict["previewModuleId"] = previewModuleId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["previewModuleId"] != nil { + previewModuleId = dict["previewModuleId"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(previewModuleId != nil) { + dict["previewModuleId"] = previewModuleId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PurchaseSettings.swift b/KalturaClient/Classes/Model/Objects/PurchaseSettings.swift new file mode 100644 index 000000000..88a958a10 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PurchaseSettings.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Purchase settings and PIN */ +open class PurchaseSettings: Pin { + + public class PurchaseSettingsTokenizer: Pin.PinTokenizer { + + public var permission: BaseTokenizedObject { + get { + return self.append("permission") + } + } + } + + /** Purchase permission - block, ask or allow */ + public var permission: PurchaseSettingsType? = nil + + + public func setMultiRequestToken(permission: String) { + self.dict["permission"] = permission + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["permission"] != nil { + permission = PurchaseSettingsType(rawValue: "\(dict["permission"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(permission != nil) { + dict["permission"] = permission!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PushMessage.swift b/KalturaClient/Classes/Model/Objects/PushMessage.swift new file mode 100644 index 000000000..44550efb8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PushMessage.swift @@ -0,0 +1,163 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PushMessage: ObjectBase { + + public class PushMessageTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var message: BaseTokenizedObject { + get { + return self.append("message") + } + } + + public var sound: BaseTokenizedObject { + get { + return self.append("sound") + } + } + + public var action: BaseTokenizedObject { + get { + return self.append("action") + } + } + + public var url: BaseTokenizedObject { + get { + return self.append("url") + } + } + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + + public var pushChannels: BaseTokenizedObject { + get { + return self.append("pushChannels") + } + } + } + + /** The message that will be presented to the user. */ + public var message: String? = nil + /** Optional. Can be used to change the default push sound on the user device. */ + public var sound: String? = nil + /** Optional. Used to change the default action of the application when a push is + received. */ + public var action: String? = nil + /** Optional. Used to direct the application to the relevant page. */ + public var url: String? = nil + /** Device unique identifier */ + public var udid: String? = nil + /** PushChannels - separated with comma */ + public var pushChannels: String? = nil + + + public func setMultiRequestToken(message: String) { + self.dict["message"] = message + } + + public func setMultiRequestToken(sound: String) { + self.dict["sound"] = sound + } + + public func setMultiRequestToken(action: String) { + self.dict["action"] = action + } + + public func setMultiRequestToken(url: String) { + self.dict["url"] = url + } + + public func setMultiRequestToken(udid: String) { + self.dict["udid"] = udid + } + + public func setMultiRequestToken(pushChannels: String) { + self.dict["pushChannels"] = pushChannels + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["message"] != nil { + message = dict["message"] as? String + } + if dict["sound"] != nil { + sound = dict["sound"] as? String + } + if dict["action"] != nil { + action = dict["action"] as? String + } + if dict["url"] != nil { + url = dict["url"] as? String + } + if dict["udid"] != nil { + udid = dict["udid"] as? String + } + if dict["pushChannels"] != nil { + pushChannels = dict["pushChannels"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(message != nil) { + dict["message"] = message! + } + if(sound != nil) { + dict["sound"] = sound! + } + if(action != nil) { + dict["action"] = action! + } + if(url != nil) { + dict["url"] = url! + } + if(udid != nil) { + dict["udid"] = udid! + } + if(pushChannels != nil) { + dict["pushChannels"] = pushChannels! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/PushParams.swift b/KalturaClient/Classes/Model/Objects/PushParams.swift new file mode 100644 index 000000000..69a5f5893 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/PushParams.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class PushParams: ObjectBase { + + public class PushParamsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var token: BaseTokenizedObject { + get { + return self.append("token") + } + } + + public var externalToken: BaseTokenizedObject { + get { + return self.append("externalToken") + } + } + } + + /** Device-Application push token */ + public var token: String? = nil + /** External device token as received from external push provider in exchange for + the device token */ + public var externalToken: String? = nil + + + public func setMultiRequestToken(token: String) { + self.dict["token"] = token + } + + public func setMultiRequestToken(externalToken: String) { + self.dict["externalToken"] = externalToken + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["token"] != nil { + token = dict["token"] as? String + } + if dict["externalToken"] != nil { + externalToken = dict["externalToken"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(token != nil) { + dict["token"] = token! + } + if(externalToken != nil) { + dict["externalToken"] = externalToken! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RandomCouponGenerationOptions.swift b/KalturaClient/Classes/Model/Objects/RandomCouponGenerationOptions.swift new file mode 100644 index 000000000..32ad4df12 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RandomCouponGenerationOptions.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class RandomCouponGenerationOptions: CouponGenerationOptions { + + public class RandomCouponGenerationOptionsTokenizer: CouponGenerationOptions.CouponGenerationOptionsTokenizer { + + public var numberOfCoupons: BaseTokenizedObject { + get { + return self.append("numberOfCoupons") + } + } + + public var useLetters: BaseTokenizedObject { + get { + return self.append("useLetters") + } + } + + public var useNumbers: BaseTokenizedObject { + get { + return self.append("useNumbers") + } + } + + public var useSpecialCharacters: BaseTokenizedObject { + get { + return self.append("useSpecialCharacters") + } + } + } + + /** Number of coupons to generate */ + public var numberOfCoupons: Int? = nil + /** Indicates whether to use letters in the generated codes (default is true) */ + public var useLetters: Bool? = nil + /** Indicates whether to use numbers in the generated codes (default is true) */ + public var useNumbers: Bool? = nil + /** Indicates whether to use special characters in the generated codes(default is + true) */ + public var useSpecialCharacters: Bool? = nil + + + public func setMultiRequestToken(numberOfCoupons: String) { + self.dict["numberOfCoupons"] = numberOfCoupons + } + + public func setMultiRequestToken(useLetters: String) { + self.dict["useLetters"] = useLetters + } + + public func setMultiRequestToken(useNumbers: String) { + self.dict["useNumbers"] = useNumbers + } + + public func setMultiRequestToken(useSpecialCharacters: String) { + self.dict["useSpecialCharacters"] = useSpecialCharacters + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["numberOfCoupons"] != nil { + numberOfCoupons = dict["numberOfCoupons"] as? Int + } + if dict["useLetters"] != nil { + useLetters = dict["useLetters"] as? Bool + } + if dict["useNumbers"] != nil { + useNumbers = dict["useNumbers"] as? Bool + } + if dict["useSpecialCharacters"] != nil { + useSpecialCharacters = dict["useSpecialCharacters"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(numberOfCoupons != nil) { + dict["numberOfCoupons"] = numberOfCoupons! + } + if(useLetters != nil) { + dict["useLetters"] = useLetters! + } + if(useNumbers != nil) { + dict["useNumbers"] = useNumbers! + } + if(useSpecialCharacters != nil) { + dict["useSpecialCharacters"] = useSpecialCharacters! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Ratio.swift b/KalturaClient/Classes/Model/Objects/Ratio.swift new file mode 100644 index 000000000..af720ca33 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Ratio.swift @@ -0,0 +1,142 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Ratio: ObjectBase { + + public class RatioTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var height: BaseTokenizedObject { + get { + return self.append("height") + } + } + + public var width: BaseTokenizedObject { + get { + return self.append("width") + } + } + + public var precisionPrecentage: BaseTokenizedObject { + get { + return self.append("precisionPrecentage") + } + } + } + + /** ID */ + public var id: Int64? = nil + /** Name */ + public var name: String? = nil + /** Height */ + public var height: Int? = nil + /** Width */ + public var width: Int? = nil + /** Accepted error margin precentage of an image uploaded for this ratio + 0 - no validation, everything accepted */ + public var precisionPrecentage: Int? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(height: String) { + self.dict["height"] = height + } + + public func setMultiRequestToken(width: String) { + self.dict["width"] = width + } + + public func setMultiRequestToken(precisionPrecentage: String) { + self.dict["precisionPrecentage"] = precisionPrecentage + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["height"] != nil { + height = dict["height"] as? Int + } + if dict["width"] != nil { + width = dict["width"] as? Int + } + if dict["precisionPrecentage"] != nil { + precisionPrecentage = dict["precisionPrecentage"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(height != nil) { + dict["height"] = height! + } + if(width != nil) { + dict["width"] = width! + } + if(precisionPrecentage != nil) { + dict["precisionPrecentage"] = precisionPrecentage! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RatioListResponse.swift b/KalturaClient/Classes/Model/Objects/RatioListResponse.swift new file mode 100644 index 000000000..ec8d22350 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RatioListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class RatioListResponse: ListResponse { + + public class RatioListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of ratios */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RecommendationProfile.swift b/KalturaClient/Classes/Model/Objects/RecommendationProfile.swift new file mode 100644 index 000000000..0815e4955 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RecommendationProfile.swift @@ -0,0 +1,171 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** PaymentGW */ +open class RecommendationProfile: ObjectBase { + + public class RecommendationProfileTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + + public var adapterUrl: BaseTokenizedObject { + get { + return self.append("adapterUrl") + } + } + + public var recommendationEngineSettings: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("recommendationEngineSettings")) + } + } + + public var externalIdentifier: BaseTokenizedObject { + get { + return self.append("externalIdentifier") + } + } + + public var sharedSecret: BaseTokenizedObject { + get { + return self.append("sharedSecret") + } + } + } + + /** recommendation engine id */ + public var id: Int? = nil + /** recommendation engine name */ + public var name: String? = nil + /** recommendation engine is active status */ + public var isActive: Bool? = nil + /** recommendation engine adapter URL */ + public var adapterUrl: String? = nil + /** recommendation engine extra parameters */ + public var recommendationEngineSettings: Dictionary? = nil + /** recommendation engine external identifier */ + public var externalIdentifier: String? = nil + /** Shared Secret */ + public var sharedSecret: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public func setMultiRequestToken(adapterUrl: String) { + self.dict["adapterUrl"] = adapterUrl + } + + public func setMultiRequestToken(externalIdentifier: String) { + self.dict["externalIdentifier"] = externalIdentifier + } + + public func setMultiRequestToken(sharedSecret: String) { + self.dict["sharedSecret"] = sharedSecret + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Bool + } + if dict["adapterUrl"] != nil { + adapterUrl = dict["adapterUrl"] as? String + } + if dict["recommendationEngineSettings"] != nil { + recommendationEngineSettings = try JSONParser.parse(map: dict["recommendationEngineSettings"] as! [String: Any]) + } + if dict["externalIdentifier"] != nil { + externalIdentifier = dict["externalIdentifier"] as? String + } + if dict["sharedSecret"] != nil { + sharedSecret = dict["sharedSecret"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(isActive != nil) { + dict["isActive"] = isActive! + } + if(adapterUrl != nil) { + dict["adapterUrl"] = adapterUrl! + } + if(recommendationEngineSettings != nil) { + dict["recommendationEngineSettings"] = recommendationEngineSettings!.toDictionary() + } + if(externalIdentifier != nil) { + dict["externalIdentifier"] = externalIdentifier! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RecommendationProfileListResponse.swift b/KalturaClient/Classes/Model/Objects/RecommendationProfileListResponse.swift new file mode 100644 index 000000000..0a6f1d4ea --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RecommendationProfileListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of recommendation profiles. */ +open class RecommendationProfileListResponse: ListResponse { + + public class RecommendationProfileListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Recommendation profiles list */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Recording.swift b/KalturaClient/Classes/Model/Objects/Recording.swift new file mode 100644 index 000000000..305d07f31 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Recording.swift @@ -0,0 +1,188 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Recording: ObjectBase { + + public class RecordingTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var viewableUntilDate: BaseTokenizedObject { + get { + return self.append("viewableUntilDate") + } + } + + public var isProtected: BaseTokenizedObject { + get { + return self.append("isProtected") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + } + + /** Kaltura unique ID representing the recording identifier */ + public var id: Int64? = nil + /** Recording state: scheduled/recording/recorded/canceled/failed/deleted */ + public var status: RecordingStatus? = nil + /** Kaltura unique ID representing the program identifier */ + public var assetId: Int64? = nil + /** Recording Type: single/season/series */ + public var type: RecordingType? = nil + /** Specifies until when the recording is available for viewing. Date and time + represented as epoch. */ + public var viewableUntilDate: Int64? = nil + /** Specifies whether or not the recording is protected */ + public var isProtected: Bool? = nil + /** Specifies when was the recording created. Date and time represented as epoch. */ + public var createDate: Int64? = nil + /** Specifies when was the recording last updated. Date and time represented as + epoch. */ + public var updateDate: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(viewableUntilDate: String) { + self.dict["viewableUntilDate"] = viewableUntilDate + } + + public func setMultiRequestToken(isProtected: String) { + self.dict["isProtected"] = isProtected + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["status"] != nil { + status = RecordingStatus(rawValue: "\(dict["status"]!)") + } + if dict["assetId"] != nil { + assetId = Int64("\(dict["assetId"]!)") + } + if dict["type"] != nil { + type = RecordingType(rawValue: "\(dict["type"]!)") + } + if dict["viewableUntilDate"] != nil { + viewableUntilDate = Int64("\(dict["viewableUntilDate"]!)") + } + if dict["isProtected"] != nil { + isProtected = dict["isProtected"] as? Bool + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetId != nil) { + dict["assetId"] = assetId! + } + if(type != nil) { + dict["type"] = type!.rawValue + } + if(viewableUntilDate != nil) { + dict["viewableUntilDate"] = viewableUntilDate! + } + if(isProtected != nil) { + dict["isProtected"] = isProtected! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RecordingAsset.swift b/KalturaClient/Classes/Model/Objects/RecordingAsset.swift new file mode 100644 index 000000000..7c8cdc134 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RecordingAsset.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Recording-asset info */ +open class RecordingAsset: ProgramAsset { + + public class RecordingAssetTokenizer: ProgramAsset.ProgramAssetTokenizer { + + public var recordingId: BaseTokenizedObject { + get { + return self.append("recordingId") + } + } + + public var recordingType: BaseTokenizedObject { + get { + return self.append("recordingType") + } + } + } + + /** Recording identifier */ + public var recordingId: String? = nil + /** Recording Type: single/season/series */ + public var recordingType: RecordingType? = nil + + + public func setMultiRequestToken(recordingId: String) { + self.dict["recordingId"] = recordingId + } + + public func setMultiRequestToken(recordingType: String) { + self.dict["recordingType"] = recordingType + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["recordingId"] != nil { + recordingId = dict["recordingId"] as? String + } + if dict["recordingType"] != nil { + recordingType = RecordingType(rawValue: "\(dict["recordingType"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(recordingId != nil) { + dict["recordingId"] = recordingId! + } + if(recordingType != nil) { + dict["recordingType"] = recordingType!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RecordingContextFilter.swift b/KalturaClient/Classes/Model/Objects/RecordingContextFilter.swift new file mode 100644 index 000000000..ed42058f4 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RecordingContextFilter.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Filtering assets */ +open class RecordingContextFilter: Filter { + + public class RecordingContextFilterTokenizer: Filter.FilterTokenizer { + + public var assetIdIn: BaseTokenizedObject { + get { + return self.append("assetIdIn") + } + } + } + + /** Comma separated asset ids */ + public var assetIdIn: String? = nil + + + public func setMultiRequestToken(assetIdIn: String) { + self.dict["assetIdIn"] = assetIdIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetIdIn"] != nil { + assetIdIn = dict["assetIdIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetIdIn != nil) { + dict["assetIdIn"] = assetIdIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RecordingFilter.swift b/KalturaClient/Classes/Model/Objects/RecordingFilter.swift new file mode 100644 index 000000000..2418b2bdd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RecordingFilter.swift @@ -0,0 +1,109 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Filtering recordings */ +open class RecordingFilter: Filter { + + public class RecordingFilterTokenizer: Filter.FilterTokenizer { + + public var statusIn: BaseTokenizedObject { + get { + return self.append("statusIn") + } + } + + public var externalRecordingIdIn: BaseTokenizedObject { + get { + return self.append("externalRecordingIdIn") + } + } + + public var kSql: BaseTokenizedObject { + get { + return self.append("kSql") + } + } + } + + /** Recording Statuses */ + public var statusIn: String? = nil + /** Comma separated external identifiers */ + public var externalRecordingIdIn: String? = nil + /** KSQL expression */ + public var kSql: String? = nil + + + public func setMultiRequestToken(statusIn: String) { + self.dict["statusIn"] = statusIn + } + + public func setMultiRequestToken(externalRecordingIdIn: String) { + self.dict["externalRecordingIdIn"] = externalRecordingIdIn + } + + public func setMultiRequestToken(kSql: String) { + self.dict["kSql"] = kSql + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["statusIn"] != nil { + statusIn = dict["statusIn"] as? String + } + if dict["externalRecordingIdIn"] != nil { + externalRecordingIdIn = dict["externalRecordingIdIn"] as? String + } + if dict["kSql"] != nil { + kSql = dict["kSql"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(statusIn != nil) { + dict["statusIn"] = statusIn! + } + if(externalRecordingIdIn != nil) { + dict["externalRecordingIdIn"] = externalRecordingIdIn! + } + if(kSql != nil) { + dict["kSql"] = kSql! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RecordingListResponse.swift b/KalturaClient/Classes/Model/Objects/RecordingListResponse.swift new file mode 100644 index 000000000..4b94c142d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RecordingListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Recordings info wrapper */ +open class RecordingListResponse: ListResponse { + + public class RecordingListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Recordings */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RegexExpression.swift b/KalturaClient/Classes/Model/Objects/RegexExpression.swift new file mode 100644 index 000000000..7f8d50898 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RegexExpression.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** KalturaRegexExpression */ +open class RegexExpression: ObjectBase { + + public class RegexExpressionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var expression: BaseTokenizedObject { + get { + return self.append("expression") + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + } + + /** regex expression */ + public var expression: String? = nil + /** description */ + public var description: String? = nil + + + public func setMultiRequestToken(expression: String) { + self.dict["expression"] = expression + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["expression"] != nil { + expression = dict["expression"] as? String + } + if dict["description"] != nil { + description = dict["description"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(expression != nil) { + dict["expression"] = expression! + } + if(description != nil) { + dict["description"] = description! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Region.swift b/KalturaClient/Classes/Model/Objects/Region.swift new file mode 100644 index 000000000..dab90e3b6 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Region.swift @@ -0,0 +1,155 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Region: ObjectBase { + + public class RegionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + + public var isDefault: BaseTokenizedObject { + get { + return self.append("isDefault") + } + } + + public var linearChannels: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("linearChannels")) + } + } + + public var parentId: BaseTokenizedObject { + get { + return self.append("parentId") + } + } + } + + /** Region identifier */ + public var id: Int? = nil + /** Region name */ + public var name: String? = nil + /** Region external identifier */ + public var externalId: String? = nil + /** Indicates whether this is the default region for the partner */ + public var isDefault: Bool? = nil + /** List of associated linear channels */ + public var linearChannels: Array? = nil + /** Parent region ID */ + public var parentId: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(externalId: String) { + self.dict["externalId"] = externalId + } + + public func setMultiRequestToken(isDefault: String) { + self.dict["isDefault"] = isDefault + } + + public func setMultiRequestToken(parentId: String) { + self.dict["parentId"] = parentId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["externalId"] != nil { + externalId = dict["externalId"] as? String + } + if dict["isDefault"] != nil { + isDefault = dict["isDefault"] as? Bool + } + if dict["linearChannels"] != nil { + linearChannels = try JSONParser.parse(array: dict["linearChannels"] as! [Any]) + } + if dict["parentId"] != nil { + parentId = Int64("\(dict["parentId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(name != nil) { + dict["name"] = name! + } + if(externalId != nil) { + dict["externalId"] = externalId! + } + if(linearChannels != nil) { + dict["linearChannels"] = linearChannels!.map { value in value.toDictionary() } + } + if(parentId != nil) { + dict["parentId"] = parentId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RegionFilter.swift b/KalturaClient/Classes/Model/Objects/RegionFilter.swift new file mode 100644 index 000000000..3c6685eaf --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RegionFilter.swift @@ -0,0 +1,144 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class RegionFilter: BaseRegionFilter { + + public class RegionFilterTokenizer: BaseRegionFilter.BaseRegionFilterTokenizer { + + public var externalIdIn: BaseTokenizedObject { + get { + return self.append("externalIdIn") + } + } + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + + public var parentIdEqual: BaseTokenizedObject { + get { + return self.append("parentIdEqual") + } + } + + public var liveAssetIdEqual: BaseTokenizedObject { + get { + return self.append("liveAssetIdEqual") + } + } + + public var parentOnly: BaseTokenizedObject { + get { + return self.append("parentOnly") + } + } + } + + /** List of comma separated regions external IDs */ + public var externalIdIn: String? = nil + /** List of comma separated regions Ids */ + public var idIn: String? = nil + /** Region parent ID to filter by */ + public var parentIdEqual: Int? = nil + /** Region parent ID to filter by */ + public var liveAssetIdEqual: Int? = nil + /** Parent region to filter by */ + public var parentOnly: Bool? = nil + + + public func setMultiRequestToken(externalIdIn: String) { + self.dict["externalIdIn"] = externalIdIn + } + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public func setMultiRequestToken(parentIdEqual: String) { + self.dict["parentIdEqual"] = parentIdEqual + } + + public func setMultiRequestToken(liveAssetIdEqual: String) { + self.dict["liveAssetIdEqual"] = liveAssetIdEqual + } + + public func setMultiRequestToken(parentOnly: String) { + self.dict["parentOnly"] = parentOnly + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["externalIdIn"] != nil { + externalIdIn = dict["externalIdIn"] as? String + } + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + if dict["parentIdEqual"] != nil { + parentIdEqual = dict["parentIdEqual"] as? Int + } + if dict["liveAssetIdEqual"] != nil { + liveAssetIdEqual = dict["liveAssetIdEqual"] as? Int + } + if dict["parentOnly"] != nil { + parentOnly = dict["parentOnly"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(externalIdIn != nil) { + dict["externalIdIn"] = externalIdIn! + } + if(idIn != nil) { + dict["idIn"] = idIn! + } + if(parentIdEqual != nil) { + dict["parentIdEqual"] = parentIdEqual! + } + if(liveAssetIdEqual != nil) { + dict["liveAssetIdEqual"] = liveAssetIdEqual! + } + if(parentOnly != nil) { + dict["parentOnly"] = parentOnly! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RegionListResponse.swift b/KalturaClient/Classes/Model/Objects/RegionListResponse.swift new file mode 100644 index 000000000..db93f7281 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RegionListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Regions list */ +open class RegionListResponse: ListResponse { + + public class RegionListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of regions */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RegionalChannel.swift b/KalturaClient/Classes/Model/Objects/RegionalChannel.swift new file mode 100644 index 000000000..51e1381ba --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RegionalChannel.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class RegionalChannel: ObjectBase { + + public class RegionalChannelTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var linearChannelId: BaseTokenizedObject { + get { + return self.append("linearChannelId") + } + } + + public var channelNumber: BaseTokenizedObject { + get { + return self.append("channelNumber") + } + } + } + + /** The identifier of the linear media representing the channel */ + public var linearChannelId: Int? = nil + /** The number of the channel */ + public var channelNumber: Int? = nil + + + public func setMultiRequestToken(linearChannelId: String) { + self.dict["linearChannelId"] = linearChannelId + } + + public func setMultiRequestToken(channelNumber: String) { + self.dict["channelNumber"] = channelNumber + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["linearChannelId"] != nil { + linearChannelId = dict["linearChannelId"] as? Int + } + if dict["channelNumber"] != nil { + channelNumber = dict["channelNumber"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(linearChannelId != nil) { + dict["linearChannelId"] = linearChannelId! + } + if(channelNumber != nil) { + dict["channelNumber"] = channelNumber! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RegistryResponse.swift b/KalturaClient/Classes/Model/Objects/RegistryResponse.swift new file mode 100644 index 000000000..1d5a7fb6c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RegistryResponse.swift @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class RegistryResponse: ObjectBase { + + public class RegistryResponseTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var announcementId: BaseTokenizedObject { + get { + return self.append("announcementId") + } + } + + public var key: BaseTokenizedObject { + get { + return self.append("key") + } + } + + public var url: BaseTokenizedObject { + get { + return self.append("url") + } + } + } + + /** Announcement Id */ + public var announcementId: Int64? = nil + /** Key */ + public var key: String? = nil + /** URL */ + public var url: String? = nil + + + public func setMultiRequestToken(announcementId: String) { + self.dict["announcementId"] = announcementId + } + + public func setMultiRequestToken(key: String) { + self.dict["key"] = key + } + + public func setMultiRequestToken(url: String) { + self.dict["url"] = url + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["announcementId"] != nil { + announcementId = Int64("\(dict["announcementId"]!)") + } + if dict["key"] != nil { + key = dict["key"] as? String + } + if dict["url"] != nil { + url = dict["url"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(announcementId != nil) { + dict["announcementId"] = announcementId! + } + if(key != nil) { + dict["key"] = key! + } + if(url != nil) { + dict["url"] = url! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RegistrySettings.swift b/KalturaClient/Classes/Model/Objects/RegistrySettings.swift new file mode 100644 index 000000000..117ec2864 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RegistrySettings.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class RegistrySettings: ObjectBase { + + public class RegistrySettingsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var key: BaseTokenizedObject { + get { + return self.append("key") + } + } + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** Permission item identifier */ + public var key: String? = nil + /** Permission item name */ + public var value: String? = nil + + + public func setMultiRequestToken(key: String) { + self.dict["key"] = key + } + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["key"] != nil { + key = dict["key"] as? String + } + if dict["value"] != nil { + value = dict["value"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(key != nil) { + dict["key"] = key! + } + if(value != nil) { + dict["value"] = value! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RegistrySettingsListResponse.swift b/KalturaClient/Classes/Model/Objects/RegistrySettingsListResponse.swift new file mode 100644 index 000000000..1f6b66c8d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RegistrySettingsListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of registry settings. */ +open class RegistrySettingsListResponse: ListResponse { + + public class RegistrySettingsListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Registry settings list */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RelatedEntity.swift b/KalturaClient/Classes/Model/Objects/RelatedEntity.swift new file mode 100644 index 000000000..2f8c54362 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RelatedEntity.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class RelatedEntity: ObjectBase { + + public class RelatedEntityTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** Unique identifier for the related entry */ + public var id: String? = nil + /** Defines related entry type */ + public var type: RelatedEntityType? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["type"] != nil { + type = RelatedEntityType(rawValue: "\(dict["type"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(type != nil) { + dict["type"] = type!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RelatedEntityArray.swift b/KalturaClient/Classes/Model/Objects/RelatedEntityArray.swift new file mode 100644 index 000000000..6bb6e1558 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RelatedEntityArray.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class RelatedEntityArray: ObjectBase { + + public class RelatedEntityArrayTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** List of related entities */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RelatedExternalFilter.swift b/KalturaClient/Classes/Model/Objects/RelatedExternalFilter.swift new file mode 100644 index 000000000..81b941ffe --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RelatedExternalFilter.swift @@ -0,0 +1,129 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class RelatedExternalFilter: AssetFilter { + + public class RelatedExternalFilterTokenizer: AssetFilter.AssetFilterTokenizer { + + public var idEqual: BaseTokenizedObject { + get { + return self.append("idEqual") + } + } + + public var typeIn: BaseTokenizedObject { + get { + return self.append("typeIn") + } + } + + public var utcOffsetEqual: BaseTokenizedObject { + get { + return self.append("utcOffsetEqual") + } + } + + public var freeText: BaseTokenizedObject { + get { + return self.append("freeText") + } + } + } + + /** the External ID of the asset for which to return related assets */ + public var idEqual: Int? = nil + /** Comma separated list of asset types to search within. Possible + values: 0 – EPG linear programs entries, any media type ID (according to media + type IDs defined dynamically in the system). If omitted – all + types should be included. */ + public var typeIn: String? = nil + /** UtcOffsetEqual */ + public var utcOffsetEqual: Int? = nil + /** FreeText */ + public var freeText: String? = nil + + + public func setMultiRequestToken(idEqual: String) { + self.dict["idEqual"] = idEqual + } + + public func setMultiRequestToken(typeIn: String) { + self.dict["typeIn"] = typeIn + } + + public func setMultiRequestToken(utcOffsetEqual: String) { + self.dict["utcOffsetEqual"] = utcOffsetEqual + } + + public func setMultiRequestToken(freeText: String) { + self.dict["freeText"] = freeText + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idEqual"] != nil { + idEqual = dict["idEqual"] as? Int + } + if dict["typeIn"] != nil { + typeIn = dict["typeIn"] as? String + } + if dict["utcOffsetEqual"] != nil { + utcOffsetEqual = dict["utcOffsetEqual"] as? Int + } + if dict["freeText"] != nil { + freeText = dict["freeText"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idEqual != nil) { + dict["idEqual"] = idEqual! + } + if(typeIn != nil) { + dict["typeIn"] = typeIn! + } + if(utcOffsetEqual != nil) { + dict["utcOffsetEqual"] = utcOffsetEqual! + } + if(freeText != nil) { + dict["freeText"] = freeText! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RelatedFilter.swift b/KalturaClient/Classes/Model/Objects/RelatedFilter.swift new file mode 100644 index 000000000..34fbc891a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RelatedFilter.swift @@ -0,0 +1,110 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class RelatedFilter: BaseSearchAssetFilter { + + public class RelatedFilterTokenizer: BaseSearchAssetFilter.BaseSearchAssetFilterTokenizer { + + public var idEqual: BaseTokenizedObject { + get { + return self.append("idEqual") + } + } + + public var typeIn: BaseTokenizedObject { + get { + return self.append("typeIn") + } + } + + public var excludeWatched: BaseTokenizedObject { + get { + return self.append("excludeWatched") + } + } + } + + /** the ID of the asset for which to return related assets */ + public var idEqual: Int? = nil + /** Comma separated list of asset types to search within. Possible + values: any media type ID (according to media type IDs defined dynamically in + the system). If omitted – same type as the provided asset. */ + public var typeIn: String? = nil + /** Exclude watched asset. */ + public var excludeWatched: Bool? = nil + + + public func setMultiRequestToken(idEqual: String) { + self.dict["idEqual"] = idEqual + } + + public func setMultiRequestToken(typeIn: String) { + self.dict["typeIn"] = typeIn + } + + public func setMultiRequestToken(excludeWatched: String) { + self.dict["excludeWatched"] = excludeWatched + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idEqual"] != nil { + idEqual = dict["idEqual"] as? Int + } + if dict["typeIn"] != nil { + typeIn = dict["typeIn"] as? String + } + if dict["excludeWatched"] != nil { + excludeWatched = dict["excludeWatched"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idEqual != nil) { + dict["idEqual"] = idEqual! + } + if(typeIn != nil) { + dict["typeIn"] = typeIn! + } + if(excludeWatched != nil) { + dict["excludeWatched"] = excludeWatched! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RelatedObjectFilter.swift b/KalturaClient/Classes/Model/Objects/RelatedObjectFilter.swift new file mode 100644 index 000000000..1d9e73d2e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RelatedObjectFilter.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Define KalturaRelatedObjectFilter */ +open class RelatedObjectFilter: Filter { + + public class RelatedObjectFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/Reminder.swift b/KalturaClient/Classes/Model/Objects/Reminder.swift new file mode 100644 index 000000000..d2c8a37d8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Reminder.swift @@ -0,0 +1,102 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Reminder: ObjectBase { + + public class ReminderTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** Reminder name */ + public var name: String? = nil + /** Reminder id */ + public var id: Int? = nil + /** Reminder type */ + public var type: ReminderType? = nil + + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["type"] != nil { + type = ReminderType(rawValue: "\(dict["type"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(type != nil) { + dict["type"] = type!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ReminderFilter.swift b/KalturaClient/Classes/Model/Objects/ReminderFilter.swift new file mode 100644 index 000000000..9eeb4152a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ReminderFilter.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ReminderFilter: Filter { + + public class ReminderFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/ReminderListResponse.swift b/KalturaClient/Classes/Model/Objects/ReminderListResponse.swift new file mode 100644 index 000000000..09e1d06b9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ReminderListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of reminders from DB. */ +open class ReminderListResponse: ListResponse { + + public class ReminderListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Reminders */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Report.swift b/KalturaClient/Classes/Model/Objects/Report.swift new file mode 100644 index 000000000..30cd067c3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Report.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Report: ObjectBase { + + public class ReportTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/ReportFilter.swift b/KalturaClient/Classes/Model/Objects/ReportFilter.swift new file mode 100644 index 000000000..812f78915 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ReportFilter.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Report filter */ +open class ReportFilter: Filter { + + public class ReportFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/ReportListResponse.swift b/KalturaClient/Classes/Model/Objects/ReportListResponse.swift new file mode 100644 index 000000000..6471f7a74 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ReportListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Reports info wrapper */ +open class ReportListResponse: ListResponse { + + public class ReportListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Reports */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RequestConfiguration.swift b/KalturaClient/Classes/Model/Objects/RequestConfiguration.swift new file mode 100644 index 000000000..fe5244cca --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RequestConfiguration.swift @@ -0,0 +1,203 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Define client request optional configurations */ +open class RequestConfiguration: ObjectBase { + + public class RequestConfigurationTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + + public var language: BaseTokenizedObject { + get { + return self.append("language") + } + } + + public var currency: BaseTokenizedObject { + get { + return self.append("currency") + } + } + + public var ks: BaseTokenizedObject { + get { + return self.append("ks") + } + } + + public func responseProfile() -> T { + return T(self.append("responseProfile")) + } + + public var abortOnError: BaseTokenizedObject { + get { + return self.append("abortOnError") + } + } + + public var abortAllOnError: BaseTokenizedObject { + get { + return self.append("abortAllOnError") + } + } + + public func skipCondition() -> T { + return T(self.append("skipCondition")) + } + } + + /** Impersonated partner id */ + public var partnerId: Int? = nil + /** Impersonated user id */ + public var userId: Int? = nil + /** Content language */ + public var language: String? = nil + /** Currency to be used */ + public var currency: String? = nil + /** Kaltura API session */ + public var ks: String? = nil + /** Kaltura response profile object */ + public var responseProfile: BaseResponseProfile? = nil + /** Abort the Multireuqset call if any error occurs in one of the requests */ + public var abortOnError: Bool? = nil + /** Abort all following requests in Multireuqset if current request has an error */ + public var abortAllOnError: Bool? = nil + /** Skip current request according to skip condition */ + public var skipCondition: SkipCondition? = nil + + + public func setMultiRequestToken(partnerId: String) { + self.dict["partnerId"] = partnerId + } + + public func setMultiRequestToken(userId: String) { + self.dict["userId"] = userId + } + + public func setMultiRequestToken(language: String) { + self.dict["language"] = language + } + + public func setMultiRequestToken(currency: String) { + self.dict["currency"] = currency + } + + public func setMultiRequestToken(ks: String) { + self.dict["ks"] = ks + } + + public func setMultiRequestToken(abortOnError: String) { + self.dict["abortOnError"] = abortOnError + } + + public func setMultiRequestToken(abortAllOnError: String) { + self.dict["abortAllOnError"] = abortAllOnError + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["partnerId"] != nil { + partnerId = dict["partnerId"] as? Int + } + if dict["userId"] != nil { + userId = dict["userId"] as? Int + } + if dict["language"] != nil { + language = dict["language"] as? String + } + if dict["currency"] != nil { + currency = dict["currency"] as? String + } + if dict["ks"] != nil { + ks = dict["ks"] as? String + } + if dict["responseProfile"] != nil { + responseProfile = try JSONParser.parse(object: dict["responseProfile"] as! [String: Any]) } + if dict["abortOnError"] != nil { + abortOnError = dict["abortOnError"] as? Bool + } + if dict["abortAllOnError"] != nil { + abortAllOnError = dict["abortAllOnError"] as? Bool + } + if dict["skipCondition"] != nil { + skipCondition = try JSONParser.parse(object: dict["skipCondition"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(partnerId != nil) { + dict["partnerId"] = partnerId! + } + if(userId != nil) { + dict["userId"] = userId! + } + if(language != nil) { + dict["language"] = language! + } + if(currency != nil) { + dict["currency"] = currency! + } + if(ks != nil) { + dict["ks"] = ks! + } + if(responseProfile != nil) { + dict["responseProfile"] = responseProfile!.toDictionary() + } + if(abortOnError != nil) { + dict["abortOnError"] = abortOnError! + } + if(abortAllOnError != nil) { + dict["abortAllOnError"] = abortAllOnError! + } + if(skipCondition != nil) { + dict["skipCondition"] = skipCondition!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RollingDeviceRemovalData.swift b/KalturaClient/Classes/Model/Objects/RollingDeviceRemovalData.swift new file mode 100644 index 000000000..26926823e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RollingDeviceRemovalData.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class RollingDeviceRemovalData: ObjectBase { + + public class RollingDeviceRemovalDataTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var rollingDeviceRemovalPolicy: BaseTokenizedObject { + get { + return self.append("rollingDeviceRemovalPolicy") + } + } + + public var rollingDeviceRemovalFamilyIds: BaseTokenizedObject { + get { + return self.append("rollingDeviceRemovalFamilyIds") + } + } + } + + /** Rolling Device Policy */ + public var rollingDeviceRemovalPolicy: RollingDevicePolicy? = nil + /** Rolling Device Policy in a CSV style */ + public var rollingDeviceRemovalFamilyIds: String? = nil + + + public func setMultiRequestToken(rollingDeviceRemovalPolicy: String) { + self.dict["rollingDeviceRemovalPolicy"] = rollingDeviceRemovalPolicy + } + + public func setMultiRequestToken(rollingDeviceRemovalFamilyIds: String) { + self.dict["rollingDeviceRemovalFamilyIds"] = rollingDeviceRemovalFamilyIds + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["rollingDeviceRemovalPolicy"] != nil { + rollingDeviceRemovalPolicy = RollingDevicePolicy(rawValue: "\(dict["rollingDeviceRemovalPolicy"]!)") + } + if dict["rollingDeviceRemovalFamilyIds"] != nil { + rollingDeviceRemovalFamilyIds = dict["rollingDeviceRemovalFamilyIds"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(rollingDeviceRemovalPolicy != nil) { + dict["rollingDeviceRemovalPolicy"] = rollingDeviceRemovalPolicy!.rawValue + } + if(rollingDeviceRemovalFamilyIds != nil) { + dict["rollingDeviceRemovalFamilyIds"] = rollingDeviceRemovalFamilyIds! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Rule.swift b/KalturaClient/Classes/Model/Objects/Rule.swift new file mode 100644 index 000000000..1d470f415 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Rule.swift @@ -0,0 +1,124 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Rule base */ +open class Rule: OTTObjectSupportNullable { + + public class RuleTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + + public var label: BaseTokenizedObject { + get { + return self.append("label") + } + } + } + + /** ID */ + public var id: Int64? = nil + /** Name */ + public var name: String? = nil + /** Description */ + public var description: String? = nil + /** Label */ + public var label: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public func setMultiRequestToken(label: String) { + self.dict["label"] = label + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["description"] != nil { + description = dict["description"] as? String + } + if dict["label"] != nil { + label = dict["label"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(description != nil) { + dict["description"] = description! + } + if(label != nil) { + dict["label"] = label! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/RuleAction.swift b/KalturaClient/Classes/Model/Objects/RuleAction.swift new file mode 100644 index 000000000..27d802e57 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/RuleAction.swift @@ -0,0 +1,87 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class RuleAction: ObjectBase { + + public class RuleActionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + } + + /** The type of the action */ + public var type: RuleActionType? = nil + /** Description */ + public var description: String? = nil + + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["type"] != nil { + type = RuleActionType(rawValue: "\(dict["type"]!)") + } + if dict["description"] != nil { + description = dict["description"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(description != nil) { + dict["description"] = description! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SSOAdapterProfile.swift b/KalturaClient/Classes/Model/Objects/SSOAdapterProfile.swift new file mode 100644 index 000000000..a98c5a5bc --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SSOAdapterProfile.swift @@ -0,0 +1,174 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** SSO adapter configuration */ +open class SSOAdapterProfile: ObjectBase { + + public class SSOAdapterProfileTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var isActive: BaseTokenizedObject { + get { + return self.append("isActive") + } + } + + public var adapterUrl: BaseTokenizedObject { + get { + return self.append("adapterUrl") + } + } + + public var settings: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("settings")) + } + } + + public var externalIdentifier: BaseTokenizedObject { + get { + return self.append("externalIdentifier") + } + } + + public var sharedSecret: BaseTokenizedObject { + get { + return self.append("sharedSecret") + } + } + } + + /** SSO Adapter id */ + public var id: Int? = nil + /** SSO Adapter name */ + public var name: String? = nil + /** SSO Adapter is active status */ + public var isActive: Int? = nil + /** SSO Adapter URL */ + public var adapterUrl: String? = nil + /** SSO Adapter extra parameters */ + public var settings: Dictionary? = nil + /** SSO Adapter external identifier */ + public var externalIdentifier: String? = nil + /** Shared Secret */ + public var sharedSecret: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(isActive: String) { + self.dict["isActive"] = isActive + } + + public func setMultiRequestToken(adapterUrl: String) { + self.dict["adapterUrl"] = adapterUrl + } + + public func setMultiRequestToken(externalIdentifier: String) { + self.dict["externalIdentifier"] = externalIdentifier + } + + public func setMultiRequestToken(sharedSecret: String) { + self.dict["sharedSecret"] = sharedSecret + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? Int + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["isActive"] != nil { + isActive = dict["isActive"] as? Int + } + if dict["adapterUrl"] != nil { + adapterUrl = dict["adapterUrl"] as? String + } + if dict["settings"] != nil { + settings = try JSONParser.parse(map: dict["settings"] as! [String: Any]) + } + if dict["externalIdentifier"] != nil { + externalIdentifier = dict["externalIdentifier"] as? String + } + if dict["sharedSecret"] != nil { + sharedSecret = dict["sharedSecret"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(isActive != nil) { + dict["isActive"] = isActive! + } + if(adapterUrl != nil) { + dict["adapterUrl"] = adapterUrl! + } + if(settings != nil) { + dict["settings"] = settings!.toDictionary() + } + if(externalIdentifier != nil) { + dict["externalIdentifier"] = externalIdentifier! + } + if(sharedSecret != nil) { + dict["sharedSecret"] = sharedSecret! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SSOAdapterProfileInvoke.swift b/KalturaClient/Classes/Model/Objects/SSOAdapterProfileInvoke.swift new file mode 100644 index 000000000..cd0fbeec0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SSOAdapterProfileInvoke.swift @@ -0,0 +1,104 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SSOAdapterProfileInvoke: ObjectBase { + + public class SSOAdapterProfileInvokeTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var adapterData: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("adapterData")) + } + } + + public var code: BaseTokenizedObject { + get { + return self.append("code") + } + } + + public var message: BaseTokenizedObject { + get { + return self.append("message") + } + } + } + + /** key/value map field for adapter data */ + public var adapterData: Dictionary? = nil + /** code */ + public var code: String? = nil + /** message */ + public var message: String? = nil + + + public func setMultiRequestToken(code: String) { + self.dict["code"] = code + } + + public func setMultiRequestToken(message: String) { + self.dict["message"] = message + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["adapterData"] != nil { + adapterData = try JSONParser.parse(map: dict["adapterData"] as! [String: Any]) + } + if dict["code"] != nil { + code = dict["code"] as? String + } + if dict["message"] != nil { + message = dict["message"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(adapterData != nil) { + dict["adapterData"] = adapterData!.toDictionary() + } + if(code != nil) { + dict["code"] = code! + } + if(message != nil) { + dict["message"] = message! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SSOAdapterProfileListResponse.swift b/KalturaClient/Classes/Model/Objects/SSOAdapterProfileListResponse.swift new file mode 100644 index 000000000..6a9985b40 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SSOAdapterProfileListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** ssoAdapterProfile list */ +open class SSOAdapterProfileListResponse: ListResponse { + + public class SSOAdapterProfileListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of payment-gateway profiles */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ScheduledRecordingProgramFilter.swift b/KalturaClient/Classes/Model/Objects/ScheduledRecordingProgramFilter.swift new file mode 100644 index 000000000..a3b6a708f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ScheduledRecordingProgramFilter.swift @@ -0,0 +1,126 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class ScheduledRecordingProgramFilter: AssetFilter { + + public class ScheduledRecordingProgramFilterTokenizer: AssetFilter.AssetFilterTokenizer { + + public var recordingTypeEqual: BaseTokenizedObject { + get { + return self.append("recordingTypeEqual") + } + } + + public var channelsIn: BaseTokenizedObject { + get { + return self.append("channelsIn") + } + } + + public var startDateGreaterThanOrNull: BaseTokenizedObject { + get { + return self.append("startDateGreaterThanOrNull") + } + } + + public var endDateLessThanOrNull: BaseTokenizedObject { + get { + return self.append("endDateLessThanOrNull") + } + } + } + + /** The type of recordings to return */ + public var recordingTypeEqual: ScheduledRecordingAssetType? = nil + /** Channels to filter by */ + public var channelsIn: String? = nil + /** start date */ + public var startDateGreaterThanOrNull: Int64? = nil + /** end date */ + public var endDateLessThanOrNull: Int64? = nil + + + public func setMultiRequestToken(recordingTypeEqual: String) { + self.dict["recordingTypeEqual"] = recordingTypeEqual + } + + public func setMultiRequestToken(channelsIn: String) { + self.dict["channelsIn"] = channelsIn + } + + public func setMultiRequestToken(startDateGreaterThanOrNull: String) { + self.dict["startDateGreaterThanOrNull"] = startDateGreaterThanOrNull + } + + public func setMultiRequestToken(endDateLessThanOrNull: String) { + self.dict["endDateLessThanOrNull"] = endDateLessThanOrNull + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["recordingTypeEqual"] != nil { + recordingTypeEqual = ScheduledRecordingAssetType(rawValue: "\(dict["recordingTypeEqual"]!)") + } + if dict["channelsIn"] != nil { + channelsIn = dict["channelsIn"] as? String + } + if dict["startDateGreaterThanOrNull"] != nil { + startDateGreaterThanOrNull = Int64("\(dict["startDateGreaterThanOrNull"]!)") + } + if dict["endDateLessThanOrNull"] != nil { + endDateLessThanOrNull = Int64("\(dict["endDateLessThanOrNull"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(recordingTypeEqual != nil) { + dict["recordingTypeEqual"] = recordingTypeEqual!.rawValue + } + if(channelsIn != nil) { + dict["channelsIn"] = channelsIn! + } + if(startDateGreaterThanOrNull != nil) { + dict["startDateGreaterThanOrNull"] = startDateGreaterThanOrNull! + } + if(endDateLessThanOrNull != nil) { + dict["endDateLessThanOrNull"] = endDateLessThanOrNull! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SearchAssetFilter.swift b/KalturaClient/Classes/Model/Objects/SearchAssetFilter.swift new file mode 100644 index 000000000..04507e762 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SearchAssetFilter.swift @@ -0,0 +1,76 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SearchAssetFilter: BaseSearchAssetFilter { + + public class SearchAssetFilterTokenizer: BaseSearchAssetFilter.BaseSearchAssetFilterTokenizer { + + public var typeIn: BaseTokenizedObject { + get { + return self.append("typeIn") + } + } + } + + /** (Deprecated - use KalturaBaseSearchAssetFilter.kSql) Comma + separated list of asset types to search within. Possible values: 0 + – EPG linear programs entries; 1 - Recordings; Any media type ID (according to + media type IDs defined dynamically in the system). If omitted – + all types should be included. */ + public var typeIn: String? = nil + + + public func setMultiRequestToken(typeIn: String) { + self.dict["typeIn"] = typeIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["typeIn"] != nil { + typeIn = dict["typeIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(typeIn != nil) { + dict["typeIn"] = typeIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SearchAssetListFilter.swift b/KalturaClient/Classes/Model/Objects/SearchAssetListFilter.swift new file mode 100644 index 000000000..f66ebf16b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SearchAssetListFilter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SearchAssetListFilter: SearchAssetFilter { + + public class SearchAssetListFilterTokenizer: SearchAssetFilter.SearchAssetFilterTokenizer { + + public var excludeWatched: BaseTokenizedObject { + get { + return self.append("excludeWatched") + } + } + } + + /** Exclude watched asset. */ + public var excludeWatched: Bool? = nil + + + public func setMultiRequestToken(excludeWatched: String) { + self.dict["excludeWatched"] = excludeWatched + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["excludeWatched"] != nil { + excludeWatched = dict["excludeWatched"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(excludeWatched != nil) { + dict["excludeWatched"] = excludeWatched! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SearchExternalFilter.swift b/KalturaClient/Classes/Model/Objects/SearchExternalFilter.swift new file mode 100644 index 000000000..0783babd9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SearchExternalFilter.swift @@ -0,0 +1,111 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SearchExternalFilter: AssetFilter { + + public class SearchExternalFilterTokenizer: AssetFilter.AssetFilterTokenizer { + + public var query: BaseTokenizedObject { + get { + return self.append("query") + } + } + + public var utcOffsetEqual: BaseTokenizedObject { + get { + return self.append("utcOffsetEqual") + } + } + + public var typeIn: BaseTokenizedObject { + get { + return self.append("typeIn") + } + } + } + + /** Query */ + public var query: String? = nil + /** UtcOffsetEqual */ + public var utcOffsetEqual: Int? = nil + /** Comma separated list of asset types to search within. Possible + values: 0 – EPG linear programs entries, any media type ID (according to media + type IDs defined dynamically in the system). If omitted – all + types should be included. */ + public var typeIn: String? = nil + + + public func setMultiRequestToken(query: String) { + self.dict["query"] = query + } + + public func setMultiRequestToken(utcOffsetEqual: String) { + self.dict["utcOffsetEqual"] = utcOffsetEqual + } + + public func setMultiRequestToken(typeIn: String) { + self.dict["typeIn"] = typeIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["query"] != nil { + query = dict["query"] as? String + } + if dict["utcOffsetEqual"] != nil { + utcOffsetEqual = dict["utcOffsetEqual"] as? Int + } + if dict["typeIn"] != nil { + typeIn = dict["typeIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(query != nil) { + dict["query"] = query! + } + if(utcOffsetEqual != nil) { + dict["utcOffsetEqual"] = utcOffsetEqual! + } + if(typeIn != nil) { + dict["typeIn"] = typeIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SearchHistory.swift b/KalturaClient/Classes/Model/Objects/SearchHistory.swift new file mode 100644 index 000000000..3dfea0e92 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SearchHistory.swift @@ -0,0 +1,171 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Search history info */ +open class SearchHistory: ObjectBase { + + public class SearchHistoryTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var filter: BaseTokenizedObject { + get { + return self.append("filter") + } + } + + public var language: BaseTokenizedObject { + get { + return self.append("language") + } + } + + public var createdAt: BaseTokenizedObject { + get { + return self.append("createdAt") + } + } + + public var service: BaseTokenizedObject { + get { + return self.append("service") + } + } + + public var action: BaseTokenizedObject { + get { + return self.append("action") + } + } + + public var deviceId: BaseTokenizedObject { + get { + return self.append("deviceId") + } + } + } + + /** Search ID */ + public var id: String? = nil + /** Search name */ + public var name: String? = nil + /** Filter */ + public var filter: String? = nil + /** Search language */ + public var language: String? = nil + /** When search was performed */ + public var createdAt: Int64? = nil + /** Kaltura OTT Service */ + public var service: String? = nil + /** Kaltura OTT Service Action */ + public var action: String? = nil + /** Unique Device ID */ + public var deviceId: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(filter: String) { + self.dict["filter"] = filter + } + + public func setMultiRequestToken(language: String) { + self.dict["language"] = language + } + + public func setMultiRequestToken(createdAt: String) { + self.dict["createdAt"] = createdAt + } + + public func setMultiRequestToken(service: String) { + self.dict["service"] = service + } + + public func setMultiRequestToken(action: String) { + self.dict["action"] = action + } + + public func setMultiRequestToken(deviceId: String) { + self.dict["deviceId"] = deviceId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["filter"] != nil { + filter = dict["filter"] as? String + } + if dict["language"] != nil { + language = dict["language"] as? String + } + if dict["createdAt"] != nil { + createdAt = Int64("\(dict["createdAt"]!)") + } + if dict["service"] != nil { + service = dict["service"] as? String + } + if dict["action"] != nil { + action = dict["action"] as? String + } + if dict["deviceId"] != nil { + deviceId = dict["deviceId"] as? String + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/SearchHistoryFilter.swift b/KalturaClient/Classes/Model/Objects/SearchHistoryFilter.swift new file mode 100644 index 000000000..2a8a11501 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SearchHistoryFilter.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SearchHistoryFilter: Filter { + + public class SearchHistoryFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/SearchHistoryListResponse.swift b/KalturaClient/Classes/Model/Objects/SearchHistoryListResponse.swift new file mode 100644 index 000000000..4a8813c13 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SearchHistoryListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Search history wrapper */ +open class SearchHistoryListResponse: ListResponse { + + public class SearchHistoryListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** KalturaSearchHistory Models */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SeasonsReminderFilter.swift b/KalturaClient/Classes/Model/Objects/SeasonsReminderFilter.swift new file mode 100644 index 000000000..90374d0f4 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SeasonsReminderFilter.swift @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SeasonsReminderFilter: ReminderFilter { + + public class SeasonsReminderFilterTokenizer: ReminderFilter.ReminderFilterTokenizer { + + public var seriesIdEqual: BaseTokenizedObject { + get { + return self.append("seriesIdEqual") + } + } + + public var seasonNumberIn: BaseTokenizedObject { + get { + return self.append("seasonNumberIn") + } + } + + public var epgChannelIdEqual: BaseTokenizedObject { + get { + return self.append("epgChannelIdEqual") + } + } + } + + /** Series ID */ + public var seriesIdEqual: String? = nil + /** Comma separated season numbers */ + public var seasonNumberIn: String? = nil + /** EPG channel ID */ + public var epgChannelIdEqual: Int64? = nil + + + public func setMultiRequestToken(seriesIdEqual: String) { + self.dict["seriesIdEqual"] = seriesIdEqual + } + + public func setMultiRequestToken(seasonNumberIn: String) { + self.dict["seasonNumberIn"] = seasonNumberIn + } + + public func setMultiRequestToken(epgChannelIdEqual: String) { + self.dict["epgChannelIdEqual"] = epgChannelIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["seriesIdEqual"] != nil { + seriesIdEqual = dict["seriesIdEqual"] as? String + } + if dict["seasonNumberIn"] != nil { + seasonNumberIn = dict["seasonNumberIn"] as? String + } + if dict["epgChannelIdEqual"] != nil { + epgChannelIdEqual = Int64("\(dict["epgChannelIdEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(seriesIdEqual != nil) { + dict["seriesIdEqual"] = seriesIdEqual! + } + if(seasonNumberIn != nil) { + dict["seasonNumberIn"] = seasonNumberIn! + } + if(epgChannelIdEqual != nil) { + dict["epgChannelIdEqual"] = epgChannelIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentAllValues.swift b/KalturaClient/Classes/Model/Objects/SegmentAllValues.swift new file mode 100644 index 000000000..85b31ffa3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentAllValues.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Segmentation type which takes all values of a tag/meta as segments */ +open class SegmentAllValues: SegmentValues { + + public class SegmentAllValuesTokenizer: SegmentValues.SegmentValuesTokenizer { + + public var nameFormat: BaseTokenizedObject { + get { + return self.append("nameFormat") + } + } + } + + /** Segment names' format - they will be automatically generated */ + public var nameFormat: String? = nil + + + public func setMultiRequestToken(nameFormat: String) { + self.dict["nameFormat"] = nameFormat + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["nameFormat"] != nil { + nameFormat = dict["nameFormat"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(nameFormat != nil) { + dict["nameFormat"] = nameFormat! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentAssetFilterAction.swift b/KalturaClient/Classes/Model/Objects/SegmentAssetFilterAction.swift new file mode 100644 index 000000000..28beb543c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentAssetFilterAction.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset filter action */ +open class SegmentAssetFilterAction: KsqlSegmentAction { + + public class SegmentAssetFilterActionTokenizer: KsqlSegmentAction.KsqlSegmentActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentAssetFilterSegmentAction.swift b/KalturaClient/Classes/Model/Objects/SegmentAssetFilterSegmentAction.swift new file mode 100644 index 000000000..ad1e85d20 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentAssetFilterSegmentAction.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** segment asset filter for segment action */ +open class SegmentAssetFilterSegmentAction: SegmentAssetFilterAction { + + public class SegmentAssetFilterSegmentActionTokenizer: SegmentAssetFilterAction.SegmentAssetFilterActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentAssetFilterSubscriptionAction.swift b/KalturaClient/Classes/Model/Objects/SegmentAssetFilterSubscriptionAction.swift new file mode 100644 index 000000000..669b5a54a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentAssetFilterSubscriptionAction.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** segment asset filter for subscription action */ +open class SegmentAssetFilterSubscriptionAction: SegmentAssetFilterAction { + + public class SegmentAssetFilterSubscriptionActionTokenizer: SegmentAssetFilterAction.SegmentAssetFilterActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentBlockCancelSubscriptionAction.swift b/KalturaClient/Classes/Model/Objects/SegmentBlockCancelSubscriptionAction.swift new file mode 100644 index 000000000..3d8ac7ff6 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentBlockCancelSubscriptionAction.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** segment block subscription for cancel action */ +open class SegmentBlockCancelSubscriptionAction: BlockSubscriptionSegmentAction { + + public class SegmentBlockCancelSubscriptionActionTokenizer: BlockSubscriptionSegmentAction.BlockSubscriptionSegmentActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentBlockPlaybackSubscriptionAction.swift b/KalturaClient/Classes/Model/Objects/SegmentBlockPlaybackSubscriptionAction.swift new file mode 100644 index 000000000..9a8c95da9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentBlockPlaybackSubscriptionAction.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** segment block subscription for playback action */ +open class SegmentBlockPlaybackSubscriptionAction: BlockSubscriptionSegmentAction { + + public class SegmentBlockPlaybackSubscriptionActionTokenizer: BlockSubscriptionSegmentAction.BlockSubscriptionSegmentActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentBlockPurchaseSubscriptionAction.swift b/KalturaClient/Classes/Model/Objects/SegmentBlockPurchaseSubscriptionAction.swift new file mode 100644 index 000000000..99eb86c79 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentBlockPurchaseSubscriptionAction.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** segment block subscription for purchase action */ +open class SegmentBlockPurchaseSubscriptionAction: BlockSubscriptionSegmentAction { + + public class SegmentBlockPurchaseSubscriptionActionTokenizer: BlockSubscriptionSegmentAction.BlockSubscriptionSegmentActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentRange.swift b/KalturaClient/Classes/Model/Objects/SegmentRange.swift new file mode 100644 index 000000000..be538db2b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentRange.swift @@ -0,0 +1,196 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Segment that is based on a range of values */ +open class SegmentRange: ObjectBase { + + public class SegmentRangeTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var systematicName: BaseTokenizedObject { + get { + return self.append("systematicName") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var gte: BaseTokenizedObject { + get { + return self.append("gte") + } + } + + public var gt: BaseTokenizedObject { + get { + return self.append("gt") + } + } + + public var lte: BaseTokenizedObject { + get { + return self.append("lte") + } + } + + public var lt: BaseTokenizedObject { + get { + return self.append("lt") + } + } + + public var equals: BaseTokenizedObject { + get { + return self.append("equals") + } + } + } + + /** Id of segment */ + public var id: Int64? = nil + /** Systematic name of segment */ + public var systematicName: String? = nil + /** Specific segment name */ + public var name: String? = nil + /** Greater than or equals >= */ + public var gte: Double? = nil + /** Greater than > */ + public var gt: Double? = nil + /** Less than or equals */ + public var lte: Double? = nil + /** Less than */ + public var lt: Double? = nil + /** Equals */ + public var equals: Double? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(systematicName: String) { + self.dict["systematicName"] = systematicName + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(gte: String) { + self.dict["gte"] = gte + } + + public func setMultiRequestToken(gt: String) { + self.dict["gt"] = gt + } + + public func setMultiRequestToken(lte: String) { + self.dict["lte"] = lte + } + + public func setMultiRequestToken(lt: String) { + self.dict["lt"] = lt + } + + public func setMultiRequestToken(equals: String) { + self.dict["equals"] = equals + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["systematicName"] != nil { + systematicName = dict["systematicName"] as? String + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["gte"] != nil { + gte = dict["gte"] as? Double + } + if dict["gt"] != nil { + gt = dict["gt"] as? Double + } + if dict["lte"] != nil { + lte = dict["lte"] as? Double + } + if dict["lt"] != nil { + lt = dict["lt"] as? Double + } + if dict["equals"] != nil { + equals = dict["equals"] as? Double + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(systematicName != nil) { + dict["systematicName"] = systematicName! + } + if(name != nil) { + dict["name"] = name! + } + if(gte != nil) { + dict["gte"] = gte! + } + if(gt != nil) { + dict["gt"] = gt! + } + if(lte != nil) { + dict["lte"] = lte! + } + if(lt != nil) { + dict["lt"] = lt! + } + if(equals != nil) { + dict["equals"] = equals! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentRanges.swift b/KalturaClient/Classes/Model/Objects/SegmentRanges.swift new file mode 100644 index 000000000..1833e4d9f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentRanges.swift @@ -0,0 +1,80 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Segmentation type that takes different ranges as segments */ +open class SegmentRanges: BaseSegmentValue { + + public class SegmentRangesTokenizer: BaseSegmentValue.BaseSegmentValueTokenizer { + + public func source() -> T { + return T(self.append("source")) + } + + public var ranges: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("ranges")) + } + } + } + + /** Range source */ + public var source: SegmentSource? = nil + /** List of ranges for segmentation */ + public var ranges: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["source"] != nil { + source = try JSONParser.parse(object: dict["source"] as! [String: Any]) } + if dict["ranges"] != nil { + ranges = try JSONParser.parse(array: dict["ranges"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(source != nil) { + dict["source"] = source!.toDictionary() + } + if(ranges != nil) { + dict["ranges"] = ranges!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentSource.swift b/KalturaClient/Classes/Model/Objects/SegmentSource.swift new file mode 100644 index 000000000..00a74209d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentSource.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Defines which sort is relevant to the condition or the segmentation */ +open class SegmentSource: ObjectBase { + + public class SegmentSourceTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentValue.swift b/KalturaClient/Classes/Model/Objects/SegmentValue.swift new file mode 100644 index 000000000..d020ad44c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentValue.swift @@ -0,0 +1,124 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Specific segment value */ +open class SegmentValue: ObjectBase { + + public class SegmentValueTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var systematicName: BaseTokenizedObject { + get { + return self.append("systematicName") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** Id of segment */ + public var id: Int64? = nil + /** Systematic name of segment */ + public var systematicName: String? = nil + /** Name of segment */ + public var name: String? = nil + /** The value of the segment */ + public var value: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(systematicName: String) { + self.dict["systematicName"] = systematicName + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["systematicName"] != nil { + systematicName = dict["systematicName"] as? String + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["value"] != nil { + value = dict["value"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(systematicName != nil) { + dict["systematicName"] = systematicName! + } + if(name != nil) { + dict["name"] = name! + } + if(value != nil) { + dict["value"] = value! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentValueFilter.swift b/KalturaClient/Classes/Model/Objects/SegmentValueFilter.swift new file mode 100644 index 000000000..e499db516 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentValueFilter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SegmentValueFilter: BaseSegmentationTypeFilter { + + public class SegmentValueFilterTokenizer: BaseSegmentationTypeFilter.BaseSegmentationTypeFilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** Comma separated segmentation identifiers */ + public var idIn: String? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentValues.swift b/KalturaClient/Classes/Model/Objects/SegmentValues.swift new file mode 100644 index 000000000..062be3e93 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentValues.swift @@ -0,0 +1,80 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Segmentation type which takes certain values of a tag/meta as segments */ +open class SegmentValues: BaseSegmentValue { + + public class SegmentValuesTokenizer: BaseSegmentValue.BaseSegmentValueTokenizer { + + public func source() -> T { + return T(self.append("source")) + } + + public var values: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("values")) + } + } + } + + /** Segment values source */ + public var source: SegmentSource? = nil + /** List of segment values */ + public var values: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["source"] != nil { + source = try JSONParser.parse(object: dict["source"] as! [String: Any]) } + if dict["values"] != nil { + values = try JSONParser.parse(array: dict["values"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(source != nil) { + dict["source"] = source!.toDictionary() + } + if(values != nil) { + dict["values"] = values!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentationType.swift b/KalturaClient/Classes/Model/Objects/SegmentationType.swift new file mode 100644 index 000000000..44279612b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentationType.swift @@ -0,0 +1,175 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Segmentation type - defines at least one segment */ +open class SegmentationType: ObjectBase { + + public class SegmentationTypeTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + + public var conditions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("conditions")) + } + } + + public var actions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("actions")) + } + } + + public func value() -> T { + return T(self.append("value")) + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var version: BaseTokenizedObject { + get { + return self.append("version") + } + } + } + + /** Id of segmentation type */ + public var id: Int64? = nil + /** Name of segmentation type */ + public var name: String? = nil + /** Description of segmentation type */ + public var description: String? = nil + /** Segmentation conditions - can be empty */ + public var conditions: Array? = nil + /** Segmentation conditions - can be empty */ + public var actions: Array? = nil + /** Segmentation values - can be empty (so only one segment will be created) */ + public var value: BaseSegmentValue? = nil + /** Create date of segmentation type */ + public var createDate: Int64? = nil + /** Segmentation type version */ + public var version: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(version: String) { + self.dict["version"] = version + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["description"] != nil { + description = dict["description"] as? String + } + if dict["conditions"] != nil { + conditions = try JSONParser.parse(array: dict["conditions"] as! [Any]) + } + if dict["actions"] != nil { + actions = try JSONParser.parse(array: dict["actions"] as! [Any]) + } + if dict["value"] != nil { + value = try JSONParser.parse(object: dict["value"] as! [String: Any]) } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["version"] != nil { + version = Int64("\(dict["version"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(description != nil) { + dict["description"] = description! + } + if(conditions != nil) { + dict["conditions"] = conditions!.map { value in value.toDictionary() } + } + if(actions != nil) { + dict["actions"] = actions!.map { value in value.toDictionary() } + } + if(value != nil) { + dict["value"] = value!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentationTypeFilter.swift b/KalturaClient/Classes/Model/Objects/SegmentationTypeFilter.swift new file mode 100644 index 000000000..e6f0428f9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentationTypeFilter.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Filter for segmentation types */ +open class SegmentationTypeFilter: BaseSegmentationTypeFilter { + + public class SegmentationTypeFilterTokenizer: BaseSegmentationTypeFilter.BaseSegmentationTypeFilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + + public var kSql: BaseTokenizedObject { + get { + return self.append("kSql") + } + } + } + + /** Comma separated segmentation types identifiers */ + public var idIn: String? = nil + /** KSQL expression */ + public var kSql: String? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public func setMultiRequestToken(kSql: String) { + self.dict["kSql"] = kSql + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + if dict["kSql"] != nil { + kSql = dict["kSql"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + if(kSql != nil) { + dict["kSql"] = kSql! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentationTypeListResponse.swift b/KalturaClient/Classes/Model/Objects/SegmentationTypeListResponse.swift new file mode 100644 index 000000000..c4b1eb20e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentationTypeListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of segmentation types */ +open class SegmentationTypeListResponse: ListResponse { + + public class SegmentationTypeListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Segmentation Types */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SegmentsCondition.swift b/KalturaClient/Classes/Model/Objects/SegmentsCondition.swift new file mode 100644 index 000000000..dec63e414 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SegmentsCondition.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Segments condition */ +open class SegmentsCondition: Condition { + + public class SegmentsConditionTokenizer: Condition.ConditionTokenizer { + + public var segmentsIds: BaseTokenizedObject { + get { + return self.append("segmentsIds") + } + } + } + + /** Comma separated segments IDs list */ + public var segmentsIds: String? = nil + + + public func setMultiRequestToken(segmentsIds: String) { + self.dict["segmentsIds"] = segmentsIds + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["segmentsIds"] != nil { + segmentsIds = dict["segmentsIds"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(segmentsIds != nil) { + dict["segmentsIds"] = segmentsIds! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SeriesRecording.swift b/KalturaClient/Classes/Model/Objects/SeriesRecording.swift new file mode 100644 index 000000000..2d2532c12 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SeriesRecording.swift @@ -0,0 +1,202 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SeriesRecording: ObjectBase { + + public class SeriesRecordingTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var epgId: BaseTokenizedObject { + get { + return self.append("epgId") + } + } + + public var channelId: BaseTokenizedObject { + get { + return self.append("channelId") + } + } + + public var seriesId: BaseTokenizedObject { + get { + return self.append("seriesId") + } + } + + public var seasonNumber: BaseTokenizedObject { + get { + return self.append("seasonNumber") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + + public var excludedSeasons: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("excludedSeasons")) + } + } + } + + /** Kaltura unique ID representing the series recording identifier */ + public var id: Int64? = nil + /** Kaltura EpgId */ + public var epgId: Int64? = nil + /** Kaltura ChannelId */ + public var channelId: Int64? = nil + /** Kaltura SeriesId */ + public var seriesId: String? = nil + /** Kaltura SeasonNumber */ + public var seasonNumber: Int? = nil + /** Recording Type: single/series/season */ + public var type: RecordingType? = nil + /** Specifies when was the series recording created. Date and time represented as + epoch. */ + public var createDate: Int64? = nil + /** Specifies when was the series recording last updated. Date and time represented + as epoch. */ + public var updateDate: Int64? = nil + /** List of the season numbers to exclude. */ + public var excludedSeasons: Array? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(epgId: String) { + self.dict["epgId"] = epgId + } + + public func setMultiRequestToken(channelId: String) { + self.dict["channelId"] = channelId + } + + public func setMultiRequestToken(seriesId: String) { + self.dict["seriesId"] = seriesId + } + + public func setMultiRequestToken(seasonNumber: String) { + self.dict["seasonNumber"] = seasonNumber + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["epgId"] != nil { + epgId = Int64("\(dict["epgId"]!)") + } + if dict["channelId"] != nil { + channelId = Int64("\(dict["channelId"]!)") + } + if dict["seriesId"] != nil { + seriesId = dict["seriesId"] as? String + } + if dict["seasonNumber"] != nil { + seasonNumber = dict["seasonNumber"] as? Int + } + if dict["type"] != nil { + type = RecordingType(rawValue: "\(dict["type"]!)") + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + if dict["excludedSeasons"] != nil { + excludedSeasons = try JSONParser.parse(array: dict["excludedSeasons"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(epgId != nil) { + dict["epgId"] = epgId! + } + if(channelId != nil) { + dict["channelId"] = channelId! + } + if(seriesId != nil) { + dict["seriesId"] = seriesId! + } + if(seasonNumber != nil) { + dict["seasonNumber"] = seasonNumber! + } + if(type != nil) { + dict["type"] = type!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SeriesRecordingFilter.swift b/KalturaClient/Classes/Model/Objects/SeriesRecordingFilter.swift new file mode 100644 index 000000000..607c6b1c3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SeriesRecordingFilter.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Filtering recordings */ +open class SeriesRecordingFilter: Filter { + + public class SeriesRecordingFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/SeriesRecordingListResponse.swift b/KalturaClient/Classes/Model/Objects/SeriesRecordingListResponse.swift new file mode 100644 index 000000000..8e8f00132 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SeriesRecordingListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Series Recordings info wrapper */ +open class SeriesRecordingListResponse: ListResponse { + + public class SeriesRecordingListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Series Recordings */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SeriesReminder.swift b/KalturaClient/Classes/Model/Objects/SeriesReminder.swift new file mode 100644 index 000000000..eed536b9b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SeriesReminder.swift @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SeriesReminder: Reminder { + + public class SeriesReminderTokenizer: Reminder.ReminderTokenizer { + + public var seriesId: BaseTokenizedObject { + get { + return self.append("seriesId") + } + } + + public var seasonNumber: BaseTokenizedObject { + get { + return self.append("seasonNumber") + } + } + + public var epgChannelId: BaseTokenizedObject { + get { + return self.append("epgChannelId") + } + } + } + + /** Series identifier */ + public var seriesId: String? = nil + /** Season number */ + public var seasonNumber: Int64? = nil + /** EPG channel identifier */ + public var epgChannelId: Int64? = nil + + + public func setMultiRequestToken(seriesId: String) { + self.dict["seriesId"] = seriesId + } + + public func setMultiRequestToken(seasonNumber: String) { + self.dict["seasonNumber"] = seasonNumber + } + + public func setMultiRequestToken(epgChannelId: String) { + self.dict["epgChannelId"] = epgChannelId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["seriesId"] != nil { + seriesId = dict["seriesId"] as? String + } + if dict["seasonNumber"] != nil { + seasonNumber = Int64("\(dict["seasonNumber"]!)") + } + if dict["epgChannelId"] != nil { + epgChannelId = Int64("\(dict["epgChannelId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(seriesId != nil) { + dict["seriesId"] = seriesId! + } + if(seasonNumber != nil) { + dict["seasonNumber"] = seasonNumber! + } + if(epgChannelId != nil) { + dict["epgChannelId"] = epgChannelId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SeriesReminderFilter.swift b/KalturaClient/Classes/Model/Objects/SeriesReminderFilter.swift new file mode 100644 index 000000000..9137479a7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SeriesReminderFilter.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SeriesReminderFilter: ReminderFilter { + + public class SeriesReminderFilterTokenizer: ReminderFilter.ReminderFilterTokenizer { + + public var seriesIdIn: BaseTokenizedObject { + get { + return self.append("seriesIdIn") + } + } + + public var epgChannelIdEqual: BaseTokenizedObject { + get { + return self.append("epgChannelIdEqual") + } + } + } + + /** Comma separated series IDs */ + public var seriesIdIn: String? = nil + /** EPG channel ID */ + public var epgChannelIdEqual: Int64? = nil + + + public func setMultiRequestToken(seriesIdIn: String) { + self.dict["seriesIdIn"] = seriesIdIn + } + + public func setMultiRequestToken(epgChannelIdEqual: String) { + self.dict["epgChannelIdEqual"] = epgChannelIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["seriesIdIn"] != nil { + seriesIdIn = dict["seriesIdIn"] as? String + } + if dict["epgChannelIdEqual"] != nil { + epgChannelIdEqual = Int64("\(dict["epgChannelIdEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(seriesIdIn != nil) { + dict["seriesIdIn"] = seriesIdIn! + } + if(epgChannelIdEqual != nil) { + dict["epgChannelIdEqual"] = epgChannelIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Session.swift b/KalturaClient/Classes/Model/Objects/Session.swift new file mode 100644 index 000000000..bf7c68ab6 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Session.swift @@ -0,0 +1,181 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Kaltura Session */ +open class Session: ObjectBase { + + public class SessionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var ks: BaseTokenizedObject { + get { + return self.append("ks") + } + } + + public var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + + public var expiry: BaseTokenizedObject { + get { + return self.append("expiry") + } + } + + public var privileges: BaseTokenizedObject { + get { + return self.append("privileges") + } + } + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + } + + /** KS */ + public var ks: String? = nil + /** Partner identifier */ + public var partnerId: Int? = nil + /** User identifier */ + public var userId: String? = nil + /** Expiry */ + public var expiry: Int? = nil + /** Privileges */ + public var privileges: String? = nil + /** UDID */ + public var udid: String? = nil + /** Create date */ + public var createDate: Int? = nil + + + public func setMultiRequestToken(ks: String) { + self.dict["ks"] = ks + } + + public func setMultiRequestToken(partnerId: String) { + self.dict["partnerId"] = partnerId + } + + public func setMultiRequestToken(userId: String) { + self.dict["userId"] = userId + } + + public func setMultiRequestToken(expiry: String) { + self.dict["expiry"] = expiry + } + + public func setMultiRequestToken(privileges: String) { + self.dict["privileges"] = privileges + } + + public func setMultiRequestToken(udid: String) { + self.dict["udid"] = udid + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["ks"] != nil { + ks = dict["ks"] as? String + } + if dict["partnerId"] != nil { + partnerId = dict["partnerId"] as? Int + } + if dict["userId"] != nil { + userId = dict["userId"] as? String + } + if dict["expiry"] != nil { + expiry = dict["expiry"] as? Int + } + if dict["privileges"] != nil { + privileges = dict["privileges"] as? String + } + if dict["udid"] != nil { + udid = dict["udid"] as? String + } + if dict["createDate"] != nil { + createDate = dict["createDate"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(ks != nil) { + dict["ks"] = ks! + } + if(partnerId != nil) { + dict["partnerId"] = partnerId! + } + if(userId != nil) { + dict["userId"] = userId! + } + if(expiry != nil) { + dict["expiry"] = expiry! + } + if(privileges != nil) { + dict["privileges"] = privileges! + } + if(udid != nil) { + dict["udid"] = udid! + } + if(createDate != nil) { + dict["createDate"] = createDate! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SessionInfo.swift b/KalturaClient/Classes/Model/Objects/SessionInfo.swift new file mode 100644 index 000000000..f635fc67a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SessionInfo.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Kaltura Session */ +open class SessionInfo: Session { + + public class SessionInfoTokenizer: Session.SessionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/SingleSegmentValue.swift b/KalturaClient/Classes/Model/Objects/SingleSegmentValue.swift new file mode 100644 index 000000000..4adb35ba9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SingleSegmentValue.swift @@ -0,0 +1,80 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SingleSegmentValue: BaseSegmentValue { + + public class SingleSegmentValueTokenizer: BaseSegmentValue.BaseSegmentValueTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var affectedUsers: BaseTokenizedObject { + get { + return self.append("affectedUsers") + } + } + } + + /** Id of segment */ + public var id: Int64? = nil + /** The amount of users that are being affected by this Segmentation type */ + public var affectedUsers: Int? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(affectedUsers: String) { + self.dict["affectedUsers"] = affectedUsers + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["affectedUsers"] != nil { + affectedUsers = dict["affectedUsers"] as? Int + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/SkipCondition.swift b/KalturaClient/Classes/Model/Objects/SkipCondition.swift new file mode 100644 index 000000000..3aecd1fb9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SkipCondition.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Skip current request according to skip condition */ +open class SkipCondition: ObjectBase { + + public class SkipConditionTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/SkipOnErrorCondition.swift b/KalturaClient/Classes/Model/Objects/SkipOnErrorCondition.swift new file mode 100644 index 000000000..91e9bc225 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SkipOnErrorCondition.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Skips current request if an error occurs according to the selected skip option */ +open class SkipOnErrorCondition: SkipCondition { + + public class SkipOnErrorConditionTokenizer: SkipCondition.SkipConditionTokenizer { + + public var condition: BaseTokenizedObject { + get { + return self.append("condition") + } + } + } + + /** Indicates which error should be considered to skip the current request */ + public var condition: SkipOptions? = nil + + + public func setMultiRequestToken(condition: String) { + self.dict["condition"] = condition + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["condition"] != nil { + condition = SkipOptions(rawValue: "\(dict["condition"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(condition != nil) { + dict["condition"] = condition!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SlimAsset.swift b/KalturaClient/Classes/Model/Objects/SlimAsset.swift new file mode 100644 index 000000000..414e64f3f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SlimAsset.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Slim Asset Details */ +open class SlimAsset: ObjectBase { + + public class SlimAssetTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** Internal identifier of the asset */ + public var id: String? = nil + /** The type of the asset. Possible values: media, recording, epg */ + public var type: AssetType? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["type"] != nil { + type = AssetType(rawValue: "\(dict["type"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(type != nil) { + dict["type"] = type!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SmsDispatcher.swift b/KalturaClient/Classes/Model/Objects/SmsDispatcher.swift new file mode 100644 index 000000000..982030004 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SmsDispatcher.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SmsDispatcher: Dispatcher { + + public class SmsDispatcherTokenizer: Dispatcher.DispatcherTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/Social.swift b/KalturaClient/Classes/Model/Objects/Social.swift new file mode 100644 index 000000000..05daf43fe --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Social.swift @@ -0,0 +1,227 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Social: ObjectBase { + + public class SocialTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var firstName: BaseTokenizedObject { + get { + return self.append("firstName") + } + } + + public var lastName: BaseTokenizedObject { + get { + return self.append("lastName") + } + } + + public var email: BaseTokenizedObject { + get { + return self.append("email") + } + } + + public var gender: BaseTokenizedObject { + get { + return self.append("gender") + } + } + + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + + public var birthday: BaseTokenizedObject { + get { + return self.append("birthday") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var pictureUrl: BaseTokenizedObject { + get { + return self.append("pictureUrl") + } + } + } + + /** Facebook identifier */ + public var id: String? = nil + /** Full name */ + public var name: String? = nil + /** First name */ + public var firstName: String? = nil + /** Last name */ + public var lastName: String? = nil + /** User email */ + public var email: String? = nil + /** Gender */ + public var gender: String? = nil + /** User identifier */ + public var userId: String? = nil + /** User birthday */ + public var birthday: String? = nil + /** User model status Possible values: UNKNOWN, OK, ERROR, NOACTION, + NOTEXIST, CONFLICT, MERGE, MERGEOK, NEWUSER, MINFRIENDS, INVITEOK, INVITEERROR, + ACCESSDENIED, WRONGPASSWORDORUSERNAME, UNMERGEOK, USEREMAILISMISSING */ + public var status: String? = nil + /** Profile picture URL */ + public var pictureUrl: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(firstName: String) { + self.dict["firstName"] = firstName + } + + public func setMultiRequestToken(lastName: String) { + self.dict["lastName"] = lastName + } + + public func setMultiRequestToken(email: String) { + self.dict["email"] = email + } + + public func setMultiRequestToken(gender: String) { + self.dict["gender"] = gender + } + + public func setMultiRequestToken(userId: String) { + self.dict["userId"] = userId + } + + public func setMultiRequestToken(birthday: String) { + self.dict["birthday"] = birthday + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(pictureUrl: String) { + self.dict["pictureUrl"] = pictureUrl + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["firstName"] != nil { + firstName = dict["firstName"] as? String + } + if dict["lastName"] != nil { + lastName = dict["lastName"] as? String + } + if dict["email"] != nil { + email = dict["email"] as? String + } + if dict["gender"] != nil { + gender = dict["gender"] as? String + } + if dict["userId"] != nil { + userId = dict["userId"] as? String + } + if dict["birthday"] != nil { + birthday = dict["birthday"] as? String + } + if dict["status"] != nil { + status = dict["status"] as? String + } + if dict["pictureUrl"] != nil { + pictureUrl = dict["pictureUrl"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(firstName != nil) { + dict["firstName"] = firstName! + } + if(lastName != nil) { + dict["lastName"] = lastName! + } + if(email != nil) { + dict["email"] = email! + } + if(gender != nil) { + dict["gender"] = gender! + } + if(birthday != nil) { + dict["birthday"] = birthday! + } + if(pictureUrl != nil) { + dict["pictureUrl"] = pictureUrl! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SocialAction.swift b/KalturaClient/Classes/Model/Objects/SocialAction.swift new file mode 100644 index 000000000..16ead9e98 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SocialAction.swift @@ -0,0 +1,159 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SocialAction: ObjectBase { + + public class SocialActionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var actionType: BaseTokenizedObject { + get { + return self.append("actionType") + } + } + + public var time: BaseTokenizedObject { + get { + return self.append("time") + } + } + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var assetType: BaseTokenizedObject { + get { + return self.append("assetType") + } + } + + public var url: BaseTokenizedObject { + get { + return self.append("url") + } + } + } + + /** social action document id */ + public var id: String? = nil + /** Action type */ + public var actionType: SocialActionType? = nil + /** EPOC based timestamp for when the action occurred */ + public var time: Int64? = nil + /** ID of the asset that was acted upon */ + public var assetId: Int64? = nil + /** Type of the asset that was acted upon, currently only VOD (media) */ + public var assetType: AssetType? = nil + /** The value of the url */ + public var url: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(actionType: String) { + self.dict["actionType"] = actionType + } + + public func setMultiRequestToken(time: String) { + self.dict["time"] = time + } + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + public func setMultiRequestToken(assetType: String) { + self.dict["assetType"] = assetType + } + + public func setMultiRequestToken(url: String) { + self.dict["url"] = url + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["actionType"] != nil { + actionType = SocialActionType(rawValue: "\(dict["actionType"]!)") + } + if dict["time"] != nil { + time = Int64("\(dict["time"]!)") + } + if dict["assetId"] != nil { + assetId = Int64("\(dict["assetId"]!)") + } + if dict["assetType"] != nil { + assetType = AssetType(rawValue: "\(dict["assetType"]!)") + } + if dict["url"] != nil { + url = dict["url"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(actionType != nil) { + dict["actionType"] = actionType!.rawValue + } + if(time != nil) { + dict["time"] = time! + } + if(assetId != nil) { + dict["assetId"] = assetId! + } + if(assetType != nil) { + dict["assetType"] = assetType!.rawValue + } + if(url != nil) { + dict["url"] = url! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SocialActionFilter.swift b/KalturaClient/Classes/Model/Objects/SocialActionFilter.swift new file mode 100644 index 000000000..67e492576 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SocialActionFilter.swift @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SocialActionFilter: Filter { + + public class SocialActionFilterTokenizer: Filter.FilterTokenizer { + + public var assetIdIn: BaseTokenizedObject { + get { + return self.append("assetIdIn") + } + } + + public var assetTypeEqual: BaseTokenizedObject { + get { + return self.append("assetTypeEqual") + } + } + + public var actionTypeIn: BaseTokenizedObject { + get { + return self.append("actionTypeIn") + } + } + } + + /** Comma separated list of asset identifiers. */ + public var assetIdIn: String? = nil + /** Asset Type */ + public var assetTypeEqual: AssetType? = nil + /** Comma separated list of social actions to filter by */ + public var actionTypeIn: String? = nil + + + public func setMultiRequestToken(assetIdIn: String) { + self.dict["assetIdIn"] = assetIdIn + } + + public func setMultiRequestToken(assetTypeEqual: String) { + self.dict["assetTypeEqual"] = assetTypeEqual + } + + public func setMultiRequestToken(actionTypeIn: String) { + self.dict["actionTypeIn"] = actionTypeIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetIdIn"] != nil { + assetIdIn = dict["assetIdIn"] as? String + } + if dict["assetTypeEqual"] != nil { + assetTypeEqual = AssetType(rawValue: "\(dict["assetTypeEqual"]!)") + } + if dict["actionTypeIn"] != nil { + actionTypeIn = dict["actionTypeIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetIdIn != nil) { + dict["assetIdIn"] = assetIdIn! + } + if(assetTypeEqual != nil) { + dict["assetTypeEqual"] = assetTypeEqual!.rawValue + } + if(actionTypeIn != nil) { + dict["actionTypeIn"] = actionTypeIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SocialActionListResponse.swift b/KalturaClient/Classes/Model/Objects/SocialActionListResponse.swift new file mode 100644 index 000000000..ee66dfa94 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SocialActionListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SocialActionListResponse: ListResponse { + + public class SocialActionListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** The social actions */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SocialActionRate.swift b/KalturaClient/Classes/Model/Objects/SocialActionRate.swift new file mode 100644 index 000000000..cc0ae74e4 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SocialActionRate.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SocialActionRate: SocialAction { + + public class SocialActionRateTokenizer: SocialAction.SocialActionTokenizer { + + public var rate: BaseTokenizedObject { + get { + return self.append("rate") + } + } + } + + /** The value of the rating */ + public var rate: Int? = nil + + + public func setMultiRequestToken(rate: String) { + self.dict["rate"] = rate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["rate"] != nil { + rate = dict["rate"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(rate != nil) { + dict["rate"] = rate! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SocialComment.swift b/KalturaClient/Classes/Model/Objects/SocialComment.swift new file mode 100644 index 000000000..99d7bf15b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SocialComment.swift @@ -0,0 +1,126 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SocialComment: ObjectBase { + + public class SocialCommentTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var header: BaseTokenizedObject { + get { + return self.append("header") + } + } + + public var text: BaseTokenizedObject { + get { + return self.append("text") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var writer: BaseTokenizedObject { + get { + return self.append("writer") + } + } + } + + /** Comment header */ + public var header: String? = nil + /** Comment body */ + public var text: String? = nil + /** Comment creation date */ + public var createDate: Int64? = nil + /** The writer of the comment */ + public var writer: String? = nil + + + public func setMultiRequestToken(header: String) { + self.dict["header"] = header + } + + public func setMultiRequestToken(text: String) { + self.dict["text"] = text + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(writer: String) { + self.dict["writer"] = writer + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["header"] != nil { + header = dict["header"] as? String + } + if dict["text"] != nil { + text = dict["text"] as? String + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["writer"] != nil { + writer = dict["writer"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(header != nil) { + dict["header"] = header! + } + if(text != nil) { + dict["text"] = text! + } + if(createDate != nil) { + dict["createDate"] = createDate! + } + if(writer != nil) { + dict["writer"] = writer! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SocialCommentFilter.swift b/KalturaClient/Classes/Model/Objects/SocialCommentFilter.swift new file mode 100644 index 000000000..fef4acee5 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SocialCommentFilter.swift @@ -0,0 +1,126 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SocialCommentFilter: Filter { + + public class SocialCommentFilterTokenizer: Filter.FilterTokenizer { + + public var assetIdEqual: BaseTokenizedObject { + get { + return self.append("assetIdEqual") + } + } + + public var assetTypeEqual: BaseTokenizedObject { + get { + return self.append("assetTypeEqual") + } + } + + public var socialPlatformEqual: BaseTokenizedObject { + get { + return self.append("socialPlatformEqual") + } + } + + public var createDateGreaterThan: BaseTokenizedObject { + get { + return self.append("createDateGreaterThan") + } + } + } + + /** Asset ID to filter by */ + public var assetIdEqual: Int64? = nil + /** Asset type to filter by, currently only VOD (media) */ + public var assetTypeEqual: AssetType? = nil + /** Comma separated list of social actions to filter by */ + public var socialPlatformEqual: SocialPlatform? = nil + /** The create date from which to get the comments */ + public var createDateGreaterThan: Int64? = nil + + + public func setMultiRequestToken(assetIdEqual: String) { + self.dict["assetIdEqual"] = assetIdEqual + } + + public func setMultiRequestToken(assetTypeEqual: String) { + self.dict["assetTypeEqual"] = assetTypeEqual + } + + public func setMultiRequestToken(socialPlatformEqual: String) { + self.dict["socialPlatformEqual"] = socialPlatformEqual + } + + public func setMultiRequestToken(createDateGreaterThan: String) { + self.dict["createDateGreaterThan"] = createDateGreaterThan + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetIdEqual"] != nil { + assetIdEqual = Int64("\(dict["assetIdEqual"]!)") + } + if dict["assetTypeEqual"] != nil { + assetTypeEqual = AssetType(rawValue: "\(dict["assetTypeEqual"]!)") + } + if dict["socialPlatformEqual"] != nil { + socialPlatformEqual = SocialPlatform(rawValue: "\(dict["socialPlatformEqual"]!)") + } + if dict["createDateGreaterThan"] != nil { + createDateGreaterThan = Int64("\(dict["createDateGreaterThan"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetIdEqual != nil) { + dict["assetIdEqual"] = assetIdEqual! + } + if(assetTypeEqual != nil) { + dict["assetTypeEqual"] = assetTypeEqual!.rawValue + } + if(socialPlatformEqual != nil) { + dict["socialPlatformEqual"] = socialPlatformEqual!.rawValue + } + if(createDateGreaterThan != nil) { + dict["createDateGreaterThan"] = createDateGreaterThan! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SocialCommentListResponse.swift b/KalturaClient/Classes/Model/Objects/SocialCommentListResponse.swift new file mode 100644 index 000000000..15cddc9cf --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SocialCommentListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SocialCommentListResponse: ListResponse { + + public class SocialCommentListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Social comments list */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SocialConfig.swift b/KalturaClient/Classes/Model/Objects/SocialConfig.swift new file mode 100644 index 000000000..1e0e52e32 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SocialConfig.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Returns social configuration for the partner */ +open class SocialConfig: ObjectBase { + + public class SocialConfigTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/SocialFacebookConfig.swift b/KalturaClient/Classes/Model/Objects/SocialFacebookConfig.swift new file mode 100644 index 000000000..73aa1a107 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SocialFacebookConfig.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Returns social configuration for the partner */ +open class SocialFacebookConfig: SocialConfig { + + public class SocialFacebookConfigTokenizer: SocialConfig.SocialConfigTokenizer { + + public var appId: BaseTokenizedObject { + get { + return self.append("appId") + } + } + + public var permissions: BaseTokenizedObject { + get { + return self.append("permissions") + } + } + } + + /** The application identifier */ + public var appId: String? = nil + /** List of application permissions */ + public var permissions: String? = nil + + + public func setMultiRequestToken(appId: String) { + self.dict["appId"] = appId + } + + public func setMultiRequestToken(permissions: String) { + self.dict["permissions"] = permissions + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["appId"] != nil { + appId = dict["appId"] as? String + } + if dict["permissions"] != nil { + permissions = dict["permissions"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(appId != nil) { + dict["appId"] = appId! + } + if(permissions != nil) { + dict["permissions"] = permissions! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SocialFriendActivity.swift b/KalturaClient/Classes/Model/Objects/SocialFriendActivity.swift new file mode 100644 index 000000000..7d9533443 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SocialFriendActivity.swift @@ -0,0 +1,101 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SocialFriendActivity: ObjectBase { + + public class SocialFriendActivityTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var userFullName: BaseTokenizedObject { + get { + return self.append("userFullName") + } + } + + public var userPictureUrl: BaseTokenizedObject { + get { + return self.append("userPictureUrl") + } + } + + public func socialAction() -> T { + return T(self.append("socialAction")) + } + } + + /** The full name of the user who did the social action */ + public var userFullName: String? = nil + /** The URL of the profile picture of the user who did the social action */ + public var userPictureUrl: String? = nil + /** The social action */ + public var socialAction: SocialAction? = nil + + + public func setMultiRequestToken(userFullName: String) { + self.dict["userFullName"] = userFullName + } + + public func setMultiRequestToken(userPictureUrl: String) { + self.dict["userPictureUrl"] = userPictureUrl + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["userFullName"] != nil { + userFullName = dict["userFullName"] as? String + } + if dict["userPictureUrl"] != nil { + userPictureUrl = dict["userPictureUrl"] as? String + } + if dict["socialAction"] != nil { + socialAction = try JSONParser.parse(object: dict["socialAction"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(userFullName != nil) { + dict["userFullName"] = userFullName! + } + if(userPictureUrl != nil) { + dict["userPictureUrl"] = userPictureUrl! + } + if(socialAction != nil) { + dict["socialAction"] = socialAction!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SocialFriendActivityFilter.swift b/KalturaClient/Classes/Model/Objects/SocialFriendActivityFilter.swift new file mode 100644 index 000000000..04335dd26 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SocialFriendActivityFilter.swift @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SocialFriendActivityFilter: Filter { + + public class SocialFriendActivityFilterTokenizer: Filter.FilterTokenizer { + + public var assetIdEqual: BaseTokenizedObject { + get { + return self.append("assetIdEqual") + } + } + + public var assetTypeEqual: BaseTokenizedObject { + get { + return self.append("assetTypeEqual") + } + } + + public var actionTypeIn: BaseTokenizedObject { + get { + return self.append("actionTypeIn") + } + } + } + + /** Asset ID to filter by */ + public var assetIdEqual: Int64? = nil + /** Asset type to filter by, currently only VOD (media) */ + public var assetTypeEqual: AssetType? = nil + /** Comma separated list of social actions to filter by */ + public var actionTypeIn: String? = nil + + + public func setMultiRequestToken(assetIdEqual: String) { + self.dict["assetIdEqual"] = assetIdEqual + } + + public func setMultiRequestToken(assetTypeEqual: String) { + self.dict["assetTypeEqual"] = assetTypeEqual + } + + public func setMultiRequestToken(actionTypeIn: String) { + self.dict["actionTypeIn"] = actionTypeIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetIdEqual"] != nil { + assetIdEqual = Int64("\(dict["assetIdEqual"]!)") + } + if dict["assetTypeEqual"] != nil { + assetTypeEqual = AssetType(rawValue: "\(dict["assetTypeEqual"]!)") + } + if dict["actionTypeIn"] != nil { + actionTypeIn = dict["actionTypeIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetIdEqual != nil) { + dict["assetIdEqual"] = assetIdEqual! + } + if(assetTypeEqual != nil) { + dict["assetTypeEqual"] = assetTypeEqual!.rawValue + } + if(actionTypeIn != nil) { + dict["actionTypeIn"] = actionTypeIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SocialFriendActivityListResponse.swift b/KalturaClient/Classes/Model/Objects/SocialFriendActivityListResponse.swift new file mode 100644 index 000000000..2ba7d17e8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SocialFriendActivityListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SocialFriendActivityListResponse: ListResponse { + + public class SocialFriendActivityListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Social friends activity */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SocialNetworkComment.swift b/KalturaClient/Classes/Model/Objects/SocialNetworkComment.swift new file mode 100644 index 000000000..4fc4f38da --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SocialNetworkComment.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SocialNetworkComment: SocialComment { + + public class SocialNetworkCommentTokenizer: SocialComment.SocialCommentTokenizer { + + public var likeCounter: BaseTokenizedObject { + get { + return self.append("likeCounter") + } + } + + public var authorImageUrl: BaseTokenizedObject { + get { + return self.append("authorImageUrl") + } + } + } + + /** Number of likes */ + public var likeCounter: String? = nil + /** The URL of the profile picture of the author of the comment */ + public var authorImageUrl: String? = nil + + + public func setMultiRequestToken(likeCounter: String) { + self.dict["likeCounter"] = likeCounter + } + + public func setMultiRequestToken(authorImageUrl: String) { + self.dict["authorImageUrl"] = authorImageUrl + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["likeCounter"] != nil { + likeCounter = dict["likeCounter"] as? String + } + if dict["authorImageUrl"] != nil { + authorImageUrl = dict["authorImageUrl"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(likeCounter != nil) { + dict["likeCounter"] = likeCounter! + } + if(authorImageUrl != nil) { + dict["authorImageUrl"] = authorImageUrl! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SocialUserConfig.swift b/KalturaClient/Classes/Model/Objects/SocialUserConfig.swift new file mode 100644 index 000000000..ef2608865 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SocialUserConfig.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SocialUserConfig: SocialConfig { + + public class SocialUserConfigTokenizer: SocialConfig.SocialConfigTokenizer { + + public var actionPermissionItems: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("actionPermissionItems")) + } + } + } + + /** List of action permission items */ + public var actionPermissionItems: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["actionPermissionItems"] != nil { + actionPermissionItems = try JSONParser.parse(array: dict["actionPermissionItems"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(actionPermissionItems != nil) { + dict["actionPermissionItems"] = actionPermissionItems!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/StartDateOffsetRuleAction.swift b/KalturaClient/Classes/Model/Objects/StartDateOffsetRuleAction.swift new file mode 100644 index 000000000..2e0a9fa14 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/StartDateOffsetRuleAction.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Start date offset action */ +open class StartDateOffsetRuleAction: TimeOffsetRuleAction { + + public class StartDateOffsetRuleActionTokenizer: TimeOffsetRuleAction.TimeOffsetRuleActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/StringValue.swift b/KalturaClient/Classes/Model/Objects/StringValue.swift new file mode 100644 index 000000000..4b2f8a502 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/StringValue.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** A string representation to return an array of strings */ +open class StringValue: Value { + + public class StringValueTokenizer: Value.ValueTokenizer { + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** Value */ + public var value: String? = nil + + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["value"] != nil { + value = dict["value"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(value != nil) { + dict["value"] = value! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/StringValueArray.swift b/KalturaClient/Classes/Model/Objects/StringValueArray.swift new file mode 100644 index 000000000..8529f5c31 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/StringValueArray.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class StringValueArray: ObjectBase { + + public class StringValueArrayTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** List of string values */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SubscribeReference.swift b/KalturaClient/Classes/Model/Objects/SubscribeReference.swift new file mode 100644 index 000000000..9cd91781e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SubscribeReference.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SubscribeReference: ObjectBase { + + public class SubscribeReferenceTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/Subscription.swift b/KalturaClient/Classes/Model/Objects/Subscription.swift new file mode 100644 index 000000000..97a3b052b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Subscription.swift @@ -0,0 +1,575 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Subscription details */ +open class Subscription: ObjectBase { + + public class SubscriptionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var channels: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("channels")) + } + } + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + + public var fileTypes: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("fileTypes")) + } + } + + public var isRenewable: BaseTokenizedObject { + get { + return self.append("isRenewable") + } + } + + public var renewalsNumber: BaseTokenizedObject { + get { + return self.append("renewalsNumber") + } + } + + public var isInfiniteRenewal: BaseTokenizedObject { + get { + return self.append("isInfiniteRenewal") + } + } + + public func price() -> T { + return T(self.append("price")) + } + + public func discountModule() -> T { + return T(self.append("discountModule")) + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var multilingualName: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multilingualName")) + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + + public var multilingualDescription: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multilingualDescription")) + } + } + + public var mediaId: BaseTokenizedObject { + get { + return self.append("mediaId") + } + } + + public var prorityInOrder: BaseTokenizedObject { + get { + return self.append("prorityInOrder") + } + } + + public var pricePlanIds: BaseTokenizedObject { + get { + return self.append("pricePlanIds") + } + } + + public func previewModule() -> T { + return T(self.append("previewModule")) + } + + public var householdLimitationsId: BaseTokenizedObject { + get { + return self.append("householdLimitationsId") + } + } + + public var gracePeriodMinutes: BaseTokenizedObject { + get { + return self.append("gracePeriodMinutes") + } + } + + public var premiumServices: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("premiumServices")) + } + } + + public var maxViewsNumber: BaseTokenizedObject { + get { + return self.append("maxViewsNumber") + } + } + + public var viewLifeCycle: BaseTokenizedObject { + get { + return self.append("viewLifeCycle") + } + } + + public var waiverPeriod: BaseTokenizedObject { + get { + return self.append("waiverPeriod") + } + } + + public var isWaiverEnabled: BaseTokenizedObject { + get { + return self.append("isWaiverEnabled") + } + } + + public var userTypes: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("userTypes")) + } + } + + public var couponsGroups: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("couponsGroups")) + } + } + + public var productCodes: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("productCodes")) + } + } + + public var dependencyType: BaseTokenizedObject { + get { + return self.append("dependencyType") + } + } + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + + public var isCancellationBlocked: BaseTokenizedObject { + get { + return self.append("isCancellationBlocked") + } + } + + public var preSaleDate: BaseTokenizedObject { + get { + return self.append("preSaleDate") + } + } + } + + /** Subscription identifier */ + public var id: String? = nil + /** A list of channels associated with this subscription */ + public var channels: Array? = nil + /** The first date the subscription is available for purchasing */ + public var startDate: Int64? = nil + /** The last date the subscription is available for purchasing */ + public var endDate: Int64? = nil + /** A list of file types identifiers that are supported in this subscription */ + public var fileTypes: Array? = nil + /** Denotes whether or not this subscription can be renewed */ + public var isRenewable: Bool? = nil + /** Defines the number of times this subscription will be renewed */ + public var renewalsNumber: Int? = nil + /** Indicates whether the subscription will renew forever */ + public var isInfiniteRenewal: Bool? = nil + /** The price of the subscription */ + public var price: PriceDetails? = nil + /** The internal discount module for the subscription */ + public var discountModule: DiscountModule? = nil + /** Name of the subscription */ + public var name: String? = nil + /** Name of the subscription */ + public var multilingualName: Array? = nil + /** description of the subscription */ + public var description: String? = nil + /** description of the subscription */ + public var multilingualDescription: Array? = nil + /** Identifier of the media associated with the subscription */ + public var mediaId: Int? = nil + /** Subscription order (when returned in methods that retrieve subscriptions) */ + public var prorityInOrder: Int64? = nil + /** Comma separated subscription price plan IDs */ + public var pricePlanIds: String? = nil + /** Subscription preview module */ + public var previewModule: PreviewModule? = nil + /** The household limitation module identifier associated with this subscription */ + public var householdLimitationsId: Int? = nil + /** The subscription grace period in minutes */ + public var gracePeriodMinutes: Int? = nil + /** List of premium services included in the subscription */ + public var premiumServices: Array? = nil + /** The maximum number of times an item in this usage module can be viewed */ + public var maxViewsNumber: Int? = nil + /** The amount time an item is available for viewing since a user started watching + the item */ + public var viewLifeCycle: Int? = nil + /** Time period during which the end user can waive his rights to cancel a purchase. + When the time period is passed, the purchase can no longer be cancelled */ + public var waiverPeriod: Int? = nil + /** Indicates whether or not the end user has the right to waive his rights to + cancel a purchase */ + public var isWaiverEnabled: Bool? = nil + /** List of permitted user types for the subscription */ + public var userTypes: Array? = nil + /** List of Coupons group */ + public var couponsGroups: Array? = nil + /** List of Subscription product codes */ + public var productCodes: Array? = nil + /** Dependency Type */ + public var dependencyType: SubscriptionDependencyType? = nil + /** External ID */ + public var externalId: String? = nil + /** Is cancellation blocked for the subscription */ + public var isCancellationBlocked: Bool? = nil + /** The Pre-Sale date the subscription is available for purchasing */ + public var preSaleDate: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(startDate: String) { + self.dict["startDate"] = startDate + } + + public func setMultiRequestToken(endDate: String) { + self.dict["endDate"] = endDate + } + + public func setMultiRequestToken(isRenewable: String) { + self.dict["isRenewable"] = isRenewable + } + + public func setMultiRequestToken(renewalsNumber: String) { + self.dict["renewalsNumber"] = renewalsNumber + } + + public func setMultiRequestToken(isInfiniteRenewal: String) { + self.dict["isInfiniteRenewal"] = isInfiniteRenewal + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public func setMultiRequestToken(mediaId: String) { + self.dict["mediaId"] = mediaId + } + + public func setMultiRequestToken(prorityInOrder: String) { + self.dict["prorityInOrder"] = prorityInOrder + } + + public func setMultiRequestToken(pricePlanIds: String) { + self.dict["pricePlanIds"] = pricePlanIds + } + + public func setMultiRequestToken(householdLimitationsId: String) { + self.dict["householdLimitationsId"] = householdLimitationsId + } + + public func setMultiRequestToken(gracePeriodMinutes: String) { + self.dict["gracePeriodMinutes"] = gracePeriodMinutes + } + + public func setMultiRequestToken(maxViewsNumber: String) { + self.dict["maxViewsNumber"] = maxViewsNumber + } + + public func setMultiRequestToken(viewLifeCycle: String) { + self.dict["viewLifeCycle"] = viewLifeCycle + } + + public func setMultiRequestToken(waiverPeriod: String) { + self.dict["waiverPeriod"] = waiverPeriod + } + + public func setMultiRequestToken(isWaiverEnabled: String) { + self.dict["isWaiverEnabled"] = isWaiverEnabled + } + + public func setMultiRequestToken(dependencyType: String) { + self.dict["dependencyType"] = dependencyType + } + + public func setMultiRequestToken(externalId: String) { + self.dict["externalId"] = externalId + } + + public func setMultiRequestToken(isCancellationBlocked: String) { + self.dict["isCancellationBlocked"] = isCancellationBlocked + } + + public func setMultiRequestToken(preSaleDate: String) { + self.dict["preSaleDate"] = preSaleDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["channels"] != nil { + channels = try JSONParser.parse(array: dict["channels"] as! [Any]) + } + if dict["startDate"] != nil { + startDate = Int64("\(dict["startDate"]!)") + } + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + if dict["fileTypes"] != nil { + fileTypes = try JSONParser.parse(array: dict["fileTypes"] as! [Any]) + } + if dict["isRenewable"] != nil { + isRenewable = dict["isRenewable"] as? Bool + } + if dict["renewalsNumber"] != nil { + renewalsNumber = dict["renewalsNumber"] as? Int + } + if dict["isInfiniteRenewal"] != nil { + isInfiniteRenewal = dict["isInfiniteRenewal"] as? Bool + } + if dict["price"] != nil { + price = try JSONParser.parse(object: dict["price"] as! [String: Any]) } + if dict["discountModule"] != nil { + discountModule = try JSONParser.parse(object: dict["discountModule"] as! [String: Any]) } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["multilingualName"] != nil { + multilingualName = try JSONParser.parse(array: dict["multilingualName"] as! [Any]) + } + if dict["description"] != nil { + description = dict["description"] as? String + } + if dict["multilingualDescription"] != nil { + multilingualDescription = try JSONParser.parse(array: dict["multilingualDescription"] as! [Any]) + } + if dict["mediaId"] != nil { + mediaId = dict["mediaId"] as? Int + } + if dict["prorityInOrder"] != nil { + prorityInOrder = Int64("\(dict["prorityInOrder"]!)") + } + if dict["pricePlanIds"] != nil { + pricePlanIds = dict["pricePlanIds"] as? String + } + if dict["previewModule"] != nil { + previewModule = try JSONParser.parse(object: dict["previewModule"] as! [String: Any]) } + if dict["householdLimitationsId"] != nil { + householdLimitationsId = dict["householdLimitationsId"] as? Int + } + if dict["gracePeriodMinutes"] != nil { + gracePeriodMinutes = dict["gracePeriodMinutes"] as? Int + } + if dict["premiumServices"] != nil { + premiumServices = try JSONParser.parse(array: dict["premiumServices"] as! [Any]) + } + if dict["maxViewsNumber"] != nil { + maxViewsNumber = dict["maxViewsNumber"] as? Int + } + if dict["viewLifeCycle"] != nil { + viewLifeCycle = dict["viewLifeCycle"] as? Int + } + if dict["waiverPeriod"] != nil { + waiverPeriod = dict["waiverPeriod"] as? Int + } + if dict["isWaiverEnabled"] != nil { + isWaiverEnabled = dict["isWaiverEnabled"] as? Bool + } + if dict["userTypes"] != nil { + userTypes = try JSONParser.parse(array: dict["userTypes"] as! [Any]) + } + if dict["couponsGroups"] != nil { + couponsGroups = try JSONParser.parse(array: dict["couponsGroups"] as! [Any]) + } + if dict["productCodes"] != nil { + productCodes = try JSONParser.parse(array: dict["productCodes"] as! [Any]) + } + if dict["dependencyType"] != nil { + dependencyType = SubscriptionDependencyType(rawValue: "\(dict["dependencyType"]!)") + } + if dict["externalId"] != nil { + externalId = dict["externalId"] as? String + } + if dict["isCancellationBlocked"] != nil { + isCancellationBlocked = dict["isCancellationBlocked"] as? Bool + } + if dict["preSaleDate"] != nil { + preSaleDate = Int64("\(dict["preSaleDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(channels != nil) { + dict["channels"] = channels!.map { value in value.toDictionary() } + } + if(startDate != nil) { + dict["startDate"] = startDate! + } + if(endDate != nil) { + dict["endDate"] = endDate! + } + if(fileTypes != nil) { + dict["fileTypes"] = fileTypes!.map { value in value.toDictionary() } + } + if(isRenewable != nil) { + dict["isRenewable"] = isRenewable! + } + if(renewalsNumber != nil) { + dict["renewalsNumber"] = renewalsNumber! + } + if(isInfiniteRenewal != nil) { + dict["isInfiniteRenewal"] = isInfiniteRenewal! + } + if(price != nil) { + dict["price"] = price!.toDictionary() + } + if(discountModule != nil) { + dict["discountModule"] = discountModule!.toDictionary() + } + if(multilingualName != nil) { + dict["multilingualName"] = multilingualName!.map { value in value.toDictionary() } + } + if(multilingualDescription != nil) { + dict["multilingualDescription"] = multilingualDescription!.map { value in value.toDictionary() } + } + if(mediaId != nil) { + dict["mediaId"] = mediaId! + } + if(prorityInOrder != nil) { + dict["prorityInOrder"] = prorityInOrder! + } + if(pricePlanIds != nil) { + dict["pricePlanIds"] = pricePlanIds! + } + if(previewModule != nil) { + dict["previewModule"] = previewModule!.toDictionary() + } + if(householdLimitationsId != nil) { + dict["householdLimitationsId"] = householdLimitationsId! + } + if(gracePeriodMinutes != nil) { + dict["gracePeriodMinutes"] = gracePeriodMinutes! + } + if(premiumServices != nil) { + dict["premiumServices"] = premiumServices!.map { value in value.toDictionary() } + } + if(maxViewsNumber != nil) { + dict["maxViewsNumber"] = maxViewsNumber! + } + if(viewLifeCycle != nil) { + dict["viewLifeCycle"] = viewLifeCycle! + } + if(waiverPeriod != nil) { + dict["waiverPeriod"] = waiverPeriod! + } + if(isWaiverEnabled != nil) { + dict["isWaiverEnabled"] = isWaiverEnabled! + } + if(userTypes != nil) { + dict["userTypes"] = userTypes!.map { value in value.toDictionary() } + } + if(couponsGroups != nil) { + dict["couponsGroups"] = couponsGroups!.map { value in value.toDictionary() } + } + if(productCodes != nil) { + dict["productCodes"] = productCodes!.map { value in value.toDictionary() } + } + if(dependencyType != nil) { + dict["dependencyType"] = dependencyType!.rawValue + } + if(externalId != nil) { + dict["externalId"] = externalId! + } + if(isCancellationBlocked != nil) { + dict["isCancellationBlocked"] = isCancellationBlocked! + } + if(preSaleDate != nil) { + dict["preSaleDate"] = preSaleDate! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SubscriptionCondition.swift b/KalturaClient/Classes/Model/Objects/SubscriptionCondition.swift new file mode 100644 index 000000000..2213f3a5b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SubscriptionCondition.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SubscriptionCondition: Condition { + + public class SubscriptionConditionTokenizer: Condition.ConditionTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** Comma separated subscription IDs list */ + public var idIn: String? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SubscriptionDependencySet.swift b/KalturaClient/Classes/Model/Objects/SubscriptionDependencySet.swift new file mode 100644 index 000000000..32286616e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SubscriptionDependencySet.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Subscription Dependency Set */ +open class SubscriptionDependencySet: SubscriptionSet { + + public class SubscriptionDependencySetTokenizer: SubscriptionSet.SubscriptionSetTokenizer { + + public var baseSubscriptionId: BaseTokenizedObject { + get { + return self.append("baseSubscriptionId") + } + } + } + + /** Base Subscription identifier */ + public var baseSubscriptionId: Int64? = nil + + + public func setMultiRequestToken(baseSubscriptionId: String) { + self.dict["baseSubscriptionId"] = baseSubscriptionId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["baseSubscriptionId"] != nil { + baseSubscriptionId = Int64("\(dict["baseSubscriptionId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(baseSubscriptionId != nil) { + dict["baseSubscriptionId"] = baseSubscriptionId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SubscriptionDependencySetFilter.swift b/KalturaClient/Classes/Model/Objects/SubscriptionDependencySetFilter.swift new file mode 100644 index 000000000..d918740ff --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SubscriptionDependencySetFilter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SubscriptionDependencySetFilter: SubscriptionSetFilter { + + public class SubscriptionDependencySetFilterTokenizer: SubscriptionSetFilter.SubscriptionSetFilterTokenizer { + + public var baseSubscriptionIdIn: BaseTokenizedObject { + get { + return self.append("baseSubscriptionIdIn") + } + } + } + + /** Comma separated identifiers */ + public var baseSubscriptionIdIn: String? = nil + + + public func setMultiRequestToken(baseSubscriptionIdIn: String) { + self.dict["baseSubscriptionIdIn"] = baseSubscriptionIdIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["baseSubscriptionIdIn"] != nil { + baseSubscriptionIdIn = dict["baseSubscriptionIdIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(baseSubscriptionIdIn != nil) { + dict["baseSubscriptionIdIn"] = baseSubscriptionIdIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SubscriptionEntitlement.swift b/KalturaClient/Classes/Model/Objects/SubscriptionEntitlement.swift new file mode 100644 index 000000000..75978e755 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SubscriptionEntitlement.swift @@ -0,0 +1,197 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** KalturaSubscriptionEntitlement */ +open class SubscriptionEntitlement: Entitlement { + + public class SubscriptionEntitlementTokenizer: Entitlement.EntitlementTokenizer { + + public var nextRenewalDate: BaseTokenizedObject { + get { + return self.append("nextRenewalDate") + } + } + + public var isRenewableForPurchase: BaseTokenizedObject { + get { + return self.append("isRenewableForPurchase") + } + } + + public var isRenewable: BaseTokenizedObject { + get { + return self.append("isRenewable") + } + } + + public var isInGracePeriod: BaseTokenizedObject { + get { + return self.append("isInGracePeriod") + } + } + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + + public var paymentMethodId: BaseTokenizedObject { + get { + return self.append("paymentMethodId") + } + } + + public var scheduledSubscriptionId: BaseTokenizedObject { + get { + return self.append("scheduledSubscriptionId") + } + } + + public var unifiedPaymentId: BaseTokenizedObject { + get { + return self.append("unifiedPaymentId") + } + } + + public var isSuspended: BaseTokenizedObject { + get { + return self.append("isSuspended") + } + } + } + + /** The date of the next renewal (only for subscription) */ + public var nextRenewalDate: Int64? = nil + /** Indicates whether the subscription is renewable in this purchase (only for + subscription) */ + public var isRenewableForPurchase: Bool? = nil + /** Indicates whether a subscription is renewable (only for subscription) */ + public var isRenewable: Bool? = nil + /** Indicates whether the user is currently in his grace period entitlement */ + public var isInGracePeriod: Bool? = nil + /** Payment Gateway identifier */ + public var paymentGatewayId: Int? = nil + /** Payment Method identifier */ + public var paymentMethodId: Int? = nil + /** Scheduled Subscription Identifier */ + public var scheduledSubscriptionId: Int64? = nil + /** Unified payment identifier */ + public var unifiedPaymentId: Int64? = nil + /** Indicates if the subscription suspended */ + public var isSuspended: Bool? = nil + + + public func setMultiRequestToken(nextRenewalDate: String) { + self.dict["nextRenewalDate"] = nextRenewalDate + } + + public func setMultiRequestToken(isRenewableForPurchase: String) { + self.dict["isRenewableForPurchase"] = isRenewableForPurchase + } + + public func setMultiRequestToken(isRenewable: String) { + self.dict["isRenewable"] = isRenewable + } + + public func setMultiRequestToken(isInGracePeriod: String) { + self.dict["isInGracePeriod"] = isInGracePeriod + } + + public func setMultiRequestToken(paymentGatewayId: String) { + self.dict["paymentGatewayId"] = paymentGatewayId + } + + public func setMultiRequestToken(paymentMethodId: String) { + self.dict["paymentMethodId"] = paymentMethodId + } + + public func setMultiRequestToken(scheduledSubscriptionId: String) { + self.dict["scheduledSubscriptionId"] = scheduledSubscriptionId + } + + public func setMultiRequestToken(unifiedPaymentId: String) { + self.dict["unifiedPaymentId"] = unifiedPaymentId + } + + public func setMultiRequestToken(isSuspended: String) { + self.dict["isSuspended"] = isSuspended + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["nextRenewalDate"] != nil { + nextRenewalDate = Int64("\(dict["nextRenewalDate"]!)") + } + if dict["isRenewableForPurchase"] != nil { + isRenewableForPurchase = dict["isRenewableForPurchase"] as? Bool + } + if dict["isRenewable"] != nil { + isRenewable = dict["isRenewable"] as? Bool + } + if dict["isInGracePeriod"] != nil { + isInGracePeriod = dict["isInGracePeriod"] as? Bool + } + if dict["paymentGatewayId"] != nil { + paymentGatewayId = dict["paymentGatewayId"] as? Int + } + if dict["paymentMethodId"] != nil { + paymentMethodId = dict["paymentMethodId"] as? Int + } + if dict["scheduledSubscriptionId"] != nil { + scheduledSubscriptionId = Int64("\(dict["scheduledSubscriptionId"]!)") + } + if dict["unifiedPaymentId"] != nil { + unifiedPaymentId = Int64("\(dict["unifiedPaymentId"]!)") + } + if dict["isSuspended"] != nil { + isSuspended = dict["isSuspended"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(paymentGatewayId != nil) { + dict["paymentGatewayId"] = paymentGatewayId! + } + if(paymentMethodId != nil) { + dict["paymentMethodId"] = paymentMethodId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SubscriptionFilter.swift b/KalturaClient/Classes/Model/Objects/SubscriptionFilter.swift new file mode 100644 index 000000000..00cb12bb6 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SubscriptionFilter.swift @@ -0,0 +1,144 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SubscriptionFilter: Filter { + + public class SubscriptionFilterTokenizer: Filter.FilterTokenizer { + + public var subscriptionIdIn: BaseTokenizedObject { + get { + return self.append("subscriptionIdIn") + } + } + + public var mediaFileIdEqual: BaseTokenizedObject { + get { + return self.append("mediaFileIdEqual") + } + } + + public var externalIdIn: BaseTokenizedObject { + get { + return self.append("externalIdIn") + } + } + + public var couponGroupIdEqual: BaseTokenizedObject { + get { + return self.append("couponGroupIdEqual") + } + } + + public var kSql: BaseTokenizedObject { + get { + return self.append("kSql") + } + } + } + + /** Comma separated subscription IDs to get the subscriptions by */ + public var subscriptionIdIn: String? = nil + /** Media-file ID to get the subscriptions by */ + public var mediaFileIdEqual: Int? = nil + /** Comma separated subscription external IDs to get the subscriptions by */ + public var externalIdIn: String? = nil + /** couponGroupIdEqual */ + public var couponGroupIdEqual: Int? = nil + /** KSQL expression */ + public var kSql: String? = nil + + + public func setMultiRequestToken(subscriptionIdIn: String) { + self.dict["subscriptionIdIn"] = subscriptionIdIn + } + + public func setMultiRequestToken(mediaFileIdEqual: String) { + self.dict["mediaFileIdEqual"] = mediaFileIdEqual + } + + public func setMultiRequestToken(externalIdIn: String) { + self.dict["externalIdIn"] = externalIdIn + } + + public func setMultiRequestToken(couponGroupIdEqual: String) { + self.dict["couponGroupIdEqual"] = couponGroupIdEqual + } + + public func setMultiRequestToken(kSql: String) { + self.dict["kSql"] = kSql + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["subscriptionIdIn"] != nil { + subscriptionIdIn = dict["subscriptionIdIn"] as? String + } + if dict["mediaFileIdEqual"] != nil { + mediaFileIdEqual = dict["mediaFileIdEqual"] as? Int + } + if dict["externalIdIn"] != nil { + externalIdIn = dict["externalIdIn"] as? String + } + if dict["couponGroupIdEqual"] != nil { + couponGroupIdEqual = dict["couponGroupIdEqual"] as? Int + } + if dict["kSql"] != nil { + kSql = dict["kSql"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(subscriptionIdIn != nil) { + dict["subscriptionIdIn"] = subscriptionIdIn! + } + if(mediaFileIdEqual != nil) { + dict["mediaFileIdEqual"] = mediaFileIdEqual! + } + if(externalIdIn != nil) { + dict["externalIdIn"] = externalIdIn! + } + if(couponGroupIdEqual != nil) { + dict["couponGroupIdEqual"] = couponGroupIdEqual! + } + if(kSql != nil) { + dict["kSql"] = kSql! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SubscriptionListResponse.swift b/KalturaClient/Classes/Model/Objects/SubscriptionListResponse.swift new file mode 100644 index 000000000..2e82f88cf --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SubscriptionListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Subscriptions list */ +open class SubscriptionListResponse: ListResponse { + + public class SubscriptionListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of subscriptions */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SubscriptionPrice.swift b/KalturaClient/Classes/Model/Objects/SubscriptionPrice.swift new file mode 100644 index 000000000..b7b48f8e8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SubscriptionPrice.swift @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Subscription price details */ +open class SubscriptionPrice: ProductPrice { + + public class SubscriptionPriceTokenizer: ProductPrice.ProductPriceTokenizer { + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + } + + /** If the item related to unified billing cycle purchased - until when the this + price is relevant */ + public var endDate: Int64? = nil + + + public func setMultiRequestToken(endDate: String) { + self.dict["endDate"] = endDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(endDate != nil) { + dict["endDate"] = endDate! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SubscriptionSet.swift b/KalturaClient/Classes/Model/Objects/SubscriptionSet.swift new file mode 100644 index 000000000..e5096cf86 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SubscriptionSet.swift @@ -0,0 +1,122 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Subscription details */ +open class SubscriptionSet: ObjectBase { + + public class SubscriptionSetTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var subscriptionIds: BaseTokenizedObject { + get { + return self.append("subscriptionIds") + } + } + } + + /** SubscriptionSet identifier */ + public var id: Int64? = nil + /** SubscriptionSet name */ + public var name: String? = nil + /** Type of the Subscription Set */ + public var type: SubscriptionSetType? = nil + /** A list of comma separated subscription ids associated with this set ordered by + priority ascending */ + public var subscriptionIds: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(subscriptionIds: String) { + self.dict["subscriptionIds"] = subscriptionIds + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["type"] != nil { + type = SubscriptionSetType(rawValue: "\(dict["type"]!)") + } + if dict["subscriptionIds"] != nil { + subscriptionIds = dict["subscriptionIds"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(subscriptionIds != nil) { + dict["subscriptionIds"] = subscriptionIds! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SubscriptionSetFilter.swift b/KalturaClient/Classes/Model/Objects/SubscriptionSetFilter.swift new file mode 100644 index 000000000..18fd41c53 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SubscriptionSetFilter.swift @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SubscriptionSetFilter: Filter { + + public class SubscriptionSetFilterTokenizer: Filter.FilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + + public var subscriptionIdContains: BaseTokenizedObject { + get { + return self.append("subscriptionIdContains") + } + } + + public var typeEqual: BaseTokenizedObject { + get { + return self.append("typeEqual") + } + } + } + + /** Comma separated identifiers */ + public var idIn: String? = nil + /** Comma separated subscription identifiers */ + public var subscriptionIdContains: String? = nil + /** Subscription Type */ + public var typeEqual: SubscriptionSetType? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public func setMultiRequestToken(subscriptionIdContains: String) { + self.dict["subscriptionIdContains"] = subscriptionIdContains + } + + public func setMultiRequestToken(typeEqual: String) { + self.dict["typeEqual"] = typeEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + if dict["subscriptionIdContains"] != nil { + subscriptionIdContains = dict["subscriptionIdContains"] as? String + } + if dict["typeEqual"] != nil { + typeEqual = SubscriptionSetType(rawValue: "\(dict["typeEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + if(subscriptionIdContains != nil) { + dict["subscriptionIdContains"] = subscriptionIdContains! + } + if(typeEqual != nil) { + dict["typeEqual"] = typeEqual!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SubscriptionSetListResponse.swift b/KalturaClient/Classes/Model/Objects/SubscriptionSetListResponse.swift new file mode 100644 index 000000000..923dca6fd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SubscriptionSetListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** SubscriptionSets list */ +open class SubscriptionSetListResponse: ListResponse { + + public class SubscriptionSetListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of subscriptionSets */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SubscriptionSubscribeReference.swift b/KalturaClient/Classes/Model/Objects/SubscriptionSubscribeReference.swift new file mode 100644 index 000000000..38d41aa9e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SubscriptionSubscribeReference.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SubscriptionSubscribeReference: SubscribeReference { + + public class SubscriptionSubscribeReferenceTokenizer: SubscribeReference.SubscribeReferenceTokenizer { + + public var subscriptionId: BaseTokenizedObject { + get { + return self.append("subscriptionId") + } + } + } + + /** Subscription ID */ + public var subscriptionId: Int64? = nil + + + public func setMultiRequestToken(subscriptionId: String) { + self.dict["subscriptionId"] = subscriptionId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["subscriptionId"] != nil { + subscriptionId = Int64("\(dict["subscriptionId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(subscriptionId != nil) { + dict["subscriptionId"] = subscriptionId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SubscriptionSwitchSet.swift b/KalturaClient/Classes/Model/Objects/SubscriptionSwitchSet.swift new file mode 100644 index 000000000..1c6088233 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SubscriptionSwitchSet.swift @@ -0,0 +1,49 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Subscription details */ +open class SubscriptionSwitchSet: SubscriptionSet { + + public class SubscriptionSwitchSetTokenizer: SubscriptionSet.SubscriptionSetTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/SubscriptionTrigger.swift b/KalturaClient/Classes/Model/Objects/SubscriptionTrigger.swift new file mode 100644 index 000000000..4345e4f09 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SubscriptionTrigger.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class SubscriptionTrigger: Trigger { + + public class SubscriptionTriggerTokenizer: Trigger.TriggerTokenizer { + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var offset: BaseTokenizedObject { + get { + return self.append("offset") + } + } + } + + /** Subscription trigger type */ + public var type: SubscriptionTriggerType? = nil + /** Subscription trigger offset */ + public var offset: Int64? = nil + + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(offset: String) { + self.dict["offset"] = offset + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["type"] != nil { + type = SubscriptionTriggerType(rawValue: "\(dict["type"]!)") + } + if dict["offset"] != nil { + offset = Int64("\(dict["offset"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(type != nil) { + dict["type"] = type!.rawValue + } + if(offset != nil) { + dict["offset"] = offset! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/SuspendSettings.swift b/KalturaClient/Classes/Model/Objects/SuspendSettings.swift new file mode 100644 index 000000000..5311f8209 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/SuspendSettings.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Suspend Settings */ +open class SuspendSettings: ObjectBase { + + public class SuspendSettingsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var revokeEntitlements: BaseTokenizedObject { + get { + return self.append("revokeEntitlements") + } + } + + public var stopRenew: BaseTokenizedObject { + get { + return self.append("stopRenew") + } + } + } + + /** revoke entitlements */ + public var revokeEntitlements: Bool? = nil + /** stop renew */ + public var stopRenew: Bool? = nil + + + public func setMultiRequestToken(revokeEntitlements: String) { + self.dict["revokeEntitlements"] = revokeEntitlements + } + + public func setMultiRequestToken(stopRenew: String) { + self.dict["stopRenew"] = stopRenew + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["revokeEntitlements"] != nil { + revokeEntitlements = dict["revokeEntitlements"] as? Bool + } + if dict["stopRenew"] != nil { + stopRenew = dict["stopRenew"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(revokeEntitlements != nil) { + dict["revokeEntitlements"] = revokeEntitlements! + } + if(stopRenew != nil) { + dict["stopRenew"] = stopRenew! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/T.swift b/KalturaClient/Classes/Model/Objects/T.swift new file mode 100644 index 000000000..5b212f556 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/T.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class T: ObjectBase { + + public class TTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/Tag.swift b/KalturaClient/Classes/Model/Objects/Tag.swift new file mode 100644 index 000000000..e1800a315 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Tag.swift @@ -0,0 +1,116 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Tag: ObjectBase { + + public class TagTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var tag: BaseTokenizedObject { + get { + return self.append("tag") + } + } + + public var multilingualTag: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("multilingualTag")) + } + } + } + + /** Tag id */ + public var id: Int64? = nil + /** Tag Type */ + public var type: Int? = nil + /** Tag */ + public var tag: String? = nil + /** Tag */ + public var multilingualTag: Array? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(tag: String) { + self.dict["tag"] = tag + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["type"] != nil { + type = dict["type"] as? Int + } + if dict["tag"] != nil { + tag = dict["tag"] as? String + } + if dict["multilingualTag"] != nil { + multilingualTag = try JSONParser.parse(array: dict["multilingualTag"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(type != nil) { + dict["type"] = type! + } + if(multilingualTag != nil) { + dict["multilingualTag"] = multilingualTag!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TagFilter.swift b/KalturaClient/Classes/Model/Objects/TagFilter.swift new file mode 100644 index 000000000..fc3ff1228 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TagFilter.swift @@ -0,0 +1,144 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class TagFilter: Filter { + + public class TagFilterTokenizer: Filter.FilterTokenizer { + + public var tagEqual: BaseTokenizedObject { + get { + return self.append("tagEqual") + } + } + + public var tagStartsWith: BaseTokenizedObject { + get { + return self.append("tagStartsWith") + } + } + + public var typeEqual: BaseTokenizedObject { + get { + return self.append("typeEqual") + } + } + + public var languageEqual: BaseTokenizedObject { + get { + return self.append("languageEqual") + } + } + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** Tag to filter by */ + public var tagEqual: String? = nil + /** Tag to filter by */ + public var tagStartsWith: String? = nil + /** Type identifier */ + public var typeEqual: Int? = nil + /** Language to filter by */ + public var languageEqual: String? = nil + /** Comma separated identifiers */ + public var idIn: String? = nil + + + public func setMultiRequestToken(tagEqual: String) { + self.dict["tagEqual"] = tagEqual + } + + public func setMultiRequestToken(tagStartsWith: String) { + self.dict["tagStartsWith"] = tagStartsWith + } + + public func setMultiRequestToken(typeEqual: String) { + self.dict["typeEqual"] = typeEqual + } + + public func setMultiRequestToken(languageEqual: String) { + self.dict["languageEqual"] = languageEqual + } + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["tagEqual"] != nil { + tagEqual = dict["tagEqual"] as? String + } + if dict["tagStartsWith"] != nil { + tagStartsWith = dict["tagStartsWith"] as? String + } + if dict["typeEqual"] != nil { + typeEqual = dict["typeEqual"] as? Int + } + if dict["languageEqual"] != nil { + languageEqual = dict["languageEqual"] as? String + } + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(tagEqual != nil) { + dict["tagEqual"] = tagEqual! + } + if(tagStartsWith != nil) { + dict["tagStartsWith"] = tagStartsWith! + } + if(typeEqual != nil) { + dict["typeEqual"] = typeEqual! + } + if(languageEqual != nil) { + dict["languageEqual"] = languageEqual! + } + if(idIn != nil) { + dict["idIn"] = idIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TagListResponse.swift b/KalturaClient/Classes/Model/Objects/TagListResponse.swift new file mode 100644 index 000000000..2426a72c2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TagListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class TagListResponse: ListResponse { + + public class TagListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of partner tags */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TimeOffsetRuleAction.swift b/KalturaClient/Classes/Model/Objects/TimeOffsetRuleAction.swift new file mode 100644 index 000000000..340c74d51 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TimeOffsetRuleAction.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Time offset action */ +open class TimeOffsetRuleAction: AssetRuleAction { + + public class TimeOffsetRuleActionTokenizer: AssetRuleAction.AssetRuleActionTokenizer { + + public var offset: BaseTokenizedObject { + get { + return self.append("offset") + } + } + + public var timeZone: BaseTokenizedObject { + get { + return self.append("timeZone") + } + } + } + + /** Offset in seconds */ + public var offset: Int? = nil + /** Indicates whether to add time zone offset to the time */ + public var timeZone: Bool? = nil + + + public func setMultiRequestToken(offset: String) { + self.dict["offset"] = offset + } + + public func setMultiRequestToken(timeZone: String) { + self.dict["timeZone"] = timeZone + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["offset"] != nil { + offset = dict["offset"] as? Int + } + if dict["timeZone"] != nil { + timeZone = dict["timeZone"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(offset != nil) { + dict["offset"] = offset! + } + if(timeZone != nil) { + dict["timeZone"] = timeZone! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TimeShiftedTvPartnerSettings.swift b/KalturaClient/Classes/Model/Objects/TimeShiftedTvPartnerSettings.swift new file mode 100644 index 000000000..efd07c72a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TimeShiftedTvPartnerSettings.swift @@ -0,0 +1,455 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class TimeShiftedTvPartnerSettings: ObjectBase { + + public class TimeShiftedTvPartnerSettingsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var catchUpEnabled: BaseTokenizedObject { + get { + return self.append("catchUpEnabled") + } + } + + public var cdvrEnabled: BaseTokenizedObject { + get { + return self.append("cdvrEnabled") + } + } + + public var startOverEnabled: BaseTokenizedObject { + get { + return self.append("startOverEnabled") + } + } + + public var trickPlayEnabled: BaseTokenizedObject { + get { + return self.append("trickPlayEnabled") + } + } + + public var recordingScheduleWindowEnabled: BaseTokenizedObject { + get { + return self.append("recordingScheduleWindowEnabled") + } + } + + public var protectionEnabled: BaseTokenizedObject { + get { + return self.append("protectionEnabled") + } + } + + public var catchUpBufferLength: BaseTokenizedObject { + get { + return self.append("catchUpBufferLength") + } + } + + public var trickPlayBufferLength: BaseTokenizedObject { + get { + return self.append("trickPlayBufferLength") + } + } + + public var recordingScheduleWindow: BaseTokenizedObject { + get { + return self.append("recordingScheduleWindow") + } + } + + public var paddingBeforeProgramStarts: BaseTokenizedObject { + get { + return self.append("paddingBeforeProgramStarts") + } + } + + public var paddingAfterProgramEnds: BaseTokenizedObject { + get { + return self.append("paddingAfterProgramEnds") + } + } + + public var protectionPeriod: BaseTokenizedObject { + get { + return self.append("protectionPeriod") + } + } + + public var protectionQuotaPercentage: BaseTokenizedObject { + get { + return self.append("protectionQuotaPercentage") + } + } + + public var recordingLifetimePeriod: BaseTokenizedObject { + get { + return self.append("recordingLifetimePeriod") + } + } + + public var cleanupNoticePeriod: BaseTokenizedObject { + get { + return self.append("cleanupNoticePeriod") + } + } + + public var seriesRecordingEnabled: BaseTokenizedObject { + get { + return self.append("seriesRecordingEnabled") + } + } + + public var nonEntitledChannelPlaybackEnabled: BaseTokenizedObject { + get { + return self.append("nonEntitledChannelPlaybackEnabled") + } + } + + public var nonExistingChannelPlaybackEnabled: BaseTokenizedObject { + get { + return self.append("nonExistingChannelPlaybackEnabled") + } + } + + public var quotaOveragePolicy: BaseTokenizedObject { + get { + return self.append("quotaOveragePolicy") + } + } + + public var protectionPolicy: BaseTokenizedObject { + get { + return self.append("protectionPolicy") + } + } + + public var recoveryGracePeriod: BaseTokenizedObject { + get { + return self.append("recoveryGracePeriod") + } + } + + public var privateCopyEnabled: BaseTokenizedObject { + get { + return self.append("privateCopyEnabled") + } + } + } + + /** Is catch-up enabled */ + public var catchUpEnabled: Bool? = nil + /** Is c-dvr enabled */ + public var cdvrEnabled: Bool? = nil + /** Is start-over enabled */ + public var startOverEnabled: Bool? = nil + /** Is trick-play enabled */ + public var trickPlayEnabled: Bool? = nil + /** Is recording schedule window enabled */ + public var recordingScheduleWindowEnabled: Bool? = nil + /** Is recording protection enabled */ + public var protectionEnabled: Bool? = nil + /** Catch-up buffer length */ + public var catchUpBufferLength: Int64? = nil + /** Trick play buffer length */ + public var trickPlayBufferLength: Int64? = nil + /** Recording schedule window. Indicates how long (in minutes) after the program + starts it is allowed to schedule the recording */ + public var recordingScheduleWindow: Int64? = nil + /** Indicates how long (in seconds) before the program starts the recording will + begin */ + public var paddingBeforeProgramStarts: Int64? = nil + /** Indicates how long (in seconds) after the program ends the recording will end */ + public var paddingAfterProgramEnds: Int64? = nil + /** Specify the time in days that a recording should be protected. Start time begins + at protection request. */ + public var protectionPeriod: Int? = nil + /** Indicates how many percent of the quota can be used for protection */ + public var protectionQuotaPercentage: Int? = nil + /** Specify the time in days that a recording should be kept for user. Start time + begins with the program end date. */ + public var recordingLifetimePeriod: Int? = nil + /** The time in days before the recording lifetime is due from which the client + should be able to warn user about deletion. */ + public var cleanupNoticePeriod: Int? = nil + /** Is recording of series enabled */ + public var seriesRecordingEnabled: Bool? = nil + /** Is recording playback for non-entitled channel enables */ + public var nonEntitledChannelPlaybackEnabled: Bool? = nil + /** Is recording playback for non-existing channel enables */ + public var nonExistingChannelPlaybackEnabled: Bool? = nil + /** Quota Policy */ + public var quotaOveragePolicy: QuotaOveragePolicy? = nil + /** Protection Policy */ + public var protectionPolicy: ProtectionPolicy? = nil + /** The time in days for recovery recording that was delete by Auto Delete . */ + public var recoveryGracePeriod: Int? = nil + /** Is private copy enabled for the account */ + public var privateCopyEnabled: Bool? = nil + + + public func setMultiRequestToken(catchUpEnabled: String) { + self.dict["catchUpEnabled"] = catchUpEnabled + } + + public func setMultiRequestToken(cdvrEnabled: String) { + self.dict["cdvrEnabled"] = cdvrEnabled + } + + public func setMultiRequestToken(startOverEnabled: String) { + self.dict["startOverEnabled"] = startOverEnabled + } + + public func setMultiRequestToken(trickPlayEnabled: String) { + self.dict["trickPlayEnabled"] = trickPlayEnabled + } + + public func setMultiRequestToken(recordingScheduleWindowEnabled: String) { + self.dict["recordingScheduleWindowEnabled"] = recordingScheduleWindowEnabled + } + + public func setMultiRequestToken(protectionEnabled: String) { + self.dict["protectionEnabled"] = protectionEnabled + } + + public func setMultiRequestToken(catchUpBufferLength: String) { + self.dict["catchUpBufferLength"] = catchUpBufferLength + } + + public func setMultiRequestToken(trickPlayBufferLength: String) { + self.dict["trickPlayBufferLength"] = trickPlayBufferLength + } + + public func setMultiRequestToken(recordingScheduleWindow: String) { + self.dict["recordingScheduleWindow"] = recordingScheduleWindow + } + + public func setMultiRequestToken(paddingBeforeProgramStarts: String) { + self.dict["paddingBeforeProgramStarts"] = paddingBeforeProgramStarts + } + + public func setMultiRequestToken(paddingAfterProgramEnds: String) { + self.dict["paddingAfterProgramEnds"] = paddingAfterProgramEnds + } + + public func setMultiRequestToken(protectionPeriod: String) { + self.dict["protectionPeriod"] = protectionPeriod + } + + public func setMultiRequestToken(protectionQuotaPercentage: String) { + self.dict["protectionQuotaPercentage"] = protectionQuotaPercentage + } + + public func setMultiRequestToken(recordingLifetimePeriod: String) { + self.dict["recordingLifetimePeriod"] = recordingLifetimePeriod + } + + public func setMultiRequestToken(cleanupNoticePeriod: String) { + self.dict["cleanupNoticePeriod"] = cleanupNoticePeriod + } + + public func setMultiRequestToken(seriesRecordingEnabled: String) { + self.dict["seriesRecordingEnabled"] = seriesRecordingEnabled + } + + public func setMultiRequestToken(nonEntitledChannelPlaybackEnabled: String) { + self.dict["nonEntitledChannelPlaybackEnabled"] = nonEntitledChannelPlaybackEnabled + } + + public func setMultiRequestToken(nonExistingChannelPlaybackEnabled: String) { + self.dict["nonExistingChannelPlaybackEnabled"] = nonExistingChannelPlaybackEnabled + } + + public func setMultiRequestToken(quotaOveragePolicy: String) { + self.dict["quotaOveragePolicy"] = quotaOveragePolicy + } + + public func setMultiRequestToken(protectionPolicy: String) { + self.dict["protectionPolicy"] = protectionPolicy + } + + public func setMultiRequestToken(recoveryGracePeriod: String) { + self.dict["recoveryGracePeriod"] = recoveryGracePeriod + } + + public func setMultiRequestToken(privateCopyEnabled: String) { + self.dict["privateCopyEnabled"] = privateCopyEnabled + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["catchUpEnabled"] != nil { + catchUpEnabled = dict["catchUpEnabled"] as? Bool + } + if dict["cdvrEnabled"] != nil { + cdvrEnabled = dict["cdvrEnabled"] as? Bool + } + if dict["startOverEnabled"] != nil { + startOverEnabled = dict["startOverEnabled"] as? Bool + } + if dict["trickPlayEnabled"] != nil { + trickPlayEnabled = dict["trickPlayEnabled"] as? Bool + } + if dict["recordingScheduleWindowEnabled"] != nil { + recordingScheduleWindowEnabled = dict["recordingScheduleWindowEnabled"] as? Bool + } + if dict["protectionEnabled"] != nil { + protectionEnabled = dict["protectionEnabled"] as? Bool + } + if dict["catchUpBufferLength"] != nil { + catchUpBufferLength = Int64("\(dict["catchUpBufferLength"]!)") + } + if dict["trickPlayBufferLength"] != nil { + trickPlayBufferLength = Int64("\(dict["trickPlayBufferLength"]!)") + } + if dict["recordingScheduleWindow"] != nil { + recordingScheduleWindow = Int64("\(dict["recordingScheduleWindow"]!)") + } + if dict["paddingBeforeProgramStarts"] != nil { + paddingBeforeProgramStarts = Int64("\(dict["paddingBeforeProgramStarts"]!)") + } + if dict["paddingAfterProgramEnds"] != nil { + paddingAfterProgramEnds = Int64("\(dict["paddingAfterProgramEnds"]!)") + } + if dict["protectionPeriod"] != nil { + protectionPeriod = dict["protectionPeriod"] as? Int + } + if dict["protectionQuotaPercentage"] != nil { + protectionQuotaPercentage = dict["protectionQuotaPercentage"] as? Int + } + if dict["recordingLifetimePeriod"] != nil { + recordingLifetimePeriod = dict["recordingLifetimePeriod"] as? Int + } + if dict["cleanupNoticePeriod"] != nil { + cleanupNoticePeriod = dict["cleanupNoticePeriod"] as? Int + } + if dict["seriesRecordingEnabled"] != nil { + seriesRecordingEnabled = dict["seriesRecordingEnabled"] as? Bool + } + if dict["nonEntitledChannelPlaybackEnabled"] != nil { + nonEntitledChannelPlaybackEnabled = dict["nonEntitledChannelPlaybackEnabled"] as? Bool + } + if dict["nonExistingChannelPlaybackEnabled"] != nil { + nonExistingChannelPlaybackEnabled = dict["nonExistingChannelPlaybackEnabled"] as? Bool + } + if dict["quotaOveragePolicy"] != nil { + quotaOveragePolicy = QuotaOveragePolicy(rawValue: "\(dict["quotaOveragePolicy"]!)") + } + if dict["protectionPolicy"] != nil { + protectionPolicy = ProtectionPolicy(rawValue: "\(dict["protectionPolicy"]!)") + } + if dict["recoveryGracePeriod"] != nil { + recoveryGracePeriod = dict["recoveryGracePeriod"] as? Int + } + if dict["privateCopyEnabled"] != nil { + privateCopyEnabled = dict["privateCopyEnabled"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(catchUpEnabled != nil) { + dict["catchUpEnabled"] = catchUpEnabled! + } + if(cdvrEnabled != nil) { + dict["cdvrEnabled"] = cdvrEnabled! + } + if(startOverEnabled != nil) { + dict["startOverEnabled"] = startOverEnabled! + } + if(trickPlayEnabled != nil) { + dict["trickPlayEnabled"] = trickPlayEnabled! + } + if(recordingScheduleWindowEnabled != nil) { + dict["recordingScheduleWindowEnabled"] = recordingScheduleWindowEnabled! + } + if(protectionEnabled != nil) { + dict["protectionEnabled"] = protectionEnabled! + } + if(catchUpBufferLength != nil) { + dict["catchUpBufferLength"] = catchUpBufferLength! + } + if(trickPlayBufferLength != nil) { + dict["trickPlayBufferLength"] = trickPlayBufferLength! + } + if(recordingScheduleWindow != nil) { + dict["recordingScheduleWindow"] = recordingScheduleWindow! + } + if(paddingBeforeProgramStarts != nil) { + dict["paddingBeforeProgramStarts"] = paddingBeforeProgramStarts! + } + if(paddingAfterProgramEnds != nil) { + dict["paddingAfterProgramEnds"] = paddingAfterProgramEnds! + } + if(protectionPeriod != nil) { + dict["protectionPeriod"] = protectionPeriod! + } + if(protectionQuotaPercentage != nil) { + dict["protectionQuotaPercentage"] = protectionQuotaPercentage! + } + if(recordingLifetimePeriod != nil) { + dict["recordingLifetimePeriod"] = recordingLifetimePeriod! + } + if(cleanupNoticePeriod != nil) { + dict["cleanupNoticePeriod"] = cleanupNoticePeriod! + } + if(seriesRecordingEnabled != nil) { + dict["seriesRecordingEnabled"] = seriesRecordingEnabled! + } + if(nonEntitledChannelPlaybackEnabled != nil) { + dict["nonEntitledChannelPlaybackEnabled"] = nonEntitledChannelPlaybackEnabled! + } + if(nonExistingChannelPlaybackEnabled != nil) { + dict["nonExistingChannelPlaybackEnabled"] = nonExistingChannelPlaybackEnabled! + } + if(quotaOveragePolicy != nil) { + dict["quotaOveragePolicy"] = quotaOveragePolicy!.rawValue + } + if(protectionPolicy != nil) { + dict["protectionPolicy"] = protectionPolicy!.rawValue + } + if(recoveryGracePeriod != nil) { + dict["recoveryGracePeriod"] = recoveryGracePeriod! + } + if(privateCopyEnabled != nil) { + dict["privateCopyEnabled"] = privateCopyEnabled! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Topic.swift b/KalturaClient/Classes/Model/Objects/Topic.swift new file mode 100644 index 000000000..c0b32ab48 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Topic.swift @@ -0,0 +1,141 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Topic: ObjectBase { + + public class TopicTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var subscribersAmount: BaseTokenizedObject { + get { + return self.append("subscribersAmount") + } + } + + public var automaticIssueNotification: BaseTokenizedObject { + get { + return self.append("automaticIssueNotification") + } + } + + public var lastMessageSentDateSec: BaseTokenizedObject { + get { + return self.append("lastMessageSentDateSec") + } + } + } + + /** message id */ + public var id: String? = nil + /** message */ + public var name: String? = nil + /** message */ + public var subscribersAmount: String? = nil + /** automaticIssueNotification */ + public var automaticIssueNotification: TopicAutomaticIssueNotification? = nil + /** lastMessageSentDateSec */ + public var lastMessageSentDateSec: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(subscribersAmount: String) { + self.dict["subscribersAmount"] = subscribersAmount + } + + public func setMultiRequestToken(automaticIssueNotification: String) { + self.dict["automaticIssueNotification"] = automaticIssueNotification + } + + public func setMultiRequestToken(lastMessageSentDateSec: String) { + self.dict["lastMessageSentDateSec"] = lastMessageSentDateSec + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["subscribersAmount"] != nil { + subscribersAmount = dict["subscribersAmount"] as? String + } + if dict["automaticIssueNotification"] != nil { + automaticIssueNotification = TopicAutomaticIssueNotification(rawValue: "\(dict["automaticIssueNotification"]!)") + } + if dict["lastMessageSentDateSec"] != nil { + lastMessageSentDateSec = Int64("\(dict["lastMessageSentDateSec"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(subscribersAmount != nil) { + dict["subscribersAmount"] = subscribersAmount! + } + if(automaticIssueNotification != nil) { + dict["automaticIssueNotification"] = automaticIssueNotification!.rawValue + } + if(lastMessageSentDateSec != nil) { + dict["lastMessageSentDateSec"] = lastMessageSentDateSec! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TopicFilter.swift b/KalturaClient/Classes/Model/Objects/TopicFilter.swift new file mode 100644 index 000000000..e691b8fd3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TopicFilter.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class TopicFilter: Filter { + + public class TopicFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/TopicListResponse.swift b/KalturaClient/Classes/Model/Objects/TopicListResponse.swift new file mode 100644 index 000000000..344c8e0bc --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TopicListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of inbox message. */ +open class TopicListResponse: ListResponse { + + public class TopicListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Follow data list */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TopicNotification.swift b/KalturaClient/Classes/Model/Objects/TopicNotification.swift new file mode 100644 index 000000000..d7048b872 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TopicNotification.swift @@ -0,0 +1,116 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class TopicNotification: ObjectBase { + + public class TopicNotificationTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + + public func subscribeReference() -> T { + return T(self.append("subscribeReference")) + } + } + + /** Topic notification ID */ + public var id: Int64? = nil + /** Topic notification name */ + public var name: String? = nil + /** Topic notification description */ + public var description: String? = nil + /** Announcement enabled */ + public var subscribeReference: SubscribeReference? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["description"] != nil { + description = dict["description"] as? String + } + if dict["subscribeReference"] != nil { + subscribeReference = try JSONParser.parse(object: dict["subscribeReference"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(description != nil) { + dict["description"] = description! + } + if(subscribeReference != nil) { + dict["subscribeReference"] = subscribeReference!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TopicNotificationFilter.swift b/KalturaClient/Classes/Model/Objects/TopicNotificationFilter.swift new file mode 100644 index 000000000..896f1c526 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TopicNotificationFilter.swift @@ -0,0 +1,65 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class TopicNotificationFilter: Filter { + + public class TopicNotificationFilterTokenizer: Filter.FilterTokenizer { + + public func subscribeReference() -> T { + return T(self.append("subscribeReference")) + } + } + + /** Subscribe rreference */ + public var subscribeReference: SubscribeReference? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["subscribeReference"] != nil { + subscribeReference = try JSONParser.parse(object: dict["subscribeReference"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(subscribeReference != nil) { + dict["subscribeReference"] = subscribeReference!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TopicNotificationListResponse.swift b/KalturaClient/Classes/Model/Objects/TopicNotificationListResponse.swift new file mode 100644 index 000000000..05c1a0afd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TopicNotificationListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class TopicNotificationListResponse: ListResponse { + + public class TopicNotificationListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Topic notifications */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TopicNotificationMessage.swift b/KalturaClient/Classes/Model/Objects/TopicNotificationMessage.swift new file mode 100644 index 000000000..edaf826ee --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TopicNotificationMessage.swift @@ -0,0 +1,163 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class TopicNotificationMessage: ObjectBase { + + public class TopicNotificationMessageTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var message: BaseTokenizedObject { + get { + return self.append("message") + } + } + + public var imageUrl: BaseTokenizedObject { + get { + return self.append("imageUrl") + } + } + + public var topicNotificationId: BaseTokenizedObject { + get { + return self.append("topicNotificationId") + } + } + + public func trigger() -> T { + return T(self.append("trigger")) + } + + public var dispatchers: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("dispatchers")) + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + } + + /** Topic notification message ID */ + public var id: Int64? = nil + /** Topic notification message */ + public var message: String? = nil + /** Topic notification message image URL */ + public var imageUrl: String? = nil + /** Topic notification ID */ + public var topicNotificationId: Int64? = nil + /** Topic notification message trigger */ + public var trigger: Trigger? = nil + /** Topic notification message dispatchers */ + public var dispatchers: Array? = nil + /** Message status */ + public var status: AnnouncementStatus? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(message: String) { + self.dict["message"] = message + } + + public func setMultiRequestToken(imageUrl: String) { + self.dict["imageUrl"] = imageUrl + } + + public func setMultiRequestToken(topicNotificationId: String) { + self.dict["topicNotificationId"] = topicNotificationId + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["message"] != nil { + message = dict["message"] as? String + } + if dict["imageUrl"] != nil { + imageUrl = dict["imageUrl"] as? String + } + if dict["topicNotificationId"] != nil { + topicNotificationId = Int64("\(dict["topicNotificationId"]!)") + } + if dict["trigger"] != nil { + trigger = try JSONParser.parse(object: dict["trigger"] as! [String: Any]) } + if dict["dispatchers"] != nil { + dispatchers = try JSONParser.parse(array: dict["dispatchers"] as! [Any]) + } + if dict["status"] != nil { + status = AnnouncementStatus(rawValue: "\(dict["status"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(message != nil) { + dict["message"] = message! + } + if(imageUrl != nil) { + dict["imageUrl"] = imageUrl! + } + if(topicNotificationId != nil) { + dict["topicNotificationId"] = topicNotificationId! + } + if(trigger != nil) { + dict["trigger"] = trigger!.toDictionary() + } + if(dispatchers != nil) { + dict["dispatchers"] = dispatchers!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TopicNotificationMessageFilter.swift b/KalturaClient/Classes/Model/Objects/TopicNotificationMessageFilter.swift new file mode 100644 index 000000000..54bb53a7d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TopicNotificationMessageFilter.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class TopicNotificationMessageFilter: Filter { + + public class TopicNotificationMessageFilterTokenizer: Filter.FilterTokenizer { + + public var topicNotificationIdEqual: BaseTokenizedObject { + get { + return self.append("topicNotificationIdEqual") + } + } + } + + /** Topic notification ID */ + public var topicNotificationIdEqual: Int64? = nil + + + public func setMultiRequestToken(topicNotificationIdEqual: String) { + self.dict["topicNotificationIdEqual"] = topicNotificationIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["topicNotificationIdEqual"] != nil { + topicNotificationIdEqual = Int64("\(dict["topicNotificationIdEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(topicNotificationIdEqual != nil) { + dict["topicNotificationIdEqual"] = topicNotificationIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TopicNotificationMessageListResponse.swift b/KalturaClient/Classes/Model/Objects/TopicNotificationMessageListResponse.swift new file mode 100644 index 000000000..f2eac4f7c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TopicNotificationMessageListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class TopicNotificationMessageListResponse: ListResponse { + + public class TopicNotificationMessageListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Topic notification messages */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Transaction.swift b/KalturaClient/Classes/Model/Objects/Transaction.swift new file mode 100644 index 000000000..e450c9240 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Transaction.swift @@ -0,0 +1,167 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Transaction: ObjectBase { + + public class TransactionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var paymentGatewayReferenceId: BaseTokenizedObject { + get { + return self.append("paymentGatewayReferenceId") + } + } + + public var paymentGatewayResponseId: BaseTokenizedObject { + get { + return self.append("paymentGatewayResponseId") + } + } + + public var state: BaseTokenizedObject { + get { + return self.append("state") + } + } + + public var failReasonCode: BaseTokenizedObject { + get { + return self.append("failReasonCode") + } + } + + public var createdAt: BaseTokenizedObject { + get { + return self.append("createdAt") + } + } + } + + /** Kaltura unique ID representing the transaction */ + public var id: String? = nil + /** Transaction reference ID received from the payment gateway. Value + is available only if the payment gateway provides this information. */ + public var paymentGatewayReferenceId: String? = nil + /** Response ID received from by the payment gateway. Value is + available only if the payment gateway provides this information. */ + public var paymentGatewayResponseId: String? = nil + /** Transaction state: OK/Pending/Failed */ + public var state: String? = nil + /** Adapter failure reason code Insufficient funds = 20, Invalid + account = 21, User unknown = 22, Reason unknown = 23, Unknown payment gateway + response = 24, No response from payment gateway = 25, Exceeded + retry limit = 26, Illegal client request = 27, Expired = 28 */ + public var failReasonCode: Int? = nil + /** Entitlement creation date */ + public var createdAt: Int? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(paymentGatewayReferenceId: String) { + self.dict["paymentGatewayReferenceId"] = paymentGatewayReferenceId + } + + public func setMultiRequestToken(paymentGatewayResponseId: String) { + self.dict["paymentGatewayResponseId"] = paymentGatewayResponseId + } + + public func setMultiRequestToken(state: String) { + self.dict["state"] = state + } + + public func setMultiRequestToken(failReasonCode: String) { + self.dict["failReasonCode"] = failReasonCode + } + + public func setMultiRequestToken(createdAt: String) { + self.dict["createdAt"] = createdAt + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["paymentGatewayReferenceId"] != nil { + paymentGatewayReferenceId = dict["paymentGatewayReferenceId"] as? String + } + if dict["paymentGatewayResponseId"] != nil { + paymentGatewayResponseId = dict["paymentGatewayResponseId"] as? String + } + if dict["state"] != nil { + state = dict["state"] as? String + } + if dict["failReasonCode"] != nil { + failReasonCode = dict["failReasonCode"] as? Int + } + if dict["createdAt"] != nil { + createdAt = dict["createdAt"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(paymentGatewayReferenceId != nil) { + dict["paymentGatewayReferenceId"] = paymentGatewayReferenceId! + } + if(paymentGatewayResponseId != nil) { + dict["paymentGatewayResponseId"] = paymentGatewayResponseId! + } + if(state != nil) { + dict["state"] = state! + } + if(failReasonCode != nil) { + dict["failReasonCode"] = failReasonCode! + } + if(createdAt != nil) { + dict["createdAt"] = createdAt! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TransactionHistoryFilter.swift b/KalturaClient/Classes/Model/Objects/TransactionHistoryFilter.swift new file mode 100644 index 000000000..c65d90d5f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TransactionHistoryFilter.swift @@ -0,0 +1,109 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Transactions filter */ +open class TransactionHistoryFilter: Filter { + + public class TransactionHistoryFilterTokenizer: Filter.FilterTokenizer { + + public var entityReferenceEqual: BaseTokenizedObject { + get { + return self.append("entityReferenceEqual") + } + } + + public var startDateGreaterThanOrEqual: BaseTokenizedObject { + get { + return self.append("startDateGreaterThanOrEqual") + } + } + + public var endDateLessThanOrEqual: BaseTokenizedObject { + get { + return self.append("endDateLessThanOrEqual") + } + } + } + + /** Reference type to filter by */ + public var entityReferenceEqual: EntityReferenceBy? = nil + /** Filter transactions later than specific date */ + public var startDateGreaterThanOrEqual: Int? = nil + /** Filter transactions earlier than specific date */ + public var endDateLessThanOrEqual: Int? = nil + + + public func setMultiRequestToken(entityReferenceEqual: String) { + self.dict["entityReferenceEqual"] = entityReferenceEqual + } + + public func setMultiRequestToken(startDateGreaterThanOrEqual: String) { + self.dict["startDateGreaterThanOrEqual"] = startDateGreaterThanOrEqual + } + + public func setMultiRequestToken(endDateLessThanOrEqual: String) { + self.dict["endDateLessThanOrEqual"] = endDateLessThanOrEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["entityReferenceEqual"] != nil { + entityReferenceEqual = EntityReferenceBy(rawValue: "\(dict["entityReferenceEqual"]!)") + } + if dict["startDateGreaterThanOrEqual"] != nil { + startDateGreaterThanOrEqual = dict["startDateGreaterThanOrEqual"] as? Int + } + if dict["endDateLessThanOrEqual"] != nil { + endDateLessThanOrEqual = dict["endDateLessThanOrEqual"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(entityReferenceEqual != nil) { + dict["entityReferenceEqual"] = entityReferenceEqual!.rawValue + } + if(startDateGreaterThanOrEqual != nil) { + dict["startDateGreaterThanOrEqual"] = startDateGreaterThanOrEqual! + } + if(endDateLessThanOrEqual != nil) { + dict["endDateLessThanOrEqual"] = endDateLessThanOrEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TransactionStatus.swift b/KalturaClient/Classes/Model/Objects/TransactionStatus.swift new file mode 100644 index 000000000..2e58f2e8b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TransactionStatus.swift @@ -0,0 +1,144 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class TransactionStatus: ObjectBase { + + public class TransactionStatusTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var adapterTransactionStatus: BaseTokenizedObject { + get { + return self.append("adapterTransactionStatus") + } + } + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + + public var externalStatus: BaseTokenizedObject { + get { + return self.append("externalStatus") + } + } + + public var externalMessage: BaseTokenizedObject { + get { + return self.append("externalMessage") + } + } + + public var failReason: BaseTokenizedObject { + get { + return self.append("failReason") + } + } + } + + /** Payment gateway adapter application state for the transaction to update */ + public var adapterTransactionStatus: TransactionAdapterStatus? = nil + /** External transaction identifier */ + public var externalId: String? = nil + /** Payment gateway transaction status */ + public var externalStatus: String? = nil + /** Payment gateway message */ + public var externalMessage: String? = nil + /** The reason the transaction failed */ + public var failReason: Int? = nil + + + public func setMultiRequestToken(adapterTransactionStatus: String) { + self.dict["adapterTransactionStatus"] = adapterTransactionStatus + } + + public func setMultiRequestToken(externalId: String) { + self.dict["externalId"] = externalId + } + + public func setMultiRequestToken(externalStatus: String) { + self.dict["externalStatus"] = externalStatus + } + + public func setMultiRequestToken(externalMessage: String) { + self.dict["externalMessage"] = externalMessage + } + + public func setMultiRequestToken(failReason: String) { + self.dict["failReason"] = failReason + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["adapterTransactionStatus"] != nil { + adapterTransactionStatus = TransactionAdapterStatus(rawValue: "\(dict["adapterTransactionStatus"]!)") + } + if dict["externalId"] != nil { + externalId = dict["externalId"] as? String + } + if dict["externalStatus"] != nil { + externalStatus = dict["externalStatus"] as? String + } + if dict["externalMessage"] != nil { + externalMessage = dict["externalMessage"] as? String + } + if dict["failReason"] != nil { + failReason = dict["failReason"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(adapterTransactionStatus != nil) { + dict["adapterTransactionStatus"] = adapterTransactionStatus!.rawValue + } + if(externalId != nil) { + dict["externalId"] = externalId! + } + if(externalStatus != nil) { + dict["externalStatus"] = externalStatus! + } + if(externalMessage != nil) { + dict["externalMessage"] = externalMessage! + } + if(failReason != nil) { + dict["failReason"] = failReason! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TranslationToken.swift b/KalturaClient/Classes/Model/Objects/TranslationToken.swift new file mode 100644 index 000000000..1d461904a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TranslationToken.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Container for translation */ +open class TranslationToken: ObjectBase { + + public class TranslationTokenTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var language: BaseTokenizedObject { + get { + return self.append("language") + } + } + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** Language code */ + public var language: String? = nil + /** Translated value */ + public var value: String? = nil + + + public func setMultiRequestToken(language: String) { + self.dict["language"] = language + } + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["language"] != nil { + language = dict["language"] as? String + } + if dict["value"] != nil { + value = dict["value"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(language != nil) { + dict["language"] = language! + } + if(value != nil) { + dict["value"] = value! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/Trigger.swift b/KalturaClient/Classes/Model/Objects/Trigger.swift new file mode 100644 index 000000000..d3ce8e8b1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Trigger.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class Trigger: ObjectBase { + + public class TriggerTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/TvmDeviceRule.swift b/KalturaClient/Classes/Model/Objects/TvmDeviceRule.swift new file mode 100644 index 000000000..6e9db8217 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TvmDeviceRule.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** TVM geo rule */ +open class TvmDeviceRule: TvmRule { + + public class TvmDeviceRuleTokenizer: TvmRule.TvmRuleTokenizer { + + public var deviceBrandIds: BaseTokenizedObject { + get { + return self.append("deviceBrandIds") + } + } + } + + /** Comma separated list of country Ids. */ + public var deviceBrandIds: String? = nil + + + public func setMultiRequestToken(deviceBrandIds: String) { + self.dict["deviceBrandIds"] = deviceBrandIds + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["deviceBrandIds"] != nil { + deviceBrandIds = dict["deviceBrandIds"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(deviceBrandIds != nil) { + dict["deviceBrandIds"] = deviceBrandIds! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TvmGeoRule.swift b/KalturaClient/Classes/Model/Objects/TvmGeoRule.swift new file mode 100644 index 000000000..62b2745e3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TvmGeoRule.swift @@ -0,0 +1,164 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** TVM geo rule */ +open class TvmGeoRule: TvmRule { + + public class TvmGeoRuleTokenizer: TvmRule.TvmRuleTokenizer { + + public var onlyOrBut: BaseTokenizedObject { + get { + return self.append("onlyOrBut") + } + } + + public var countryIds: BaseTokenizedObject { + get { + return self.append("countryIds") + } + } + + public var proxyRuleId: BaseTokenizedObject { + get { + return self.append("proxyRuleId") + } + } + + public var proxyRuleName: BaseTokenizedObject { + get { + return self.append("proxyRuleName") + } + } + + public var proxyLevelId: BaseTokenizedObject { + get { + return self.append("proxyLevelId") + } + } + + public var proxyLevelName: BaseTokenizedObject { + get { + return self.append("proxyLevelName") + } + } + } + + /** Indicates if the rule is relevent ONLY for the country ids or except country ids + here. - is that true? */ + public var onlyOrBut: Bool? = nil + /** Comma separated list of country Ids. */ + public var countryIds: String? = nil + /** proxyRuleId - what is that? */ + public var proxyRuleId: Int? = nil + /** proxyRuleName - what is that? */ + public var proxyRuleName: String? = nil + /** proxyLevelId - what is that? */ + public var proxyLevelId: Int? = nil + /** proxyLevelName - what is that? */ + public var proxyLevelName: String? = nil + + + public func setMultiRequestToken(onlyOrBut: String) { + self.dict["onlyOrBut"] = onlyOrBut + } + + public func setMultiRequestToken(countryIds: String) { + self.dict["countryIds"] = countryIds + } + + public func setMultiRequestToken(proxyRuleId: String) { + self.dict["proxyRuleId"] = proxyRuleId + } + + public func setMultiRequestToken(proxyRuleName: String) { + self.dict["proxyRuleName"] = proxyRuleName + } + + public func setMultiRequestToken(proxyLevelId: String) { + self.dict["proxyLevelId"] = proxyLevelId + } + + public func setMultiRequestToken(proxyLevelName: String) { + self.dict["proxyLevelName"] = proxyLevelName + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["onlyOrBut"] != nil { + onlyOrBut = dict["onlyOrBut"] as? Bool + } + if dict["countryIds"] != nil { + countryIds = dict["countryIds"] as? String + } + if dict["proxyRuleId"] != nil { + proxyRuleId = dict["proxyRuleId"] as? Int + } + if dict["proxyRuleName"] != nil { + proxyRuleName = dict["proxyRuleName"] as? String + } + if dict["proxyLevelId"] != nil { + proxyLevelId = dict["proxyLevelId"] as? Int + } + if dict["proxyLevelName"] != nil { + proxyLevelName = dict["proxyLevelName"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(onlyOrBut != nil) { + dict["onlyOrBut"] = onlyOrBut! + } + if(countryIds != nil) { + dict["countryIds"] = countryIds! + } + if(proxyRuleId != nil) { + dict["proxyRuleId"] = proxyRuleId! + } + if(proxyRuleName != nil) { + dict["proxyRuleName"] = proxyRuleName! + } + if(proxyLevelId != nil) { + dict["proxyLevelId"] = proxyLevelId! + } + if(proxyLevelName != nil) { + dict["proxyLevelName"] = proxyLevelName! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TvmRule.swift b/KalturaClient/Classes/Model/Objects/TvmRule.swift new file mode 100644 index 000000000..86620ee99 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TvmRule.swift @@ -0,0 +1,81 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** TVM rule */ +open class TvmRule: Rule { + + public class TvmRuleTokenizer: Rule.RuleTokenizer { + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var ruleType: BaseTokenizedObject { + get { + return self.append("ruleType") + } + } + } + + /** Specifies when was the tvm rule was created. Date and time represented as epoch. */ + public var createDate: Int64? = nil + /** Specifies the tvm rule type. */ + public var ruleType: TvmRuleType? = nil + + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(ruleType: String) { + self.dict["ruleType"] = ruleType + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["ruleType"] != nil { + ruleType = TvmRuleType(rawValue: "\(dict["ruleType"]!)") + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/TvmRuleFilter.swift b/KalturaClient/Classes/Model/Objects/TvmRuleFilter.swift new file mode 100644 index 000000000..37f729d34 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TvmRuleFilter.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Asset user rule filter */ +open class TvmRuleFilter: Filter { + + public class TvmRuleFilterTokenizer: Filter.FilterTokenizer { + + public var ruleTypeEqual: BaseTokenizedObject { + get { + return self.append("ruleTypeEqual") + } + } + + public var nameEqual: BaseTokenizedObject { + get { + return self.append("nameEqual") + } + } + } + + /** Indicates which tvm rule list to return by their type. */ + public var ruleTypeEqual: TvmRuleType? = nil + /** Indicates which tvm rule list to return by their name. */ + public var nameEqual: String? = nil + + + public func setMultiRequestToken(ruleTypeEqual: String) { + self.dict["ruleTypeEqual"] = ruleTypeEqual + } + + public func setMultiRequestToken(nameEqual: String) { + self.dict["nameEqual"] = nameEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["ruleTypeEqual"] != nil { + ruleTypeEqual = TvmRuleType(rawValue: "\(dict["ruleTypeEqual"]!)") + } + if dict["nameEqual"] != nil { + nameEqual = dict["nameEqual"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(ruleTypeEqual != nil) { + dict["ruleTypeEqual"] = ruleTypeEqual!.rawValue + } + if(nameEqual != nil) { + dict["nameEqual"] = nameEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TvmRuleListResponse.swift b/KalturaClient/Classes/Model/Objects/TvmRuleListResponse.swift new file mode 100644 index 000000000..588145ead --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TvmRuleListResponse.swift @@ -0,0 +1,68 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class TvmRuleListResponse: ListResponse { + + public class TvmRuleListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** tvm rules */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/TwitterTwit.swift b/KalturaClient/Classes/Model/Objects/TwitterTwit.swift new file mode 100644 index 000000000..291efc6c6 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/TwitterTwit.swift @@ -0,0 +1,48 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class TwitterTwit: SocialNetworkComment { + + public class TwitterTwitTokenizer: SocialNetworkComment.SocialNetworkCommentTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/UnifiedBillingCycle.swift b/KalturaClient/Classes/Model/Objects/UnifiedBillingCycle.swift new file mode 100644 index 000000000..edb1ae6fb --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UnifiedBillingCycle.swift @@ -0,0 +1,101 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class UnifiedBillingCycle: ObjectBase { + + public class UnifiedBillingCycleTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public func duration() -> T { + return T(self.append("duration")) + } + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + } + + /** UnifiedBillingCycle name */ + public var name: String? = nil + /** cycle duration */ + public var duration: Duration? = nil + /** Payment Gateway Id */ + public var paymentGatewayId: Int? = nil + + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(paymentGatewayId: String) { + self.dict["paymentGatewayId"] = paymentGatewayId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["duration"] != nil { + duration = try JSONParser.parse(object: dict["duration"] as! [String: Any]) } + if dict["paymentGatewayId"] != nil { + paymentGatewayId = dict["paymentGatewayId"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(duration != nil) { + dict["duration"] = duration!.toDictionary() + } + if(paymentGatewayId != nil) { + dict["paymentGatewayId"] = paymentGatewayId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UnifiedChannel.swift b/KalturaClient/Classes/Model/Objects/UnifiedChannel.swift new file mode 100644 index 000000000..24f151b71 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UnifiedChannel.swift @@ -0,0 +1,90 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class UnifiedChannel: OTTObjectSupportNullable { + + public class UnifiedChannelTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** Channel identifier */ + public var id: Int64? = nil + /** Channel Type */ + public var type: ChannelType? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["type"] != nil { + type = ChannelType(rawValue: "\(dict["type"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(type != nil) { + dict["type"] = type!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UnifiedChannelInfo.swift b/KalturaClient/Classes/Model/Objects/UnifiedChannelInfo.swift new file mode 100644 index 000000000..e6721c96a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UnifiedChannelInfo.swift @@ -0,0 +1,108 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class UnifiedChannelInfo: UnifiedChannel { + + public class UnifiedChannelInfoTokenizer: UnifiedChannel.UnifiedChannelTokenizer { + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var startDateInSeconds: BaseTokenizedObject { + get { + return self.append("startDateInSeconds") + } + } + + public var endDateInSeconds: BaseTokenizedObject { + get { + return self.append("endDateInSeconds") + } + } + } + + /** Channel name */ + public var name: String? = nil + /** Start date in seconds */ + public var startDateInSeconds: Int64? = nil + /** End date in seconds */ + public var endDateInSeconds: Int64? = nil + + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(startDateInSeconds: String) { + self.dict["startDateInSeconds"] = startDateInSeconds + } + + public func setMultiRequestToken(endDateInSeconds: String) { + self.dict["endDateInSeconds"] = endDateInSeconds + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["startDateInSeconds"] != nil { + startDateInSeconds = Int64("\(dict["startDateInSeconds"]!)") + } + if dict["endDateInSeconds"] != nil { + endDateInSeconds = Int64("\(dict["endDateInSeconds"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(startDateInSeconds != nil) { + dict["startDateInSeconds"] = startDateInSeconds! + } + if(endDateInSeconds != nil) { + dict["endDateInSeconds"] = endDateInSeconds! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UnifiedPaymentRenewal.swift b/KalturaClient/Classes/Model/Objects/UnifiedPaymentRenewal.swift new file mode 100644 index 000000000..e9dcf3f17 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UnifiedPaymentRenewal.swift @@ -0,0 +1,133 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class UnifiedPaymentRenewal: ObjectBase { + + public class UnifiedPaymentRenewalTokenizer: ObjectBase.ObjectBaseTokenizer { + + public func price() -> T { + return T(self.append("price")) + } + + public var date: BaseTokenizedObject { + get { + return self.append("date") + } + } + + public var unifiedPaymentId: BaseTokenizedObject { + get { + return self.append("unifiedPaymentId") + } + } + + public var entitlements: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("entitlements")) + } + } + + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + } + + /** Price that is going to be paid on the renewal */ + public var price: Price? = nil + /** Next renewal date */ + public var date: Int64? = nil + /** Unified payment ID */ + public var unifiedPaymentId: Int64? = nil + /** List of entitlements in this unified payment renewal */ + public var entitlements: Array? = nil + /** User ID */ + public var userId: Int64? = nil + + + public func setMultiRequestToken(date: String) { + self.dict["date"] = date + } + + public func setMultiRequestToken(unifiedPaymentId: String) { + self.dict["unifiedPaymentId"] = unifiedPaymentId + } + + public func setMultiRequestToken(userId: String) { + self.dict["userId"] = userId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["price"] != nil { + price = try JSONParser.parse(object: dict["price"] as! [String: Any]) } + if dict["date"] != nil { + date = Int64("\(dict["date"]!)") + } + if dict["unifiedPaymentId"] != nil { + unifiedPaymentId = Int64("\(dict["unifiedPaymentId"]!)") + } + if dict["entitlements"] != nil { + entitlements = try JSONParser.parse(array: dict["entitlements"] as! [Any]) + } + if dict["userId"] != nil { + userId = Int64("\(dict["userId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(price != nil) { + dict["price"] = price!.toDictionary() + } + if(date != nil) { + dict["date"] = date! + } + if(unifiedPaymentId != nil) { + dict["unifiedPaymentId"] = unifiedPaymentId! + } + if(entitlements != nil) { + dict["entitlements"] = entitlements!.map { value in value.toDictionary() } + } + if(userId != nil) { + dict["userId"] = userId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UploadToken.swift b/KalturaClient/Classes/Model/Objects/UploadToken.swift new file mode 100644 index 000000000..f822b7f4e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UploadToken.swift @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class UploadToken: ObjectBase { + + public class UploadTokenTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var fileSize: BaseTokenizedObject { + get { + return self.append("fileSize") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + } + + /** Upload-token identifier */ + public var id: String? = nil + /** Status */ + public var status: UploadTokenStatus? = nil + /** File size */ + public var fileSize: Double? = nil + /** Specifies when was the Asset was created. Date and time represented as epoch. */ + public var createDate: Int64? = nil + /** Specifies when was the Asset last updated. Date and time represented as epoch. */ + public var updateDate: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + public func setMultiRequestToken(fileSize: String) { + self.dict["fileSize"] = fileSize + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["status"] != nil { + status = UploadTokenStatus(rawValue: "\(dict["status"]!)") + } + if dict["fileSize"] != nil { + fileSize = dict["fileSize"] as? Double + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/UploadedFileTokenResource.swift b/KalturaClient/Classes/Model/Objects/UploadedFileTokenResource.swift new file mode 100644 index 000000000..02121539a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UploadedFileTokenResource.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class UploadedFileTokenResource: ContentResource { + + public class UploadedFileTokenResourceTokenizer: ContentResource.ContentResourceTokenizer { + + public var token: BaseTokenizedObject { + get { + return self.append("token") + } + } + } + + /** Token that returned from uploadToken.add action */ + public var token: String? = nil + + + public func setMultiRequestToken(token: String) { + self.dict["token"] = token + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["token"] != nil { + token = dict["token"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(token != nil) { + dict["token"] = token! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UrlResource.swift b/KalturaClient/Classes/Model/Objects/UrlResource.swift new file mode 100644 index 000000000..1220c68ee --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UrlResource.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class UrlResource: ContentResource { + + public class UrlResourceTokenizer: ContentResource.ContentResourceTokenizer { + + public var url: BaseTokenizedObject { + get { + return self.append("url") + } + } + } + + /** URL of the content */ + public var url: String? = nil + + + public func setMultiRequestToken(url: String) { + self.dict["url"] = url + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["url"] != nil { + url = dict["url"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(url != nil) { + dict["url"] = url! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UsageModule.swift b/KalturaClient/Classes/Model/Objects/UsageModule.swift new file mode 100644 index 000000000..526011b8d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UsageModule.swift @@ -0,0 +1,189 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Pricing usage module */ +open class UsageModule: ObjectBase { + + public class UsageModuleTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var maxViewsNumber: BaseTokenizedObject { + get { + return self.append("maxViewsNumber") + } + } + + public var viewLifeCycle: BaseTokenizedObject { + get { + return self.append("viewLifeCycle") + } + } + + public var fullLifeCycle: BaseTokenizedObject { + get { + return self.append("fullLifeCycle") + } + } + + public var couponId: BaseTokenizedObject { + get { + return self.append("couponId") + } + } + + public var waiverPeriod: BaseTokenizedObject { + get { + return self.append("waiverPeriod") + } + } + + public var isWaiverEnabled: BaseTokenizedObject { + get { + return self.append("isWaiverEnabled") + } + } + + public var isOfflinePlayback: BaseTokenizedObject { + get { + return self.append("isOfflinePlayback") + } + } + } + + /** Usage module identifier */ + public var id: Int64? = nil + /** Usage module name */ + public var name: String? = nil + /** The maximum number of times an item in this usage module can be viewed */ + public var maxViewsNumber: Int? = nil + /** The amount time an item is available for viewing since a user started watching + the item */ + public var viewLifeCycle: Int? = nil + /** The amount time an item is available for viewing */ + public var fullLifeCycle: Int? = nil + /** Identifies a specific coupon linked to this object */ + public var couponId: Int? = nil + /** Time period during which the end user can waive his rights to cancel a purchase. + When the time period is passed, the purchase can no longer be cancelled */ + public var waiverPeriod: Int? = nil + /** Indicates whether or not the end user has the right to waive his rights to + cancel a purchase */ + public var isWaiverEnabled: Bool? = nil + /** Indicates that usage is targeted for offline playback */ + public var isOfflinePlayback: Bool? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(maxViewsNumber: String) { + self.dict["maxViewsNumber"] = maxViewsNumber + } + + public func setMultiRequestToken(viewLifeCycle: String) { + self.dict["viewLifeCycle"] = viewLifeCycle + } + + public func setMultiRequestToken(fullLifeCycle: String) { + self.dict["fullLifeCycle"] = fullLifeCycle + } + + public func setMultiRequestToken(couponId: String) { + self.dict["couponId"] = couponId + } + + public func setMultiRequestToken(waiverPeriod: String) { + self.dict["waiverPeriod"] = waiverPeriod + } + + public func setMultiRequestToken(isWaiverEnabled: String) { + self.dict["isWaiverEnabled"] = isWaiverEnabled + } + + public func setMultiRequestToken(isOfflinePlayback: String) { + self.dict["isOfflinePlayback"] = isOfflinePlayback + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["maxViewsNumber"] != nil { + maxViewsNumber = dict["maxViewsNumber"] as? Int + } + if dict["viewLifeCycle"] != nil { + viewLifeCycle = dict["viewLifeCycle"] as? Int + } + if dict["fullLifeCycle"] != nil { + fullLifeCycle = dict["fullLifeCycle"] as? Int + } + if dict["couponId"] != nil { + couponId = dict["couponId"] as? Int + } + if dict["waiverPeriod"] != nil { + waiverPeriod = dict["waiverPeriod"] as? Int + } + if dict["isWaiverEnabled"] != nil { + isWaiverEnabled = dict["isWaiverEnabled"] as? Bool + } + if dict["isOfflinePlayback"] != nil { + isOfflinePlayback = dict["isOfflinePlayback"] as? Bool + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/UserAssetRule.swift b/KalturaClient/Classes/Model/Objects/UserAssetRule.swift new file mode 100644 index 000000000..8152c1290 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserAssetRule.swift @@ -0,0 +1,125 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** User asset rule - representing different type of rules on an asset(Parental, + Geo, User Type, Device) */ +open class UserAssetRule: ObjectBase { + + public class UserAssetRuleTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var ruleType: BaseTokenizedObject { + get { + return self.append("ruleType") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + } + + /** Unique rule identifier */ + public var id: Int64? = nil + /** Rule type - possible values: Rule type – Parental, Geo, UserType, Device */ + public var ruleType: RuleType? = nil + /** Rule display name */ + public var name: String? = nil + /** Additional description for the specific rule */ + public var description: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(ruleType: String) { + self.dict["ruleType"] = ruleType + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["ruleType"] != nil { + ruleType = RuleType(rawValue: "\(dict["ruleType"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["description"] != nil { + description = dict["description"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(ruleType != nil) { + dict["ruleType"] = ruleType!.rawValue + } + if(name != nil) { + dict["name"] = name! + } + if(description != nil) { + dict["description"] = description! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserAssetRuleFilter.swift b/KalturaClient/Classes/Model/Objects/UserAssetRuleFilter.swift new file mode 100644 index 000000000..708919439 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserAssetRuleFilter.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** User asset rule filter */ +open class UserAssetRuleFilter: Filter { + + public class UserAssetRuleFilterTokenizer: Filter.FilterTokenizer { + + public var assetIdEqual: BaseTokenizedObject { + get { + return self.append("assetIdEqual") + } + } + + public var assetTypeEqual: BaseTokenizedObject { + get { + return self.append("assetTypeEqual") + } + } + } + + /** Asset identifier to filter by */ + public var assetIdEqual: Int64? = nil + /** Asset type to filter by - 0 = EPG, 1 = media, 2 = npvr */ + public var assetTypeEqual: Int? = nil + + + public func setMultiRequestToken(assetIdEqual: String) { + self.dict["assetIdEqual"] = assetIdEqual + } + + public func setMultiRequestToken(assetTypeEqual: String) { + self.dict["assetTypeEqual"] = assetTypeEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetIdEqual"] != nil { + assetIdEqual = Int64("\(dict["assetIdEqual"]!)") + } + if dict["assetTypeEqual"] != nil { + assetTypeEqual = dict["assetTypeEqual"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetIdEqual != nil) { + dict["assetIdEqual"] = assetIdEqual! + } + if(assetTypeEqual != nil) { + dict["assetTypeEqual"] = assetTypeEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserAssetRuleListResponse.swift b/KalturaClient/Classes/Model/Objects/UserAssetRuleListResponse.swift new file mode 100644 index 000000000..cab1ffbce --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserAssetRuleListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** GenericRules list */ +open class UserAssetRuleListResponse: ListResponse { + + public class UserAssetRuleListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of generic rules */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserAssetsListItem.swift b/KalturaClient/Classes/Model/Objects/UserAssetsListItem.swift new file mode 100644 index 000000000..bd003082d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserAssetsListItem.swift @@ -0,0 +1,142 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** An item of user asset list */ +open class UserAssetsListItem: ObjectBase { + + public class UserAssetsListItemTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var orderIndex: BaseTokenizedObject { + get { + return self.append("orderIndex") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + + public var listType: BaseTokenizedObject { + get { + return self.append("listType") + } + } + } + + /** Asset identifier */ + public var id: String? = nil + /** The order index of the asset in the list */ + public var orderIndex: Int? = nil + /** The type of the asset */ + public var type: UserAssetsListItemType? = nil + /** The identifier of the user who added the item to the list */ + public var userId: String? = nil + /** The type of the list, all is not supported */ + public var listType: UserAssetsListType? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(orderIndex: String) { + self.dict["orderIndex"] = orderIndex + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(userId: String) { + self.dict["userId"] = userId + } + + public func setMultiRequestToken(listType: String) { + self.dict["listType"] = listType + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["orderIndex"] != nil { + orderIndex = dict["orderIndex"] as? Int + } + if dict["type"] != nil { + type = UserAssetsListItemType(rawValue: "\(dict["type"]!)") + } + if dict["userId"] != nil { + userId = dict["userId"] as? String + } + if dict["listType"] != nil { + listType = UserAssetsListType(rawValue: "\(dict["listType"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(orderIndex != nil) { + dict["orderIndex"] = orderIndex! + } + if(type != nil) { + dict["type"] = type!.rawValue + } + if(listType != nil) { + dict["listType"] = listType!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserDataCondition.swift b/KalturaClient/Classes/Model/Objects/UserDataCondition.swift new file mode 100644 index 000000000..507bb51b2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserDataCondition.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** User data condition for segmentation */ +open class UserDataCondition: BaseSegmentCondition { + + public class UserDataConditionTokenizer: BaseSegmentCondition.BaseSegmentConditionTokenizer { + + public var field: BaseTokenizedObject { + get { + return self.append("field") + } + } + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + } + + /** Field name */ + public var field: String? = nil + /** Value */ + public var value: String? = nil + + + public func setMultiRequestToken(field: String) { + self.dict["field"] = field + } + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["field"] != nil { + field = dict["field"] as? String + } + if dict["value"] != nil { + value = dict["value"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(field != nil) { + dict["field"] = field! + } + if(value != nil) { + dict["value"] = value! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserDynamicDataSource.swift b/KalturaClient/Classes/Model/Objects/UserDynamicDataSource.swift new file mode 100644 index 000000000..10999de8a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserDynamicDataSource.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** User dynamic data source */ +open class UserDynamicDataSource: SegmentSource { + + public class UserDynamicDataSourceTokenizer: SegmentSource.SegmentSourceTokenizer { + + public var field: BaseTokenizedObject { + get { + return self.append("field") + } + } + } + + /** Field name */ + public var field: String? = nil + + + public func setMultiRequestToken(field: String) { + self.dict["field"] = field + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["field"] != nil { + field = dict["field"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(field != nil) { + dict["field"] = field! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserInterest.swift b/KalturaClient/Classes/Model/Objects/UserInterest.swift new file mode 100644 index 000000000..1f00667b9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserInterest.swift @@ -0,0 +1,81 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** User Interest */ +open class UserInterest: ObjectBase { + + public class UserInterestTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func topic() -> T { + return T(self.append("topic")) + } + } + + /** Identifier */ + public var id: String? = nil + /** Topic */ + public var topic: UserInterestTopic? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = dict["id"] as? String + } + if dict["topic"] != nil { + topic = try JSONParser.parse(object: dict["topic"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(topic != nil) { + dict["topic"] = topic!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserInterestListResponse.swift b/KalturaClient/Classes/Model/Objects/UserInterestListResponse.swift new file mode 100644 index 000000000..59d0f28c8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserInterestListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** User interest list */ +open class UserInterestListResponse: ListResponse { + + public class UserInterestListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of UserInterests */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserInterestTopic.swift b/KalturaClient/Classes/Model/Objects/UserInterestTopic.swift new file mode 100644 index 000000000..22adb16fd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserInterestTopic.swift @@ -0,0 +1,102 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** User interest topic */ +open class UserInterestTopic: ObjectBase { + + public class UserInterestTopicTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var metaId: BaseTokenizedObject { + get { + return self.append("metaId") + } + } + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + + public func parentTopic() -> T { + return T(self.append("parentTopic")) + } + } + + /** Meta identifier */ + public var metaId: String? = nil + /** Meta Value */ + public var value: String? = nil + /** Parent topic */ + public var parentTopic: UserInterestTopic? = nil + + + public func setMultiRequestToken(metaId: String) { + self.dict["metaId"] = metaId + } + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["metaId"] != nil { + metaId = dict["metaId"] as? String + } + if dict["value"] != nil { + value = dict["value"] as? String + } + if dict["parentTopic"] != nil { + parentTopic = try JSONParser.parse(object: dict["parentTopic"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(metaId != nil) { + dict["metaId"] = metaId! + } + if(value != nil) { + dict["value"] = value! + } + if(parentTopic != nil) { + dict["parentTopic"] = parentTopic!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserLoginPin.swift b/KalturaClient/Classes/Model/Objects/UserLoginPin.swift new file mode 100644 index 000000000..6b9c4ffd8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserLoginPin.swift @@ -0,0 +1,106 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Log in pin code details */ +open class UserLoginPin: ObjectBase { + + public class UserLoginPinTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var pinCode: BaseTokenizedObject { + get { + return self.append("pinCode") + } + } + + public var expirationTime: BaseTokenizedObject { + get { + return self.append("expirationTime") + } + } + + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + } + + /** Generated login pin code */ + public var pinCode: String? = nil + /** Login pin expiration time (epoch) */ + public var expirationTime: Int64? = nil + /** User Identifier */ + public var userId: String? = nil + + + public func setMultiRequestToken(pinCode: String) { + self.dict["pinCode"] = pinCode + } + + public func setMultiRequestToken(expirationTime: String) { + self.dict["expirationTime"] = expirationTime + } + + public func setMultiRequestToken(userId: String) { + self.dict["userId"] = userId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["pinCode"] != nil { + pinCode = dict["pinCode"] as? String + } + if dict["expirationTime"] != nil { + expirationTime = Int64("\(dict["expirationTime"]!)") + } + if dict["userId"] != nil { + userId = dict["userId"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(pinCode != nil) { + dict["pinCode"] = pinCode! + } + if(expirationTime != nil) { + dict["expirationTime"] = expirationTime! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserRole.swift b/KalturaClient/Classes/Model/Objects/UserRole.swift new file mode 100644 index 000000000..524c9f8ce --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserRole.swift @@ -0,0 +1,123 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class UserRole: ObjectBase { + + public class UserRoleTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var permissionNames: BaseTokenizedObject { + get { + return self.append("permissionNames") + } + } + + public var excludedPermissionNames: BaseTokenizedObject { + get { + return self.append("excludedPermissionNames") + } + } + } + + /** User role identifier */ + public var id: Int64? = nil + /** User role name */ + public var name: String? = nil + /** permissions associated with the user role */ + public var permissionNames: String? = nil + /** permissions associated with the user role in is_exclueded = true */ + public var excludedPermissionNames: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(permissionNames: String) { + self.dict["permissionNames"] = permissionNames + } + + public func setMultiRequestToken(excludedPermissionNames: String) { + self.dict["excludedPermissionNames"] = excludedPermissionNames + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["permissionNames"] != nil { + permissionNames = dict["permissionNames"] as? String + } + if dict["excludedPermissionNames"] != nil { + excludedPermissionNames = dict["excludedPermissionNames"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(permissionNames != nil) { + dict["permissionNames"] = permissionNames! + } + if(excludedPermissionNames != nil) { + dict["excludedPermissionNames"] = excludedPermissionNames! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserRoleCondition.swift b/KalturaClient/Classes/Model/Objects/UserRoleCondition.swift new file mode 100644 index 000000000..10803c84d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserRoleCondition.swift @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** UserRole Condition - indicates which users this rule is applied on by their + roles */ +open class UserRoleCondition: Condition { + + public class UserRoleConditionTokenizer: Condition.ConditionTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** Comma separated user role IDs list */ + public var idIn: String? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserRoleFilter.swift b/KalturaClient/Classes/Model/Objects/UserRoleFilter.swift new file mode 100644 index 000000000..7c2b97d81 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserRoleFilter.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** User roles filter */ +open class UserRoleFilter: Filter { + + public class UserRoleFilterTokenizer: Filter.FilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + + public var currentUserRoleIdsContains: BaseTokenizedObject { + get { + return self.append("currentUserRoleIdsContains") + } + } + } + + /** Comma separated roles identifiers */ + public var idIn: String? = nil + /** Indicates whether the results should be filtered by userId using the current */ + public var currentUserRoleIdsContains: Bool? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public func setMultiRequestToken(currentUserRoleIdsContains: String) { + self.dict["currentUserRoleIdsContains"] = currentUserRoleIdsContains + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idIn"] != nil { + idIn = dict["idIn"] as? String + } + if dict["currentUserRoleIdsContains"] != nil { + currentUserRoleIdsContains = dict["currentUserRoleIdsContains"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + if(currentUserRoleIdsContains != nil) { + dict["currentUserRoleIdsContains"] = currentUserRoleIdsContains! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserRoleListResponse.swift b/KalturaClient/Classes/Model/Objects/UserRoleListResponse.swift new file mode 100644 index 000000000..d91c3e2ea --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserRoleListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** User-roles list */ +open class UserRoleListResponse: ListResponse { + + public class UserRoleListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of generic rules */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserSegment.swift b/KalturaClient/Classes/Model/Objects/UserSegment.swift new file mode 100644 index 000000000..41eb04b84 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserSegment.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Indicates a segment of a user */ +open class UserSegment: ObjectBase { + + public class UserSegmentTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var segmentId: BaseTokenizedObject { + get { + return self.append("segmentId") + } + } + + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + } + + /** Segment Id */ + public var segmentId: Int64? = nil + /** User Id of segment */ + public var userId: String? = nil + + + public func setMultiRequestToken(segmentId: String) { + self.dict["segmentId"] = segmentId + } + + public func setMultiRequestToken(userId: String) { + self.dict["userId"] = userId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["segmentId"] != nil { + segmentId = Int64("\(dict["segmentId"]!)") + } + if dict["userId"] != nil { + userId = dict["userId"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(segmentId != nil) { + dict["segmentId"] = segmentId! + } + if(userId != nil) { + dict["userId"] = userId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserSegmentFilter.swift b/KalturaClient/Classes/Model/Objects/UserSegmentFilter.swift new file mode 100644 index 000000000..be2113a26 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserSegmentFilter.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Filter for user segments */ +open class UserSegmentFilter: Filter { + + public class UserSegmentFilterTokenizer: Filter.FilterTokenizer { + + public var userIdEqual: BaseTokenizedObject { + get { + return self.append("userIdEqual") + } + } + + public var kSql: BaseTokenizedObject { + get { + return self.append("kSql") + } + } + } + + /** User ID */ + public var userIdEqual: String? = nil + /** KSQL expression */ + public var kSql: String? = nil + + + public func setMultiRequestToken(userIdEqual: String) { + self.dict["userIdEqual"] = userIdEqual + } + + public func setMultiRequestToken(kSql: String) { + self.dict["kSql"] = kSql + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["userIdEqual"] != nil { + userIdEqual = dict["userIdEqual"] as? String + } + if dict["kSql"] != nil { + kSql = dict["kSql"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(userIdEqual != nil) { + dict["userIdEqual"] = userIdEqual! + } + if(kSql != nil) { + dict["kSql"] = kSql! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserSegmentListResponse.swift b/KalturaClient/Classes/Model/Objects/UserSegmentListResponse.swift new file mode 100644 index 000000000..fed7cc3d1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserSegmentListResponse.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** List of user segments */ +open class UserSegmentListResponse: ListResponse { + + public class UserSegmentListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Segmentation Types */ + public var objects: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["objects"] != nil { + objects = try JSONParser.parse(array: dict["objects"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(objects != nil) { + dict["objects"] = objects!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserSocialActionResponse.swift b/KalturaClient/Classes/Model/Objects/UserSocialActionResponse.swift new file mode 100644 index 000000000..a851f6c70 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserSocialActionResponse.swift @@ -0,0 +1,79 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class UserSocialActionResponse: ObjectBase { + + public class UserSocialActionResponseTokenizer: ObjectBase.ObjectBaseTokenizer { + + public func socialAction() -> T { + return T(self.append("socialAction")) + } + + public var failStatus: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("failStatus")) + } + } + } + + /** socialAction */ + public var socialAction: SocialAction? = nil + /** List of action permission items */ + public var failStatus: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["socialAction"] != nil { + socialAction = try JSONParser.parse(object: dict["socialAction"] as! [String: Any]) } + if dict["failStatus"] != nil { + failStatus = try JSONParser.parse(array: dict["failStatus"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(socialAction != nil) { + dict["socialAction"] = socialAction!.toDictionary() + } + if(failStatus != nil) { + dict["failStatus"] = failStatus!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/UserSubscriptionCondition.swift b/KalturaClient/Classes/Model/Objects/UserSubscriptionCondition.swift new file mode 100644 index 000000000..9d3b09961 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/UserSubscriptionCondition.swift @@ -0,0 +1,50 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** UserSubscription Condition - indicates which users this rule is applied on by + their subscriptions */ +open class UserSubscriptionCondition: SubscriptionCondition { + + public class UserSubscriptionConditionTokenizer: SubscriptionCondition.SubscriptionConditionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/Value.swift b/KalturaClient/Classes/Model/Objects/Value.swift new file mode 100644 index 000000000..98adcaee2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Value.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** A representation to return an array of values */ +open class Value: ObjectBase { + + public class ValueTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + } + + /** Description */ + public var description: String? = nil + + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["description"] != nil { + description = dict["description"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(description != nil) { + dict["description"] = description! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Services/AnnouncementService.swift b/KalturaClient/Classes/Services/AnnouncementService.swift new file mode 100644 index 000000000..5bbf429da --- /dev/null +++ b/KalturaClient/Classes/Services/AnnouncementService.swift @@ -0,0 +1,150 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class AnnouncementService{ + + public class AddTokenizer: ClientTokenizer { + + public func announcement() -> T { + return T(self.append("announcement")) + } + } + + /** Add a new future scheduled system announcement push notification */ + public static func add(announcement: Announcement) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "announcement", action: "add") + .setParam(key: "announcement", value: announcement) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete an existing announcing. Announcement cannot be delete while being sent. */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "announcement", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class EnableSystemAnnouncementsTokenizer: ClientTokenizer { + } + + /** Enable system announcements */ + public static func enableSystemAnnouncements() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "announcement", action: "enableSystemAnnouncements") + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list(filter: AnnouncementFilter) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Lists all announcements in the system. */ + public static func list(filter: AnnouncementFilter, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "announcement", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var announcementId: BaseTokenizedObject { + get { + return self.append("announcementId") + } + } + + public func announcement() -> T { + return T(self.append("announcement")) + } + } + + /** Update an existing future system announcement push notification. Announcement + can only be updated only before sending */ + public static func update(announcementId: Int, announcement: Announcement) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "announcement", action: "update") + .setParam(key: "announcementId", value: announcementId) + .setParam(key: "announcement", value: announcement) + + return request + } + + public class UpdateStatusTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + } + + /** Update a system announcement status */ + public static func updateStatus(id: Int64, status: Bool) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "announcement", action: "updateStatus") + .setParam(key: "id", value: id) + .setParam(key: "status", value: status) + + return request + } +} diff --git a/KalturaClient/Classes/Services/AppTokenService.swift b/KalturaClient/Classes/Services/AppTokenService.swift new file mode 100644 index 000000000..2bcb4b4dd --- /dev/null +++ b/KalturaClient/Classes/Services/AppTokenService.swift @@ -0,0 +1,143 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class AppTokenService{ + + public class AddTokenizer: ClientTokenizer { + + public func appToken() -> T { + return T(self.append("appToken")) + } + } + + /** Add new application authentication token */ + public static func add(appToken: AppToken) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "apptoken", action: "add") + .setParam(key: "appToken", value: appToken) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete application authentication token by id */ + public static func delete(id: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "apptoken", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Get application authentication token by id */ + public static func get(id: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "apptoken", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class StartSessionTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var tokenHash: BaseTokenizedObject { + get { + return self.append("tokenHash") + } + } + + public override var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + + public var expiry: BaseTokenizedObject { + get { + return self.append("expiry") + } + } + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + } + + public static func startSession(id: String, tokenHash: String) -> RequestBuilder { + return startSession(id: id, tokenHash: tokenHash, userId: nil) + } + + public static func startSession(id: String, tokenHash: String, userId: String?) -> RequestBuilder { + return startSession(id: id, tokenHash: tokenHash, userId: userId, expiry: nil) + } + + public static func startSession(id: String, tokenHash: String, userId: String?, expiry: Int?) -> RequestBuilder { + return startSession(id: id, tokenHash: tokenHash, userId: userId, expiry: expiry, udid: nil) + } + + /** Starts a new KS (Kaltura Session) based on application authentication token id */ + public static func startSession(id: String, tokenHash: String, userId: String?, expiry: Int?, udid: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "apptoken", action: "startSession") + .setParam(key: "id", value: id) + .setParam(key: "tokenHash", value: tokenHash) + .setParam(key: "userId", value: userId) + .setParam(key: "expiry", value: expiry) + .setParam(key: "udid", value: udid) + + return request + } +} diff --git a/KalturaClient/Classes/Services/AssetCommentService.swift b/KalturaClient/Classes/Services/AssetCommentService.swift new file mode 100644 index 000000000..7d098c284 --- /dev/null +++ b/KalturaClient/Classes/Services/AssetCommentService.swift @@ -0,0 +1,76 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class AssetCommentService{ + + public class AddTokenizer: ClientTokenizer { + + public func comment() -> T { + return T(self.append("comment")) + } + } + + /** Add asset comments by asset id */ + public static func add(comment: AssetComment) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetcomment", action: "add") + .setParam(key: "comment", value: comment) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list(filter: AssetCommentFilter) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Returns asset comments by asset id */ + public static func list(filter: AssetCommentFilter, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetcomment", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/AssetFilePpvService.swift b/KalturaClient/Classes/Services/AssetFilePpvService.swift new file mode 100644 index 000000000..a725f41c6 --- /dev/null +++ b/KalturaClient/Classes/Services/AssetFilePpvService.swift @@ -0,0 +1,120 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class AssetFilePpvService{ + + public class AddTokenizer: ClientTokenizer { + + public func assetFilePpv() -> T { + return T(self.append("assetFilePpv")) + } + } + + /** Add asset file ppv */ + public static func add(assetFilePpv: AssetFilePpv) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetfileppv", action: "add") + .setParam(key: "assetFilePpv", value: assetFilePpv) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var assetFileId: BaseTokenizedObject { + get { + return self.append("assetFileId") + } + } + + public var ppvModuleId: BaseTokenizedObject { + get { + return self.append("ppvModuleId") + } + } + } + + /** Delete asset file ppv */ + public static func delete(assetFileId: Int64, ppvModuleId: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetfileppv", action: "delete") + .setParam(key: "assetFileId", value: assetFileId) + .setParam(key: "ppvModuleId", value: ppvModuleId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Return a list of asset files ppvs for the account with optional filter */ + public static func list(filter: AssetFilePpvFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetfileppv", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var assetFileId: BaseTokenizedObject { + get { + return self.append("assetFileId") + } + } + + public var ppvModuleId: BaseTokenizedObject { + get { + return self.append("ppvModuleId") + } + } + + public func assetFilePpv() -> T { + return T(self.append("assetFilePpv")) + } + } + + /** Update assetFilePpv */ + public static func update(assetFileId: Int64, ppvModuleId: Int64, assetFilePpv: AssetFilePpv) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetfileppv", action: "update") + .setParam(key: "assetFileId", value: assetFileId) + .setParam(key: "ppvModuleId", value: ppvModuleId) + .setParam(key: "assetFilePpv", value: assetFilePpv) + + return request + } +} diff --git a/KalturaClient/Classes/Services/AssetFileService.swift b/KalturaClient/Classes/Services/AssetFileService.swift new file mode 100644 index 000000000..3eccf7a91 --- /dev/null +++ b/KalturaClient/Classes/Services/AssetFileService.swift @@ -0,0 +1,128 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class AssetFileService{ + + public class GetContextTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var contextType: BaseTokenizedObject { + get { + return self.append("contextType") + } + } + } + + /** get KalturaAssetFileContext */ + public static func getContext(id: String, contextType: ContextType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetfile", action: "getContext") + .setParam(key: "id", value: id) + .setParam(key: "contextType", value: contextType.rawValue) + + return request + } + + public class PlayManifestTokenizer: ClientTokenizer { + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var assetType: BaseTokenizedObject { + get { + return self.append("assetType") + } + } + + public var assetFileId: BaseTokenizedObject { + get { + return self.append("assetFileId") + } + } + + public var contextType: BaseTokenizedObject { + get { + return self.append("contextType") + } + } + + public override var ks: BaseTokenizedObject { + get { + return self.append("ks") + } + } + + public var tokenizedUrl: BaseTokenizedObject { + get { + return self.append("tokenizedUrl") + } + } + } + + public static func playManifest(partnerId: Int, assetId: String, assetType: AssetType, assetFileId: Int64, contextType: PlaybackContextType) -> RequestBuilder { + return playManifest(partnerId: partnerId, assetId: assetId, assetType: assetType, assetFileId: assetFileId, contextType: contextType, ks: nil) + } + + public static func playManifest(partnerId: Int, assetId: String, assetType: AssetType, assetFileId: Int64, contextType: PlaybackContextType, ks: String?) -> RequestBuilder { + return playManifest(partnerId: partnerId, assetId: assetId, assetType: assetType, assetFileId: assetFileId, contextType: contextType, ks: ks, tokenizedUrl: nil) + } + + /** Redirects to play manifest */ + public static func playManifest(partnerId: Int, assetId: String, assetType: AssetType, assetFileId: Int64, contextType: PlaybackContextType, ks: String?, tokenizedUrl: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetfile", action: "playManifest") + .setParam(key: "partnerId", value: partnerId) + .setParam(key: "assetId", value: assetId) + .setParam(key: "assetType", value: assetType.rawValue) + .setParam(key: "assetFileId", value: assetFileId) + .setParam(key: "contextType", value: contextType.rawValue) + .setParam(key: "ks", value: ks) + .setParam(key: "tokenizedUrl", value: tokenizedUrl) + + return request + } +} diff --git a/KalturaClient/Classes/Services/AssetHistoryService.swift b/KalturaClient/Classes/Services/AssetHistoryService.swift new file mode 100644 index 000000000..2fd85724d --- /dev/null +++ b/KalturaClient/Classes/Services/AssetHistoryService.swift @@ -0,0 +1,101 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class AssetHistoryService{ + + public class CleanTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func clean() -> NullRequestBuilder { + return clean(filter: nil) + } + + /** Clean the user’s viewing history */ + public static func clean(filter: AssetHistoryFilter?) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "assethistory", action: "clean") + .setParam(key: "filter", value: filter) + + return request + } + + public class GetNextEpisodeTokenizer: ClientTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + } + + /** Get next episode by last watch asset in given assetId */ + public static func getNextEpisode(assetId: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assethistory", action: "getNextEpisode") + .setParam(key: "assetId", value: assetId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: AssetHistoryFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Get recently watched media for user, ordered by recently watched first. */ + public static func list(filter: AssetHistoryFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assethistory", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/AssetRuleService.swift b/KalturaClient/Classes/Services/AssetRuleService.swift new file mode 100644 index 000000000..bd2ac2194 --- /dev/null +++ b/KalturaClient/Classes/Services/AssetRuleService.swift @@ -0,0 +1,110 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class AssetRuleService{ + + public class AddTokenizer: ClientTokenizer { + + public func assetRule() -> T { + return T(self.append("assetRule")) + } + } + + /** Add asset rule */ + public static func add(assetRule: AssetRule) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetrule", action: "add") + .setParam(key: "assetRule", value: assetRule) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete asset rule */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetrule", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Get the list of asset rules for the partner */ + public static func list(filter: AssetRuleFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetrule", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func assetRule() -> T { + return T(self.append("assetRule")) + } + } + + /** Update asset rule */ + public static func update(id: Int64, assetRule: AssetRule) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetrule", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "assetRule", value: assetRule) + + return request + } +} diff --git a/KalturaClient/Classes/Services/AssetService.swift b/KalturaClient/Classes/Services/AssetService.swift new file mode 100644 index 000000000..7c6a7662a --- /dev/null +++ b/KalturaClient/Classes/Services/AssetService.swift @@ -0,0 +1,336 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class AssetService{ + + public class AddTokenizer: ClientTokenizer { + + public func asset() -> T { + return T(self.append("asset")) + } + } + + /** Add a new asset. For metas of type bool-> use + kalturaBoolValue, type number-> KalturaDoubleValue, type date -> + KalturaLongValue, type string -> KalturaStringValue */ + public static func add(asset: Asset) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "asset", action: "add") + .setParam(key: "asset", value: asset) + + return request + } + + public class AddFromBulkUploadTokenizer: ClientTokenizer { + + public func bulkUploadJobData() -> T { + return T(self.append("bulkUploadJobData")) + } + + public func bulkUploadAssetData() -> T { + return T(self.append("bulkUploadAssetData")) + } + } + + /** Add new bulk upload batch job Conversion profile id can be specified in the API. */ + public static func addFromBulkUpload(fileData: RequestFile, bulkUploadJobData: BulkUploadJobData, bulkUploadAssetData: BulkUploadAssetData) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "asset", action: "addFromBulkUpload") + .setFile(key: "fileData", value: fileData) + .setParam(key: "bulkUploadJobData", value: bulkUploadJobData) + .setParam(key: "bulkUploadAssetData", value: bulkUploadAssetData) + + return request + } + + public class CountTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func count() -> RequestBuilder { + return count(filter: nil) + } + + /** Returns a group-by result for media or EPG according to given filter. Lists + values of each field and their respective count. */ + public static func count(filter: SearchAssetFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "asset", action: "count") + .setParam(key: "filter", value: filter) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var assetReferenceType: BaseTokenizedObject { + get { + return self.append("assetReferenceType") + } + } + } + + /** Delete an existing asset */ + public static func delete(id: Int64, assetReferenceType: AssetReferenceType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "asset", action: "delete") + .setParam(key: "id", value: id) + .setParam(key: "assetReferenceType", value: assetReferenceType.rawValue) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var assetReferenceType: BaseTokenizedObject { + get { + return self.append("assetReferenceType") + } + } + } + + /** Returns media or EPG asset by media / EPG internal or external identifier */ + public static func get(id: String, assetReferenceType: AssetReferenceType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "asset", action: "get") + .setParam(key: "id", value: id) + .setParam(key: "assetReferenceType", value: assetReferenceType.rawValue) + + return request + } + + public class GetAdsContextTokenizer: ClientTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var assetType: BaseTokenizedObject { + get { + return self.append("assetType") + } + } + + public func contextDataParams() -> T { + return T(self.append("contextDataParams")) + } + } + + /** Returns the data for ads control */ + public static func getAdsContext(assetId: String, assetType: AssetType, contextDataParams: PlaybackContextOptions) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "asset", action: "getAdsContext") + .setParam(key: "assetId", value: assetId) + .setParam(key: "assetType", value: assetType.rawValue) + .setParam(key: "contextDataParams", value: contextDataParams) + + return request + } + + public class GetPlaybackContextTokenizer: ClientTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var assetType: BaseTokenizedObject { + get { + return self.append("assetType") + } + } + + public func contextDataParams() -> T { + return T(self.append("contextDataParams")) + } + + public var sourceType: BaseTokenizedObject { + get { + return self.append("sourceType") + } + } + } + + public static func getPlaybackContext(assetId: String, assetType: AssetType, contextDataParams: PlaybackContextOptions) -> RequestBuilder { + return getPlaybackContext(assetId: assetId, assetType: assetType, contextDataParams: contextDataParams, sourceType: nil) + } + + /** This action delivers all data relevant for player */ + public static func getPlaybackContext(assetId: String, assetType: AssetType, contextDataParams: PlaybackContextOptions, sourceType: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "asset", action: "getPlaybackContext") + .setParam(key: "assetId", value: assetId) + .setParam(key: "assetType", value: assetType.rawValue) + .setParam(key: "contextDataParams", value: contextDataParams) + .setParam(key: "sourceType", value: sourceType) + + return request + } + + public class GetPlaybackManifestTokenizer: ClientTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var assetType: BaseTokenizedObject { + get { + return self.append("assetType") + } + } + + public func contextDataParams() -> T { + return T(self.append("contextDataParams")) + } + + public var sourceType: BaseTokenizedObject { + get { + return self.append("sourceType") + } + } + } + + public static func getPlaybackManifest(assetId: String, assetType: AssetType, contextDataParams: PlaybackContextOptions) -> RequestBuilder { + return getPlaybackManifest(assetId: assetId, assetType: assetType, contextDataParams: contextDataParams, sourceType: nil) + } + + /** This action delivers all data relevant for player */ + public static func getPlaybackManifest(assetId: String, assetType: AssetType, contextDataParams: PlaybackContextOptions, sourceType: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "asset", action: "getPlaybackManifest") + .setParam(key: "assetId", value: assetId) + .setParam(key: "assetType", value: assetType.rawValue) + .setParam(key: "contextDataParams", value: contextDataParams) + .setParam(key: "sourceType", value: sourceType) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: AssetFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Returns media or EPG assets. Filters by media identifiers or by EPG internal or + external identifier. */ + public static func list(filter: AssetFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "asset", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } + + public class RemoveMetasAndTagsTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var assetReferenceType: BaseTokenizedObject { + get { + return self.append("assetReferenceType") + } + } + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** remove metas and tags from asset */ + public static func removeMetasAndTags(id: Int64, assetReferenceType: AssetReferenceType, idIn: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "asset", action: "removeMetasAndTags") + .setParam(key: "id", value: id) + .setParam(key: "assetReferenceType", value: assetReferenceType.rawValue) + .setParam(key: "idIn", value: idIn) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func asset() -> T { + return T(self.append("asset")) + } + } + + /** update an existing asset. For metas of type bool-> use + kalturaBoolValue, type number-> KalturaDoubleValue, type date -> + KalturaLongValue, type string -> KalturaStringValue */ + public static func update(id: Int64, asset: Asset) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "asset", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "asset", value: asset) + + return request + } +} diff --git a/KalturaClient/Classes/Services/AssetStatisticsService.swift b/KalturaClient/Classes/Services/AssetStatisticsService.swift new file mode 100644 index 000000000..c15e56c83 --- /dev/null +++ b/KalturaClient/Classes/Services/AssetStatisticsService.swift @@ -0,0 +1,52 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class AssetStatisticsService{ + + public class QueryTokenizer: ClientTokenizer { + + public func query_() -> T { + return T(self.append("query_")) + } + } + + /** Returns statistics for given list of assets by type and / or time period */ + public static func query(query_: AssetStatisticsQuery) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetstatistics", action: "query") + .setParam(key: "query", value: query_) + + return request + } +} diff --git a/KalturaClient/Classes/Services/AssetStructMetaService.swift b/KalturaClient/Classes/Services/AssetStructMetaService.swift new file mode 100644 index 000000000..55e62b2c7 --- /dev/null +++ b/KalturaClient/Classes/Services/AssetStructMetaService.swift @@ -0,0 +1,81 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class AssetStructMetaService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Return a list of asset struct metas for the account with optional filter */ + public static func list(filter: AssetStructMetaFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetstructmeta", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var assetStructId: BaseTokenizedObject { + get { + return self.append("assetStructId") + } + } + + public var metaId: BaseTokenizedObject { + get { + return self.append("metaId") + } + } + + public func assetStructMeta() -> T { + return T(self.append("assetStructMeta")) + } + } + + /** Update Asset struct meta */ + public static func update(assetStructId: Int64, metaId: Int64, assetStructMeta: AssetStructMeta) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetstructmeta", action: "update") + .setParam(key: "assetStructId", value: assetStructId) + .setParam(key: "metaId", value: metaId) + .setParam(key: "assetStructMeta", value: assetStructMeta) + + return request + } +} diff --git a/KalturaClient/Classes/Services/AssetStructService.swift b/KalturaClient/Classes/Services/AssetStructService.swift new file mode 100644 index 000000000..05783aeea --- /dev/null +++ b/KalturaClient/Classes/Services/AssetStructService.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class AssetStructService{ + + public class AddTokenizer: ClientTokenizer { + + public func assetStruct() -> T { + return T(self.append("assetStruct")) + } + } + + /** Add a new assetStruct */ + public static func add(assetStruct: AssetStruct) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetstruct", action: "add") + .setParam(key: "assetStruct", value: assetStruct) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete an existing assetStruct */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetstruct", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Get AssetStruct by ID */ + public static func get(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetstruct", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Return a list of asset structs for the account with optional filter */ + public static func list(filter: AssetStructFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetstruct", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func assetStruct() -> T { + return T(self.append("assetStruct")) + } + } + + /** Update an existing assetStruct */ + public static func update(id: Int64, assetStruct: AssetStruct) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetstruct", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "assetStruct", value: assetStruct) + + return request + } +} diff --git a/KalturaClient/Classes/Services/AssetUserRuleService.swift b/KalturaClient/Classes/Services/AssetUserRuleService.swift new file mode 100644 index 000000000..483e36c50 --- /dev/null +++ b/KalturaClient/Classes/Services/AssetUserRuleService.swift @@ -0,0 +1,144 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class AssetUserRuleService{ + + public class AddTokenizer: ClientTokenizer { + + public func assetUserRule() -> T { + return T(self.append("assetUserRule")) + } + } + + /** Add asset user rule */ + public static func add(assetUserRule: AssetUserRule) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetuserrule", action: "add") + .setParam(key: "assetUserRule", value: assetUserRule) + + return request + } + + public class AttachUserTokenizer: ClientTokenizer { + + public var ruleId: BaseTokenizedObject { + get { + return self.append("ruleId") + } + } + } + + /** Attach AssetUserRule To User */ + public static func attachUser(ruleId: Int64) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "assetuserrule", action: "attachUser") + .setParam(key: "ruleId", value: ruleId) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete asset user rule */ + public static func delete(id: Int64) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "assetuserrule", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class DetachUserTokenizer: ClientTokenizer { + + public var ruleId: BaseTokenizedObject { + get { + return self.append("ruleId") + } + } + } + + /** Detach AssetUserRule from user */ + public static func detachUser(ruleId: Int64) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "assetuserrule", action: "detachUser") + .setParam(key: "ruleId", value: ruleId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Get the list of asset user rules for the partner */ + public static func list(filter: AssetUserRuleFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetuserrule", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func assetUserRule() -> T { + return T(self.append("assetUserRule")) + } + } + + /** Update asset user rule */ + public static func update(id: Int64, assetUserRule: AssetUserRule) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "assetuserrule", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "assetUserRule", value: assetUserRule) + + return request + } +} diff --git a/KalturaClient/Classes/Services/BookmarkService.swift b/KalturaClient/Classes/Services/BookmarkService.swift new file mode 100644 index 000000000..08367d1ea --- /dev/null +++ b/KalturaClient/Classes/Services/BookmarkService.swift @@ -0,0 +1,72 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class BookmarkService{ + + public class AddTokenizer: ClientTokenizer { + + public func bookmark() -> T { + return T(self.append("bookmark")) + } + } + + /** Report player position and action for the user on the watched asset. Player + position is used to later allow resume watching. */ + public static func add(bookmark: Bookmark) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "bookmark", action: "add") + .setParam(key: "bookmark", value: bookmark) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Returns player position record/s for the requested asset and the requesting + user. If default user makes the request – player position + records are provided for all of the users in the household. If + non-default user makes the request - player position records are provided for + the requesting user and the default user of the household. */ + public static func list(filter: BookmarkFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "bookmark", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/BulkUploadService.swift b/KalturaClient/Classes/Services/BulkUploadService.swift new file mode 100644 index 000000000..b2048d525 --- /dev/null +++ b/KalturaClient/Classes/Services/BulkUploadService.swift @@ -0,0 +1,78 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class BulkUploadService{ + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Get BulkUpload by ID */ + public static func get(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "bulkupload", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list(filter: BulkUploadFilter) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Get list of KalturaBulkUpload by filter */ + public static func list(filter: BulkUploadFilter, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "bulkupload", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/BusinessModuleRuleService.swift b/KalturaClient/Classes/Services/BusinessModuleRuleService.swift new file mode 100644 index 000000000..c286f7e70 --- /dev/null +++ b/KalturaClient/Classes/Services/BusinessModuleRuleService.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class BusinessModuleRuleService{ + + public class AddTokenizer: ClientTokenizer { + + public func businessModuleRule() -> T { + return T(self.append("businessModuleRule")) + } + } + + /** Add business module rule */ + public static func add(businessModuleRule: BusinessModuleRule) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "businessmodulerule", action: "add") + .setParam(key: "businessModuleRule", value: businessModuleRule) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete business module rule */ + public static func delete(id: Int64) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "businessmodulerule", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Get business module rule by ID */ + public static func get(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "businessmodulerule", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Get the list of business module rules for the partner */ + public static func list(filter: BusinessModuleRuleFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "businessmodulerule", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func businessModuleRule() -> T { + return T(self.append("businessModuleRule")) + } + } + + /** Update business module rule */ + public static func update(id: Int64, businessModuleRule: BusinessModuleRule) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "businessmodulerule", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "businessModuleRule", value: businessModuleRule) + + return request + } +} diff --git a/KalturaClient/Classes/Services/CDVRAdapterProfileService.swift b/KalturaClient/Classes/Services/CDVRAdapterProfileService.swift new file mode 100644 index 000000000..d22186b58 --- /dev/null +++ b/KalturaClient/Classes/Services/CDVRAdapterProfileService.swift @@ -0,0 +1,118 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class CDVRAdapterProfileService{ + + public class AddTokenizer: ClientTokenizer { + + public func adapter() -> T { + return T(self.append("adapter")) + } + } + + /** Insert new C-DVR adapter for partner */ + public static func add(adapter: CDVRAdapterProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "cdvradapterprofile", action: "add") + .setParam(key: "adapter", value: adapter) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var adapterId: BaseTokenizedObject { + get { + return self.append("adapterId") + } + } + } + + /** Delete C-DVR adapter by C-DVR adapter id */ + public static func delete(adapterId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "cdvradapterprofile", action: "delete") + .setParam(key: "adapterId", value: adapterId) + + return request + } + + public class GenerateSharedSecretTokenizer: ClientTokenizer { + + public var adapterId: BaseTokenizedObject { + get { + return self.append("adapterId") + } + } + } + + /** Generate C-DVR adapter shared secret */ + public static func generateSharedSecret(adapterId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "cdvradapterprofile", action: "generateSharedSecret") + .setParam(key: "adapterId", value: adapterId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Returns all C-DVR adapters for partner */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "cdvradapterprofile", action: "list") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var adapterId: BaseTokenizedObject { + get { + return self.append("adapterId") + } + } + + public func adapter() -> T { + return T(self.append("adapter")) + } + } + + /** Update C-DVR adapter details */ + public static func update(adapterId: Int, adapter: CDVRAdapterProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "cdvradapterprofile", action: "update") + .setParam(key: "adapterId", value: adapterId) + .setParam(key: "adapter", value: adapter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/CategoryItemService.swift b/KalturaClient/Classes/Services/CategoryItemService.swift new file mode 100644 index 000000000..2e9d4c359 --- /dev/null +++ b/KalturaClient/Classes/Services/CategoryItemService.swift @@ -0,0 +1,119 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class CategoryItemService{ + + public class AddTokenizer: ClientTokenizer { + + public func objectToAdd() -> T { + return T(self.append("objectToAdd")) + } + } + + /** categoryItem add */ + public static func add(objectToAdd: CategoryItem) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "categoryitem", action: "add") + .setParam(key: "objectToAdd", value: objectToAdd) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func objectToUpdate() -> T { + return T(self.append("objectToUpdate")) + } + } + + /** categoryItem update */ + public static func update(id: Int64, objectToUpdate: CategoryItem) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "categoryitem", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "objectToUpdate", value: objectToUpdate) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Remove category */ + public static func delete(id: Int64) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "categoryitem", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: CategoryItemFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Gets all categoryItem items */ + public static func list(filter: CategoryItemFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "categoryitem", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/CategoryTreeService.swift b/KalturaClient/Classes/Services/CategoryTreeService.swift new file mode 100644 index 000000000..4a4421557 --- /dev/null +++ b/KalturaClient/Classes/Services/CategoryTreeService.swift @@ -0,0 +1,89 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class CategoryTreeService{ + + public class DuplicateTokenizer: ClientTokenizer { + + public var categoryItemId: BaseTokenizedObject { + get { + return self.append("categoryItemId") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + } + + /** Duplicate category Item */ + public static func duplicate(categoryItemId: Int64, name: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "categorytree", action: "duplicate") + .setParam(key: "categoryItemId", value: categoryItemId) + .setParam(key: "name", value: name) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var categoryItemId: BaseTokenizedObject { + get { + return self.append("categoryItemId") + } + } + + public var filter: BaseTokenizedObject { + get { + return self.append("filter") + } + } + } + + public static func get(categoryItemId: Int64) -> RequestBuilder { + return get(categoryItemId: categoryItemId, filter: false) + } + + /** Retrive category tree. */ + public static func get(categoryItemId: Int64, filter: Bool?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "categorytree", action: "get") + .setParam(key: "categoryItemId", value: categoryItemId) + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/CdnAdapterProfileService.swift b/KalturaClient/Classes/Services/CdnAdapterProfileService.swift new file mode 100644 index 000000000..33fae4c79 --- /dev/null +++ b/KalturaClient/Classes/Services/CdnAdapterProfileService.swift @@ -0,0 +1,118 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class CdnAdapterProfileService{ + + public class AddTokenizer: ClientTokenizer { + + public func adapter() -> T { + return T(self.append("adapter")) + } + } + + /** Insert new CDN adapter for partner */ + public static func add(adapter: CDNAdapterProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "cdnadapterprofile", action: "add") + .setParam(key: "adapter", value: adapter) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var adapterId: BaseTokenizedObject { + get { + return self.append("adapterId") + } + } + } + + /** Delete CDN adapter by CDN adapter id */ + public static func delete(adapterId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "cdnadapterprofile", action: "delete") + .setParam(key: "adapterId", value: adapterId) + + return request + } + + public class GenerateSharedSecretTokenizer: ClientTokenizer { + + public var adapterId: BaseTokenizedObject { + get { + return self.append("adapterId") + } + } + } + + /** Generate CDN adapter shared secret */ + public static func generateSharedSecret(adapterId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "cdnadapterprofile", action: "generateSharedSecret") + .setParam(key: "adapterId", value: adapterId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Returns all CDN adapters for partner */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "cdnadapterprofile", action: "list") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var adapterId: BaseTokenizedObject { + get { + return self.append("adapterId") + } + } + + public func adapter() -> T { + return T(self.append("adapter")) + } + } + + /** Update CDN adapter details */ + public static func update(adapterId: Int, adapter: CDNAdapterProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "cdnadapterprofile", action: "update") + .setParam(key: "adapterId", value: adapterId) + .setParam(key: "adapter", value: adapter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/CdnPartnerSettingsService.swift b/KalturaClient/Classes/Services/CdnPartnerSettingsService.swift new file mode 100644 index 000000000..48426e34a --- /dev/null +++ b/KalturaClient/Classes/Services/CdnPartnerSettingsService.swift @@ -0,0 +1,62 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class CdnPartnerSettingsService{ + + public class GetTokenizer: ClientTokenizer { + } + + /** Retrieve the partner’s CDN settings (default adapters) */ + public static func get() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "cdnpartnersettings", action: "get") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public func settings() -> T { + return T(self.append("settings")) + } + } + + /** Configure the partner’s CDN settings (default adapters) */ + public static func update(settings: CDNPartnerSettings) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "cdnpartnersettings", action: "update") + .setParam(key: "settings", value: settings) + + return request + } +} diff --git a/KalturaClient/Classes/Services/ChannelService.swift b/KalturaClient/Classes/Services/ChannelService.swift new file mode 100644 index 000000000..793456a60 --- /dev/null +++ b/KalturaClient/Classes/Services/ChannelService.swift @@ -0,0 +1,137 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class ChannelService{ + + public class AddTokenizer: ClientTokenizer { + + public func channel() -> T { + return T(self.append("channel")) + } + } + + /** Insert new channel for partner. Supports KalturaDynamicChannel or + KalturaManualChannel */ + public static func add(channel: Channel) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "channel", action: "add") + .setParam(key: "channel", value: channel) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var channelId: BaseTokenizedObject { + get { + return self.append("channelId") + } + } + } + + /** Delete channel by its channel id */ + public static func delete(channelId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "channel", action: "delete") + .setParam(key: "channelId", value: channelId) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Returns channel */ + public static func get(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "channel", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: ChannelsFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Get the list of tags for the partner */ + public static func list(filter: ChannelsFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "channel", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func channel() -> T { + return T(self.append("channel")) + } + } + + /** Update channel details. Supports KalturaDynamicChannel or KalturaManualChannel */ + public static func update(id: Int, channel: Channel) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "channel", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "channel", value: channel) + + return request + } +} diff --git a/KalturaClient/Classes/Services/CollectionService.swift b/KalturaClient/Classes/Services/CollectionService.swift new file mode 100644 index 000000000..9fb994a29 --- /dev/null +++ b/KalturaClient/Classes/Services/CollectionService.swift @@ -0,0 +1,65 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class CollectionService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: CollectionFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Returns a list of subscriptions requested by Subscription ID or file ID */ + public static func list(filter: CollectionFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "collection", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/CompensationService.swift b/KalturaClient/Classes/Services/CompensationService.swift new file mode 100644 index 000000000..0922b3718 --- /dev/null +++ b/KalturaClient/Classes/Services/CompensationService.swift @@ -0,0 +1,87 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class CompensationService{ + + public class AddTokenizer: ClientTokenizer { + + public func compensation() -> T { + return T(self.append("compensation")) + } + } + + /** Adds a new compensation for a household for a given number of iterations of a + subscription renewal for a fixed amount / percentage of the renewal price. */ + public static func add(compensation: Compensation) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "compensation", action: "add") + .setParam(key: "compensation", value: compensation) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete a compensation by identifier */ + public static func delete(id: Int64) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "compensation", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Get a compensation by identifier */ + public static func get(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "compensation", action: "get") + .setParam(key: "id", value: id) + + return request + } +} diff --git a/KalturaClient/Classes/Services/ConfigurationGroupDeviceService.swift b/KalturaClient/Classes/Services/ConfigurationGroupDeviceService.swift new file mode 100644 index 000000000..b378782ac --- /dev/null +++ b/KalturaClient/Classes/Services/ConfigurationGroupDeviceService.swift @@ -0,0 +1,111 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class ConfigurationGroupDeviceService{ + + public class AddTokenizer: ClientTokenizer { + + public func configurationGroupDevice() -> T { + return T(self.append("configurationGroupDevice")) + } + } + + /** Associate a collection of devices to a configuration group. If a device is + already associated to another group – old association is replaced */ + public static func add(configurationGroupDevice: ConfigurationGroupDevice) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurationgroupdevice", action: "add") + .setParam(key: "configurationGroupDevice", value: configurationGroupDevice) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + } + + /** Remove a device association */ + public static func delete(udid: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurationgroupdevice", action: "delete") + .setParam(key: "udid", value: udid) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + } + + /** Return the configuration group to which a specific device is associated to */ + public static func get(udid: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurationgroupdevice", action: "get") + .setParam(key: "udid", value: udid) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list(filter: ConfigurationGroupDeviceFilter) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Return the list of associated devices for a given configuration group */ + public static func list(filter: ConfigurationGroupDeviceFilter, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurationgroupdevice", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/ConfigurationGroupService.swift b/KalturaClient/Classes/Services/ConfigurationGroupService.swift new file mode 100644 index 000000000..ffdc1dea9 --- /dev/null +++ b/KalturaClient/Classes/Services/ConfigurationGroupService.swift @@ -0,0 +1,120 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class ConfigurationGroupService{ + + public class AddTokenizer: ClientTokenizer { + + public func configurationGroup() -> T { + return T(self.append("configurationGroup")) + } + } + + /** Add a new configuration group */ + public static func add(configurationGroup: ConfigurationGroup) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurationgroup", action: "add") + .setParam(key: "configurationGroup", value: configurationGroup) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Remove a configuration group, including its tags, device configurations and + devices associations */ + public static func delete(id: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurationgroup", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Return the configuration group details, including group identifiers, tags, and + number of associated devices, and list of device configuration */ + public static func get(id: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurationgroup", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Return the list of configuration groups */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurationgroup", action: "list") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func configurationGroup() -> T { + return T(self.append("configurationGroup")) + } + } + + /** Update configuration group name */ + public static func update(id: String, configurationGroup: ConfigurationGroup) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurationgroup", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "configurationGroup", value: configurationGroup) + + return request + } +} diff --git a/KalturaClient/Classes/Services/ConfigurationGroupTagService.swift b/KalturaClient/Classes/Services/ConfigurationGroupTagService.swift new file mode 100644 index 000000000..b6ce44b71 --- /dev/null +++ b/KalturaClient/Classes/Services/ConfigurationGroupTagService.swift @@ -0,0 +1,102 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class ConfigurationGroupTagService{ + + public class AddTokenizer: ClientTokenizer { + + public func configurationGroupTag() -> T { + return T(self.append("configurationGroupTag")) + } + } + + /** Add a new tag to a configuration group. If this tag is already associated to + another group, request fails */ + public static func add(configurationGroupTag: ConfigurationGroupTag) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurationgrouptag", action: "add") + .setParam(key: "configurationGroupTag", value: configurationGroupTag) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var tag: BaseTokenizedObject { + get { + return self.append("tag") + } + } + } + + /** Remove a tag association from configuration group */ + public static func delete(tag: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurationgrouptag", action: "delete") + .setParam(key: "tag", value: tag) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var tag: BaseTokenizedObject { + get { + return self.append("tag") + } + } + } + + /** Return the configuration group the tag is associated to */ + public static func get(tag: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurationgrouptag", action: "get") + .setParam(key: "tag", value: tag) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Return list of tags for a configuration group */ + public static func list(filter: ConfigurationGroupTagFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurationgrouptag", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/ConfigurationsService.swift b/KalturaClient/Classes/Services/ConfigurationsService.swift new file mode 100644 index 000000000..2d7d3ba64 --- /dev/null +++ b/KalturaClient/Classes/Services/ConfigurationsService.swift @@ -0,0 +1,123 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class ConfigurationsService{ + + public class AddTokenizer: ClientTokenizer { + + public func configurations() -> T { + return T(self.append("configurations")) + } + } + + /** Add a new device configuration to a configuration group */ + public static func add(configurations: Configurations) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurations", action: "add") + .setParam(key: "configurations", value: configurations) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete a device configuration */ + public static func delete(id: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurations", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Return the device configuration */ + public static func get(id: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurations", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Return a list of device configurations of a configuration group */ + public static func list(filter: ConfigurationsFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurations", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func configurations() -> T { + return T(self.append("configurations")) + } + } + + /** Update device configuration */ + public static func update(id: String, configurations: Configurations) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "configurations", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "configurations", value: configurations) + + return request + } +} diff --git a/KalturaClient/Classes/Services/CountryService.swift b/KalturaClient/Classes/Services/CountryService.swift new file mode 100644 index 000000000..f561e31c6 --- /dev/null +++ b/KalturaClient/Classes/Services/CountryService.swift @@ -0,0 +1,53 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class CountryService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Get the list of countries for the partner with option to filter by countries + identifiers */ + public static func list(filter: CountryFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "country", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/CouponService.swift b/KalturaClient/Classes/Services/CouponService.swift new file mode 100644 index 000000000..2d79031c2 --- /dev/null +++ b/KalturaClient/Classes/Services/CouponService.swift @@ -0,0 +1,69 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class CouponService{ + + public class GetTokenizer: ClientTokenizer { + + public var code: BaseTokenizedObject { + get { + return self.append("code") + } + } + } + + /** Returns information about a coupon */ + public static func get(code: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "coupon", action: "get") + .setParam(key: "code", value: code) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Lists coupon codes. */ + public static func list(filter: CouponFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "coupon", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/CouponsGroupService.swift b/KalturaClient/Classes/Services/CouponsGroupService.swift new file mode 100644 index 000000000..eee20d732 --- /dev/null +++ b/KalturaClient/Classes/Services/CouponsGroupService.swift @@ -0,0 +1,140 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class CouponsGroupService{ + + public class AddTokenizer: ClientTokenizer { + + public func couponsGroup() -> T { + return T(self.append("couponsGroup")) + } + } + + /** Add coupons group */ + public static func add(couponsGroup: CouponsGroup) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "couponsgroup", action: "add") + .setParam(key: "couponsGroup", value: couponsGroup) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete a coupons group */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "couponsgroup", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GenerateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func couponGenerationOptions() -> T { + return T(self.append("couponGenerationOptions")) + } + } + + /** Generate a coupon */ + public static func generate(id: Int64, couponGenerationOptions: CouponGenerationOptions) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "couponsgroup", action: "generate") + .setParam(key: "id", value: id) + .setParam(key: "couponGenerationOptions", value: couponGenerationOptions) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Returns information about coupons group */ + public static func get(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "couponsgroup", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Returns information about partner coupons groups */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "couponsgroup", action: "list") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func couponsGroup() -> T { + return T(self.append("couponsGroup")) + } + } + + /** Update coupons group */ + public static func update(id: Int64, couponsGroup: CouponsGroup) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "couponsgroup", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "couponsGroup", value: couponsGroup) + + return request + } +} diff --git a/KalturaClient/Classes/Services/CurrencyService.swift b/KalturaClient/Classes/Services/CurrencyService.swift new file mode 100644 index 000000000..7412186af --- /dev/null +++ b/KalturaClient/Classes/Services/CurrencyService.swift @@ -0,0 +1,53 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class CurrencyService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Get the list of currencies for the partner with option to filter by currency + codes */ + public static func list(filter: CurrencyFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "currency", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/DeviceBrandService.swift b/KalturaClient/Classes/Services/DeviceBrandService.swift new file mode 100644 index 000000000..a522450b4 --- /dev/null +++ b/KalturaClient/Classes/Services/DeviceBrandService.swift @@ -0,0 +1,47 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class DeviceBrandService{ + + public class ListTokenizer: ClientTokenizer { + } + + /** Return a list of the available device brands. */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "devicebrand", action: "list") + + return request + } +} diff --git a/KalturaClient/Classes/Services/DeviceFamilyService.swift b/KalturaClient/Classes/Services/DeviceFamilyService.swift new file mode 100644 index 000000000..3bd83ba57 --- /dev/null +++ b/KalturaClient/Classes/Services/DeviceFamilyService.swift @@ -0,0 +1,47 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class DeviceFamilyService{ + + public class ListTokenizer: ClientTokenizer { + } + + /** Return a list of the available device families. */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "devicefamily", action: "list") + + return request + } +} diff --git a/KalturaClient/Classes/Services/DiscountDetailsService.swift b/KalturaClient/Classes/Services/DiscountDetailsService.swift new file mode 100644 index 000000000..9fc3d72ce --- /dev/null +++ b/KalturaClient/Classes/Services/DiscountDetailsService.swift @@ -0,0 +1,57 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class DiscountDetailsService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Returns the list of available discounts details, can be filtered by discount + codes */ + public static func list(filter: DiscountDetailsFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "discountdetails", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/DrmProfileService.swift b/KalturaClient/Classes/Services/DrmProfileService.swift new file mode 100644 index 000000000..33268bdac --- /dev/null +++ b/KalturaClient/Classes/Services/DrmProfileService.swift @@ -0,0 +1,47 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class DrmProfileService{ + + public class ListTokenizer: ClientTokenizer { + } + + /** Returns all DRM adapters for partner */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "drmprofile", action: "list") + + return request + } +} diff --git a/KalturaClient/Classes/Services/EmailService.swift b/KalturaClient/Classes/Services/EmailService.swift new file mode 100644 index 000000000..db221043d --- /dev/null +++ b/KalturaClient/Classes/Services/EmailService.swift @@ -0,0 +1,52 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class EmailService{ + + public class SendTokenizer: ClientTokenizer { + + public func emailMessage() -> T { + return T(self.append("emailMessage")) + } + } + + /** Sends email notification */ + public static func send(emailMessage: EmailMessage) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "email", action: "send") + .setParam(key: "emailMessage", value: emailMessage) + + return request + } +} diff --git a/KalturaClient/Classes/Services/EngagementAdapterService.swift b/KalturaClient/Classes/Services/EngagementAdapterService.swift new file mode 100644 index 000000000..87ee5e67b --- /dev/null +++ b/KalturaClient/Classes/Services/EngagementAdapterService.swift @@ -0,0 +1,135 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class EngagementAdapterService{ + + public class AddTokenizer: ClientTokenizer { + + public func engagementAdapter() -> T { + return T(self.append("engagementAdapter")) + } + } + + /** Insert new Engagement adapter for partner */ + public static func add(engagementAdapter: EngagementAdapter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "engagementadapter", action: "add") + .setParam(key: "engagementAdapter", value: engagementAdapter) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete Engagement adapter by Engagement adapter id */ + public static func delete(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "engagementadapter", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GenerateSharedSecretTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Generate engagement adapter shared secret */ + public static func generateSharedSecret(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "engagementadapter", action: "generateSharedSecret") + .setParam(key: "id", value: id) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Returns all Engagement adapters for partner : id + name */ + public static func get(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "engagementadapter", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Returns all Engagement adapters for partner : id + name */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "engagementadapter", action: "list") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func engagementAdapter() -> T { + return T(self.append("engagementAdapter")) + } + } + + /** Update Engagement adapter details */ + public static func update(id: Int, engagementAdapter: EngagementAdapter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "engagementadapter", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "engagementAdapter", value: engagementAdapter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/EngagementService.swift b/KalturaClient/Classes/Services/EngagementService.swift new file mode 100644 index 000000000..9796609cc --- /dev/null +++ b/KalturaClient/Classes/Services/EngagementService.swift @@ -0,0 +1,101 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class EngagementService{ + + public class AddTokenizer: ClientTokenizer { + + public func engagement() -> T { + return T(self.append("engagement")) + } + } + + /** Insert new Engagement for partner */ + public static func add(engagement: Engagement) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "engagement", action: "add") + .setParam(key: "engagement", value: engagement) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete engagement by engagement adapter id */ + public static func delete(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "engagement", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Return engagement */ + public static func get(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "engagement", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Returns all Engagement for partner */ + public static func list(filter: EngagementFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "engagement", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/EntitlementService.swift b/KalturaClient/Classes/Services/EntitlementService.swift new file mode 100644 index 000000000..ca8808493 --- /dev/null +++ b/KalturaClient/Classes/Services/EntitlementService.swift @@ -0,0 +1,295 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class EntitlementService{ + + public class ApplyCouponTokenizer: ClientTokenizer { + + public var purchaseId: BaseTokenizedObject { + get { + return self.append("purchaseId") + } + } + + public var couponCode: BaseTokenizedObject { + get { + return self.append("couponCode") + } + } + } + + /** Apply new coupon for existing subscription */ + public static func applyCoupon(purchaseId: Int64, couponCode: String) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "entitlement", action: "applyCoupon") + .setParam(key: "purchaseId", value: purchaseId) + .setParam(key: "couponCode", value: couponCode) + + return request + } + + public class CancelTokenizer: ClientTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var productType: BaseTokenizedObject { + get { + return self.append("productType") + } + } + } + + /** Immediately cancel a subscription, PPV or collection. Cancel is possible only if + within cancellation window and content not already consumed */ + public static func cancel(assetId: Int, productType: TransactionType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "entitlement", action: "cancel") + .setParam(key: "assetId", value: assetId) + .setParam(key: "productType", value: productType.rawValue) + + return request + } + + public class CancelRenewalTokenizer: ClientTokenizer { + + public var subscriptionId: BaseTokenizedObject { + get { + return self.append("subscriptionId") + } + } + } + + /** Cancel a household service subscription at the next renewal. The subscription + stays valid till the next renewal. */ + public static func cancelRenewal(subscriptionId: String) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "entitlement", action: "cancelRenewal") + .setParam(key: "subscriptionId", value: subscriptionId) + + return request + } + + public class CancelScheduledSubscriptionTokenizer: ClientTokenizer { + + public var scheduledSubscriptionId: BaseTokenizedObject { + get { + return self.append("scheduledSubscriptionId") + } + } + } + + /** Cancel Scheduled Subscription */ + public static func cancelScheduledSubscription(scheduledSubscriptionId: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "entitlement", action: "cancelScheduledSubscription") + .setParam(key: "scheduledSubscriptionId", value: scheduledSubscriptionId) + + return request + } + + public class ExternalReconcileTokenizer: ClientTokenizer { + } + + /** Reconcile the user household's entitlements with an external + entitlements source. This request is frequency protected to avoid too frequent + calls per household. */ + public static func externalReconcile() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "entitlement", action: "externalReconcile") + + return request + } + + public class ForceCancelTokenizer: ClientTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var productType: BaseTokenizedObject { + get { + return self.append("productType") + } + } + } + + /** Immediately cancel a subscription, PPV or collection. Cancel applies regardless + of cancellation window and content consumption status */ + public static func forceCancel(assetId: Int, productType: TransactionType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "entitlement", action: "forceCancel") + .setParam(key: "assetId", value: assetId) + .setParam(key: "productType", value: productType.rawValue) + + return request + } + + public class GetNextRenewalTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Returns the data about the next renewal */ + public static func getNextRenewal(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "entitlement", action: "getNextRenewal") + .setParam(key: "id", value: id) + + return request + } + + public class GrantTokenizer: ClientTokenizer { + + public var productId: BaseTokenizedObject { + get { + return self.append("productId") + } + } + + public var productType: BaseTokenizedObject { + get { + return self.append("productType") + } + } + + public var history: BaseTokenizedObject { + get { + return self.append("history") + } + } + + public var contentId: BaseTokenizedObject { + get { + return self.append("contentId") + } + } + } + + public static func grant(productId: Int, productType: TransactionType, history: Bool) -> RequestBuilder { + return grant(productId: productId, productType: productType, history: history, contentId: 0) + } + + /** Grant household for an entitlement for a PPV or Subscription. */ + public static func grant(productId: Int, productType: TransactionType, history: Bool, contentId: Int?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "entitlement", action: "grant") + .setParam(key: "productId", value: productId) + .setParam(key: "productType", value: productType.rawValue) + .setParam(key: "history", value: history) + .setParam(key: "contentId", value: contentId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list(filter: EntitlementFilter) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Gets all the entitled media items for a household */ + public static func list(filter: EntitlementFilter, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "entitlement", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } + + public class SwapTokenizer: ClientTokenizer { + + public var currentProductId: BaseTokenizedObject { + get { + return self.append("currentProductId") + } + } + + public var newProductId: BaseTokenizedObject { + get { + return self.append("newProductId") + } + } + + public var history: BaseTokenizedObject { + get { + return self.append("history") + } + } + } + + /** Swap current entitlement (subscription) with new entitlement (subscription) - + only Grant */ + public static func swap(currentProductId: Int, newProductId: Int, history: Bool) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "entitlement", action: "swap") + .setParam(key: "currentProductId", value: currentProductId) + .setParam(key: "newProductId", value: newProductId) + .setParam(key: "history", value: history) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func entitlement() -> T { + return T(self.append("entitlement")) + } + } + + /** Update Kaltura Entitelment by Purchase id */ + public static func update(id: Int, entitlement: Entitlement) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "entitlement", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "entitlement", value: entitlement) + + return request + } +} diff --git a/KalturaClient/Classes/Services/EventNotificationActionService.swift b/KalturaClient/Classes/Services/EventNotificationActionService.swift new file mode 100644 index 000000000..5641d84da --- /dev/null +++ b/KalturaClient/Classes/Services/EventNotificationActionService.swift @@ -0,0 +1,52 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class EventNotificationActionService{ + + public class DispatchTokenizer: ClientTokenizer { + + public func scope() -> T { + return T(self.append("scope")) + } + } + + /** Dispatches event notification */ + public static func dispatch(scope: EventNotificationScope) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "eventnotificationaction", action: "dispatch") + .setParam(key: "scope", value: scope) + + return request + } +} diff --git a/KalturaClient/Classes/Services/EventNotificationService.swift b/KalturaClient/Classes/Services/EventNotificationService.swift new file mode 100644 index 000000000..4196744aa --- /dev/null +++ b/KalturaClient/Classes/Services/EventNotificationService.swift @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class EventNotificationService{ + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func objectToUpdate() -> T { + return T(self.append("objectToUpdate")) + } + } + + /** eventNotification update */ + public static func update(id: String, objectToUpdate: EventNotification) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "eventnotification", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "objectToUpdate", value: objectToUpdate) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Gets all EventNotification items for a given Object id and type */ + public static func list(filter: EventNotificationFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "eventnotification", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/ExportTaskService.swift b/KalturaClient/Classes/Services/ExportTaskService.swift new file mode 100644 index 000000000..28033cd13 --- /dev/null +++ b/KalturaClient/Classes/Services/ExportTaskService.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class ExportTaskService{ + + public class AddTokenizer: ClientTokenizer { + + public func task() -> T { + return T(self.append("task")) + } + } + + /** Adds a new bulk export task */ + public static func add(task: ExportTask) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "exporttask", action: "add") + .setParam(key: "task", value: task) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Deletes an existing bulk export task by task identifier */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "exporttask", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Gets an existing bulk export task by task identifier */ + public static func get(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "exporttask", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Returns bulk export tasks by tasks identifiers */ + public static func list(filter: ExportTaskFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "exporttask", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func task() -> T { + return T(self.append("task")) + } + } + + /** Updates an existing bulk export task by task identifier */ + public static func update(id: Int64, task: ExportTask) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "exporttask", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "task", value: task) + + return request + } +} diff --git a/KalturaClient/Classes/Services/ExternalChannelProfileService.swift b/KalturaClient/Classes/Services/ExternalChannelProfileService.swift new file mode 100644 index 000000000..8a09d618f --- /dev/null +++ b/KalturaClient/Classes/Services/ExternalChannelProfileService.swift @@ -0,0 +1,110 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class ExternalChannelProfileService{ + + public class AddTokenizer: ClientTokenizer { + + public func externalChannel() -> T { + return T(self.append("externalChannel")) + } + } + + /** Insert new External channel for partner */ + public static func add(externalChannel: ExternalChannelProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "externalchannelprofile", action: "add") + .setParam(key: "externalChannel", value: externalChannel) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var externalChannelId: BaseTokenizedObject { + get { + return self.append("externalChannelId") + } + } + } + + /** Delete External channel by External channel id */ + public static func delete(externalChannelId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "externalchannelprofile", action: "delete") + .setParam(key: "externalChannelId", value: externalChannelId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Returns all External channels for partner */ + public static func list(filter: ExternalChannelProfileFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "externalchannelprofile", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var externalChannelId: BaseTokenizedObject { + get { + return self.append("externalChannelId") + } + } + + public func externalChannel() -> T { + return T(self.append("externalChannel")) + } + } + + /** Update External channel details */ + public static func update(externalChannelId: Int, externalChannel: ExternalChannelProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "externalchannelprofile", action: "update") + .setParam(key: "externalChannelId", value: externalChannelId) + .setParam(key: "externalChannel", value: externalChannel) + + return request + } +} diff --git a/KalturaClient/Classes/Services/FavoriteService.swift b/KalturaClient/Classes/Services/FavoriteService.swift new file mode 100644 index 000000000..312809158 --- /dev/null +++ b/KalturaClient/Classes/Services/FavoriteService.swift @@ -0,0 +1,88 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class FavoriteService{ + + public class AddTokenizer: ClientTokenizer { + + public func favorite() -> T { + return T(self.append("favorite")) + } + } + + /** Add media to user's favorite list */ + public static func add(favorite: Favorite) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "favorite", action: "add") + .setParam(key: "favorite", value: favorite) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Remove media from user's favorite list */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "favorite", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Retrieving users' favorites */ + public static func list(filter: FavoriteFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "favorite", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/FollowTvSeriesService.swift b/KalturaClient/Classes/Services/FollowTvSeriesService.swift new file mode 100644 index 000000000..0855c0e9b --- /dev/null +++ b/KalturaClient/Classes/Services/FollowTvSeriesService.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class FollowTvSeriesService{ + + public class AddTokenizer: ClientTokenizer { + + public func followTvSeries() -> T { + return T(self.append("followTvSeries")) + } + } + + /** Add a user's tv series follow. Possible status codes: + UserAlreadyFollowing = 8013, NotFound = 500007, InvalidAssetId = 4024 */ + public static func add(followTvSeries: FollowTvSeries) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "followtvseries", action: "add") + .setParam(key: "followTvSeries", value: followTvSeries) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + } + + /** Delete a user's tv series follow. Possible status codes: + UserNotFollowing = 8012, NotFound = 500007, InvalidAssetId = 4024, + AnnouncementNotFound = 8006 */ + public static func delete(assetId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "followtvseries", action: "delete") + .setParam(key: "assetId", value: assetId) + + return request + } + + public class DeleteWithTokenTokenizer: ClientTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var token: BaseTokenizedObject { + get { + return self.append("token") + } + } + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + } + + /** Delete a user's tv series follow. */ + public static func deleteWithToken(assetId: Int, token: String, partnerId: Int) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "followtvseries", action: "deleteWithToken") + .setParam(key: "assetId", value: assetId) + .setParam(key: "token", value: token) + .setParam(key: "partnerId", value: partnerId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list(filter: FollowTvSeriesFilter) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** List user's tv series follows. Possible status codes: */ + public static func list(filter: FollowTvSeriesFilter, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "followtvseries", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/HomeNetworkService.swift b/KalturaClient/Classes/Services/HomeNetworkService.swift new file mode 100644 index 000000000..31e7d60ad --- /dev/null +++ b/KalturaClient/Classes/Services/HomeNetworkService.swift @@ -0,0 +1,101 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class HomeNetworkService{ + + public class AddTokenizer: ClientTokenizer { + + public func homeNetwork() -> T { + return T(self.append("homeNetwork")) + } + } + + /** Add a new home network to a household */ + public static func add(homeNetwork: HomeNetwork) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "homenetwork", action: "add") + .setParam(key: "homeNetwork", value: homeNetwork) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + } + + /** Delete household’s existing home network */ + public static func delete(externalId: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "homenetwork", action: "delete") + .setParam(key: "externalId", value: externalId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Retrieve the household’s home networks */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "homenetwork", action: "list") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + + public func homeNetwork() -> T { + return T(self.append("homeNetwork")) + } + } + + /** Update and existing home network for a household */ + public static func update(externalId: String, homeNetwork: HomeNetwork) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "homenetwork", action: "update") + .setParam(key: "externalId", value: externalId) + .setParam(key: "homeNetwork", value: homeNetwork) + + return request + } +} diff --git a/KalturaClient/Classes/Services/HouseholdCouponService.swift b/KalturaClient/Classes/Services/HouseholdCouponService.swift new file mode 100644 index 000000000..4487ea2be --- /dev/null +++ b/KalturaClient/Classes/Services/HouseholdCouponService.swift @@ -0,0 +1,88 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class HouseholdCouponService{ + + public class AddTokenizer: ClientTokenizer { + + public func objectToAdd() -> T { + return T(self.append("objectToAdd")) + } + } + + /** householdCoupon add */ + public static func add(objectToAdd: HouseholdCoupon) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdcoupon", action: "add") + .setParam(key: "objectToAdd", value: objectToAdd) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Remove coupon from household */ + public static func delete(id: String) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "householdcoupon", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Gets all HouseholdCoupon items for a household */ + public static func list(filter: HouseholdCouponFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdcoupon", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/HouseholdDeviceService.swift b/KalturaClient/Classes/Services/HouseholdDeviceService.swift new file mode 100644 index 000000000..01914580f --- /dev/null +++ b/KalturaClient/Classes/Services/HouseholdDeviceService.swift @@ -0,0 +1,238 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class HouseholdDeviceService{ + + public class AddTokenizer: ClientTokenizer { + + public func device() -> T { + return T(self.append("device")) + } + } + + /** Add device to household */ + public static func add(device: HouseholdDevice) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householddevice", action: "add") + .setParam(key: "device", value: device) + + return request + } + + public class AddByPinTokenizer: ClientTokenizer { + + public var deviceName: BaseTokenizedObject { + get { + return self.append("deviceName") + } + } + + public var pin: BaseTokenizedObject { + get { + return self.append("pin") + } + } + } + + /** Registers a device to a household using pin code */ + public static func addByPin(deviceName: String, pin: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householddevice", action: "addByPin") + .setParam(key: "deviceName", value: deviceName) + .setParam(key: "pin", value: pin) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + } + + /** Removes a device from household */ + public static func delete(udid: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householddevice", action: "delete") + .setParam(key: "udid", value: udid) + + return request + } + + public class GeneratePinTokenizer: ClientTokenizer { + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + + public var brandId: BaseTokenizedObject { + get { + return self.append("brandId") + } + } + } + + /** Generates device pin to use when adding a device to household by pin */ + public static func generatePin(udid: String, brandId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householddevice", action: "generatePin") + .setParam(key: "udid", value: udid) + .setParam(key: "brandId", value: brandId) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + } + + public static func get() -> RequestBuilder { + return get(udid: nil) + } + + /** Returns device registration status to the supplied household */ + public static func get(udid: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householddevice", action: "get") + .setParam(key: "udid", value: udid) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Returns the devices within the household */ + public static func list(filter: HouseholdDeviceFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householddevice", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class LoginWithPinTokenizer: ClientTokenizer { + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var pin: BaseTokenizedObject { + get { + return self.append("pin") + } + } + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + } + + public static func loginWithPin(partnerId: Int, pin: String) -> RequestBuilder { + return loginWithPin(partnerId: partnerId, pin: pin, udid: nil) + } + + /** User sign-in via a time-expired sign-in PIN. */ + public static func loginWithPin(partnerId: Int, pin: String, udid: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householddevice", action: "loginWithPin") + .setParam(key: "partnerId", value: partnerId) + .setParam(key: "pin", value: pin) + .setParam(key: "udid", value: udid) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + + public func device() -> T { + return T(self.append("device")) + } + } + + /** Update the name of the device by UDID */ + public static func update(udid: String, device: HouseholdDevice) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householddevice", action: "update") + .setParam(key: "udid", value: udid) + .setParam(key: "device", value: device) + + return request + } + + public class UpdateStatusTokenizer: ClientTokenizer { + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + } + + /** Update the name of the device by UDID */ + public static func updateStatus(udid: String, status: DeviceStatus) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householddevice", action: "updateStatus") + .setParam(key: "udid", value: udid) + .setParam(key: "status", value: status.rawValue) + + return request + } +} diff --git a/KalturaClient/Classes/Services/HouseholdLimitationsService.swift b/KalturaClient/Classes/Services/HouseholdLimitationsService.swift new file mode 100644 index 000000000..964b9a586 --- /dev/null +++ b/KalturaClient/Classes/Services/HouseholdLimitationsService.swift @@ -0,0 +1,64 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class HouseholdLimitationsService{ + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Get the limitation module by id */ + public static func get(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdlimitations", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Get the list of PartnerConfiguration */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdlimitations", action: "list") + + return request + } +} diff --git a/KalturaClient/Classes/Services/HouseholdPaymentGatewayService.swift b/KalturaClient/Classes/Services/HouseholdPaymentGatewayService.swift new file mode 100644 index 000000000..f76b68414 --- /dev/null +++ b/KalturaClient/Classes/Services/HouseholdPaymentGatewayService.swift @@ -0,0 +1,211 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class HouseholdPaymentGatewayService{ + + public class DisableTokenizer: ClientTokenizer { + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + } + + /** Disable payment-gateway on the household */ + public static func disable(paymentGatewayId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdpaymentgateway", action: "disable") + .setParam(key: "paymentGatewayId", value: paymentGatewayId) + + return request + } + + public class EnableTokenizer: ClientTokenizer { + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + } + + /** Enable a payment-gateway provider for the household. */ + public static func enable(paymentGatewayId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdpaymentgateway", action: "enable") + .setParam(key: "paymentGatewayId", value: paymentGatewayId) + + return request + } + + public class GetChargeIDTokenizer: ClientTokenizer { + + public var paymentGatewayExternalId: BaseTokenizedObject { + get { + return self.append("paymentGatewayExternalId") + } + } + } + + /** Get a household’s billing account identifier (charge ID) for a given payment + gateway */ + public static func getChargeID(paymentGatewayExternalId: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdpaymentgateway", action: "getChargeID") + .setParam(key: "paymentGatewayExternalId", value: paymentGatewayExternalId) + + return request + } + + public class InvokeTokenizer: ClientTokenizer { + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + + public var intent: BaseTokenizedObject { + get { + return self.append("intent") + } + } + + public var extraParameters: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("extraParameters")) + } + } + } + + /** Gets the Payment Gateway Configuration for the payment gateway identifier given */ + public static func invoke(paymentGatewayId: Int, intent: String, extraParameters: Array) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdpaymentgateway", action: "invoke") + .setParam(key: "paymentGatewayId", value: paymentGatewayId) + .setParam(key: "intent", value: intent) + .setParam(key: "extraParameters", value: extraParameters) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Get a list of all configured Payment Gateways providers available for the + account. For each payment is provided with the household associated payment + methods. */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdpaymentgateway", action: "list") + + return request + } + + public class ResumeTokenizer: ClientTokenizer { + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + + public var adapterData: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("adapterData")) + } + } + } + + public static func resume(paymentGatewayId: Int) -> NullRequestBuilder { + return resume(paymentGatewayId: paymentGatewayId, adapterData: nil) + } + + /** Resumes all the entitlements of the given payment gateway */ + public static func resume(paymentGatewayId: Int, adapterData: Array?) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "householdpaymentgateway", action: "resume") + .setParam(key: "paymentGatewayId", value: paymentGatewayId) + .setParam(key: "adapterData", value: adapterData) + + return request + } + + public class SetChargeIDTokenizer: ClientTokenizer { + + public var paymentGatewayExternalId: BaseTokenizedObject { + get { + return self.append("paymentGatewayExternalId") + } + } + + public var chargeId: BaseTokenizedObject { + get { + return self.append("chargeId") + } + } + } + + /** Set user billing account identifier (charge ID), for a specific household and a + specific payment gateway */ + public static func setChargeID(paymentGatewayExternalId: String, chargeId: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdpaymentgateway", action: "setChargeID") + .setParam(key: "paymentGatewayExternalId", value: paymentGatewayExternalId) + .setParam(key: "chargeId", value: chargeId) + + return request + } + + public class SuspendTokenizer: ClientTokenizer { + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + + public func suspendSettings() -> T { + return T(self.append("suspendSettings")) + } + } + + public static func suspend(paymentGatewayId: Int) -> NullRequestBuilder { + return suspend(paymentGatewayId: paymentGatewayId, suspendSettings: nil) + } + + /** Suspends all the entitlements of the given payment gateway */ + public static func suspend(paymentGatewayId: Int, suspendSettings: SuspendSettings?) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "householdpaymentgateway", action: "suspend") + .setParam(key: "paymentGatewayId", value: paymentGatewayId) + .setParam(key: "suspendSettings", value: suspendSettings) + + return request + } +} diff --git a/KalturaClient/Classes/Services/HouseholdPaymentMethodService.swift b/KalturaClient/Classes/Services/HouseholdPaymentMethodService.swift new file mode 100644 index 000000000..cfa45db6d --- /dev/null +++ b/KalturaClient/Classes/Services/HouseholdPaymentMethodService.swift @@ -0,0 +1,134 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class HouseholdPaymentMethodService{ + + public class AddTokenizer: ClientTokenizer { + + public func householdPaymentMethod() -> T { + return T(self.append("householdPaymentMethod")) + } + } + + /** Add a new payment method for household */ + public static func add(householdPaymentMethod: HouseholdPaymentMethod) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdpaymentmethod", action: "add") + .setParam(key: "householdPaymentMethod", value: householdPaymentMethod) + + return request + } + + public class ForceRemoveTokenizer: ClientTokenizer { + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + + public var paymentMethodId: BaseTokenizedObject { + get { + return self.append("paymentMethodId") + } + } + } + + /** Force remove of a payment method of the household. */ + public static func forceRemove(paymentGatewayId: Int, paymentMethodId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdpaymentmethod", action: "forceRemove") + .setParam(key: "paymentGatewayId", value: paymentGatewayId) + .setParam(key: "paymentMethodId", value: paymentMethodId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Get a list of all payment methods of the household. */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdpaymentmethod", action: "list") + + return request + } + + public class RemoveTokenizer: ClientTokenizer { + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + + public var paymentMethodId: BaseTokenizedObject { + get { + return self.append("paymentMethodId") + } + } + } + + /** Removes a payment method of the household. */ + public static func remove(paymentGatewayId: Int, paymentMethodId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdpaymentmethod", action: "remove") + .setParam(key: "paymentGatewayId", value: paymentGatewayId) + .setParam(key: "paymentMethodId", value: paymentMethodId) + + return request + } + + public class SetAsDefaultTokenizer: ClientTokenizer { + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + + public var paymentMethodId: BaseTokenizedObject { + get { + return self.append("paymentMethodId") + } + } + } + + /** Set a payment method as default for the household. */ + public static func setAsDefault(paymentGatewayId: Int, paymentMethodId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdpaymentmethod", action: "setAsDefault") + .setParam(key: "paymentGatewayId", value: paymentGatewayId) + .setParam(key: "paymentMethodId", value: paymentMethodId) + + return request + } +} diff --git a/KalturaClient/Classes/Services/HouseholdPremiumServiceService.swift b/KalturaClient/Classes/Services/HouseholdPremiumServiceService.swift new file mode 100644 index 000000000..49eae95a9 --- /dev/null +++ b/KalturaClient/Classes/Services/HouseholdPremiumServiceService.swift @@ -0,0 +1,47 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class HouseholdPremiumServiceService{ + + public class ListTokenizer: ClientTokenizer { + } + + /** Returns all the premium services allowed for the household */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdpremiumservice", action: "list") + + return request + } +} diff --git a/KalturaClient/Classes/Services/HouseholdQuotaService.swift b/KalturaClient/Classes/Services/HouseholdQuotaService.swift new file mode 100644 index 000000000..858d599ce --- /dev/null +++ b/KalturaClient/Classes/Services/HouseholdQuotaService.swift @@ -0,0 +1,47 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class HouseholdQuotaService{ + + public class GetTokenizer: ClientTokenizer { + } + + /** Returns the household's quota data */ + public static func get() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdquota", action: "get") + + return request + } +} diff --git a/KalturaClient/Classes/Services/HouseholdSegmentService.swift b/KalturaClient/Classes/Services/HouseholdSegmentService.swift new file mode 100644 index 000000000..253d85cd4 --- /dev/null +++ b/KalturaClient/Classes/Services/HouseholdSegmentService.swift @@ -0,0 +1,88 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class HouseholdSegmentService{ + + public class AddTokenizer: ClientTokenizer { + + public func objectToAdd() -> T { + return T(self.append("objectToAdd")) + } + } + + /** householdSegment add */ + public static func add(objectToAdd: HouseholdSegment) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdsegment", action: "add") + .setParam(key: "objectToAdd", value: objectToAdd) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Remove segment from household */ + public static func delete(id: Int64) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "householdsegment", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Gets all HouseholdSegment items for a household */ + public static func list(filter: HouseholdSegmentFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householdsegment", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/HouseholdService.swift b/KalturaClient/Classes/Services/HouseholdService.swift new file mode 100644 index 000000000..a19b8f4b1 --- /dev/null +++ b/KalturaClient/Classes/Services/HouseholdService.swift @@ -0,0 +1,178 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class HouseholdService{ + + public class AddTokenizer: ClientTokenizer { + + public func household() -> T { + return T(self.append("household")) + } + } + + /** Creates a household for the user */ + public static func add(household: Household) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "household", action: "add") + .setParam(key: "household", value: household) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + public static func delete() -> RequestBuilder { + return delete(id: nil) + } + + /** Fully delete a household. Delete all of the household information, including + users, devices, entitlements, payment methods and notification date. */ + public static func delete(id: Int?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "household", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + public static func get() -> RequestBuilder { + return get(id: nil) + } + + /** Returns the household model */ + public static func get(id: Int?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "household", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class PurgeTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Purge a household. Delete all of the household information, including users, + devices, entitlements, payment methods and notification date. */ + public static func purge(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "household", action: "purge") + .setParam(key: "id", value: id) + + return request + } + + public class ResetFrequencyTokenizer: ClientTokenizer { + + public var frequencyType: BaseTokenizedObject { + get { + return self.append("frequencyType") + } + } + } + + /** Reset a household’s time limitation for removing user or device */ + public static func resetFrequency(frequencyType: HouseholdFrequencyType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "household", action: "resetFrequency") + .setParam(key: "frequencyType", value: frequencyType.rawValue) + + return request + } + + public class ResumeTokenizer: ClientTokenizer { + } + + /** Resumed a given household service to its previous service settings */ + public static func resume() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "household", action: "resume") + + return request + } + + public class SuspendTokenizer: ClientTokenizer { + + public var roleId: BaseTokenizedObject { + get { + return self.append("roleId") + } + } + } + + public static func suspend() -> RequestBuilder { + return suspend(roleId: nil) + } + + /** Suspend a given household service. Sets the household status to + “suspended".The household service settings are maintained for later + resume */ + public static func suspend(roleId: Int?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "household", action: "suspend") + .setParam(key: "roleId", value: roleId) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public func household() -> T { + return T(self.append("household")) + } + } + + /** Update the household name and description */ + public static func update(household: Household) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "household", action: "update") + .setParam(key: "household", value: household) + + return request + } +} diff --git a/KalturaClient/Classes/Services/HouseholdUserService.swift b/KalturaClient/Classes/Services/HouseholdUserService.swift new file mode 100644 index 000000000..50b39bd76 --- /dev/null +++ b/KalturaClient/Classes/Services/HouseholdUserService.swift @@ -0,0 +1,88 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class HouseholdUserService{ + + public class AddTokenizer: ClientTokenizer { + + public func householdUser() -> T { + return T(self.append("householdUser")) + } + } + + /** Adds a user to household */ + public static func add(householdUser: HouseholdUser) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householduser", action: "add") + .setParam(key: "householdUser", value: householdUser) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Removes a user from household */ + public static func delete(id: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householduser", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Returns the users within the household */ + public static func list(filter: HouseholdUserFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "householduser", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/ImageService.swift b/KalturaClient/Classes/Services/ImageService.swift new file mode 100644 index 000000000..d58830a6d --- /dev/null +++ b/KalturaClient/Classes/Services/ImageService.swift @@ -0,0 +1,106 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class ImageService{ + + public class AddTokenizer: ClientTokenizer { + + public func image() -> T { + return T(self.append("image")) + } + } + + /** Add a new image */ + public static func add(image: Image) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "image", action: "add") + .setParam(key: "image", value: image) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete an existing image */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "image", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Get the list of images by different filtering */ + public static func list(filter: ImageFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "image", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class SetContentTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func content() -> T { + return T(self.append("content")) + } + } + + /** Sets the content of an existing image */ + public static func setContent(id: Int64, content: ContentResource) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "image", action: "setContent") + .setParam(key: "id", value: id) + .setParam(key: "content", value: content) + + return request + } +} diff --git a/KalturaClient/Classes/Services/ImageTypeService.swift b/KalturaClient/Classes/Services/ImageTypeService.swift new file mode 100644 index 000000000..0ac1a9dfb --- /dev/null +++ b/KalturaClient/Classes/Services/ImageTypeService.swift @@ -0,0 +1,110 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class ImageTypeService{ + + public class AddTokenizer: ClientTokenizer { + + public func imageType() -> T { + return T(self.append("imageType")) + } + } + + /** Add a new image type */ + public static func add(imageType: ImageType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "imagetype", action: "add") + .setParam(key: "imageType", value: imageType) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete an existing image type */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "imagetype", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Get the list of image types for the partner */ + public static func list(filter: ImageTypeFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "imagetype", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func imageType() -> T { + return T(self.append("imageType")) + } + } + + /** Update an existing image type */ + public static func update(id: Int64, imageType: ImageType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "imagetype", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "imageType", value: imageType) + + return request + } +} diff --git a/KalturaClient/Classes/Services/InboxMessageService.swift b/KalturaClient/Classes/Services/InboxMessageService.swift new file mode 100644 index 000000000..290c0f0b1 --- /dev/null +++ b/KalturaClient/Classes/Services/InboxMessageService.swift @@ -0,0 +1,106 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class InboxMessageService{ + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** TBD */ + public static func get(id: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "inboxmessage", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: InboxMessageFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** List inbox messages */ + public static func list(filter: InboxMessageFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "inboxmessage", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } + + public class UpdateStatusTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + } + + /** Updates the message status. */ + public static func updateStatus(id: String, status: InboxMessageStatus) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "inboxmessage", action: "updateStatus") + .setParam(key: "id", value: id) + .setParam(key: "status", value: status.rawValue) + + return request + } +} diff --git a/KalturaClient/Classes/Services/IngestProfileService.swift b/KalturaClient/Classes/Services/IngestProfileService.swift new file mode 100644 index 000000000..b2209fad1 --- /dev/null +++ b/KalturaClient/Classes/Services/IngestProfileService.swift @@ -0,0 +1,101 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class IngestProfileService{ + + public class AddTokenizer: ClientTokenizer { + + public func ingestProfile() -> T { + return T(self.append("ingestProfile")) + } + } + + /** Insert new ingest profile for partner */ + public static func add(ingestProfile: IngestProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ingestprofile", action: "add") + .setParam(key: "ingestProfile", value: ingestProfile) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var ingestProfileId: BaseTokenizedObject { + get { + return self.append("ingestProfileId") + } + } + } + + /** Delete ingest profiles by ingest profiles id */ + public static func delete(ingestProfileId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ingestprofile", action: "delete") + .setParam(key: "ingestProfileId", value: ingestProfileId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Returns all ingest profiles for partner */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ingestprofile", action: "list") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var ingestProfileId: BaseTokenizedObject { + get { + return self.append("ingestProfileId") + } + } + + public func ingestProfile() -> T { + return T(self.append("ingestProfile")) + } + } + + /** Update ingest profile details */ + public static func update(ingestProfileId: Int, ingestProfile: IngestProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ingestprofile", action: "update") + .setParam(key: "ingestProfileId", value: ingestProfileId) + .setParam(key: "ingestProfile", value: ingestProfile) + + return request + } +} diff --git a/KalturaClient/Classes/Services/IotProfileService.swift b/KalturaClient/Classes/Services/IotProfileService.swift new file mode 100644 index 000000000..9366ff765 --- /dev/null +++ b/KalturaClient/Classes/Services/IotProfileService.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class IotProfileService{ + + public class AddTokenizer: ClientTokenizer { + + public func objectToAdd() -> T { + return T(self.append("objectToAdd")) + } + } + + /** Add an object */ + public static func add(objectToAdd: IotProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "iotprofile", action: "add") + .setParam(key: "objectToAdd", value: objectToAdd) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func objectToUpdate() -> T { + return T(self.append("objectToUpdate")) + } + } + + /** Update an object */ + public static func update(id: Int64, objectToUpdate: IotProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "iotprofile", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "objectToUpdate", value: objectToUpdate) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Get an object */ + public static func get(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "iotprofile", action: "get") + .setParam(key: "id", value: id) + + return request + } +} diff --git a/KalturaClient/Classes/Services/IotService.swift b/KalturaClient/Classes/Services/IotService.swift new file mode 100644 index 000000000..f4ba098c9 --- /dev/null +++ b/KalturaClient/Classes/Services/IotService.swift @@ -0,0 +1,57 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class IotService{ + + public class GetClientConfigurationTokenizer: ClientTokenizer { + } + + /** Get iot Client Configuration */ + public static func getClientConfiguration() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "iot", action: "getClientConfiguration") + + return request + } + + public class RegisterTokenizer: ClientTokenizer { + } + + /** Register IOT device */ + public static func register() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "iot", action: "register") + + return request + } +} diff --git a/KalturaClient/Classes/Services/LanguageService.swift b/KalturaClient/Classes/Services/LanguageService.swift new file mode 100644 index 000000000..729a53517 --- /dev/null +++ b/KalturaClient/Classes/Services/LanguageService.swift @@ -0,0 +1,53 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class LanguageService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Get the list of languages for the partner with option to filter by language + codes */ + public static func list(filter: LanguageFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "language", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/LicensedUrlService.swift b/KalturaClient/Classes/Services/LicensedUrlService.swift new file mode 100644 index 000000000..3ea2eede5 --- /dev/null +++ b/KalturaClient/Classes/Services/LicensedUrlService.swift @@ -0,0 +1,52 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class LicensedUrlService{ + + public class GetTokenizer: ClientTokenizer { + + public func request() -> T { + return T(self.append("request")) + } + } + + /** Get the URL for playing an asset - program, media or recording */ + public static func get(request: LicensedUrlBaseRequest) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "licensedurl", action: "get") + .setParam(key: "request", value: request) + + return request + } +} diff --git a/KalturaClient/Classes/Services/MediaConcurrencyRuleService.swift b/KalturaClient/Classes/Services/MediaConcurrencyRuleService.swift new file mode 100644 index 000000000..e5d5e9656 --- /dev/null +++ b/KalturaClient/Classes/Services/MediaConcurrencyRuleService.swift @@ -0,0 +1,47 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class MediaConcurrencyRuleService{ + + public class ListTokenizer: ClientTokenizer { + } + + /** Get the list of meta mappings for the partner */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "mediaconcurrencyrule", action: "list") + + return request + } +} diff --git a/KalturaClient/Classes/Services/MediaFileService.swift b/KalturaClient/Classes/Services/MediaFileService.swift new file mode 100644 index 000000000..006668c27 --- /dev/null +++ b/KalturaClient/Classes/Services/MediaFileService.swift @@ -0,0 +1,110 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class MediaFileService{ + + public class AddTokenizer: ClientTokenizer { + + public func mediaFile() -> T { + return T(self.append("mediaFile")) + } + } + + /** Add a new media file */ + public static func add(mediaFile: MediaFile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "mediafile", action: "add") + .setParam(key: "mediaFile", value: mediaFile) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete an existing media file */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "mediafile", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Returns a list of media-file */ + public static func list(filter: MediaFileFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "mediafile", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func mediaFile() -> T { + return T(self.append("mediaFile")) + } + } + + /** update an existing media file */ + public static func update(id: Int64, mediaFile: MediaFile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "mediafile", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "mediaFile", value: mediaFile) + + return request + } +} diff --git a/KalturaClient/Classes/Services/MediaFileTypeService.swift b/KalturaClient/Classes/Services/MediaFileTypeService.swift new file mode 100644 index 000000000..0b849b066 --- /dev/null +++ b/KalturaClient/Classes/Services/MediaFileTypeService.swift @@ -0,0 +1,101 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class MediaFileTypeService{ + + public class AddTokenizer: ClientTokenizer { + + public func mediaFileType() -> T { + return T(self.append("mediaFileType")) + } + } + + /** Add new media-file type */ + public static func add(mediaFileType: MediaFileType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "mediafiletype", action: "add") + .setParam(key: "mediaFileType", value: mediaFileType) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete media-file type by id */ + public static func delete(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "mediafiletype", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Returns a list of media-file types */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "mediafiletype", action: "list") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func mediaFileType() -> T { + return T(self.append("mediaFileType")) + } + } + + /** Update existing media-file type */ + public static func update(id: Int, mediaFileType: MediaFileType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "mediafiletype", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "mediaFileType", value: mediaFileType) + + return request + } +} diff --git a/KalturaClient/Classes/Services/MessageTemplateService.swift b/KalturaClient/Classes/Services/MessageTemplateService.swift new file mode 100644 index 000000000..8c116fec7 --- /dev/null +++ b/KalturaClient/Classes/Services/MessageTemplateService.swift @@ -0,0 +1,76 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class MessageTemplateService{ + + public class GetTokenizer: ClientTokenizer { + + public var messageType: BaseTokenizedObject { + get { + return self.append("messageType") + } + } + } + + /** Retrieve a message template used in push notifications and inbox */ + public static func get(messageType: MessageTemplateType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "messagetemplate", action: "get") + .setParam(key: "messageType", value: messageType.rawValue) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var messageType: BaseTokenizedObject { + get { + return self.append("messageType") + } + } + + public func template() -> T { + return T(self.append("template")) + } + } + + /** Set the account’s push notifications and inbox messages templates */ + public static func update(messageType: MessageTemplateType, template: MessageTemplate) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "messagetemplate", action: "update") + .setParam(key: "messageType", value: messageType.rawValue) + .setParam(key: "template", value: template) + + return request + } +} diff --git a/KalturaClient/Classes/Services/MetaService.swift b/KalturaClient/Classes/Services/MetaService.swift new file mode 100644 index 000000000..f38b07e53 --- /dev/null +++ b/KalturaClient/Classes/Services/MetaService.swift @@ -0,0 +1,110 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class MetaService{ + + public class AddTokenizer: ClientTokenizer { + + public func meta() -> T { + return T(self.append("meta")) + } + } + + /** Add a new meta */ + public static func add(meta: Meta) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "meta", action: "add") + .setParam(key: "meta", value: meta) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete an existing meta */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "meta", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Return a list of metas for the account with optional filter */ + public static func list(filter: MetaFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "meta", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func meta() -> T { + return T(self.append("meta")) + } + } + + /** Update an existing meta */ + public static func update(id: Int64, meta: Meta) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "meta", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "meta", value: meta) + + return request + } +} diff --git a/KalturaClient/Classes/Services/NotificationService.swift b/KalturaClient/Classes/Services/NotificationService.swift new file mode 100644 index 000000000..65b37ed38 --- /dev/null +++ b/KalturaClient/Classes/Services/NotificationService.swift @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class NotificationService{ + + public class RegisterTokenizer: ClientTokenizer { + + public var identifier: BaseTokenizedObject { + get { + return self.append("identifier") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** TBD */ + public static func register(identifier: String, type: NotificationType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "notification", action: "register") + .setParam(key: "identifier", value: identifier) + .setParam(key: "type", value: type.rawValue) + + return request + } + + public class SendPushTokenizer: ClientTokenizer { + + public override var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + + public func pushMessage() -> T { + return T(self.append("pushMessage")) + } + } + + /** Sends push notification to user devices */ + public static func sendPush(userId: Int, pushMessage: PushMessage) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "notification", action: "sendPush") + .setParam(key: "userId", value: userId) + .setParam(key: "pushMessage", value: pushMessage) + + return request + } + + public class SendSmsTokenizer: ClientTokenizer { + + public var message: BaseTokenizedObject { + get { + return self.append("message") + } + } + } + + /** Sends SMS notification to user */ + public static func sendSms(message: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "notification", action: "sendSms") + .setParam(key: "message", value: message) + + return request + } + + public class SetDevicePushTokenTokenizer: ClientTokenizer { + + public var pushToken: BaseTokenizedObject { + get { + return self.append("pushToken") + } + } + } + + /** Registers the device push token to the push service */ + public static func setDevicePushToken(pushToken: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "notification", action: "setDevicePushToken") + .setParam(key: "pushToken", value: pushToken) + + return request + } +} diff --git a/KalturaClient/Classes/Services/NotificationsPartnerSettingsService.swift b/KalturaClient/Classes/Services/NotificationsPartnerSettingsService.swift new file mode 100644 index 000000000..0f815e2a0 --- /dev/null +++ b/KalturaClient/Classes/Services/NotificationsPartnerSettingsService.swift @@ -0,0 +1,62 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class NotificationsPartnerSettingsService{ + + public class GetTokenizer: ClientTokenizer { + } + + /** Retrieve the partner notification settings. */ + public static func get() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "notificationspartnersettings", action: "get") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public func settings() -> T { + return T(self.append("settings")) + } + } + + /** Update the account notification settings */ + public static func update(settings: NotificationsPartnerSettings) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "notificationspartnersettings", action: "update") + .setParam(key: "settings", value: settings) + + return request + } +} diff --git a/KalturaClient/Classes/Services/NotificationsSettingsService.swift b/KalturaClient/Classes/Services/NotificationsSettingsService.swift new file mode 100644 index 000000000..826efd721 --- /dev/null +++ b/KalturaClient/Classes/Services/NotificationsSettingsService.swift @@ -0,0 +1,91 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class NotificationsSettingsService{ + + public class GetTokenizer: ClientTokenizer { + } + + /** Retrieve the user’s notification settings. */ + public static func get() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "notificationssettings", action: "get") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public func settings() -> T { + return T(self.append("settings")) + } + } + + /** Update the user’s notification settings. */ + public static func update(settings: NotificationsSettings) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "notificationssettings", action: "update") + .setParam(key: "settings", value: settings) + + return request + } + + public class UpdateWithTokenTokenizer: ClientTokenizer { + + public func settings() -> T { + return T(self.append("settings")) + } + + public var token: BaseTokenizedObject { + get { + return self.append("token") + } + } + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + } + + /** Update the user’s notification settings. */ + public static func updateWithToken(settings: NotificationsSettings, token: String, partnerId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "notificationssettings", action: "updateWithToken") + .setParam(key: "settings", value: settings) + .setParam(key: "token", value: token) + .setParam(key: "partnerId", value: partnerId) + + return request + } +} diff --git a/KalturaClient/Classes/Services/OssAdapterProfileService.swift b/KalturaClient/Classes/Services/OssAdapterProfileService.swift new file mode 100644 index 000000000..7abe59b11 --- /dev/null +++ b/KalturaClient/Classes/Services/OssAdapterProfileService.swift @@ -0,0 +1,135 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class OssAdapterProfileService{ + + public class AddTokenizer: ClientTokenizer { + + public func ossAdapter() -> T { + return T(self.append("ossAdapter")) + } + } + + /** Insert new OSS adapter for partner */ + public static func add(ossAdapter: OSSAdapterProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ossadapterprofile", action: "add") + .setParam(key: "ossAdapter", value: ossAdapter) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var ossAdapterId: BaseTokenizedObject { + get { + return self.append("ossAdapterId") + } + } + } + + /** Delete OSS adapter by OSS adapter id */ + public static func delete(ossAdapterId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ossadapterprofile", action: "delete") + .setParam(key: "ossAdapterId", value: ossAdapterId) + + return request + } + + public class GenerateSharedSecretTokenizer: ClientTokenizer { + + public var ossAdapterId: BaseTokenizedObject { + get { + return self.append("ossAdapterId") + } + } + } + + /** Generate oss adapter shared secret */ + public static func generateSharedSecret(ossAdapterId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ossadapterprofile", action: "generateSharedSecret") + .setParam(key: "ossAdapterId", value: ossAdapterId) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Returns all OSS adapters for partner : id + name */ + public static func get(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ossadapterprofile", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Returns all OSS adapters for partner : id + name */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ossadapterprofile", action: "list") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var ossAdapterId: BaseTokenizedObject { + get { + return self.append("ossAdapterId") + } + } + + public func ossAdapter() -> T { + return T(self.append("ossAdapter")) + } + } + + /** Update OSS adapter details */ + public static func update(ossAdapterId: Int, ossAdapter: OSSAdapterProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ossadapterprofile", action: "update") + .setParam(key: "ossAdapterId", value: ossAdapterId) + .setParam(key: "ossAdapter", value: ossAdapter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/OttCategoryService.swift b/KalturaClient/Classes/Services/OttCategoryService.swift new file mode 100644 index 000000000..3a56724fb --- /dev/null +++ b/KalturaClient/Classes/Services/OttCategoryService.swift @@ -0,0 +1,54 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class OttCategoryService{ + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Retrieve the list of categories (hierarchical) and their associated channels */ + public static func get(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottcategory", action: "get") + .setParam(key: "id", value: id) + + return request + } +} diff --git a/KalturaClient/Classes/Services/OttUserService.swift b/KalturaClient/Classes/Services/OttUserService.swift new file mode 100644 index 000000000..666c53bf1 --- /dev/null +++ b/KalturaClient/Classes/Services/OttUserService.swift @@ -0,0 +1,505 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class OttUserService{ + + public class ActivateTokenizer: ClientTokenizer { + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var username: BaseTokenizedObject { + get { + return self.append("username") + } + } + + public var activationToken: BaseTokenizedObject { + get { + return self.append("activationToken") + } + } + } + + /** Activate the account by activation token */ + public static func activate(partnerId: Int, username: String, activationToken: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "activate") + .setParam(key: "partnerId", value: partnerId) + .setParam(key: "username", value: username) + .setParam(key: "activationToken", value: activationToken) + + return request + } + + public class AddRoleTokenizer: ClientTokenizer { + + public var roleId: BaseTokenizedObject { + get { + return self.append("roleId") + } + } + } + + /** Deprecate - use Register or Update actions instead by setting user.roleIds + parameter */ + public static func addRole(roleId: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "addRole") + .setParam(key: "roleId", value: roleId) + + return request + } + + public class AnonymousLoginTokenizer: ClientTokenizer { + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + } + + public static func anonymousLogin(partnerId: Int) -> RequestBuilder { + return anonymousLogin(partnerId: partnerId, udid: nil) + } + + /** Returns tokens (KS and refresh token) for anonymous access */ + public static func anonymousLogin(partnerId: Int, udid: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "anonymousLogin") + .setParam(key: "partnerId", value: partnerId) + .setParam(key: "udid", value: udid) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + } + + /** Permanently delete a user. User to delete cannot be an exclusive household + master, and cannot be default user. */ + public static func delete() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "delete") + + return request + } + + public class GetTokenizer: ClientTokenizer { + } + + /** Retrieving users' data */ + public static func get() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "get") + + return request + } + + public class GetEncryptedUserIdTokenizer: ClientTokenizer { + } + + /** Returns the identifier of the user encrypted with SHA1 using configured key */ + public static func getEncryptedUserId() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "getEncryptedUserId") + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Returns list of OTTUser (limited to 500 items). Filters by username/external + identifier/idIn or roleIdIn */ + public static func list(filter: OTTUserFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class LoginTokenizer: ClientTokenizer { + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var username: BaseTokenizedObject { + get { + return self.append("username") + } + } + + public var password: BaseTokenizedObject { + get { + return self.append("password") + } + } + + public var extraParams: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("extraParams")) + } + } + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + } + + public static func login(partnerId: Int) -> RequestBuilder { + return login(partnerId: partnerId, username: nil) + } + + public static func login(partnerId: Int, username: String?) -> RequestBuilder { + return login(partnerId: partnerId, username: username, password: nil) + } + + public static func login(partnerId: Int, username: String?, password: String?) -> RequestBuilder { + return login(partnerId: partnerId, username: username, password: password, extraParams: nil) + } + + public static func login(partnerId: Int, username: String?, password: String?, extraParams: Dictionary?) -> RequestBuilder { + return login(partnerId: partnerId, username: username, password: password, extraParams: extraParams, udid: nil) + } + + /** login with user name and password. */ + public static func login(partnerId: Int, username: String?, password: String?, extraParams: Dictionary?, udid: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "login") + .setParam(key: "partnerId", value: partnerId) + .setParam(key: "username", value: username) + .setParam(key: "password", value: password) + .setParam(key: "extraParams", value: extraParams) + .setParam(key: "udid", value: udid) + + return request + } + + public class LoginWithPinTokenizer: ClientTokenizer { + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var pin: BaseTokenizedObject { + get { + return self.append("pin") + } + } + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + + public var secret: BaseTokenizedObject { + get { + return self.append("secret") + } + } + } + + public static func loginWithPin(partnerId: Int, pin: String) -> RequestBuilder { + return loginWithPin(partnerId: partnerId, pin: pin, udid: nil) + } + + public static func loginWithPin(partnerId: Int, pin: String, udid: String?) -> RequestBuilder { + return loginWithPin(partnerId: partnerId, pin: pin, udid: udid, secret: nil) + } + + /** User sign-in via a time-expired sign-in PIN. */ + public static func loginWithPin(partnerId: Int, pin: String, udid: String?, secret: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "loginWithPin") + .setParam(key: "partnerId", value: partnerId) + .setParam(key: "pin", value: pin) + .setParam(key: "udid", value: udid) + .setParam(key: "secret", value: secret) + + return request + } + + public class LogoutTokenizer: ClientTokenizer { + } + + /** Logout the calling user. */ + public static func logout() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "logout") + + return request + } + + public class RegisterTokenizer: ClientTokenizer { + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public func user() -> T { + return T(self.append("user")) + } + + public var password: BaseTokenizedObject { + get { + return self.append("password") + } + } + } + + /** Sign up a new user. */ + public static func register(partnerId: Int, user: OTTUser, password: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "register") + .setParam(key: "partnerId", value: partnerId) + .setParam(key: "user", value: user) + .setParam(key: "password", value: password) + + return request + } + + public class ResendActivationTokenTokenizer: ClientTokenizer { + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var username: BaseTokenizedObject { + get { + return self.append("username") + } + } + } + + /** Resend the activation token to a user */ + public static func resendActivationToken(partnerId: Int, username: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "resendActivationToken") + .setParam(key: "partnerId", value: partnerId) + .setParam(key: "username", value: username) + + return request + } + + public class ResetPasswordTokenizer: ClientTokenizer { + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var username: BaseTokenizedObject { + get { + return self.append("username") + } + } + + public var templateName: BaseTokenizedObject { + get { + return self.append("templateName") + } + } + } + + public static func resetPassword(partnerId: Int, username: String) -> RequestBuilder { + return resetPassword(partnerId: partnerId, username: username, templateName: nil) + } + + /** Send an e-mail with URL to enable the user to set new password. */ + public static func resetPassword(partnerId: Int, username: String, templateName: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "resetPassword") + .setParam(key: "partnerId", value: partnerId) + .setParam(key: "username", value: username) + .setParam(key: "templateName", value: templateName) + + return request + } + + public class SetInitialPasswordTokenizer: ClientTokenizer { + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var token: BaseTokenizedObject { + get { + return self.append("token") + } + } + + public var password: BaseTokenizedObject { + get { + return self.append("password") + } + } + } + + /** Renew the user's password after validating the token that sent as part + of URL in e-mail. */ + public static func setInitialPassword(partnerId: Int, token: String, password: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "setInitialPassword") + .setParam(key: "partnerId", value: partnerId) + .setParam(key: "token", value: token) + .setParam(key: "password", value: password) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public func user() -> T { + return T(self.append("user")) + } + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + public static func update(user: OTTUser) -> RequestBuilder { + return update(user: user, id: nil) + } + + /** Update user information */ + public static func update(user: OTTUser, id: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "update") + .setParam(key: "user", value: user) + .setParam(key: "id", value: id) + + return request + } + + public class UpdateDynamicDataTokenizer: ClientTokenizer { + + public var key: BaseTokenizedObject { + get { + return self.append("key") + } + } + + public func value() -> T { + return T(self.append("value")) + } + } + + /** Update user dynamic data */ + public static func updateDynamicData(key: String, value: StringValue) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "updateDynamicData") + .setParam(key: "key", value: key) + .setParam(key: "value", value: value) + + return request + } + + public class UpdateLoginDataTokenizer: ClientTokenizer { + + public var username: BaseTokenizedObject { + get { + return self.append("username") + } + } + + public var oldPassword: BaseTokenizedObject { + get { + return self.append("oldPassword") + } + } + + public var newPassword: BaseTokenizedObject { + get { + return self.append("newPassword") + } + } + } + + /** Given a user name and existing password, change to a new password. */ + public static func updateLoginData(username: String, oldPassword: String, newPassword: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ottuser", action: "updateLoginData") + .setParam(key: "username", value: username) + .setParam(key: "oldPassword", value: oldPassword) + .setParam(key: "newPassword", value: newPassword) + + return request + } + + public class UpdatePasswordTokenizer: ClientTokenizer { + + public override var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + + public var password: BaseTokenizedObject { + get { + return self.append("password") + } + } + } + + /** Update the user's existing password. */ + public static func updatePassword(userId: Int, password: String) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "ottuser", action: "updatePassword") + .setParam(key: "userId", value: userId) + .setParam(key: "password", value: password) + + return request + } +} diff --git a/KalturaClient/Classes/Services/ParentalRuleService.swift b/KalturaClient/Classes/Services/ParentalRuleService.swift new file mode 100644 index 000000000..695250579 --- /dev/null +++ b/KalturaClient/Classes/Services/ParentalRuleService.swift @@ -0,0 +1,192 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class ParentalRuleService{ + + public class AddTokenizer: ClientTokenizer { + + public func parentalRule() -> T { + return T(self.append("parentalRule")) + } + } + + /** Add a new parentalRule */ + public static func add(parentalRule: ParentalRule) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "parentalrule", action: "add") + .setParam(key: "parentalRule", value: parentalRule) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete an existing parentalRule */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "parentalrule", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class DisableTokenizer: ClientTokenizer { + + public var ruleId: BaseTokenizedObject { + get { + return self.append("ruleId") + } + } + + public var entityReference: BaseTokenizedObject { + get { + return self.append("entityReference") + } + } + } + + /** Disables a parental rule that was previously defined by the household master. + Disable can be at specific user or household level. */ + public static func disable(ruleId: Int64, entityReference: EntityReferenceBy) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "parentalrule", action: "disable") + .setParam(key: "ruleId", value: ruleId) + .setParam(key: "entityReference", value: entityReference.rawValue) + + return request + } + + public class DisableDefaultTokenizer: ClientTokenizer { + + public var entityReference: BaseTokenizedObject { + get { + return self.append("entityReference") + } + } + } + + /** Disables a parental rule that was defined at account level. Disable can be at + specific user or household level. */ + public static func disableDefault(entityReference: EntityReferenceBy) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "parentalrule", action: "disableDefault") + .setParam(key: "entityReference", value: entityReference.rawValue) + + return request + } + + public class EnableTokenizer: ClientTokenizer { + + public var ruleId: BaseTokenizedObject { + get { + return self.append("ruleId") + } + } + + public var entityReference: BaseTokenizedObject { + get { + return self.append("entityReference") + } + } + } + + /** Enable a parental rules for a user */ + public static func enable(ruleId: Int64, entityReference: EntityReferenceBy) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "parentalrule", action: "enable") + .setParam(key: "ruleId", value: ruleId) + .setParam(key: "entityReference", value: entityReference.rawValue) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Get an existing parentalRule by identifier */ + public static func get(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "parentalrule", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Return the parental rules that applies for the user or household. Can include + rules that have been associated in account, household, or user level. + Association level is also specified in the response. */ + public static func list(filter: ParentalRuleFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "parentalrule", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func parentalRule() -> T { + return T(self.append("parentalRule")) + } + } + + /** Update an existing parentalRule */ + public static func update(id: Int64, parentalRule: ParentalRule) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "parentalrule", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "parentalRule", value: parentalRule) + + return request + } +} diff --git a/KalturaClient/Classes/Services/PartnerConfigurationService.swift b/KalturaClient/Classes/Services/PartnerConfigurationService.swift new file mode 100644 index 000000000..eb9353bcd --- /dev/null +++ b/KalturaClient/Classes/Services/PartnerConfigurationService.swift @@ -0,0 +1,67 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class PartnerConfigurationService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Get the list of PartnerConfiguration */ + public static func list(filter: PartnerConfigurationFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "partnerconfiguration", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public func configuration() -> T { + return T(self.append("configuration")) + } + } + + /** Update/set Partner Configuration */ + public static func update(configuration: PartnerConfiguration) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "partnerconfiguration", action: "update") + .setParam(key: "configuration", value: configuration) + + return request + } +} diff --git a/KalturaClient/Classes/Services/PartnerService.swift b/KalturaClient/Classes/Services/PartnerService.swift new file mode 100644 index 000000000..c454577a9 --- /dev/null +++ b/KalturaClient/Classes/Services/PartnerService.swift @@ -0,0 +1,47 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class PartnerService{ + + public class ExternalLoginTokenizer: ClientTokenizer { + } + + /** Returns a login session for external system (like OVP) */ + public static func externalLogin() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "partner", action: "externalLogin") + + return request + } +} diff --git a/KalturaClient/Classes/Services/PasswordPolicyService.swift b/KalturaClient/Classes/Services/PasswordPolicyService.swift new file mode 100644 index 000000000..8e34f1718 --- /dev/null +++ b/KalturaClient/Classes/Services/PasswordPolicyService.swift @@ -0,0 +1,109 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class PasswordPolicyService{ + + public class AddTokenizer: ClientTokenizer { + + public func objectToAdd() -> T { + return T(self.append("objectToAdd")) + } + } + + /** Add an object */ + public static func add(objectToAdd: PasswordPolicy) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "passwordpolicy", action: "add") + .setParam(key: "objectToAdd", value: objectToAdd) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func objectToUpdate() -> T { + return T(self.append("objectToUpdate")) + } + } + + /** Update an object */ + public static func update(id: Int64, objectToUpdate: PasswordPolicy) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "passwordpolicy", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "objectToUpdate", value: objectToUpdate) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete an object */ + public static func delete(id: Int64) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "passwordpolicy", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: PasswordPolicyFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "passwordpolicy", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/PaymentGatewayProfileService.swift b/KalturaClient/Classes/Services/PaymentGatewayProfileService.swift new file mode 100644 index 000000000..90f9441b3 --- /dev/null +++ b/KalturaClient/Classes/Services/PaymentGatewayProfileService.swift @@ -0,0 +1,149 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class PaymentGatewayProfileService{ + + public class AddTokenizer: ClientTokenizer { + + public func paymentGateway() -> T { + return T(self.append("paymentGateway")) + } + } + + /** Insert new payment gateway for partner */ + public static func add(paymentGateway: PaymentGatewayProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "paymentgatewayprofile", action: "add") + .setParam(key: "paymentGateway", value: paymentGateway) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + } + + /** Delete payment gateway by payment gateway id */ + public static func delete(paymentGatewayId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "paymentgatewayprofile", action: "delete") + .setParam(key: "paymentGatewayId", value: paymentGatewayId) + + return request + } + + public class GenerateSharedSecretTokenizer: ClientTokenizer { + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + } + + /** Generate payment gateway shared secret */ + public static func generateSharedSecret(paymentGatewayId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "paymentgatewayprofile", action: "generateSharedSecret") + .setParam(key: "paymentGatewayId", value: paymentGatewayId) + + return request + } + + public class GetConfigurationTokenizer: ClientTokenizer { + + public var alias: BaseTokenizedObject { + get { + return self.append("alias") + } + } + + public var intent: BaseTokenizedObject { + get { + return self.append("intent") + } + } + + public var extraParameters: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("extraParameters")) + } + } + } + + /** Gets the Payment Gateway Configuration for the payment gateway identifier given */ + public static func getConfiguration(alias: String, intent: String, extraParameters: Array) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "paymentgatewayprofile", action: "getConfiguration") + .setParam(key: "alias", value: alias) + .setParam(key: "intent", value: intent) + .setParam(key: "extraParameters", value: extraParameters) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Returns all payment gateways for partner : id + name */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "paymentgatewayprofile", action: "list") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + + public func paymentGateway() -> T { + return T(self.append("paymentGateway")) + } + } + + /** Update payment gateway details */ + public static func update(paymentGatewayId: Int, paymentGateway: PaymentGatewayProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "paymentgatewayprofile", action: "update") + .setParam(key: "paymentGatewayId", value: paymentGatewayId) + .setParam(key: "paymentGateway", value: paymentGateway) + + return request + } +} diff --git a/KalturaClient/Classes/Services/PaymentMethodProfileService.swift b/KalturaClient/Classes/Services/PaymentMethodProfileService.swift new file mode 100644 index 000000000..a42403621 --- /dev/null +++ b/KalturaClient/Classes/Services/PaymentMethodProfileService.swift @@ -0,0 +1,106 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class PaymentMethodProfileService{ + + public class AddTokenizer: ClientTokenizer { + + public func paymentMethod() -> T { + return T(self.append("paymentMethod")) + } + } + + /** TBD */ + public static func add(paymentMethod: PaymentMethodProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "paymentmethodprofile", action: "add") + .setParam(key: "paymentMethod", value: paymentMethod) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var paymentMethodId: BaseTokenizedObject { + get { + return self.append("paymentMethodId") + } + } + } + + /** Delete payment method profile */ + public static func delete(paymentMethodId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "paymentmethodprofile", action: "delete") + .setParam(key: "paymentMethodId", value: paymentMethodId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** TBD */ + public static func list(filter: PaymentMethodProfileFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "paymentmethodprofile", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var paymentMethodId: BaseTokenizedObject { + get { + return self.append("paymentMethodId") + } + } + + public func paymentMethod() -> T { + return T(self.append("paymentMethod")) + } + } + + /** Update payment method */ + public static func update(paymentMethodId: Int, paymentMethod: PaymentMethodProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "paymentmethodprofile", action: "update") + .setParam(key: "paymentMethodId", value: paymentMethodId) + .setParam(key: "paymentMethod", value: paymentMethod) + + return request + } +} diff --git a/KalturaClient/Classes/Services/PermissionService.swift b/KalturaClient/Classes/Services/PermissionService.swift new file mode 100644 index 000000000..2f8b70654 --- /dev/null +++ b/KalturaClient/Classes/Services/PermissionService.swift @@ -0,0 +1,99 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class PermissionService{ + + public class AddTokenizer: ClientTokenizer { + + public func permission() -> T { + return T(self.append("permission")) + } + } + + /** Adds new permission */ + public static func add(permission: Permission) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "permission", action: "add") + .setParam(key: "permission", value: permission) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Deletes an existing permission */ + public static func delete(id: Int64) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "permission", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GetCurrentPermissionsTokenizer: ClientTokenizer { + } + + /** Returns permission names as comma separated string */ + public static func getCurrentPermissions() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "permission", action: "getCurrentPermissions") + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Retrieving permissions by identifiers, if filter is empty, returns all partner + permissions */ + public static func list(filter: PermissionFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "permission", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/PersonalFeedService.swift b/KalturaClient/Classes/Services/PersonalFeedService.swift new file mode 100644 index 000000000..8cf719339 --- /dev/null +++ b/KalturaClient/Classes/Services/PersonalFeedService.swift @@ -0,0 +1,61 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class PersonalFeedService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list(filter: PersonalFeedFilter) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** List user's feeds. Possible status codes: */ + public static func list(filter: PersonalFeedFilter, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "personalfeed", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/PersonalListService.swift b/KalturaClient/Classes/Services/PersonalListService.swift new file mode 100644 index 000000000..912b4847c --- /dev/null +++ b/KalturaClient/Classes/Services/PersonalListService.swift @@ -0,0 +1,98 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class PersonalListService{ + + public class AddTokenizer: ClientTokenizer { + + public func personalList() -> T { + return T(self.append("personalList")) + } + } + + /** Add a user's personal list item to follow. */ + public static func add(personalList: PersonalList) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "personallist", action: "add") + .setParam(key: "personalList", value: personalList) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var personalListId: BaseTokenizedObject { + get { + return self.append("personalListId") + } + } + } + + /** Remove followed item from user's personal list */ + public static func delete(personalListId: Int64) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "personallist", action: "delete") + .setParam(key: "personalListId", value: personalListId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: PersonalListFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** List user's tv personal item to follow. Possible status + codes: */ + public static func list(filter: PersonalListFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "personallist", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/PinService.swift b/KalturaClient/Classes/Services/PinService.swift new file mode 100644 index 000000000..d95e98949 --- /dev/null +++ b/KalturaClient/Classes/Services/PinService.swift @@ -0,0 +1,149 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class PinService{ + + public class GetTokenizer: ClientTokenizer { + + public var by: BaseTokenizedObject { + get { + return self.append("by") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var ruleId: BaseTokenizedObject { + get { + return self.append("ruleId") + } + } + } + + public static func get(by: EntityReferenceBy, type: PinType) -> RequestBuilder { + return get(by: by, type: type, ruleId: nil) + } + + /** Retrieve the parental or purchase PIN that applies for the household or user. + Includes specification of where the PIN was defined at – account, household or + user level */ + public static func get(by: EntityReferenceBy, type: PinType, ruleId: Int?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "pin", action: "get") + .setParam(key: "by", value: by.rawValue) + .setParam(key: "type", value: type.rawValue) + .setParam(key: "ruleId", value: ruleId) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var by: BaseTokenizedObject { + get { + return self.append("by") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public func pin() -> T { + return T(self.append("pin")) + } + + public var ruleId: BaseTokenizedObject { + get { + return self.append("ruleId") + } + } + } + + public static func update(by: EntityReferenceBy, type: PinType, pin: Pin) -> RequestBuilder { + return update(by: by, type: type, pin: pin, ruleId: nil) + } + + /** Set the parental or purchase PIN that applies for the user or the household. */ + public static func update(by: EntityReferenceBy, type: PinType, pin: Pin, ruleId: Int?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "pin", action: "update") + .setParam(key: "by", value: by.rawValue) + .setParam(key: "type", value: type.rawValue) + .setParam(key: "pin", value: pin) + .setParam(key: "ruleId", value: ruleId) + + return request + } + + public class ValidateTokenizer: ClientTokenizer { + + public var pin: BaseTokenizedObject { + get { + return self.append("pin") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var ruleId: BaseTokenizedObject { + get { + return self.append("ruleId") + } + } + } + + public static func validate(pin: String, type: PinType) -> RequestBuilder { + return validate(pin: pin, type: type, ruleId: nil) + } + + /** Validate a purchase or parental PIN for a user. */ + public static func validate(pin: String, type: PinType, ruleId: Int?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "pin", action: "validate") + .setParam(key: "pin", value: pin) + .setParam(key: "type", value: type.rawValue) + .setParam(key: "ruleId", value: ruleId) + + return request + } +} diff --git a/KalturaClient/Classes/Services/PlaybackProfileService.swift b/KalturaClient/Classes/Services/PlaybackProfileService.swift new file mode 100644 index 000000000..58965dc5b --- /dev/null +++ b/KalturaClient/Classes/Services/PlaybackProfileService.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class PlaybackProfileService{ + + public class AddTokenizer: ClientTokenizer { + + public func playbackProfile() -> T { + return T(self.append("playbackProfile")) + } + } + + /** Insert new Playback adapter for partner */ + public static func add(playbackProfile: PlaybackProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "playbackprofile", action: "add") + .setParam(key: "playbackProfile", value: playbackProfile) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete Playback adapter by Playback adapter id */ + public static func delete(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "playbackprofile", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GenerateSharedSecretTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Generate playback adapter shared secret */ + public static func generateSharedSecret(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "playbackprofile", action: "generateSharedSecret") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Returns all playback profiles for partner : id + name */ + public static func list(filter: PlaybackProfileFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "playbackprofile", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func playbackProfile() -> T { + return T(self.append("playbackProfile")) + } + } + + /** Update Playback adapter details */ + public static func update(id: Int, playbackProfile: PlaybackProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "playbackprofile", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "playbackProfile", value: playbackProfile) + + return request + } +} diff --git a/KalturaClient/Classes/Services/PpvService.swift b/KalturaClient/Classes/Services/PpvService.swift new file mode 100644 index 000000000..18b07dc35 --- /dev/null +++ b/KalturaClient/Classes/Services/PpvService.swift @@ -0,0 +1,73 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class PpvService{ + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Returns ppv object by internal identifier */ + public static func get(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ppv", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Returns all ppv objects */ + public static func list(filter: PpvFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ppv", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/PriceDetailsService.swift b/KalturaClient/Classes/Services/PriceDetailsService.swift new file mode 100644 index 000000000..6557bd504 --- /dev/null +++ b/KalturaClient/Classes/Services/PriceDetailsService.swift @@ -0,0 +1,56 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class PriceDetailsService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Returns the list of available prices, can be filtered by price IDs */ + public static func list(filter: PriceDetailsFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "pricedetails", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/PricePlanService.swift b/KalturaClient/Classes/Services/PricePlanService.swift new file mode 100644 index 000000000..15727f7b7 --- /dev/null +++ b/KalturaClient/Classes/Services/PricePlanService.swift @@ -0,0 +1,78 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class PricePlanService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Returns a list of price plans by IDs */ + public static func list(filter: PricePlanFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "priceplan", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func pricePlan() -> T { + return T(self.append("pricePlan")) + } + } + + /** Updates a price plan */ + public static func update(id: Int64, pricePlan: PricePlan) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "priceplan", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "pricePlan", value: pricePlan) + + return request + } +} diff --git a/KalturaClient/Classes/Services/ProductPriceService.swift b/KalturaClient/Classes/Services/ProductPriceService.swift new file mode 100644 index 000000000..dbefe8a5c --- /dev/null +++ b/KalturaClient/Classes/Services/ProductPriceService.swift @@ -0,0 +1,54 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class ProductPriceService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Returns a price and a purchase status for each subscription or/and media file, + for a given user (if passed) and with the consideration of a coupon code (if + passed). */ + public static func list(filter: ProductPriceFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "productprice", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/PurchaseSettingsService.swift b/KalturaClient/Classes/Services/PurchaseSettingsService.swift new file mode 100644 index 000000000..fbff8a9e6 --- /dev/null +++ b/KalturaClient/Classes/Services/PurchaseSettingsService.swift @@ -0,0 +1,77 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class PurchaseSettingsService{ + + public class GetTokenizer: ClientTokenizer { + + public var by: BaseTokenizedObject { + get { + return self.append("by") + } + } + } + + /** Retrieve the purchase settings. Includes specification of where + these settings were defined – account, household or user */ + public static func get(by: EntityReferenceBy) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "purchasesettings", action: "get") + .setParam(key: "by", value: by.rawValue) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var entityReference: BaseTokenizedObject { + get { + return self.append("entityReference") + } + } + + public func settings() -> T { + return T(self.append("settings")) + } + } + + /** Set a purchase PIN for the household or user */ + public static func update(entityReference: EntityReferenceBy, settings: PurchaseSettings) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "purchasesettings", action: "update") + .setParam(key: "entityReference", value: entityReference.rawValue) + .setParam(key: "settings", value: settings) + + return request + } +} diff --git a/KalturaClient/Classes/Services/RatioService.swift b/KalturaClient/Classes/Services/RatioService.swift new file mode 100644 index 000000000..c3b039850 --- /dev/null +++ b/KalturaClient/Classes/Services/RatioService.swift @@ -0,0 +1,84 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class RatioService{ + + public class AddTokenizer: ClientTokenizer { + + public func ratio() -> T { + return T(self.append("ratio")) + } + } + + /** Add new group ratio */ + public static func add(ratio: Ratio) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ratio", action: "add") + .setParam(key: "ratio", value: ratio) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Get the list of available ratios */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ratio", action: "list") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func ratio() -> T { + return T(self.append("ratio")) + } + } + + /** Update group ratio's PrecisionPrecentage */ + public static func update(id: Int64, ratio: Ratio) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ratio", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "ratio", value: ratio) + + return request + } +} diff --git a/KalturaClient/Classes/Services/RecommendationProfileService.swift b/KalturaClient/Classes/Services/RecommendationProfileService.swift new file mode 100644 index 000000000..03fb94e54 --- /dev/null +++ b/KalturaClient/Classes/Services/RecommendationProfileService.swift @@ -0,0 +1,118 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class RecommendationProfileService{ + + public class AddTokenizer: ClientTokenizer { + + public func recommendationEngine() -> T { + return T(self.append("recommendationEngine")) + } + } + + /** Insert new recommendation engine for partner */ + public static func add(recommendationEngine: RecommendationProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "recommendationprofile", action: "add") + .setParam(key: "recommendationEngine", value: recommendationEngine) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete recommendation engine by recommendation engine id */ + public static func delete(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "recommendationprofile", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GenerateSharedSecretTokenizer: ClientTokenizer { + + public var recommendationEngineId: BaseTokenizedObject { + get { + return self.append("recommendationEngineId") + } + } + } + + /** Generate recommendation engine shared secret */ + public static func generateSharedSecret(recommendationEngineId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "recommendationprofile", action: "generateSharedSecret") + .setParam(key: "recommendationEngineId", value: recommendationEngineId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Returns all recommendation engines for partner */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "recommendationprofile", action: "list") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var recommendationEngineId: BaseTokenizedObject { + get { + return self.append("recommendationEngineId") + } + } + + public func recommendationEngine() -> T { + return T(self.append("recommendationEngine")) + } + } + + /** Update recommendation engine details */ + public static func update(recommendationEngineId: Int, recommendationEngine: RecommendationProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "recommendationprofile", action: "update") + .setParam(key: "recommendationEngineId", value: recommendationEngineId) + .setParam(key: "recommendationEngine", value: recommendationEngine) + + return request + } +} diff --git a/KalturaClient/Classes/Services/RecordingService.swift b/KalturaClient/Classes/Services/RecordingService.swift new file mode 100644 index 000000000..6b7c1c3b3 --- /dev/null +++ b/KalturaClient/Classes/Services/RecordingService.swift @@ -0,0 +1,174 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class RecordingService{ + + public class AddTokenizer: ClientTokenizer { + + public func recording() -> T { + return T(self.append("recording")) + } + } + + /** Issue a record request for a program */ + public static func add(recording: Recording) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "recording", action: "add") + .setParam(key: "recording", value: recording) + + return request + } + + public class CancelTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Cancel a previously requested recording. Cancel recording can be called for + recording in status Scheduled or Recording Only */ + public static func cancel(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "recording", action: "cancel") + .setParam(key: "id", value: id) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete one or more user recording(s). Delete recording can be called only for + recordings in status Recorded */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "recording", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Returns recording object by internal identifier */ + public static func get(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "recording", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: RecordingFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Return a list of recordings for the household with optional filter by status and + KSQL. */ + public static func list(filter: RecordingFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "recording", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } + + public class ProtectTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Deprecated, please use recording.update instead Protects an + existing recording from the cleanup process for the defined protection period */ + public static func protect(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "recording", action: "protect") + .setParam(key: "id", value: id) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func recording() -> T { + return T(self.append("recording")) + } + } + + /** Update an existing recording with is protected field */ + public static func update(id: Int64, recording: Recording) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "recording", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "recording", value: recording) + + return request + } +} diff --git a/KalturaClient/Classes/Services/RegionService.swift b/KalturaClient/Classes/Services/RegionService.swift new file mode 100644 index 000000000..c91147813 --- /dev/null +++ b/KalturaClient/Classes/Services/RegionService.swift @@ -0,0 +1,115 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class RegionService{ + + public class AddTokenizer: ClientTokenizer { + + public func region() -> T { + return T(self.append("region")) + } + } + + /** Adds a new region for partner */ + public static func add(region: Region) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "region", action: "add") + .setParam(key: "region", value: region) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete an existing region */ + public static func delete(id: Int) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "region", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list(filter: BaseRegionFilter) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Returns all regions for the partner */ + public static func list(filter: BaseRegionFilter, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "region", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func region() -> T { + return T(self.append("region")) + } + } + + /** Update an existing region */ + public static func update(id: Int, region: Region) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "region", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "region", value: region) + + return request + } +} diff --git a/KalturaClient/Classes/Services/RegistrySettingsService.swift b/KalturaClient/Classes/Services/RegistrySettingsService.swift new file mode 100644 index 000000000..70f24ba09 --- /dev/null +++ b/KalturaClient/Classes/Services/RegistrySettingsService.swift @@ -0,0 +1,47 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class RegistrySettingsService{ + + public class ListTokenizer: ClientTokenizer { + } + + /** Retrieve the registry settings. */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "registrysettings", action: "list") + + return request + } +} diff --git a/KalturaClient/Classes/Services/ReminderService.swift b/KalturaClient/Classes/Services/ReminderService.swift new file mode 100644 index 000000000..fcfffb0ed --- /dev/null +++ b/KalturaClient/Classes/Services/ReminderService.swift @@ -0,0 +1,138 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class ReminderService{ + + public class AddTokenizer: ClientTokenizer { + + public func reminder() -> T { + return T(self.append("reminder")) + } + } + + /** Add a new future reminder */ + public static func add(reminder: Reminder) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "reminder", action: "add") + .setParam(key: "reminder", value: reminder) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** Delete a reminder. Reminder cannot be delete while being sent. */ + public static func delete(id: Int64, type: ReminderType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "reminder", action: "delete") + .setParam(key: "id", value: id) + .setParam(key: "type", value: type.rawValue) + + return request + } + + public class DeleteWithTokenTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var token: BaseTokenizedObject { + get { + return self.append("token") + } + } + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + } + + /** Delete a reminder. Reminder cannot be delete while being sent. */ + public static func deleteWithToken(id: Int64, type: ReminderType, token: String, partnerId: Int) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "reminder", action: "deleteWithToken") + .setParam(key: "id", value: id) + .setParam(key: "type", value: type.rawValue) + .setParam(key: "token", value: token) + .setParam(key: "partnerId", value: partnerId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list(filter: ReminderFilter) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Return a list of reminders with optional filter by KSQL. */ + public static func list(filter: ReminderFilter, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "reminder", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/ReportService.swift b/KalturaClient/Classes/Services/ReportService.swift new file mode 100644 index 000000000..f2707455b --- /dev/null +++ b/KalturaClient/Classes/Services/ReportService.swift @@ -0,0 +1,79 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class ReportService{ + + public class GetTokenizer: ClientTokenizer { + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + } + + /** Return a device configuration retrieval log request for a specific device. */ + public static func get(udid: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "report", action: "get") + .setParam(key: "udid", value: udid) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list(filter: ReportFilter) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Return device configurations retrieval log. Supports paging and can be filtered + with the parameter "FromData". */ + public static func list(filter: ReportFilter, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "report", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/SearchHistoryService.swift b/KalturaClient/Classes/Services/SearchHistoryService.swift new file mode 100644 index 000000000..9649b40c7 --- /dev/null +++ b/KalturaClient/Classes/Services/SearchHistoryService.swift @@ -0,0 +1,102 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class SearchHistoryService{ + + public class CleanTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func clean() -> RequestBuilder { + return clean(filter: nil) + } + + /** Clean the user’s search history */ + public static func clean(filter: SearchHistoryFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "searchhistory", action: "clean") + .setParam(key: "filter", value: filter) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete a specific search history. Possible error code: 2032 - + ItemNotFound */ + public static func delete(id: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "searchhistory", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: SearchHistoryFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Get user's last search requests */ + public static func list(filter: SearchHistoryFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "searchhistory", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/SegmentationTypeService.swift b/KalturaClient/Classes/Services/SegmentationTypeService.swift new file mode 100644 index 000000000..d74058056 --- /dev/null +++ b/KalturaClient/Classes/Services/SegmentationTypeService.swift @@ -0,0 +1,119 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class SegmentationTypeService{ + + public class AddTokenizer: ClientTokenizer { + + public func segmentationType() -> T { + return T(self.append("segmentationType")) + } + } + + /** Adds a new segmentation type to the system */ + public static func add(segmentationType: SegmentationType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "segmentationtype", action: "add") + .setParam(key: "segmentationType", value: segmentationType) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete a segmentation type from the system */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "segmentationtype", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: BaseSegmentationTypeFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Lists all segmentation types in group */ + public static func list(filter: BaseSegmentationTypeFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "segmentationtype", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var segmentationTypeId: BaseTokenizedObject { + get { + return self.append("segmentationTypeId") + } + } + + public func segmentationType() -> T { + return T(self.append("segmentationType")) + } + } + + /** Updates an existing segmentation type */ + public static func update(segmentationTypeId: Int64, segmentationType: SegmentationType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "segmentationtype", action: "update") + .setParam(key: "segmentationTypeId", value: segmentationTypeId) + .setParam(key: "segmentationType", value: segmentationType) + + return request + } +} diff --git a/KalturaClient/Classes/Services/SeriesRecordingService.swift b/KalturaClient/Classes/Services/SeriesRecordingService.swift new file mode 100644 index 000000000..b3f3906d3 --- /dev/null +++ b/KalturaClient/Classes/Services/SeriesRecordingService.swift @@ -0,0 +1,180 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class SeriesRecordingService{ + + public class AddTokenizer: ClientTokenizer { + + public func recording() -> T { + return T(self.append("recording")) + } + } + + /** Issue a record request for a complete season or series */ + public static func add(recording: SeriesRecording) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "seriesrecording", action: "add") + .setParam(key: "recording", value: recording) + + return request + } + + public class CancelTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Cancel a previously requested series recording. Cancel series recording can be + called for recording in status Scheduled or Recording Only */ + public static func cancel(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "seriesrecording", action: "cancel") + .setParam(key: "id", value: id) + + return request + } + + public class CancelByEpgIdTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var epgId: BaseTokenizedObject { + get { + return self.append("epgId") + } + } + } + + /** Cancel EPG recording that was recorded as part of series */ + public static func cancelByEpgId(id: Int64, epgId: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "seriesrecording", action: "cancelByEpgId") + .setParam(key: "id", value: id) + .setParam(key: "epgId", value: epgId) + + return request + } + + public class CancelBySeasonNumberTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var seasonNumber: BaseTokenizedObject { + get { + return self.append("seasonNumber") + } + } + } + + /** Cancel Season recording epgs that was recorded as part of series */ + public static func cancelBySeasonNumber(id: Int64, seasonNumber: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "seriesrecording", action: "cancelBySeasonNumber") + .setParam(key: "id", value: id) + .setParam(key: "seasonNumber", value: seasonNumber) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete series recording(s). Delete series recording can be called recordings in + any status */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "seriesrecording", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class DeleteBySeasonNumberTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var seasonNumber: BaseTokenizedObject { + get { + return self.append("seasonNumber") + } + } + } + + /** Delete Season recording epgs that was recorded as part of series */ + public static func deleteBySeasonNumber(id: Int64, seasonNumber: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "seriesrecording", action: "deleteBySeasonNumber") + .setParam(key: "id", value: id) + .setParam(key: "seasonNumber", value: seasonNumber) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Return a list of series recordings for the household with optional filter by + status and KSQL. */ + public static func list(filter: SeriesRecordingFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "seriesrecording", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/SessionService.swift b/KalturaClient/Classes/Services/SessionService.swift new file mode 100644 index 000000000..0a5014ac4 --- /dev/null +++ b/KalturaClient/Classes/Services/SessionService.swift @@ -0,0 +1,86 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class SessionService{ + + public class GetTokenizer: ClientTokenizer { + + public var session: BaseTokenizedObject { + get { + return self.append("session") + } + } + } + + public static func get() -> RequestBuilder { + return get(session: nil) + } + + /** Parses KS */ + public static func get(session: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "session", action: "get") + .setParam(key: "session", value: session) + + return request + } + + public class RevokeTokenizer: ClientTokenizer { + } + + /** Revokes all the sessions (KS) of a given user */ + public static func revoke() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "session", action: "revoke") + + return request + } + + public class SwitchUserTokenizer: ClientTokenizer { + + public var userIdToSwitch: BaseTokenizedObject { + get { + return self.append("userIdToSwitch") + } + } + } + + /** Switching the user in the session by generating a new session for a new user + within the same household */ + public static func switchUser(userIdToSwitch: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "session", action: "switchUser") + .setParam(key: "userIdToSwitch", value: userIdToSwitch) + + return request + } +} diff --git a/KalturaClient/Classes/Services/SocialActionService.swift b/KalturaClient/Classes/Services/SocialActionService.swift new file mode 100644 index 000000000..083cf7e74 --- /dev/null +++ b/KalturaClient/Classes/Services/SocialActionService.swift @@ -0,0 +1,93 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class SocialActionService{ + + public class AddTokenizer: ClientTokenizer { + + public func socialAction() -> T { + return T(self.append("socialAction")) + } + } + + /** Insert new user social action */ + public static func add(socialAction: SocialAction) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "socialaction", action: "add") + .setParam(key: "socialAction", value: socialAction) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** delete user social action */ + public static func delete(id: String) -> ArrayRequestBuilder, DeleteTokenizer> { + let request: ArrayRequestBuilder, DeleteTokenizer> = ArrayRequestBuilder, DeleteTokenizer>(service: "socialaction", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list(filter: SocialActionFilter) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Get list of user social actions */ + public static func list(filter: SocialActionFilter, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "socialaction", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/SocialCommentService.swift b/KalturaClient/Classes/Services/SocialCommentService.swift new file mode 100644 index 000000000..497c7dea1 --- /dev/null +++ b/KalturaClient/Classes/Services/SocialCommentService.swift @@ -0,0 +1,61 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class SocialCommentService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list(filter: SocialCommentFilter) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Get a list of all social comments filtered by asset ID and social platform */ + public static func list(filter: SocialCommentFilter, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "socialcomment", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/SocialFriendActivityService.swift b/KalturaClient/Classes/Services/SocialFriendActivityService.swift new file mode 100644 index 000000000..26bbc67fb --- /dev/null +++ b/KalturaClient/Classes/Services/SocialFriendActivityService.swift @@ -0,0 +1,65 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class SocialFriendActivityService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: SocialFriendActivityFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Get a list of the social friends activity for a user */ + public static func list(filter: SocialFriendActivityFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "socialfriendactivity", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/SocialService.swift b/KalturaClient/Classes/Services/SocialService.swift new file mode 100644 index 000000000..5c51f7012 --- /dev/null +++ b/KalturaClient/Classes/Services/SocialService.swift @@ -0,0 +1,254 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class SocialService{ + + public class GetTokenizer: ClientTokenizer { + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** List social accounts */ + public static func get(type: SocialNetwork) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "social", action: "get") + .setParam(key: "type", value: type.rawValue) + + return request + } + + public class GetByTokenTokenizer: ClientTokenizer { + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var token: BaseTokenizedObject { + get { + return self.append("token") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** Return the user object with social information according to a provided external + social token */ + public static func getByToken(partnerId: Int, token: String, type: SocialNetwork) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "social", action: "getByToken") + .setParam(key: "partnerId", value: partnerId) + .setParam(key: "token", value: token) + .setParam(key: "type", value: type.rawValue) + + return request + } + + public class GetConfigurationTokenizer: ClientTokenizer { + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + } + + public static func getConfiguration(type: SocialNetwork) -> RequestBuilder { + return getConfiguration(type: type, partnerId: nil) + } + + /** Retrieve the social network’s configuration information */ + public static func getConfiguration(type: SocialNetwork, partnerId: Int?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "social", action: "getConfiguration") + .setParam(key: "type", value: type.rawValue) + .setParam(key: "partnerId", value: partnerId) + + return request + } + + public class LoginTokenizer: ClientTokenizer { + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var token: BaseTokenizedObject { + get { + return self.append("token") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + } + + public static func login(partnerId: Int, token: String, type: SocialNetwork) -> RequestBuilder { + return login(partnerId: partnerId, token: token, type: type, udid: nil) + } + + /** Login using social token */ + public static func login(partnerId: Int, token: String, type: SocialNetwork, udid: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "social", action: "login") + .setParam(key: "partnerId", value: partnerId) + .setParam(key: "token", value: token) + .setParam(key: "type", value: type.rawValue) + .setParam(key: "udid", value: udid) + + return request + } + + public class MergeTokenizer: ClientTokenizer { + + public var token: BaseTokenizedObject { + get { + return self.append("token") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** Connect an existing user in the system to an external social network user */ + public static func merge(token: String, type: SocialNetwork) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "social", action: "merge") + .setParam(key: "token", value: token) + .setParam(key: "type", value: type.rawValue) + + return request + } + + public class RegisterTokenizer: ClientTokenizer { + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + + public var token: BaseTokenizedObject { + get { + return self.append("token") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var email: BaseTokenizedObject { + get { + return self.append("email") + } + } + } + + public static func register(partnerId: Int, token: String, type: SocialNetwork) -> RequestBuilder { + return register(partnerId: partnerId, token: token, type: type, email: nil) + } + + /** Create a new user in the system using a provided external social token */ + public static func register(partnerId: Int, token: String, type: SocialNetwork, email: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "social", action: "register") + .setParam(key: "partnerId", value: partnerId) + .setParam(key: "token", value: token) + .setParam(key: "type", value: type.rawValue) + .setParam(key: "email", value: email) + + return request + } + + public class UnmergeTokenizer: ClientTokenizer { + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** Disconnect an existing user in the system from its external social network user */ + public static func unmerge(type: SocialNetwork) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "social", action: "unmerge") + .setParam(key: "type", value: type.rawValue) + + return request + } + + public class UpdateConfigurationTokenizer: ClientTokenizer { + + public func configuration() -> T { + return T(self.append("configuration")) + } + } + + /** Set the user social network’s configuration information */ + public static func UpdateConfiguration(configuration: SocialConfig) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "social", action: "UpdateConfiguration") + .setParam(key: "configuration", value: configuration) + + return request + } +} diff --git a/KalturaClient/Classes/Services/SsoAdapterProfileService.swift b/KalturaClient/Classes/Services/SsoAdapterProfileService.swift new file mode 100644 index 000000000..1bf9f2414 --- /dev/null +++ b/KalturaClient/Classes/Services/SsoAdapterProfileService.swift @@ -0,0 +1,142 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class SsoAdapterProfileService{ + + public class AddTokenizer: ClientTokenizer { + + public func ssoAdapter() -> T { + return T(self.append("ssoAdapter")) + } + } + + /** Insert new sso adapter for partner */ + public static func add(ssoAdapter: SSOAdapterProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ssoadapterprofile", action: "add") + .setParam(key: "ssoAdapter", value: ssoAdapter) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var ssoAdapterId: BaseTokenizedObject { + get { + return self.append("ssoAdapterId") + } + } + } + + /** Delete sso adapters by sso adapters id */ + public static func delete(ssoAdapterId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ssoadapterprofile", action: "delete") + .setParam(key: "ssoAdapterId", value: ssoAdapterId) + + return request + } + + public class GenerateSharedSecretTokenizer: ClientTokenizer { + + public var ssoAdapterId: BaseTokenizedObject { + get { + return self.append("ssoAdapterId") + } + } + } + + /** Generate SSO Adapter shared secret */ + public static func generateSharedSecret(ssoAdapterId: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ssoadapterprofile", action: "generateSharedSecret") + .setParam(key: "ssoAdapterId", value: ssoAdapterId) + + return request + } + + public class InvokeTokenizer: ClientTokenizer { + + public var intent: BaseTokenizedObject { + get { + return self.append("intent") + } + } + + public var adapterData: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("adapterData")) + } + } + } + + /** Request validation against 3rd party */ + public static func invoke(intent: String, adapterData: Array) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ssoadapterprofile", action: "invoke") + .setParam(key: "intent", value: intent) + .setParam(key: "adapterData", value: adapterData) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Returns all sso adapters for partner : id + name */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ssoadapterprofile", action: "list") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var ssoAdapterId: BaseTokenizedObject { + get { + return self.append("ssoAdapterId") + } + } + + public func ssoAdapter() -> T { + return T(self.append("ssoAdapter")) + } + } + + /** Update sso adapter details */ + public static func update(ssoAdapterId: Int, ssoAdapter: SSOAdapterProfile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "ssoadapterprofile", action: "update") + .setParam(key: "ssoAdapterId", value: ssoAdapterId) + .setParam(key: "ssoAdapter", value: ssoAdapter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/SubscriptionService.swift b/KalturaClient/Classes/Services/SubscriptionService.swift new file mode 100644 index 000000000..d37124230 --- /dev/null +++ b/KalturaClient/Classes/Services/SubscriptionService.swift @@ -0,0 +1,89 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class SubscriptionService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: SubscriptionFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Returns a list of subscriptions requested by Subscription ID or file ID */ + public static func list(filter: SubscriptionFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "subscription", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } + + public class ValidateCouponTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var code: BaseTokenizedObject { + get { + return self.append("code") + } + } + } + + /** Returns information about a coupon for subscription */ + public static func validateCoupon(id: Int, code: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "subscription", action: "validateCoupon") + .setParam(key: "id", value: id) + .setParam(key: "code", value: code) + + return request + } +} diff --git a/KalturaClient/Classes/Services/SubscriptionSetService.swift b/KalturaClient/Classes/Services/SubscriptionSetService.swift new file mode 100644 index 000000000..10ed74935 --- /dev/null +++ b/KalturaClient/Classes/Services/SubscriptionSetService.swift @@ -0,0 +1,127 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class SubscriptionSetService{ + + public class AddTokenizer: ClientTokenizer { + + public func subscriptionSet() -> T { + return T(self.append("subscriptionSet")) + } + } + + /** Add a new subscriptionSet */ + public static func add(subscriptionSet: SubscriptionSet) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "subscriptionset", action: "add") + .setParam(key: "subscriptionSet", value: subscriptionSet) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete a subscriptionSet */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "subscriptionset", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Get the subscriptionSet according to the Identifier */ + public static func get(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "subscriptionset", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Returns a list of subscriptionSets requested by ids or subscription ids */ + public static func list(filter: SubscriptionSetFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "subscriptionset", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func subscriptionSet() -> T { + return T(self.append("subscriptionSet")) + } + } + + /** Update the subscriptionSet */ + public static func update(id: Int64, subscriptionSet: SubscriptionSet) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "subscriptionset", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "subscriptionSet", value: subscriptionSet) + + return request + } +} diff --git a/KalturaClient/Classes/Services/SystemService.swift b/KalturaClient/Classes/Services/SystemService.swift new file mode 100644 index 000000000..0d87166bb --- /dev/null +++ b/KalturaClient/Classes/Services/SystemService.swift @@ -0,0 +1,149 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class SystemService{ + + public class ClearLocalServerCacheTokenizer: ClientTokenizer { + + public var clearCacheAction: BaseTokenizedObject { + get { + return self.append("clearCacheAction") + } + } + + public var key: BaseTokenizedObject { + get { + return self.append("key") + } + } + } + + public static func clearLocalServerCache() -> RequestBuilder { + return clearLocalServerCache(clearCacheAction: nil) + } + + public static func clearLocalServerCache(clearCacheAction: String?) -> RequestBuilder { + return clearLocalServerCache(clearCacheAction: clearCacheAction, key: nil) + } + + /** Clear local server cache */ + public static func clearLocalServerCache(clearCacheAction: String?, key: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "system", action: "clearLocalServerCache") + .setParam(key: "clearCacheAction", value: clearCacheAction) + .setParam(key: "key", value: key) + + return request + } + + public class GetLogLevelTokenizer: ClientTokenizer { + } + + /** Gets the current level of the KLogger */ + public static func getLogLevel() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "system", action: "getLogLevel") + + return request + } + + public class GetTimeTokenizer: ClientTokenizer { + } + + /** Returns current server timestamp */ + public static func getTime() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "system", action: "getTime") + + return request + } + + public class GetVersionTokenizer: ClientTokenizer { + } + + /** Returns current server version */ + public static func getVersion() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "system", action: "getVersion") + + return request + } + + public class IncrementLayeredCacheGroupConfigVersionTokenizer: ClientTokenizer { + + public var groupId: BaseTokenizedObject { + get { + return self.append("groupId") + } + } + } + + public static func incrementLayeredCacheGroupConfigVersion() -> RequestBuilder { + return incrementLayeredCacheGroupConfigVersion(groupId: 0) + } + + /** Returns true if version has been incremented successfully or false otherwise. + You need to send groupId only if you wish to increment for a specific groupId + and not the one the KS belongs to. */ + public static func incrementLayeredCacheGroupConfigVersion(groupId: Int?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "system", action: "incrementLayeredCacheGroupConfigVersion") + .setParam(key: "groupId", value: groupId) + + return request + } + + public class PingTokenizer: ClientTokenizer { + } + + /** Returns true */ + public static func ping() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "system", action: "ping") + + return request + } + + public class SetLogLevelTokenizer: ClientTokenizer { + + public var level: BaseTokenizedObject { + get { + return self.append("level") + } + } + } + + /** Sets the current level of the KLogger */ + public static func setLogLevel(level: KalturaLogLevel) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "system", action: "setLogLevel") + .setParam(key: "level", value: level.rawValue) + + return request + } +} diff --git a/KalturaClient/Classes/Services/TagService.swift b/KalturaClient/Classes/Services/TagService.swift new file mode 100644 index 000000000..911392ffa --- /dev/null +++ b/KalturaClient/Classes/Services/TagService.swift @@ -0,0 +1,119 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class TagService{ + + public class AddTokenizer: ClientTokenizer { + + public func tag() -> T { + return T(self.append("tag")) + } + } + + /** Add a new tag */ + public static func add(tag: Tag) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "tag", action: "add") + .setParam(key: "tag", value: tag) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete an existing tag */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "tag", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: TagFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Get the list of tags for the partner */ + public static func list(filter: TagFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "tag", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func tag() -> T { + return T(self.append("tag")) + } + } + + /** Update an existing tag */ + public static func update(id: Int64, tag: Tag) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "tag", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "tag", value: tag) + + return request + } +} diff --git a/KalturaClient/Classes/Services/TimeShiftedTvPartnerSettingsService.swift b/KalturaClient/Classes/Services/TimeShiftedTvPartnerSettingsService.swift new file mode 100644 index 000000000..4cc232989 --- /dev/null +++ b/KalturaClient/Classes/Services/TimeShiftedTvPartnerSettingsService.swift @@ -0,0 +1,64 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class TimeShiftedTvPartnerSettingsService{ + + public class GetTokenizer: ClientTokenizer { + } + + /** Retrieve the account’s time-shifted TV settings (catch-up and C-DVR, + Trick-play, Start-over) */ + public static func get() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "timeshiftedtvpartnersettings", action: "get") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public func settings() -> T { + return T(self.append("settings")) + } + } + + /** Configure the account’s time-shifted TV settings (catch-up and C-DVR, + Trick-play, Start-over) */ + public static func update(settings: TimeShiftedTvPartnerSettings) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "timeshiftedtvpartnersettings", action: "update") + .setParam(key: "settings", value: settings) + + return request + } +} diff --git a/KalturaClient/Classes/Services/TopicNotificationMessageService.swift b/KalturaClient/Classes/Services/TopicNotificationMessageService.swift new file mode 100644 index 000000000..448cee86d --- /dev/null +++ b/KalturaClient/Classes/Services/TopicNotificationMessageService.swift @@ -0,0 +1,119 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class TopicNotificationMessageService{ + + public class AddTokenizer: ClientTokenizer { + + public func topicNotificationMessage() -> T { + return T(self.append("topicNotificationMessage")) + } + } + + /** Add a new topic notification message */ + public static func add(topicNotificationMessage: TopicNotificationMessage) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "topicnotificationmessage", action: "add") + .setParam(key: "topicNotificationMessage", value: topicNotificationMessage) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete an existing topic notification message */ + public static func delete(id: Int64) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "topicnotificationmessage", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: TopicNotificationMessageFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Lists all topic notifications in the system. */ + public static func list(filter: TopicNotificationMessageFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "topicnotificationmessage", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func topicNotificationMessage() -> T { + return T(self.append("topicNotificationMessage")) + } + } + + /** Update an existing topic notification message */ + public static func update(id: Int, topicNotificationMessage: TopicNotificationMessage) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "topicnotificationmessage", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "topicNotificationMessage", value: topicNotificationMessage) + + return request + } +} diff --git a/KalturaClient/Classes/Services/TopicNotificationService.swift b/KalturaClient/Classes/Services/TopicNotificationService.swift new file mode 100644 index 000000000..911367c43 --- /dev/null +++ b/KalturaClient/Classes/Services/TopicNotificationService.swift @@ -0,0 +1,140 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class TopicNotificationService{ + + public class AddTokenizer: ClientTokenizer { + + public func topicNotification() -> T { + return T(self.append("topicNotification")) + } + } + + /** Add a new topic notification */ + public static func add(topicNotification: TopicNotification) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "topicnotification", action: "add") + .setParam(key: "topicNotification", value: topicNotification) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete an existing topic notification */ + public static func delete(id: Int64) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "topicnotification", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Lists all topic notifications in the system. */ + public static func list(filter: TopicNotificationFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "topicnotification", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class SubscribeTokenizer: ClientTokenizer { + + public var topicNotificationId: BaseTokenizedObject { + get { + return self.append("topicNotificationId") + } + } + } + + /** Subscribe a user to a topic notification */ + public static func subscribe(topicNotificationId: Int64) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "topicnotification", action: "subscribe") + .setParam(key: "topicNotificationId", value: topicNotificationId) + + return request + } + + public class UnsubscribeTokenizer: ClientTokenizer { + + public var topicNotificationId: BaseTokenizedObject { + get { + return self.append("topicNotificationId") + } + } + } + + /** Unubscribe a user from a topic notification */ + public static func unsubscribe(topicNotificationId: Int64) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "topicnotification", action: "unsubscribe") + .setParam(key: "topicNotificationId", value: topicNotificationId) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func topicNotification() -> T { + return T(self.append("topicNotification")) + } + } + + /** Update an existing topic notification */ + public static func update(id: Int, topicNotification: TopicNotification) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "topicnotification", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "topicNotification", value: topicNotification) + + return request + } +} diff --git a/KalturaClient/Classes/Services/TopicService.swift b/KalturaClient/Classes/Services/TopicService.swift new file mode 100644 index 000000000..7bd690bd0 --- /dev/null +++ b/KalturaClient/Classes/Services/TopicService.swift @@ -0,0 +1,123 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class TopicService{ + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Deleted a topic */ + public static func delete(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "topic", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Gets a topic */ + public static func get(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "topic", action: "get") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: TopicFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Get list of topics */ + public static func list(filter: TopicFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "topic", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } + + public class UpdateStatusTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var automaticIssueNotification: BaseTokenizedObject { + get { + return self.append("automaticIssueNotification") + } + } + } + + /** Updates a topic "automatic issue notification" behavior. */ + public static func updateStatus(id: Int, automaticIssueNotification: TopicAutomaticIssueNotification) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "topic", action: "updateStatus") + .setParam(key: "id", value: id) + .setParam(key: "automaticIssueNotification", value: automaticIssueNotification.rawValue) + + return request + } +} diff --git a/KalturaClient/Classes/Services/TransactionHistoryService.swift b/KalturaClient/Classes/Services/TransactionHistoryService.swift new file mode 100644 index 000000000..ac0687bfc --- /dev/null +++ b/KalturaClient/Classes/Services/TransactionHistoryService.swift @@ -0,0 +1,65 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class TransactionHistoryService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + public static func list(filter: TransactionHistoryFilter?) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Gets user or household transaction history. */ + public static func list(filter: TransactionHistoryFilter?, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "transactionhistory", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaClient/Classes/Services/TransactionService.swift b/KalturaClient/Classes/Services/TransactionService.swift new file mode 100644 index 000000000..0f78b5138 --- /dev/null +++ b/KalturaClient/Classes/Services/TransactionService.swift @@ -0,0 +1,177 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class TransactionService{ + + public class DowngradeTokenizer: ClientTokenizer { + + public func purchase() -> T { + return T(self.append("purchase")) + } + } + + /** downgrade specific subscription for a household. entitlements will be updated on + the existing subscription end date. */ + public static func downgrade(purchase: Purchase) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "transaction", action: "downgrade") + .setParam(key: "purchase", value: purchase) + + return request + } + + public class GetPurchaseSessionIdTokenizer: ClientTokenizer { + + public func purchaseSession() -> T { + return T(self.append("purchaseSession")) + } + } + + /** Retrieve the purchase session identifier */ + public static func getPurchaseSessionId(purchaseSession: PurchaseSession) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "transaction", action: "getPurchaseSessionId") + .setParam(key: "purchaseSession", value: purchaseSession) + + return request + } + + public class PurchaseTokenizer: ClientTokenizer { + + public func purchase_() -> T { + return T(self.append("purchase_")) + } + } + + /** Purchase specific product or subscription for a household. Upon successful + charge entitlements to use the requested product or subscription are granted. */ + public static func purchase(purchase_: Purchase) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "transaction", action: "purchase") + .setParam(key: "purchase", value: purchase_) + + return request + } + + public class SetWaiverTokenizer: ClientTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var transactionType: BaseTokenizedObject { + get { + return self.append("transactionType") + } + } + } + + /** This method shall set the waiver flag on the user entitlement table and the + waiver date field to the current date. */ + public static func setWaiver(assetId: Int, transactionType: TransactionType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "transaction", action: "setWaiver") + .setParam(key: "assetId", value: assetId) + .setParam(key: "transactionType", value: transactionType.rawValue) + + return request + } + + public class UpdateStatusTokenizer: ClientTokenizer { + + public var paymentGatewayId: BaseTokenizedObject { + get { + return self.append("paymentGatewayId") + } + } + + public var externalTransactionId: BaseTokenizedObject { + get { + return self.append("externalTransactionId") + } + } + + public var signature: BaseTokenizedObject { + get { + return self.append("signature") + } + } + + public func status() -> T { + return T(self.append("status")) + } + } + + /** Updates a pending purchase transaction state. */ + public static func updateStatus(paymentGatewayId: String, externalTransactionId: String, signature: String, status: TransactionStatus) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "transaction", action: "updateStatus") + .setParam(key: "paymentGatewayId", value: paymentGatewayId) + .setParam(key: "externalTransactionId", value: externalTransactionId) + .setParam(key: "signature", value: signature) + .setParam(key: "status", value: status) + + return request + } + + public class UpgradeTokenizer: ClientTokenizer { + + public func purchase() -> T { + return T(self.append("purchase")) + } + } + + /** upgrade specific subscription for a household. Upon successful charge + entitlements to use the requested product or subscription are granted. */ + public static func upgrade(purchase: Purchase) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "transaction", action: "upgrade") + .setParam(key: "purchase", value: purchase) + + return request + } + + public class ValidateReceiptTokenizer: ClientTokenizer { + + public func externalReceipt() -> T { + return T(self.append("externalReceipt")) + } + } + + /** Verifies PPV/Subscription/Collection client purchase (such as InApp) and + entitles the user. */ + public static func validateReceipt(externalReceipt: ExternalReceipt) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "transaction", action: "validateReceipt") + .setParam(key: "externalReceipt", value: externalReceipt) + + return request + } +} diff --git a/KalturaClient/Classes/Services/TvmRuleService.swift b/KalturaClient/Classes/Services/TvmRuleService.swift new file mode 100644 index 000000000..f2c432c6b --- /dev/null +++ b/KalturaClient/Classes/Services/TvmRuleService.swift @@ -0,0 +1,56 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class TvmRuleService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Get the list of tvm rules for the partner */ + public static func list(filter: TvmRuleFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "tvmrule", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/UnifiedPaymentService.swift b/KalturaClient/Classes/Services/UnifiedPaymentService.swift new file mode 100644 index 000000000..aaaeae22f --- /dev/null +++ b/KalturaClient/Classes/Services/UnifiedPaymentService.swift @@ -0,0 +1,54 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class UnifiedPaymentService{ + + public class GetNextRenewalTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Returns the data about the next renewal */ + public static func getNextRenewal(id: Int) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "unifiedpayment", action: "getNextRenewal") + .setParam(key: "id", value: id) + + return request + } +} diff --git a/KalturaClient/Classes/Services/UploadTokenService.swift b/KalturaClient/Classes/Services/UploadTokenService.swift new file mode 100644 index 000000000..42cc27323 --- /dev/null +++ b/KalturaClient/Classes/Services/UploadTokenService.swift @@ -0,0 +1,74 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class UploadTokenService{ + + public class AddTokenizer: ClientTokenizer { + + public func uploadToken() -> T { + return T(self.append("uploadToken")) + } + } + + public static func add() -> RequestBuilder { + return add(uploadToken: nil) + } + + /** Adds new upload token to upload a file */ + public static func add(uploadToken: UploadToken?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "uploadtoken", action: "add") + .setParam(key: "uploadToken", value: uploadToken) + + return request + } + + public class UploadTokenizer: ClientTokenizer { + + public var uploadTokenId: BaseTokenizedObject { + get { + return self.append("uploadTokenId") + } + } + } + + /** Upload a file using the upload token id */ + public static func upload(uploadTokenId: String, fileData: RequestFile) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "uploadtoken", action: "upload") + .setParam(key: "uploadTokenId", value: uploadTokenId) + .setFile(key: "fileData", value: fileData) + + return request + } +} diff --git a/KalturaClient/Classes/Services/UserAssetRuleService.swift b/KalturaClient/Classes/Services/UserAssetRuleService.swift new file mode 100644 index 000000000..d13377276 --- /dev/null +++ b/KalturaClient/Classes/Services/UserAssetRuleService.swift @@ -0,0 +1,53 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class UserAssetRuleService{ + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + /** Retrieve all the rules (parental, geo, device or user-type) that applies for + this user and asset. */ + public static func list(filter: UserAssetRuleFilter) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "userassetrule", action: "list") + .setParam(key: "filter", value: filter) + + return request + } +} diff --git a/KalturaClient/Classes/Services/UserAssetsListItemService.swift b/KalturaClient/Classes/Services/UserAssetsListItemService.swift new file mode 100644 index 000000000..147c1b3e4 --- /dev/null +++ b/KalturaClient/Classes/Services/UserAssetsListItemService.swift @@ -0,0 +1,107 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class UserAssetsListItemService{ + + public class AddTokenizer: ClientTokenizer { + + public func userAssetsListItem() -> T { + return T(self.append("userAssetsListItem")) + } + } + + /** Adds a new item to user’s private asset list */ + public static func add(userAssetsListItem: UserAssetsListItem) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "userassetslistitem", action: "add") + .setParam(key: "userAssetsListItem", value: userAssetsListItem) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var listType: BaseTokenizedObject { + get { + return self.append("listType") + } + } + } + + /** Deletes an item from user’s private asset list */ + public static func delete(assetId: String, listType: UserAssetsListType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "userassetslistitem", action: "delete") + .setParam(key: "assetId", value: assetId) + .setParam(key: "listType", value: listType.rawValue) + + return request + } + + public class GetTokenizer: ClientTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var listType: BaseTokenizedObject { + get { + return self.append("listType") + } + } + + public var itemType: BaseTokenizedObject { + get { + return self.append("itemType") + } + } + } + + /** Get an item from user’s private asset list */ + public static func get(assetId: String, listType: UserAssetsListType, itemType: UserAssetsListItemType) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "userassetslistitem", action: "get") + .setParam(key: "assetId", value: assetId) + .setParam(key: "listType", value: listType.rawValue) + .setParam(key: "itemType", value: itemType.rawValue) + + return request + } +} diff --git a/KalturaClient/Classes/Services/UserInterestService.swift b/KalturaClient/Classes/Services/UserInterestService.swift new file mode 100644 index 000000000..3a92cc9ec --- /dev/null +++ b/KalturaClient/Classes/Services/UserInterestService.swift @@ -0,0 +1,110 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class UserInterestService{ + + public class AddTokenizer: ClientTokenizer { + + public func userInterest() -> T { + return T(self.append("userInterest")) + } + } + + /** Insert new user interest for partner user */ + public static func add(userInterest: UserInterest) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "userinterest", action: "add") + .setParam(key: "userInterest", value: userInterest) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete new user interest for partner user */ + public static func delete(id: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "userinterest", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class DeleteWithTokenTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var token: BaseTokenizedObject { + get { + return self.append("token") + } + } + + public override var partnerId: BaseTokenizedObject { + get { + return self.append("partnerId") + } + } + } + + /** Delete new user interest for partner user */ + public static func deleteWithToken(id: String, token: String, partnerId: Int) -> NullRequestBuilder { + let request: NullRequestBuilder = NullRequestBuilder(service: "userinterest", action: "deleteWithToken") + .setParam(key: "id", value: id) + .setParam(key: "token", value: token) + .setParam(key: "partnerId", value: partnerId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + } + + /** Returns all Engagement for partner */ + public static func list() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "userinterest", action: "list") + + return request + } +} diff --git a/KalturaClient/Classes/Services/UserLoginPinService.swift b/KalturaClient/Classes/Services/UserLoginPinService.swift new file mode 100644 index 000000000..a7ce6354f --- /dev/null +++ b/KalturaClient/Classes/Services/UserLoginPinService.swift @@ -0,0 +1,117 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class UserLoginPinService{ + + public class AddTokenizer: ClientTokenizer { + + public var secret: BaseTokenizedObject { + get { + return self.append("secret") + } + } + } + + public static func add() -> RequestBuilder { + return add(secret: nil) + } + + /** Generate a time and usage expiry login-PIN that can allow a single login per + PIN. If an active login-PIN already exists. Calling this API again for same user + will add another login-PIN */ + public static func add(secret: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "userloginpin", action: "add") + .setParam(key: "secret", value: secret) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var pinCode: BaseTokenizedObject { + get { + return self.append("pinCode") + } + } + } + + /** Immediately deletes a given pre set login pin code for the user. */ + public static func delete(pinCode: String) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "userloginpin", action: "delete") + .setParam(key: "pinCode", value: pinCode) + + return request + } + + public class DeleteAllTokenizer: ClientTokenizer { + } + + /** Immediately expire all active login-PINs for a user */ + public static func deleteAll() -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "userloginpin", action: "deleteAll") + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var pinCode: BaseTokenizedObject { + get { + return self.append("pinCode") + } + } + + public var secret: BaseTokenizedObject { + get { + return self.append("secret") + } + } + } + + public static func update(pinCode: String) -> RequestBuilder { + return update(pinCode: pinCode, secret: nil) + } + + /** Set a time and usage expiry login-PIN that can allow a single login per PIN. If + an active login-PIN already exists. Calling this API again for same user will + add another login-PIN */ + public static func update(pinCode: String, secret: String?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "userloginpin", action: "update") + .setParam(key: "pinCode", value: pinCode) + .setParam(key: "secret", value: secret) + + return request + } +} diff --git a/KalturaClient/Classes/Services/UserRoleService.swift b/KalturaClient/Classes/Services/UserRoleService.swift new file mode 100644 index 000000000..9c7a195af --- /dev/null +++ b/KalturaClient/Classes/Services/UserRoleService.swift @@ -0,0 +1,111 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class UserRoleService{ + + public class AddTokenizer: ClientTokenizer { + + public func role() -> T { + return T(self.append("role")) + } + } + + /** Creates a new role */ + public static func add(role: UserRole) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "userrole", action: "add") + .setParam(key: "role", value: role) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Delete role */ + public static func delete(id: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "userrole", action: "delete") + .setParam(key: "id", value: id) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + } + + public static func list() -> RequestBuilder { + return list(filter: nil) + } + + /** Retrieving user roles by identifiers, if filter is empty, returns all partner + roles */ + public static func list(filter: UserRoleFilter?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "userrole", action: "list") + .setParam(key: "filter", value: filter) + + return request + } + + public class UpdateTokenizer: ClientTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func role() -> T { + return T(self.append("role")) + } + } + + /** Update role */ + public static func update(id: Int64, role: UserRole) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "userrole", action: "update") + .setParam(key: "id", value: id) + .setParam(key: "role", value: role) + + return request + } +} diff --git a/KalturaClient/Classes/Services/UserSegmentService.swift b/KalturaClient/Classes/Services/UserSegmentService.swift new file mode 100644 index 000000000..7eef6a71d --- /dev/null +++ b/KalturaClient/Classes/Services/UserSegmentService.swift @@ -0,0 +1,100 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +public final class UserSegmentService{ + + public class AddTokenizer: ClientTokenizer { + + public func userSegment() -> T { + return T(self.append("userSegment")) + } + } + + /** Adds a segment to a user */ + public static func add(userSegment: UserSegment) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "usersegment", action: "add") + .setParam(key: "userSegment", value: userSegment) + + return request + } + + public class DeleteTokenizer: ClientTokenizer { + + public override var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + + public var segmentId: BaseTokenizedObject { + get { + return self.append("segmentId") + } + } + } + + /** Deletes a segment from a user */ + public static func delete(userId: String, segmentId: Int64) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "usersegment", action: "delete") + .setParam(key: "userId", value: userId) + .setParam(key: "segmentId", value: segmentId) + + return request + } + + public class ListTokenizer: ClientTokenizer { + + public func filter() -> T { + return T(self.append("filter")) + } + + public func pager() -> T { + return T(self.append("pager")) + } + } + + public static func list(filter: UserSegmentFilter) -> RequestBuilder { + return list(filter: filter, pager: nil) + } + + /** Retrieve all the segments that apply for given user */ + public static func list(filter: UserSegmentFilter, pager: FilterPager?) -> RequestBuilder { + let request: RequestBuilder = RequestBuilder(service: "usersegment", action: "list") + .setParam(key: "filter", value: filter) + .setParam(key: "pager", value: pager) + + return request + } +} diff --git a/KalturaOttClient.podspec b/KalturaOttClient.podspec new file mode 100644 index 000000000..2242d6668 --- /dev/null +++ b/KalturaOttClient.podspec @@ -0,0 +1,20 @@ +Pod::Spec.new do |s| +s.name = 'KalturaOttClient' +s.version = '5.4.0.28205' +s.summary = 'Kaltura OTT Client Library for Swift/iOS' +s.homepage = 'https://github.com/kaltura/KalturaOttGeneratedAPIClientsSwift' +s.license = { :type => 'AGPLv3', :text => 'AGPLv3' } +s.author = { 'Kaltura' => 'community@kaltura.com' } +s.source = { :git => 'https://github.com/kaltura/KalturaOttGeneratedAPIClientsSwift.git', :tag => s.version.to_s } +s.ios.deployment_target = '8.0' +s.tvos.deployment_target = '10.0' +s.source_files = 'KalturaClient/Classes/**/*' +s.swift_version = '5.0' + + +s.subspec 'Core' do |sp| + sp.source_files = 'KalturaClient/Classes/**/*' + sp.dependency 'Log', '2.0' +end +s.default_subspec = 'Core' +end diff --git a/KalturaOttClient.spec.header b/KalturaOttClient.spec.header new file mode 100644 index 000000000..5f5387823 --- /dev/null +++ b/KalturaOttClient.spec.header @@ -0,0 +1,12 @@ +Pod::Spec.new do |s| +s.name = 'KalturaOttClient' +s.version = '5.4.0.28205' +s.summary = 'Kaltura OTT Client Library for Swift/iOS' +s.homepage = 'https://github.com/kaltura/KalturaOttGeneratedAPIClientsSwift' +s.license = { :type => 'AGPLv3', :text => 'AGPLv3' } +s.author = { 'Kaltura' => 'community@kaltura.com' } +s.source = { :git => 'https://github.com/kaltura/KalturaOttGeneratedAPIClientsSwift.git', :tag => s.version.to_s } +s.ios.deployment_target = '8.0' +s.tvos.deployment_target = '10.0' +s.source_files = 'KalturaClient/Classes/**/*' +s.swift_version = '5.0' diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..827c51442 --- /dev/null +++ b/LICENSE @@ -0,0 +1,661 @@ +GNU AFFERO GENERAL PUBLIC LICENSE +Version 3, 19 November 2007 + +Copyright (C) 2007 Free Software Foundation, Inc. +Everyone is permitted to copy and distribute verbatim copies +of this license document, but changing it is not allowed. + +Preamble + +The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + +The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + +When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + +Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + +A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + +The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + +An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + +The precise terms and conditions for copying, distribution and +modification follow. + +TERMS AND CONDITIONS + +0. Definitions. + +"This License" refers to version 3 of the GNU Affero General Public License. + +"Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + +"The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + +To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + +A "covered work" means either the unmodified Program or a work based +on the Program. + +To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + +To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + +An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + +1. Source Code. + +The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + +A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + +The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + +The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + +The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + +The Corresponding Source for a work in source code form is that +same work. + +2. Basic Permissions. + +All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + +You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + +3. Protecting Users' Legal Rights From Anti-Circumvention Law. + +No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + +When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + +4. Conveying Verbatim Copies. + +You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + +You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + +5. Conveying Modified Source Versions. + +You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + +a) The work must carry prominent notices stating that you modified +it, and giving a relevant date. + +b) The work must carry prominent notices stating that it is +released under this License and any conditions added under section +7. This requirement modifies the requirement in section 4 to +"keep intact all notices". + +c) You must license the entire work, as a whole, under this +License to anyone who comes into possession of a copy. This +License will therefore apply, along with any applicable section 7 +additional terms, to the whole of the work, and all its parts, +regardless of how they are packaged. This License gives no +permission to license the work in any other way, but it does not +invalidate such permission if you have separately received it. + +d) If the work has interactive user interfaces, each must display +Appropriate Legal Notices; however, if the Program has interactive +interfaces that do not display Appropriate Legal Notices, your +work need not make them do so. + +A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + +6. Conveying Non-Source Forms. + +You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + +a) Convey the object code in, or embodied in, a physical product +(including a physical distribution medium), accompanied by the +Corresponding Source fixed on a durable physical medium +customarily used for software interchange. + +b) Convey the object code in, or embodied in, a physical product +(including a physical distribution medium), accompanied by a +written offer, valid for at least three years and valid for as +long as you offer spare parts or customer support for that product +model, to give anyone who possesses the object code either (1) a +copy of the Corresponding Source for all the software in the +product that is covered by this License, on a durable physical +medium customarily used for software interchange, for a price no +more than your reasonable cost of physically performing this +conveying of source, or (2) access to copy the +Corresponding Source from a network server at no charge. + +c) Convey individual copies of the object code with a copy of the +written offer to provide the Corresponding Source. This +alternative is allowed only occasionally and noncommercially, and +only if you received the object code with such an offer, in accord +with subsection 6b. + +d) Convey the object code by offering access from a designated +place (gratis or for a charge), and offer equivalent access to the +Corresponding Source in the same way through the same place at no +further charge. You need not require recipients to copy the +Corresponding Source along with the object code. If the place to +copy the object code is a network server, the Corresponding Source +may be on a different server (operated by you or a third party) +that supports equivalent copying facilities, provided you maintain +clear directions next to the object code saying where to find the +Corresponding Source. Regardless of what server hosts the +Corresponding Source, you remain obligated to ensure that it is +available for as long as needed to satisfy these requirements. + +e) Convey the object code using peer-to-peer transmission, provided +you inform other peers where the object code and Corresponding +Source of the work are being offered to the general public at no +charge under subsection 6d. + +A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + +A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + +"Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + +If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + +The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + +Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + +7. Additional Terms. + +"Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + +a) Disclaiming warranty or limiting liability differently from the +terms of sections 15 and 16 of this License; or + +b) Requiring preservation of specified reasonable legal notices or +author attributions in that material or in the Appropriate Legal +Notices displayed by works containing it; or + +c) Prohibiting misrepresentation of the origin of that material, or +requiring that modified versions of such material be marked in +reasonable ways as different from the original version; or + +d) Limiting the use for publicity purposes of names of licensors or +authors of the material; or + +e) Declining to grant rights under trademark law for use of some +trade names, trademarks, or service marks; or + +f) Requiring indemnification of licensors and authors of that +material by anyone who conveys the material (or modified versions of +it) with contractual assumptions of liability to the recipient, for +any liability that these contractual assumptions directly impose on +those licensors and authors. + +All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + +8. Termination. + +You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + +However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + +Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + +9. Acceptance Not Required for Having Copies. + +You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + +10. Automatic Licensing of Downstream Recipients. + +Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + +An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + +11. Patents. + +A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + +A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + +In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + +If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + +A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + +12. No Surrender of Others' Freedom. + +If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + +13. Remote Network Interaction; Use with the GNU General Public License. + +Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + +Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + +14. Revised Versions of this License. + +The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + +If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + +Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + +15. Disclaimer of Warranty. + +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. Limitation of Liability. + +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + +17. Interpretation of Sections 15 and 16. + +If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + +Copyright (C) + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License as published +by the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + +If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + +You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 000000000..d5445e7ac --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,661 @@ +GNU AFFERO GENERAL PUBLIC LICENSE + Version 3, 19 November 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU Affero General Public License is a free, copyleft license for +software and other kinds of works, specifically designed to ensure +cooperation with the community in the case of network server software. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +our General Public Licenses are intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + Developers that use our General Public Licenses protect your rights +with two steps: (1) assert copyright on the software, and (2) offer +you this License which gives you legal permission to copy, distribute +and/or modify the software. + + A secondary benefit of defending all users' freedom is that +improvements made in alternate versions of the program, if they +receive widespread use, become available for other developers to +incorporate. Many developers of free software are heartened and +encouraged by the resulting cooperation. However, in the case of +software used on network servers, this result may fail to come about. +The GNU General Public License permits making a modified version and +letting the public access it on a server without ever releasing its +source code to the public. + + The GNU Affero General Public License is designed specifically to +ensure that, in such cases, the modified source code becomes available +to the community. It requires the operator of a network server to +provide the source code of the modified version running there to the +users of that server. Therefore, public use of a modified version, on +a publicly accessible server, gives the public access to the source +code of the modified version. + + An older license, called the Affero General Public License and +published by Affero, was designed to accomplish similar goals. This is +a different license, not a version of the Affero GPL, but Affero has +released a new version of the Affero GPL which permits relicensing under +this license. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU Affero General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Remote Network Interaction; Use with the GNU General Public License. + + Notwithstanding any other provision of this License, if you modify the +Program, your modified version must prominently offer all users +interacting with it remotely through a computer network (if your version +supports such interaction) an opportunity to receive the Corresponding +Source of your version by providing access to the Corresponding Source +from a network server at no charge, through some standard or customary +means of facilitating copying of software. This Corresponding Source +shall include the Corresponding Source for any work covered by version 3 +of the GNU General Public License that is incorporated pursuant to the +following paragraph. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the work with which it is combined will remain governed by version +3 of the GNU General Public License. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU Affero General Public License from time to time. Such new versions +will be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU Affero General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU Affero General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU Affero General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If your software can interact with users remotely through a computer +network, you should also make sure that it provides a way for users to +get its source. For example, if your program is a web application, its +interface could display a "Source" link that leads users to an archive +of the code. There are many ways you could offer source, and different +solutions will be better for different programs; see section 13 for the +specific requirements. + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU AGPL, see +. diff --git a/README.md b/README.md new file mode 100644 index 000000000..e3c35c8f6 --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# KalturaOttClient + +[![CI Status](http://img.shields.io/travis/kaltura/KalturaOttGeneratedAPIClientsSwift.svg?style=flat)](https://travis-ci.org/kaltura/KalturaOttGeneratedAPIClientsSwift) +[![Version](https://img.shields.io/cocoapods/v/KalturaOttClient.svg?style=flat)](http://cocoapods.org/pods/KalturaOttClient) +[![License](https://img.shields.io/cocoapods/l/KalturaOttClient.svg?style=flat)](http://cocoapods.org/pods/KalturaOttClient) +[![Platform](https://img.shields.io/cocoapods/p/KalturaOttClient.svg?style=flat)](http://cocoapods.org/pods/KalturaOttClient) + +## Example + +To run the example project, clone the repo, and run `pod install` from the Example directory first. + +## Requirements + +## Installation + +KalturaOttClient is available through [CocoaPods](http://cocoapods.org). To install +it, simply add the following line to your Podfile: + +```ruby +pod "KalturaOttClient" +``` + +## Author + +community@kaltura.com + +## License and Copyright Information +All code in this project is released under the [AGPLv3 license](http://www.gnu.org/licenses/agpl-3.0.html) unless a different license for a particular library is specified in the applicable library path. + +Copyright © Kaltura Inc. All rights reserved. +Authors and contributors: See [GitHub contributors list](https://github.com/kaltura/KalturaOttGeneratedAPIClientsSwift/graphs/contributors). + +## Publishing + +```ruby +pod lib lint --fail-fast --allow-warnings +pod trunk push KalturaOttClient.podspec --allow-warnings +```