From 9a40ac5fec3fc83a1cc3d186d28ca8e4360c9110 Mon Sep 17 00:00:00 2001 From: Backend CI Date: Wed, 26 Jul 2023 07:00:22 +0000 Subject: [PATCH] Auto-generated by Jenkins job OTT-Generate-ClientLibs-ios-and-android/584, branch 9_0_0 --- .../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 | 211 ++++++ .../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 | 244 ++++++ .../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 | 60 ++ .../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 + .../Classes/Model/Enums/ApiAction.swift | 36 + .../ApiParameterPermissionItemAction.swift | 40 + .../Classes/Model/Enums/ApiService.swift | 36 + .../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/AssetOrderByStatistics.swift | 36 + .../Model/Enums/AssetOrderByType.swift | 45 ++ .../AssetPersonalMarkupSearchOrderBy.swift | 37 + .../Model/Enums/AssetReferenceType.swift | 39 + .../Model/Enums/AssetReminderOrderBy.swift | 44 ++ .../Model/Enums/AssetRuleOrderBy.swift | 38 + .../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 | 42 ++ .../Model/Enums/BillingItemsType.swift | 42 ++ .../Model/Enums/BillingPriceType.swift | 37 + .../Model/Enums/BookmarkActionType.swift | 49 ++ .../Classes/Model/Enums/BookmarkOrderBy.swift | 37 + .../Classes/Model/Enums/BooleanOperator.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 | 38 + .../Classes/Model/Enums/CampaignOrderBy.swift | 41 + .../Model/Enums/CategoryItemOrderBy.swift | 42 ++ .../Model/Enums/CategoryVersionOrderBy.swift | 37 + .../Model/Enums/CategoryVersionState.swift | 38 + .../Model/Enums/ChannelEnrichment.swift | 43 ++ .../Model/Enums/ChannelFieldOrderByType.swift | 43 ++ .../Classes/Model/Enums/ChannelOrderBy.swift | 47 ++ .../ChannelSlidingWindowOrderByType.swift | 39 + .../Classes/Model/Enums/ChannelStruct.swift | 37 + .../Classes/Model/Enums/ChannelType.swift | 37 + .../Classes/Model/Enums/ChannelsOrderBy.swift | 42 ++ .../Enums/ChronologicalRecordStartTime.swift | 38 + .../Model/Enums/CollectionOrderBy.swift | 40 + .../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 + .../Model/Enums/DeviceBrandOrderBy.swift | 37 + .../Classes/Model/Enums/DeviceBrandType.swift | 37 + .../Model/Enums/DeviceFamilyOrderBy.swift | 37 + .../Model/Enums/DeviceFamilyType.swift | 37 + .../Enums/DeviceReferenceDataOrderBy.swift | 36 + .../Classes/Model/Enums/DeviceStatus.swift | 38 + .../Classes/Model/Enums/DowngradePolicy.swift | 38 + .../Classes/Model/Enums/DrmSchemeName.swift | 41 + .../Classes/Model/Enums/DurationUnit.swift | 40 + .../Model/Enums/DynamicListOrderBy.swift | 36 + .../Classes/Model/Enums/EncryptionType.swift | 36 + .../Model/Enums/EngagementOrderBy.swift | 36 + .../Classes/Model/Enums/EngagementType.swift | 36 + .../Model/Enums/EntitlementOrderBy.swift | 37 + .../Classes/Model/Enums/EntityAttribute.swift | 36 + .../Model/Enums/EntityReferenceBy.swift | 37 + .../Classes/Model/Enums/EpgOrderBy.swift | 36 + .../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 | 40 + .../Classes/Model/Enums/GroupByOrder.swift | 40 + .../Classes/Model/Enums/GroupingOption.swift | 37 + .../Model/Enums/HouseholdCouponOrderBy.swift | 36 + .../Model/Enums/HouseholdDeviceOrderBy.swift | 38 + .../Model/Enums/HouseholdFrequencyType.swift | 37 + .../Model/Enums/HouseholdOrderBy.swift | 36 + .../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 | 40 + .../Enums/IngestEpgProgramResultOrderBy.swift | 46 ++ .../Model/Enums/IngestEpgProgramStatus.swift | 38 + .../Enums/IngestProfileAutofillPolicy.swift | 38 + .../Enums/IngestProfileOverlapPolicy.swift | 38 + .../Classes/Model/Enums/IngestStatus.swift | 40 + .../Classes/Model/Enums/IotOrderBy.swift | 36 + .../Model/Enums/IotProfileOrderBy.swift | 36 + .../Classes/Model/Enums/LabelOrderBy.swift | 36 + .../Classes/Model/Enums/LanguageOrderBy.swift | 39 + .../Model/Enums/LinearChannelType.swift | 40 + .../Enums/LineupRegionalChannelOrderBy.swift | 39 + .../ListGroupsRepresentativesOrderBy.swift | 36 + .../Enums/ManualCollectionAssetType.swift | 37 + .../Model/Enums/MathemticalOperatorType.swift | 38 + .../Enums/MediaFileDynamicDataOrderBy.swift | 36 + .../Model/Enums/MediaFileOrderBy.swift | 36 + .../Model/Enums/MediaFileStreamerType.swift | 41 + .../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 | 40 + .../Enums/NotWatchedReturnStrategy.swift | 37 + .../Model/Enums/NotificationType.swift | 39 + .../Classes/Model/Enums/OTTUserOrderBy.swift | 36 + .../Classes/Model/Enums/ObjectState.swift | 38 + .../Enums/ObjectVirtualAssetInfoType.swift | 41 + .../Model/Enums/ParentalRuleOrderBy.swift | 36 + .../Model/Enums/ParentalRuleType.swift | 38 + .../Enums/PartnerConfigurationOrderBy.swift | 36 + .../Enums/PartnerConfigurationType.swift | 50 ++ .../Model/Enums/PasswordPolicyOrderBy.swift | 36 + .../Enums/PaymentMethodProfileOrderBy.swift | 36 + .../Model/Enums/PaymentMethodType.swift | 49 ++ .../Model/Enums/PermissionItemOrderBy.swift | 36 + .../Model/Enums/PermissionOrderBy.swift | 36 + .../Classes/Model/Enums/PermissionType.swift | 38 + .../Enums/PersonalAssetSelectionOrderBy.swift | 36 + .../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 | 39 + .../Model/Enums/PreviewModuleOrderBy.swift | 36 + .../Model/Enums/PriceDetailsOrderBy.swift | 36 + .../Model/Enums/PricePlanOrderBy.swift | 36 + .../Model/Enums/ProductPriceOrderBy.swift | 37 + .../Enums/ProgramAssetGroupOfferOrderBy.swift | 39 + .../Model/Enums/ProtectionPolicy.swift | 37 + .../Model/Enums/PurchaseSettingsType.swift | 38 + .../Classes/Model/Enums/PurchaseStatus.swift | 52 ++ .../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 | 63 ++ .../Model/Enums/RuleConditionType.swift | 59 ++ .../Classes/Model/Enums/RuleLevel.swift | 39 + .../Classes/Model/Enums/RuleType.swift | 41 + .../Enums/ScheduledRecordingAssetType.swift | 38 + .../Model/Enums/SearchHistoryOrderBy.swift | 36 + .../Enums/SearchPriorityCriteriaType.swift | 36 + .../Enums/SearchPriorityGroupOrderBy.swift | 38 + .../Model/Enums/SegmentationTypeOrderBy.swift | 45 ++ .../Model/Enums/SeriesRecordingOrderBy.swift | 41 + .../Model/Enums/SeriesReminderOrderBy.swift | 36 + .../Classes/Model/Enums/SkipOperators.swift | 39 + .../Classes/Model/Enums/SkipOptions.swift | 38 + .../Enums/SmsAdapterProfileOrderBy.swift | 36 + .../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 + .../Model/Enums/StreamingDeviceOrderBy.swift | 36 + .../Enums/SubscriptionDependencyType.swift | 38 + .../Model/Enums/SubscriptionOrderBy.swift | 43 ++ .../Model/Enums/SubscriptionSetOrderBy.swift | 37 + .../Model/Enums/SubscriptionSetType.swift | 37 + .../Model/Enums/SubscriptionTriggerType.swift | 37 + .../SuspensionProfileInheritanceType.swift | 38 + .../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 | 39 + .../Classes/Model/Enums/TvmRuleOrderBy.swift | 36 + .../Classes/Model/Enums/TvmRuleType.swift | 37 + .../Model/Enums/UnmatchedItemsPolicy.swift | 38 + .../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/UserRoleProfile.swift | 40 + .../Classes/Model/Enums/UserRoleType.swift | 37 + .../Classes/Model/Enums/UserState.swift | 39 + .../Enums/VodIngestAssetResultOrderBy.swift | 43 ++ .../Enums/VodIngestAssetResultStatus.swift | 39 + .../Classes/Model/Enums/WatchStatus.swift | 38 + .../Enums/WatchedAllReturnStrategy.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/ActionResult.swift | 74 ++ .../AddDefaultIfEmptyResponseProfile.swift | 49 ++ .../Classes/Model/Objects/AdsContext.swift | 68 ++ .../Classes/Model/Objects/AdsSource.swift | 123 +++ .../Model/Objects/AggregatedIngestInfo.swift | 127 ++++ .../AggregatedPropertySkipCondition.swift | 73 ++ .../Objects/AggregationCountFilter.swift | 49 ++ .../Model/Objects/AllowPlaybackAction.swift | 48 ++ .../Classes/Model/Objects/Announcement.swift | 318 ++++++++ .../Model/Objects/AnnouncementFilter.swift | 73 ++ .../Objects/AnnouncementListResponse.swift | 69 ++ .../Objects/ApiActionPermissionItem.swift | 90 +++ .../Objects/ApiArgumentPermissionItem.swift | 108 +++ .../Model/Objects/ApiExceptionArg.swift | 90 +++ .../Objects/ApiParameterPermissionItem.swift | 108 +++ .../Objects/ApiPriviligesPermissionItem.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 ++ .../Model/Objects/AssetConditionBase.swift | 48 ++ .../Classes/Model/Objects/AssetCount.swift | 106 +++ .../Objects/AssetCountListResponse.swift | 87 +++ .../Model/Objects/AssetDynamicOrder.swift | 90 +++ .../Classes/Model/Objects/AssetEvent.swift | 112 +++ .../Model/Objects/AssetFieldGroupBy.swift | 73 ++ .../Classes/Model/Objects/AssetFile.swift | 73 ++ .../Model/Objects/AssetFileContext.swift | 110 +++ .../Classes/Model/Objects/AssetFilePpv.swift | 127 ++++ .../Model/Objects/AssetFilePpvFilter.swift | 91 +++ .../Objects/AssetFilePpvListResponse.swift | 69 ++ .../Classes/Model/Objects/AssetFilter.swift | 115 +++ .../Classes/Model/Objects/AssetGroupBy.swift | 49 ++ .../Classes/Model/Objects/AssetHistory.swift | 141 ++++ .../Model/Objects/AssetHistoryFilter.swift | 151 ++++ .../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 ++ .../Classes/Model/Objects/AssetOrder.swift | 72 ++ .../Objects/AssetOrderSegmentAction.swift | 87 +++ .../Model/Objects/AssetPersonalMarkup.swift | 99 +++ .../AssetPersonalMarkupListResponse.swift | 69 ++ .../AssetPersonalMarkupSearchFilter.swift | 69 ++ .../Objects/AssetPersonalSelection.swift | 96 +++ .../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 | 139 ++++ .../Model/Objects/AssetRuleListResponse.swift | 68 ++ .../Model/Objects/AssetShopCondition.swift | 83 +++ .../Model/Objects/AssetStatistics.swift | 156 ++++ .../Objects/AssetStatisticsListResponse.swift | 69 ++ .../Model/Objects/AssetStatisticsOrder.swift | 90 +++ .../Model/Objects/AssetStatisticsQuery.swift | 126 ++++ .../Classes/Model/Objects/AssetStruct.swift | 289 ++++++++ .../Model/Objects/AssetStructFilter.swift | 127 ++++ .../Objects/AssetStructListResponse.swift | 69 ++ .../Model/Objects/AssetStructMeta.swift | 243 ++++++ .../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 | 111 +++ .../Objects/AssetUserRuleFilterAction.swift | 72 ++ .../Objects/AssetUserRuleListResponse.swift | 68 ++ .../Classes/Model/Objects/AssetsCount.swift | 87 +++ .../Model/Objects/BaseAssetOrder.swift | 48 ++ .../Model/Objects/BaseAssetStructFilter.swift | 48 ++ .../Classes/Model/Objects/BaseChannel.swift | 73 ++ .../Model/Objects/BaseChannelOrder.swift | 48 ++ .../Classes/Model/Objects/BaseOTTUser.swift | 124 ++++ .../Objects/BasePartnerConfiguration.swift | 217 ++++++ .../Model/Objects/BasePermissionFilter.swift | 48 ++ .../Objects/BasePreActionCondition.swift | 48 ++ .../Classes/Model/Objects/BasePromotion.swift | 69 ++ .../Model/Objects/BaseRegionFilter.swift | 48 ++ .../Model/Objects/BaseResponseProfile.swift | 49 ++ .../Model/Objects/BaseSearchAssetFilter.swift | 146 ++++ .../Model/Objects/BaseSegmentAction.swift | 49 ++ .../Model/Objects/BaseSegmentCondition.swift | 49 ++ .../Model/Objects/BaseSegmentValue.swift | 49 ++ .../Objects/BaseSegmentationTypeFilter.swift | 48 ++ .../Classes/Model/Objects/BatchCampaign.swift | 69 ++ .../Objects/BatchCampaignSearchFilter.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 | 185 +++++ .../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/BulkUploadDynamicListData.swift | 73 ++ .../Objects/BulkUploadDynamicListResult.swift | 48 ++ .../Objects/BulkUploadExcelJobData.swift | 49 ++ .../Model/Objects/BulkUploadFilter.swift | 128 ++++ .../Objects/BulkUploadIngestJobData.swift | 93 +++ .../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 ++++ .../Model/Objects/BulkUploadStatistics.swift | 235 ++++++ .../BulkUploadUdidDynamicListData.swift | 49 ++ .../BulkUploadUdidDynamicListResult.swift | 65 ++ .../Objects/BumpersPlaybackPluginData.swift | 90 +++ .../Classes/Model/Objects/BundleFilter.swift | 111 +++ .../Objects/BusinessModuleCondition.swift | 91 +++ .../Model/Objects/BusinessModuleDetails.swift | 90 +++ .../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 ++ .../Classes/Model/Objects/Campaign.swift | 270 +++++++ .../CampaignEntitlementDiscountDetails.swift | 49 ++ .../Model/Objects/CampaignFilter.swift | 49 ++ .../Model/Objects/CampaignIdInFilter.swift | 72 ++ .../Model/Objects/CampaignListResponse.swift | 68 ++ .../Model/Objects/CampaignSearchFilter.swift | 198 +++++ .../Model/Objects/CampaignSegmentFilter.swift | 72 ++ .../Objects/CaptionPlaybackPluginData.swift | 126 ++++ .../Model/Objects/CatalogPartnerConfig.swift | 138 ++++ .../Classes/Model/Objects/CategoryItem.swift | 296 ++++++++ .../Objects/CategoryItemAncestorsFilter.swift | 72 ++ .../Objects/CategoryItemByIdInFilter.swift | 72 ++ .../Model/Objects/CategoryItemFilter.swift | 48 ++ .../Objects/CategoryItemListResponse.swift | 68 ++ .../Objects/CategoryItemSearchFilter.swift | 108 +++ .../Model/Objects/CategoryManagement.swift | 87 +++ .../Classes/Model/Objects/CategoryTree.swift | 269 +++++++ .../Model/Objects/CategoryVersion.swift | 229 ++++++ .../Model/Objects/CategoryVersionFilter.swift | 48 ++ .../Objects/CategoryVersionFilterByTree.swift | 90 +++ .../Objects/CategoryVersionListResponse.swift | 68 ++ .../Classes/Model/Objects/Channel.swift | 306 ++++++++ .../Objects/ChannelAggregatedIngestInfo.swift | 83 +++ .../Model/Objects/ChannelCondition.swift | 72 ++ .../Model/Objects/ChannelDynamicOrder.swift | 90 +++ .../Objects/ChannelEnrichmentHolder.swift | 73 ++ .../Model/Objects/ChannelExternalFilter.swift | 126 ++++ .../Model/Objects/ChannelFieldOrder.swift | 72 ++ .../Classes/Model/Objects/ChannelFilter.swift | 90 +++ .../Model/Objects/ChannelListResponse.swift | 68 ++ .../Classes/Model/Objects/ChannelOrder.swift | 103 +++ .../Objects/ChannelSearchByKsqlFilter.swift | 90 +++ .../Objects/ChannelSlidingWindowOrder.swift | 90 +++ .../Model/Objects/ChannelsBaseFilter.swift | 48 ++ .../Model/Objects/ChannelsFilter.swift | 163 ++++ .../Model/Objects/ClientConfiguration.swift | 91 +++ .../Model/Objects/CloudRecordingFilter.swift | 69 ++ .../Objects/CloudSeriesRecordingFilter.swift | 69 ++ .../Classes/Model/Objects/Collection.swift | 438 +++++++++++ .../Model/Objects/CollectionCouponGroup.swift | 109 +++ .../Model/Objects/CollectionEntitlement.swift | 48 ++ .../Model/Objects/CollectionFilter.swift | 164 ++++ .../Objects/CollectionListResponse.swift | 69 ++ .../Model/Objects/CollectionPrice.swift | 49 ++ .../Model/Objects/CommercePartnerConfig.swift | 126 ++++ .../Classes/Model/Objects/Compensation.swift | 172 +++++ ...mpensationEntitlementDiscountDetails.swift | 49 ++ .../Model/Objects/ConcurrencyCondition.swift | 91 +++ .../Objects/ConcurrencyPartnerConfig.swift | 146 ++++ .../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 | 212 ++++++ .../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 +++ .../CouponEntitlementDiscountDetails.swift | 81 ++ .../Objects/CouponGenerationOptions.swift | 49 ++ .../Model/Objects/CouponListResponse.swift | 68 ++ .../Model/Objects/CouponPromotion.swift | 73 ++ .../Classes/Model/Objects/CouponsGroup.swift | 217 ++++++ .../Objects/CouponsGroupListResponse.swift | 69 ++ .../Classes/Model/Objects/Currency.swift | 145 ++++ .../Model/Objects/CurrencyFilter.swift | 91 +++ .../Model/Objects/CurrencyListResponse.swift | 68 ++ .../Objects/CustomDrmPlaybackPluginData.swift | 72 ++ .../CustomFieldsPartnerConfiguration.swift | 73 ++ .../Model/Objects/DataEncryption.swift | 65 ++ .../Objects/DateAggregatedIngestInfo.swift | 83 +++ .../Classes/Model/Objects/DateCondition.swift | 91 +++ .../Classes/Model/Objects/DateTrigger.swift | 72 ++ ...DefaultParentalSettingsPartnerConfig.swift | 144 ++++ .../Objects/DefaultPlaybackAdapters.swift | 108 +++ .../Model/Objects/DefaultRegionFilter.swift | 48 ++ .../Objects/DetachedResponseProfile.swift | 98 +++ .../Classes/Model/Objects/DeviceBrand.swift | 125 ++++ .../Model/Objects/DeviceBrandCondition.swift | 72 ++ .../Model/Objects/DeviceBrandFilter.swift | 126 ++++ .../Objects/DeviceBrandListResponse.swift | 68 ++ .../Objects/DeviceDynamicDataCondition.swift | 90 +++ .../Classes/Model/Objects/DeviceFamily.swift | 49 ++ .../Model/Objects/DeviceFamilyBase.swift | 107 +++ .../Model/Objects/DeviceFamilyCondition.swift | 72 ++ .../Model/Objects/DeviceFamilyFilter.swift | 108 +++ .../Objects/DeviceFamilyListResponse.swift | 68 ++ .../Objects/DeviceManufacturerCondition.swift | 72 ++ .../DeviceManufacturerInformation.swift | 49 ++ ...viceManufacturersReferenceDataFilter.swift | 72 ++ .../Model/Objects/DeviceModelCondition.swift | 72 ++ .../Classes/Model/Objects/DevicePin.swift | 73 ++ .../Model/Objects/DeviceReferenceData.swift | 106 +++ .../Objects/DeviceReferenceDataFilter.swift | 73 ++ .../DeviceReferenceDataListResponse.swift | 68 ++ .../Classes/Model/Objects/DeviceReport.swift | 247 ++++++ .../Model/Objects/DeviceReportFilter.swift | 73 ++ .../Classes/Model/Objects/Discount.swift | 73 ++ .../Model/Objects/DiscountDetails.swift | 174 +++++ .../Model/Objects/DiscountDetailsFilter.swift | 72 ++ .../Objects/DiscountDetailsListResponse.swift | 68 ++ .../DiscountEntitlementDiscountDetails.swift | 49 ++ .../Model/Objects/DiscountModule.swift | 127 ++++ .../Model/Objects/DiscoveryMediaFile.swift | 73 ++ .../Classes/Model/Objects/Dispatcher.swift | 48 ++ .../Classes/Model/Objects/DoubleValue.swift | 73 ++ .../Model/Objects/DrmPlaybackPluginData.swift | 104 +++ .../Classes/Model/Objects/DrmProfile.swift | 175 +++++ .../Objects/DrmProfileListResponse.swift | 68 ++ .../Classes/Model/Objects/Duration.swift | 107 +++ .../Model/Objects/DurationListResponse.swift | 68 ++ .../Model/Objects/DynamicChannel.swift | 119 +++ .../Classes/Model/Objects/DynamicData.swift | 83 +++ .../Model/Objects/DynamicKeysCondition.swift | 90 +++ .../Classes/Model/Objects/DynamicList.swift | 117 +++ .../Model/Objects/DynamicListFilter.swift | 49 ++ .../Model/Objects/DynamicListIdInFilter.swift | 73 ++ .../Objects/DynamicListListResponse.swift | 68 ++ .../Objects/DynamicListSearchFilter.swift | 91 +++ .../Model/Objects/DynamicOrderBy.swift | 91 +++ .../Classes/Model/Objects/EmailMessage.swift | 212 ++++++ .../Classes/Model/Objects/Encryption.swift | 72 ++ .../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 | 287 +++++++ .../Objects/EntitlementDiscountDetails.swift | 96 +++ ...EntitlementDiscountDetailsIdentifier.swift | 65 ++ .../Model/Objects/EntitlementFilter.swift | 109 +++ .../Objects/EntitlementListResponse.swift | 69 ++ .../Objects/EntitlementPriceDetails.swift | 70 ++ .../Model/Objects/EntitlementRenewal.swift | 137 ++++ .../Objects/EntitlementRenewalBase.swift | 108 +++ KalturaClient/Classes/Model/Objects/Epg.swift | 48 ++ .../Classes/Model/Objects/EpgFilter.swift | 91 +++ .../Model/Objects/EpgIngestErrorMessage.swift | 105 +++ .../Model/Objects/EpgListResponse.swift | 69 ++ .../Objects/EpgNotificationSettings.swift | 148 ++++ .../EpgServicePartnerConfiguration.swift | 90 +++ .../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 ++ .../Classes/Model/Objects/ExpressionAnd.swift | 69 ++ .../Classes/Model/Objects/ExpressionNot.swift | 66 ++ .../Classes/Model/Objects/ExpressionOr.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 ++ .../Model/Objects/FileTypeCondition.swift | 72 ++ .../Classes/Model/Objects/Filter.swift | 72 ++ .../Classes/Model/Objects/FilterAction.swift | 65 ++ .../Objects/FilterAssetByKsqlAction.swift | 72 ++ .../FilterFileByAudioCodecAction.swift | 73 ++ ...terFileByAudioCodecInDiscoveryAction.swift | 48 ++ ...lterFileByAudioCodecInPlaybackAction.swift | 48 ++ .../FilterFileByDynamicDataAction.swift | 91 +++ ...erFileByDynamicDataInDiscoveryAction.swift | 48 ++ ...terFileByDynamicDataInPlaybackAction.swift | 48 ++ .../FilterFileByFileTypeIdAction.swift | 73 ++ ...erFileByFileTypeIdForAssetTypeAction.swift | 73 ++ ...eTypeIdForAssetTypeInDiscoveryAction.swift | 48 ++ ...leTypeIdForAssetTypeInPlaybackAction.swift | 48 ++ ...terFileByFileTypeIdInDiscoveryAction.swift | 48 ++ ...lterFileByFileTypeIdInPlaybackAction.swift | 48 ++ .../Objects/FilterFileByLabelAction.swift | 73 ++ .../FilterFileByLabelInDiscoveryAction.swift | 48 ++ .../FilterFileByLabelInPlaybackAction.swift | 48 ++ .../Objects/FilterFileByQualityAction.swift | 73 ++ ...FilterFileByQualityInDiscoveryAction.swift | 48 ++ .../FilterFileByQualityInPlaybackAction.swift | 48 ++ .../FilterFileByStreamerTypeAction.swift | 73 ++ .../FilterFileByStreamerTypeInDiscovery.swift | 48 ++ .../FilterFileByStreamerTypeInPlayback.swift | 48 ++ .../FilterFileByVideoCodecAction.swift | 73 ++ ...terFileByVideoCodecInDiscoveryAction.swift | 48 ++ .../FilterFileByVideoCodecInPlayback.swift | 48 ++ .../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 | 391 ++++++++++ .../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 | 322 ++++++++ .../Model/Objects/HouseholdCoupon.swift | 91 +++ .../Objects/HouseholdCouponCodeFilter.swift | 49 ++ .../Model/Objects/HouseholdCouponFilter.swift | 126 ++++ .../Objects/HouseholdCouponListResponse.swift | 68 ++ .../Model/Objects/HouseholdDevice.swift | 299 ++++++++ .../HouseholdDeviceFamilyLimitations.swift | 139 ++++ .../Model/Objects/HouseholdDeviceFilter.swift | 108 +++ .../Objects/HouseholdDeviceListResponse.swift | 68 ++ .../Model/Objects/HouseholdFilter.swift | 73 ++ .../Model/Objects/HouseholdLimitations.swift | 273 +++++++ .../HouseholdLimitationsListResponse.swift | 69 ++ .../Model/Objects/HouseholdListResponse.swift | 68 ++ .../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 | 216 ++++++ .../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 ++ .../Model/Objects/ImmediateRecording.swift | 103 +++ .../Classes/Model/Objects/InboxMessage.swift | 168 +++++ .../Model/Objects/InboxMessageFilter.swift | 108 +++ .../Objects/InboxMessageListResponse.swift | 69 ++ .../Objects/IngestByCompoundFilter.swift | 145 ++++ .../Model/Objects/IngestByIdsFilter.swift | 72 ++ .../Classes/Model/Objects/IngestEpg.swift | 195 +++++ .../Model/Objects/IngestEpgDetails.swift | 79 ++ .../Objects/IngestEpgDetailsAggregation.swift | 95 +++ .../Objects/IngestEpgProgramResult.swift | 209 ++++++ .../IngestEpgProgramResultFilter.swift | 48 ++ .../Classes/Model/Objects/IngestProfile.swift | 228 ++++++ .../Objects/IngestProfileListResponse.swift | 68 ++ ...ProgramResultsByCombinedFieldsFilter.swift | 73 ++ ...IngestProgramResultsByCompoundFilter.swift | 73 ++ ...estProgramResultsByExternalIdsFilter.swift | 72 ++ ...gestProgramResultsByProgramIdsFilter.swift | 73 ++ .../IngestProgramResultsByRefineFilter.swift | 112 +++ .../IngestStatusEpgConfiguration.swift | 91 +++ .../Objects/IngestStatusEpgListResponse.swift | 68 ++ ...stStatusEpgProgramResultListResponse.swift | 68 ++ .../IngestStatusPartnerConfiguration.swift | 76 ++ .../IngestStatusVodConfiguration.swift | 91 +++ .../Classes/Model/Objects/IntegerValue.swift | 73 ++ .../Objects/IntegerValueListResponse.swift | 69 ++ KalturaClient/Classes/Model/Objects/Iot.swift | 271 +++++++ .../Objects/IotClientConfiguration.swift | 303 ++++++++ .../Classes/Model/Objects/IotFilter.swift | 49 ++ .../Model/Objects/IotListResponse.swift | 68 ++ .../Classes/Model/Objects/IotProfileAws.swift | 199 +++++ .../Model/Objects/IotProfileFilter.swift | 49 ++ .../Model/Objects/IpRangeCondition.swift | 91 +++ .../Model/Objects/IpV6RangeCondition.swift | 91 +++ .../Classes/Model/Objects/KeyValue.swift | 90 +++ .../Model/Objects/KsqlSegmentAction.swift | 73 ++ .../Classes/Model/Objects/Label.swift | 105 +++ .../Classes/Model/Objects/LabelFilter.swift | 126 ++++ .../Model/Objects/LabelListResponse.swift | 68 ++ .../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 ++ .../Objects/LinearAssetStructFilter.swift | 48 ++ .../Model/Objects/LineupChannelAsset.swift | 75 ++ .../LineupChannelAssetListResponse.swift | 68 ++ .../Objects/LineupNotificationSettings.swift | 72 ++ .../Objects/LineupRegionalChannelFilter.swift | 145 ++++ .../ListGroupsRepresentativesFilter.swift | 73 ++ .../Classes/Model/Objects/ListResponse.swift | 72 ++ .../Classes/Model/Objects/LiveAsset.swift | 394 ++++++++++ .../Objects/LiveToVodFullConfiguration.swift | 125 ++++ .../Model/Objects/LiveToVodInfoAsset.swift | 198 +++++ .../LiveToVodLinearAssetConfiguration.swift | 112 +++ .../LiveToVodPartnerConfiguration.swift | 110 +++ .../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 | 87 +++ .../Model/Objects/ManualCollectionAsset.swift | 90 +++ .../Classes/Model/Objects/MediaAsset.swift | 174 +++++ .../Model/Objects/MediaConcurrencyRule.swift | 127 ++++ .../MediaConcurrencyRuleListResponse.swift | 68 ++ .../Classes/Model/Objects/MediaFile.swift | 506 +++++++++++++ .../Model/Objects/MediaFileDynamicData.swift | 128 ++++ .../Objects/MediaFileDynamicDataFilter.swift | 146 ++++ .../MediaFileDynamicDataListResponse.swift | 68 ++ .../Model/Objects/MediaFileFilter.swift | 90 +++ .../Model/Objects/MediaFileListResponse.swift | 69 ++ .../Classes/Model/Objects/MediaFileType.swift | 281 +++++++ .../Objects/MediaFileTypeListResponse.swift | 69 ++ .../Classes/Model/Objects/MediaImage.swift | 214 ++++++ .../Classes/Model/Objects/Message.swift | 105 +++ .../Model/Objects/MessageTemplate.swift | 217 ++++++ .../Classes/Model/Objects/Meta.swift | 269 +++++++ .../Classes/Model/Objects/MetaFilter.swift | 127 ++++ .../Model/Objects/MetaListResponse.swift | 69 ++ .../Model/Objects/MonetizationCondition.swift | 182 +++++ .../Model/Objects/MonetizationSource.swift | 109 +++ .../Objects/MultilingualStringValue.swift | 84 +++ .../MultilingualStringValueArray.swift | 69 ++ .../Model/Objects/NetworkActionStatus.swift | 90 +++ .../Objects/NoShopPreActionCondition.swift | 48 ++ .../Classes/Model/Objects/NotCondition.swift | 73 ++ .../NotificationsPartnerSettings.swift | 400 ++++++++++ .../Model/Objects/NotificationsSettings.swift | 127 ++++ .../Model/Objects/NpvrPremiumService.swift | 73 ++ .../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 | 145 ++++ .../Model/Objects/OTTUserListResponse.swift | 69 ++ .../Classes/Model/Objects/OTTUserType.swift | 88 +++ .../Objects/ObjectVirtualAssetInfo.swift | 122 +++ .../ObjectVirtualAssetPartnerConfig.swift | 68 ++ .../Objects/OnDemandResponseProfile.swift | 73 ++ .../Objects/OpcPartnerConfiguration.swift | 65 ++ .../Classes/Model/Objects/OrCondition.swift | 68 ++ .../Model/Objects/PaddedRecording.swift | 122 +++ .../Classes/Model/Objects/ParentalRule.swift | 304 ++++++++ .../Model/Objects/ParentalRuleFilter.swift | 72 ++ .../Objects/ParentalRuleListResponse.swift | 69 ++ .../Classes/Model/Objects/Partner.swift | 126 ++++ .../Model/Objects/PartnerConfiguration.swift | 49 ++ .../Objects/PartnerConfigurationFilter.swift | 73 ++ .../PartnerConfigurationListResponse.swift | 68 ++ .../Classes/Model/Objects/PartnerFilter.swift | 72 ++ .../Model/Objects/PartnerListResponse.swift | 68 ++ .../Model/Objects/PartnerPremiumService.swift | 106 +++ .../Objects/PartnerPremiumServices.swift | 68 ++ .../Classes/Model/Objects/PartnerSetup.swift | 102 +++ .../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 | 303 ++++++++ .../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 | 156 ++++ .../Objects/PermissionByIdInFilter.swift | 72 ++ .../Model/Objects/PermissionFilter.swift | 91 +++ .../Model/Objects/PermissionItem.swift | 105 +++ .../PermissionItemByApiActionFilter.swift | 91 +++ .../PermissionItemByArgumentFilter.swift | 74 ++ .../Objects/PermissionItemByIdInFilter.swift | 72 ++ .../PermissionItemByParameterFilter.swift | 91 +++ .../Model/Objects/PermissionItemFilter.swift | 48 ++ .../Objects/PermissionItemListResponse.swift | 68 ++ .../Objects/PermissionListResponse.swift | 69 ++ .../Model/Objects/PersistedFilter.swift | 73 ++ ...PersonalActivityCleanupConfiguration.swift | 72 ++ .../PersonalAssetSelectionFilter.swift | 72 ++ .../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 | 159 ++++ .../Model/Objects/PlaybackPartnerConfig.swift | 66 ++ .../Model/Objects/PlaybackPluginData.swift | 48 ++ .../Model/Objects/PlaybackProfile.swift | 193 +++++ .../Model/Objects/PlaybackProfileFilter.swift | 73 ++ .../Objects/PlaybackProfileListResponse.swift | 68 ++ .../Model/Objects/PlaybackSource.swift | 154 ++++ .../Classes/Model/Objects/PluginData.swift | 48 ++ KalturaClient/Classes/Model/Objects/Ppv.swift | 393 ++++++++++ .../Model/Objects/PpvEntitlement.swift | 81 ++ .../Classes/Model/Objects/PpvFilter.swift | 146 ++++ .../Model/Objects/PpvListResponse.swift | 69 ++ .../Classes/Model/Objects/PpvPrice.swift | 340 +++++++++ .../Model/Objects/PremiumService.swift | 91 +++ .../Classes/Model/Objects/PreviewModule.swift | 125 ++++ .../Model/Objects/PreviewModuleFilter.swift | 72 ++ .../Objects/PreviewModuleListResponse.swift | 68 ++ .../Classes/Model/Objects/Price.swift | 142 ++++ .../Classes/Model/Objects/PriceDetails.swift | 125 ++++ .../Model/Objects/PriceDetailsFilter.swift | 72 ++ .../Objects/PriceDetailsListResponse.swift | 68 ++ .../Classes/Model/Objects/PricePlan.swift | 128 ++++ .../Model/Objects/PricePlanFilter.swift | 72 ++ .../Model/Objects/PricePlanListResponse.swift | 68 ++ .../Model/Objects/PriorityGroupFilter.swift | 49 ++ .../Classes/Model/Objects/ProductCode.swift | 91 +++ .../Classes/Model/Objects/ProductMarkup.swift | 96 +++ .../Classes/Model/Objects/ProductPrice.swift | 141 ++++ .../Model/Objects/ProductPriceFilter.swift | 162 ++++ .../Objects/ProductPriceListResponse.swift | 69 ++ .../Objects/ProductsPriceListResponse.swift | 69 ++ .../Classes/Model/Objects/ProgramAsset.swift | 246 ++++++ .../Model/Objects/ProgramAssetEvent.swift | 65 ++ .../Objects/ProgramAssetGroupOffer.swift | 335 +++++++++ .../ProgramAssetGroupOfferEntitlement.swift | 49 ++ ...gramAssetGroupOfferEntitlementFilter.swift | 49 ++ .../ProgramAssetGroupOfferFilter.swift | 91 +++ .../ProgramAssetGroupOfferIdInFilter.swift | 73 ++ .../ProgramAssetGroupOfferListResponse.swift | 69 ++ .../Objects/ProgramAssetGroupOfferPrice.swift | 49 ++ .../Classes/Model/Objects/Promotion.swift | 110 +++ .../Classes/Model/Objects/PromotionInfo.swift | 72 ++ .../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 | 203 +++++ .../Model/Objects/RecordingAsset.swift | 129 ++++ .../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 ++++ .../Model/Objects/RegionChannelNumber.swift | 90 +++ .../RegionChannelNumberMultiLcns.swift | 72 ++ .../Classes/Model/Objects/RegionFilter.swift | 162 ++++ .../Model/Objects/RegionListResponse.swift | 69 ++ .../Model/Objects/RegionalChannel.swift | 90 +++ .../Objects/RegionalChannelMultiLcns.swift | 72 ++ .../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 ++ .../RepresentativeSelectionPolicy.swift | 48 ++ .../Model/Objects/RequestConfiguration.swift | 203 +++++ .../Objects/ResetPasswordPartnerConfig.swift | 86 +++ .../ResetPasswordPartnerConfigTemplate.swift | 108 +++ .../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 | 144 ++++ .../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 ++ .../Objects/SearchPriorityCriteria.swift | 92 +++ .../Model/Objects/SearchPriorityGroup.swift | 109 +++ .../Objects/SearchPriorityGroupFilter.swift | 90 +++ .../SearchPriorityGroupListResponse.swift | 68 ++ .../SearchPriorityGroupOrderedIdsSet.swift | 72 ++ .../Model/Objects/SeasonsReminderFilter.swift | 108 +++ .../Model/Objects/SecurityPartnerConfig.swift | 65 ++ .../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 ++ .../SegmentationPartnerConfiguration.swift | 93 +++ .../Model/Objects/SegmentationType.swift | 242 ++++++ .../Objects/SegmentationTypeFilter.swift | 127 ++++ .../SegmentationTypeListResponse.swift | 69 ++ .../Model/Objects/SegmentsCondition.swift | 73 ++ .../Model/Objects/SeriesIdArguments.swift | 144 ++++ .../Model/Objects/SeriesRecording.swift | 213 ++++++ .../Model/Objects/SeriesRecordingFilter.swift | 49 ++ .../Objects/SeriesRecordingListResponse.swift | 69 ++ .../Model/Objects/SeriesRecordingOption.swift | 108 +++ .../Model/Objects/SeriesReminder.swift | 108 +++ .../Model/Objects/SeriesReminderFilter.swift | 90 +++ .../Classes/Model/Objects/Session.swift | 181 +++++ .../Classes/Model/Objects/SessionInfo.swift | 49 ++ .../Objects/ShopPreActionCondition.swift | 72 ++ .../Model/Objects/SingleSegmentValue.swift | 95 +++ .../Classes/Model/Objects/SkipCondition.swift | 49 ++ .../Model/Objects/SkipOnErrorCondition.swift | 73 ++ .../Classes/Model/Objects/SlimAsset.swift | 91 +++ .../Model/Objects/SmsAdapterProfile.swift | 174 +++++ .../Objects/SmsAdapterProfileFilter.swift | 48 ++ .../SmsAdapterProfileListResponse.swift | 68 ++ .../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 ++ .../Model/Objects/StreamingDevice.swift | 96 +++ .../Model/Objects/StreamingDeviceFilter.swift | 73 ++ .../Objects/StreamingDeviceListResponse.swift | 69 ++ .../Classes/Model/Objects/StringValue.swift | 73 ++ .../Model/Objects/StringValueArray.swift | 68 ++ .../Model/Objects/SubscribeReference.swift | 48 ++ .../Classes/Model/Objects/Subscription.swift | 701 ++++++++++++++++++ .../Model/Objects/SubscriptionCondition.swift | 72 ++ .../Objects/SubscriptionCouponGroup.swift | 109 +++ .../Objects/SubscriptionDependencySet.swift | 73 ++ .../SubscriptionDependencySetFilter.swift | 72 ++ .../Objects/SubscriptionEntitlement.swift | 205 +++++ .../Model/Objects/SubscriptionFilter.swift | 253 +++++++ .../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/Tag.swift | 116 +++ .../Classes/Model/Objects/TagFilter.swift | 144 ++++ .../Model/Objects/TagListResponse.swift | 68 ++ .../Model/Objects/TimeOffsetRuleAction.swift | 91 +++ .../TimeShiftedTvPartnerSettings.swift | 529 +++++++++++++ .../Classes/Model/Objects/TopRsp.swift | 65 ++ .../Objects/TopSubscriptionEntitledRsp.swift | 65 ++ .../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 ++ .../TrailEntitlementDiscountDetails.swift | 49 ++ .../Classes/Model/Objects/Transaction.swift | 167 +++++ .../Objects/TransactionHistoryFilter.swift | 181 +++++ .../Model/Objects/TransactionStatus.swift | 144 ++++ .../Model/Objects/TranslationToken.swift | 91 +++ .../Classes/Model/Objects/Trigger.swift | 48 ++ .../Model/Objects/TriggerCampaign.swift | 105 +++ .../Model/Objects/TriggerCampaignEvent.swift | 110 +++ .../Objects/TriggerCampaignSearchFilter.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/UdidDynamicList.swift | 48 ++ .../Objects/UdidDynamicListCondition.swift | 72 ++ .../Objects/UdidDynamicListSearchFilter.swift | 49 ++ .../Model/Objects/UnifiedBillingCycle.swift | 119 +++ .../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 | 217 ++++++ .../Model/Objects/UsageModuleFilter.swift | 72 ++ .../Objects/UsageModuleListResponse.swift | 68 ++ .../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 | 156 ++++ .../Model/Objects/UserRoleCondition.swift | 74 ++ .../Model/Objects/UserRoleFilter.swift | 127 ++++ .../Model/Objects/UserRoleListResponse.swift | 69 ++ .../Classes/Model/Objects/UserSegment.swift | 91 +++ .../Model/Objects/UserSegmentFilter.swift | 91 +++ .../Objects/UserSegmentListResponse.swift | 69 ++ .../Model/Objects/UserSessionCondition.swift | 66 ++ .../Model/Objects/UserSessionProfile.swift | 99 +++ .../Objects/UserSessionProfileCondition.swift | 73 ++ .../UserSessionProfileExpression.swift | 49 ++ .../Objects/UserSessionProfileFilter.swift | 73 ++ .../UserSessionProfileListResponse.swift | 68 ++ .../Objects/UserSocialActionResponse.swift | 79 ++ .../Objects/UserSubscriptionCondition.swift | 50 ++ .../Classes/Model/Objects/Value.swift | 73 ++ .../Model/Objects/VodIngestAssetResult.swift | 196 +++++ .../VodIngestAssetResultAggregation.swift | 169 +++++ .../VodIngestAssetResultErrorMessage.swift | 91 +++ .../Objects/VodIngestAssetResultFilter.swift | 188 +++++ .../VodIngestAssetResultListResponse.swift | 68 ++ .../VodIngestAssetResultResponse.swift | 76 ++ .../Services/AnnouncementService.swift | 150 ++++ .../Classes/Services/AppTokenService.swift | 143 ++++ .../Services/AssetCommentService.swift | 76 ++ .../Services/AssetFilePpvService.swift | 120 +++ .../Classes/Services/AssetFileService.swift | 139 ++++ .../Services/AssetHistoryService.swift | 136 ++++ .../Services/AssetPersonalMarkupService.swift | 52 ++ .../AssetPersonalSelectionService.swift | 116 +++ .../Classes/Services/AssetRuleService.swift | 110 +++ .../Classes/Services/AssetService.swift | 412 ++++++++++ .../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 ++ .../BulkUploadStatisticsService.swift | 61 ++ .../Services/BusinessModuleRuleService.swift | 127 ++++ .../Services/CDVRAdapterProfileService.swift | 118 +++ .../Classes/Services/CampaignService.swift | 139 ++++ .../Services/CategoryItemService.swift | 119 +++ .../Services/CategoryTreeService.swift | 122 +++ .../Services/CategoryVersionService.swift | 174 +++++ .../Services/CdnAdapterProfileService.swift | 118 +++ .../Services/CdnPartnerSettingsService.swift | 62 ++ .../Classes/Services/ChannelService.swift | 137 ++++ .../Classes/Services/CollectionService.swift | 120 +++ .../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 | 54 ++ .../Services/CouponsGroupService.swift | 140 ++++ .../Classes/Services/CurrencyService.swift | 53 ++ .../Classes/Services/DeviceBrandService.swift | 102 +++ .../Services/DeviceFamilyService.swift | 102 +++ .../Services/DeviceReferenceDataService.swift | 115 +++ .../Services/DiscountDetailsService.swift | 111 +++ .../Classes/Services/DrmProfileService.swift | 79 ++ .../Classes/Services/DurationService.swift | 47 ++ .../Classes/Services/DynamicListService.swift | 136 ++++ .../Classes/Services/EmailService.swift | 52 ++ .../Services/EngagementAdapterService.swift | 135 ++++ .../Classes/Services/EngagementService.swift | 101 +++ .../Classes/Services/EntitlementService.swift | 297 ++++++++ .../Classes/Services/EpgService.swift | 56 ++ ...pgServicePartnerConfigurationService.swift | 62 ++ .../EventNotificationActionService.swift | 52 ++ .../Services/EventNotificationService.swift | 74 ++ .../Classes/Services/ExportTaskService.swift | 127 ++++ .../ExternalChannelProfileService.swift | 110 +++ .../Classes/Services/FavoriteService.swift | 88 +++ .../Services/FollowTvSeriesService.swift | 125 ++++ .../Classes/Services/HomeNetworkService.swift | 101 +++ .../Services/HouseholdCouponService.swift | 88 +++ .../Services/HouseholdDeviceService.swift | 303 ++++++++ .../HouseholdLimitationsService.swift | 135 ++++ .../HouseholdPaymentGatewayService.swift | 211 ++++++ .../HouseholdPaymentMethodService.swift | 134 ++++ .../HouseholdPremiumServiceService.swift | 47 ++ .../Services/HouseholdQuotaService.swift | 47 ++ .../Services/HouseholdSegmentService.swift | 88 +++ .../Classes/Services/HouseholdService.swift | 202 +++++ .../Services/HouseholdUserService.swift | 88 +++ .../Classes/Services/ImageService.swift | 106 +++ .../Classes/Services/ImageTypeService.swift | 110 +++ .../Services/InboxMessageService.swift | 106 +++ .../Services/IngestProfileService.swift | 101 +++ .../Services/IngestStatusService.swift | 180 +++++ .../Classes/Services/IotProfileService.swift | 47 ++ .../Classes/Services/IotService.swift | 57 ++ .../Classes/Services/LabelService.swift | 116 +++ .../Classes/Services/LanguageService.swift | 53 ++ .../Classes/Services/LicensedUrlService.swift | 52 ++ .../Classes/Services/LineupService.swift | 109 +++ .../Classes/Services/LiveToVodService.swift | 105 +++ .../MediaConcurrencyRuleService.swift | 47 ++ .../MediaFileDynamicDataService.swift | 94 +++ .../Classes/Services/MediaFileService.swift | 110 +++ .../Services/MediaFileTypeService.swift | 101 +++ .../Services/MessageTemplateService.swift | 76 ++ .../Classes/Services/MetaService.swift | 110 +++ .../Services/NotificationService.swift | 139 ++++ .../NotificationsPartnerSettingsService.swift | 62 ++ .../NotificationsSettingsService.swift | 91 +++ .../Services/OssAdapterProfileService.swift | 135 ++++ .../Classes/Services/OttCategoryService.swift | 54 ++ .../Classes/Services/OttUserService.swift | 569 ++++++++++++++ .../Services/ParentalRuleService.swift | 192 +++++ .../PartnerConfigurationService.swift | 67 ++ .../PartnerPremiumServicesService.swift | 62 ++ .../Classes/Services/PartnerService.swift | 113 +++ .../Services/PasswordPolicyService.swift | 110 +++ .../PaymentGatewayProfileService.swift | 149 ++++ .../PaymentMethodProfileService.swift | 106 +++ .../Services/PermissionItemService.swift | 65 ++ .../Classes/Services/PermissionService.swift | 169 +++++ .../PersonalActivityCleanupService.swift | 62 ++ .../Services/PersonalFeedService.swift | 61 ++ .../Services/PersonalListService.swift | 98 +++ .../Classes/Services/PinService.swift | 149 ++++ .../Services/PlaybackProfileService.swift | 127 ++++ .../Classes/Services/PpvService.swift | 136 ++++ .../Services/PreviewModuleService.swift | 110 +++ .../Services/PriceDetailsService.swift | 110 +++ .../Classes/Services/PricePlanService.swift | 110 +++ .../Services/ProductPriceService.swift | 54 ++ .../ProgramAssetGroupOfferService.swift | 119 +++ .../Services/PurchaseSettingsService.swift | 77 ++ .../Classes/Services/RatioService.swift | 84 +++ .../RecommendationProfileService.swift | 118 +++ .../Classes/Services/RecordingService.swift | 245 ++++++ .../Classes/Services/RegionService.swift | 163 ++++ .../Services/RegistrySettingsService.swift | 47 ++ .../Classes/Services/ReminderService.swift | 138 ++++ .../Classes/Services/ReportService.swift | 79 ++ .../Services/SearchHistoryService.swift | 102 +++ ...rchPriorityGroupOrderedIdsSetService.swift | 62 ++ .../Services/SearchPriorityGroupService.swift | 115 +++ .../Services/SegmentationTypeService.swift | 144 ++++ .../Services/SeriesRecordingService.swift | 197 +++++ .../Classes/Services/SessionService.swift | 86 +++ .../Services/SmsAdapterProfileService.swift | 144 ++++ .../Services/SocialActionService.swift | 93 +++ .../Services/SocialCommentService.swift | 61 ++ .../SocialFriendActivityService.swift | 65 ++ .../Classes/Services/SocialService.swift | 254 +++++++ .../Services/SsoAdapterProfileService.swift | 142 ++++ .../Services/StreamingDeviceService.swift | 87 +++ .../Services/SubscriptionService.swift | 143 ++++ .../Services/SubscriptionSetService.swift | 127 ++++ .../Classes/Services/SystemService.swift | 202 +++++ .../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 | 178 +++++ .../Classes/Services/TvmRuleService.swift | 56 ++ .../Services/UnifiedPaymentService.swift | 54 ++ .../Classes/Services/UploadTokenService.swift | 74 ++ .../Classes/Services/UsageModuleService.swift | 110 +++ .../Services/UserAssetRuleService.swift | 53 ++ .../Services/UserAssetsListItemService.swift | 107 +++ .../Services/UserInterestService.swift | 110 +++ .../Services/UserLoginPinService.swift | 161 ++++ .../Classes/Services/UserRoleService.swift | 111 +++ .../Classes/Services/UserSegmentService.swift | 100 +++ .../Services/UserSessionProfileService.swift | 119 +++ KalturaOttClient.podspec | 20 + KalturaOttClient.spec.header | 12 + LICENSE | 661 +++++++++++++++++ LICENSE.txt | 661 +++++++++++++++++ README.md | 38 + 1249 files changed, 114146 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/ApiAction.swift create mode 100644 KalturaClient/Classes/Model/Enums/ApiParameterPermissionItemAction.swift create mode 100644 KalturaClient/Classes/Model/Enums/ApiService.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/AssetOrderByStatistics.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetOrderByType.swift create mode 100644 KalturaClient/Classes/Model/Enums/AssetPersonalMarkupSearchOrderBy.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/BooleanOperator.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/CampaignOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/CategoryItemOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/CategoryVersionOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/CategoryVersionState.swift create mode 100644 KalturaClient/Classes/Model/Enums/ChannelEnrichment.swift create mode 100644 KalturaClient/Classes/Model/Enums/ChannelFieldOrderByType.swift create mode 100644 KalturaClient/Classes/Model/Enums/ChannelOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ChannelSlidingWindowOrderByType.swift create mode 100644 KalturaClient/Classes/Model/Enums/ChannelStruct.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/ChronologicalRecordStartTime.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/DeviceBrandOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/DeviceBrandType.swift create mode 100644 KalturaClient/Classes/Model/Enums/DeviceFamilyOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/DeviceFamilyType.swift create mode 100644 KalturaClient/Classes/Model/Enums/DeviceReferenceDataOrderBy.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/DynamicListOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/EncryptionType.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/EntityAttribute.swift create mode 100644 KalturaClient/Classes/Model/Enums/EntityReferenceBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/EpgOrderBy.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/GroupingOption.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/HouseholdOrderBy.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/IngestEpgProgramResultOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/IngestEpgProgramStatus.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/IngestStatus.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/LabelOrderBy.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/LineupRegionalChannelOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ListGroupsRepresentativesOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/ManualCollectionAssetType.swift create mode 100644 KalturaClient/Classes/Model/Enums/MathemticalOperatorType.swift create mode 100644 KalturaClient/Classes/Model/Enums/MediaFileDynamicDataOrderBy.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/NotWatchedReturnStrategy.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/ObjectState.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/PermissionItemOrderBy.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/PersonalAssetSelectionOrderBy.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/PreviewModuleOrderBy.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/ProgramAssetGroupOfferOrderBy.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/SearchPriorityCriteriaType.swift create mode 100644 KalturaClient/Classes/Model/Enums/SearchPriorityGroupOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/SegmentationTypeOrderBy.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/SmsAdapterProfileOrderBy.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/StreamingDeviceOrderBy.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/SuspensionProfileInheritanceType.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/UnmatchedItemsPolicy.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/UserRoleProfile.swift create mode 100644 KalturaClient/Classes/Model/Enums/UserRoleType.swift create mode 100644 KalturaClient/Classes/Model/Enums/UserState.swift create mode 100644 KalturaClient/Classes/Model/Enums/VodIngestAssetResultOrderBy.swift create mode 100644 KalturaClient/Classes/Model/Enums/VodIngestAssetResultStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/WatchStatus.swift create mode 100644 KalturaClient/Classes/Model/Enums/WatchedAllReturnStrategy.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/ActionResult.swift create mode 100644 KalturaClient/Classes/Model/Objects/AddDefaultIfEmptyResponseProfile.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/AggregatedIngestInfo.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/ApiActionPermissionItem.swift create mode 100644 KalturaClient/Classes/Model/Objects/ApiArgumentPermissionItem.swift create mode 100644 KalturaClient/Classes/Model/Objects/ApiExceptionArg.swift create mode 100644 KalturaClient/Classes/Model/Objects/ApiParameterPermissionItem.swift create mode 100644 KalturaClient/Classes/Model/Objects/ApiPriviligesPermissionItem.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/AssetConditionBase.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/AssetDynamicOrder.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetEvent.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/AssetOrder.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetOrderSegmentAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetPersonalMarkup.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetPersonalMarkupListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetPersonalMarkupSearchFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/AssetPersonalSelection.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/AssetShopCondition.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/AssetStatisticsOrder.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/BaseAssetOrder.swift create mode 100644 KalturaClient/Classes/Model/Objects/BaseAssetStructFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/BaseChannel.swift create mode 100644 KalturaClient/Classes/Model/Objects/BaseChannelOrder.swift create mode 100644 KalturaClient/Classes/Model/Objects/BaseOTTUser.swift create mode 100644 KalturaClient/Classes/Model/Objects/BasePartnerConfiguration.swift create mode 100644 KalturaClient/Classes/Model/Objects/BasePermissionFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/BasePreActionCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/BasePromotion.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/BatchCampaign.swift create mode 100644 KalturaClient/Classes/Model/Objects/BatchCampaignSearchFilter.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/BulkUploadDynamicListData.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadDynamicListResult.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/BulkUploadStatistics.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadUdidDynamicListData.swift create mode 100644 KalturaClient/Classes/Model/Objects/BulkUploadUdidDynamicListResult.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/BusinessModuleDetails.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/Campaign.swift create mode 100644 KalturaClient/Classes/Model/Objects/CampaignEntitlementDiscountDetails.swift create mode 100644 KalturaClient/Classes/Model/Objects/CampaignFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CampaignIdInFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CampaignListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/CampaignSearchFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CampaignSegmentFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CaptionPlaybackPluginData.swift create mode 100644 KalturaClient/Classes/Model/Objects/CatalogPartnerConfig.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/CategoryManagement.swift create mode 100644 KalturaClient/Classes/Model/Objects/CategoryTree.swift create mode 100644 KalturaClient/Classes/Model/Objects/CategoryVersion.swift create mode 100644 KalturaClient/Classes/Model/Objects/CategoryVersionFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/CategoryVersionFilterByTree.swift create mode 100644 KalturaClient/Classes/Model/Objects/CategoryVersionListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/Channel.swift create mode 100644 KalturaClient/Classes/Model/Objects/ChannelAggregatedIngestInfo.swift create mode 100644 KalturaClient/Classes/Model/Objects/ChannelCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/ChannelDynamicOrder.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/ChannelFieldOrder.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/ChannelSearchByKsqlFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ChannelSlidingWindowOrder.swift create mode 100644 KalturaClient/Classes/Model/Objects/ChannelsBaseFilter.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/Collection.swift create mode 100644 KalturaClient/Classes/Model/Objects/CollectionCouponGroup.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/CompensationEntitlementDiscountDetails.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/CouponEntitlementDiscountDetails.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/CouponPromotion.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/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/CustomFieldsPartnerConfiguration.swift create mode 100644 KalturaClient/Classes/Model/Objects/DataEncryption.swift create mode 100644 KalturaClient/Classes/Model/Objects/DateAggregatedIngestInfo.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/DefaultParentalSettingsPartnerConfig.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/DeviceBrandCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceBrandFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceBrandListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceDynamicDataCondition.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/DeviceFamilyCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceFamilyFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceFamilyListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceManufacturerCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceManufacturerInformation.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceManufacturersReferenceDataFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceModelCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/DevicePin.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceReferenceData.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceReferenceDataFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/DeviceReferenceDataListResponse.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/DiscountEntitlementDiscountDetails.swift create mode 100644 KalturaClient/Classes/Model/Objects/DiscountModule.swift create mode 100644 KalturaClient/Classes/Model/Objects/DiscoveryMediaFile.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/DurationListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/DynamicChannel.swift create mode 100644 KalturaClient/Classes/Model/Objects/DynamicData.swift create mode 100644 KalturaClient/Classes/Model/Objects/DynamicKeysCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/DynamicList.swift create mode 100644 KalturaClient/Classes/Model/Objects/DynamicListFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/DynamicListIdInFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/DynamicListListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/DynamicListSearchFilter.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/Encryption.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/EntitlementDiscountDetails.swift create mode 100644 KalturaClient/Classes/Model/Objects/EntitlementDiscountDetailsIdentifier.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/EntitlementPriceDetails.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/Epg.swift create mode 100644 KalturaClient/Classes/Model/Objects/EpgFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/EpgIngestErrorMessage.swift create mode 100644 KalturaClient/Classes/Model/Objects/EpgListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/EpgNotificationSettings.swift create mode 100644 KalturaClient/Classes/Model/Objects/EpgServicePartnerConfiguration.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/ExpressionAnd.swift create mode 100644 KalturaClient/Classes/Model/Objects/ExpressionNot.swift create mode 100644 KalturaClient/Classes/Model/Objects/ExpressionOr.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/FileTypeCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/Filter.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterAssetByKsqlAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByAudioCodecAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByAudioCodecInDiscoveryAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByAudioCodecInPlaybackAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByDynamicDataAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByDynamicDataInDiscoveryAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByDynamicDataInPlaybackAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdForAssetTypeAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdForAssetTypeInDiscoveryAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdForAssetTypeInPlaybackAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdInDiscoveryAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdInPlaybackAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByLabelAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByLabelInDiscoveryAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByLabelInPlaybackAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByQualityAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByQualityInDiscoveryAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByQualityInPlaybackAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByStreamerTypeAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByStreamerTypeInDiscovery.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByStreamerTypeInPlayback.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByVideoCodecAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByVideoCodecInDiscoveryAction.swift create mode 100644 KalturaClient/Classes/Model/Objects/FilterFileByVideoCodecInPlayback.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/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/HouseholdFilter.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/HouseholdListResponse.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/ImmediateRecording.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/IngestByCompoundFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestByIdsFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestEpg.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestEpgDetails.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestEpgDetailsAggregation.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestEpgProgramResult.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestEpgProgramResultFilter.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/IngestProgramResultsByCombinedFieldsFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestProgramResultsByCompoundFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestProgramResultsByExternalIdsFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestProgramResultsByProgramIdsFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestProgramResultsByRefineFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestStatusEpgConfiguration.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestStatusEpgListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestStatusEpgProgramResultListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestStatusPartnerConfiguration.swift create mode 100644 KalturaClient/Classes/Model/Objects/IngestStatusVodConfiguration.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/IotFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/IotListResponse.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/IpV6RangeCondition.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/Label.swift create mode 100644 KalturaClient/Classes/Model/Objects/LabelFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/LabelListResponse.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/LinearAssetStructFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/LineupChannelAsset.swift create mode 100644 KalturaClient/Classes/Model/Objects/LineupChannelAssetListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/LineupNotificationSettings.swift create mode 100644 KalturaClient/Classes/Model/Objects/LineupRegionalChannelFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ListGroupsRepresentativesFilter.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/LiveToVodFullConfiguration.swift create mode 100644 KalturaClient/Classes/Model/Objects/LiveToVodInfoAsset.swift create mode 100644 KalturaClient/Classes/Model/Objects/LiveToVodLinearAssetConfiguration.swift create mode 100644 KalturaClient/Classes/Model/Objects/LiveToVodPartnerConfiguration.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/ManualCollectionAsset.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/MediaFileDynamicData.swift create mode 100644 KalturaClient/Classes/Model/Objects/MediaFileDynamicDataFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/MediaFileDynamicDataListResponse.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/NoShopPreActionCondition.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/OnDemandResponseProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/OpcPartnerConfiguration.swift create mode 100644 KalturaClient/Classes/Model/Objects/OrCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/PaddedRecording.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/Partner.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/PartnerFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PartnerListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/PartnerPremiumService.swift create mode 100644 KalturaClient/Classes/Model/Objects/PartnerPremiumServices.swift create mode 100644 KalturaClient/Classes/Model/Objects/PartnerSetup.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/PermissionByIdInFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PermissionFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PermissionItem.swift create mode 100644 KalturaClient/Classes/Model/Objects/PermissionItemByApiActionFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PermissionItemByArgumentFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PermissionItemByIdInFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PermissionItemByParameterFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PermissionItemFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PermissionItemListResponse.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/PersonalActivityCleanupConfiguration.swift create mode 100644 KalturaClient/Classes/Model/Objects/PersonalAssetSelectionFilter.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/PreviewModuleFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/PreviewModuleListResponse.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/PriorityGroupFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ProductCode.swift create mode 100644 KalturaClient/Classes/Model/Objects/ProductMarkup.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/ProgramAssetEvent.swift create mode 100644 KalturaClient/Classes/Model/Objects/ProgramAssetGroupOffer.swift create mode 100644 KalturaClient/Classes/Model/Objects/ProgramAssetGroupOfferEntitlement.swift create mode 100644 KalturaClient/Classes/Model/Objects/ProgramAssetGroupOfferEntitlementFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ProgramAssetGroupOfferFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ProgramAssetGroupOfferIdInFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/ProgramAssetGroupOfferListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/ProgramAssetGroupOfferPrice.swift create mode 100644 KalturaClient/Classes/Model/Objects/Promotion.swift create mode 100644 KalturaClient/Classes/Model/Objects/PromotionInfo.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/RegionChannelNumber.swift create mode 100644 KalturaClient/Classes/Model/Objects/RegionChannelNumberMultiLcns.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/RegionalChannelMultiLcns.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/RepresentativeSelectionPolicy.swift create mode 100644 KalturaClient/Classes/Model/Objects/RequestConfiguration.swift create mode 100644 KalturaClient/Classes/Model/Objects/ResetPasswordPartnerConfig.swift create mode 100644 KalturaClient/Classes/Model/Objects/ResetPasswordPartnerConfigTemplate.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/SearchPriorityCriteria.swift create mode 100644 KalturaClient/Classes/Model/Objects/SearchPriorityGroup.swift create mode 100644 KalturaClient/Classes/Model/Objects/SearchPriorityGroupFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SearchPriorityGroupListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/SearchPriorityGroupOrderedIdsSet.swift create mode 100644 KalturaClient/Classes/Model/Objects/SeasonsReminderFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SecurityPartnerConfig.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/SegmentationPartnerConfiguration.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/SeriesIdArguments.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/SeriesRecordingOption.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/ShopPreActionCondition.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/SmsAdapterProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/SmsAdapterProfileFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/SmsAdapterProfileListResponse.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/StreamingDevice.swift create mode 100644 KalturaClient/Classes/Model/Objects/StreamingDeviceFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/StreamingDeviceListResponse.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/SubscriptionCouponGroup.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/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/TopRsp.swift create mode 100644 KalturaClient/Classes/Model/Objects/TopSubscriptionEntitledRsp.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/TrailEntitlementDiscountDetails.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/TriggerCampaign.swift create mode 100644 KalturaClient/Classes/Model/Objects/TriggerCampaignEvent.swift create mode 100644 KalturaClient/Classes/Model/Objects/TriggerCampaignSearchFilter.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/UdidDynamicList.swift create mode 100644 KalturaClient/Classes/Model/Objects/UdidDynamicListCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/UdidDynamicListSearchFilter.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/UsageModuleFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/UsageModuleListResponse.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/UserSessionCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserSessionProfile.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserSessionProfileCondition.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserSessionProfileExpression.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserSessionProfileFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/UserSessionProfileListResponse.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/Model/Objects/VodIngestAssetResult.swift create mode 100644 KalturaClient/Classes/Model/Objects/VodIngestAssetResultAggregation.swift create mode 100644 KalturaClient/Classes/Model/Objects/VodIngestAssetResultErrorMessage.swift create mode 100644 KalturaClient/Classes/Model/Objects/VodIngestAssetResultFilter.swift create mode 100644 KalturaClient/Classes/Model/Objects/VodIngestAssetResultListResponse.swift create mode 100644 KalturaClient/Classes/Model/Objects/VodIngestAssetResultResponse.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/AssetPersonalMarkupService.swift create mode 100644 KalturaClient/Classes/Services/AssetPersonalSelectionService.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/BulkUploadStatisticsService.swift create mode 100644 KalturaClient/Classes/Services/BusinessModuleRuleService.swift create mode 100644 KalturaClient/Classes/Services/CDVRAdapterProfileService.swift create mode 100644 KalturaClient/Classes/Services/CampaignService.swift create mode 100644 KalturaClient/Classes/Services/CategoryItemService.swift create mode 100644 KalturaClient/Classes/Services/CategoryTreeService.swift create mode 100644 KalturaClient/Classes/Services/CategoryVersionService.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/DeviceReferenceDataService.swift create mode 100644 KalturaClient/Classes/Services/DiscountDetailsService.swift create mode 100644 KalturaClient/Classes/Services/DrmProfileService.swift create mode 100644 KalturaClient/Classes/Services/DurationService.swift create mode 100644 KalturaClient/Classes/Services/DynamicListService.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/EpgService.swift create mode 100644 KalturaClient/Classes/Services/EpgServicePartnerConfigurationService.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/IngestStatusService.swift create mode 100644 KalturaClient/Classes/Services/IotProfileService.swift create mode 100644 KalturaClient/Classes/Services/IotService.swift create mode 100644 KalturaClient/Classes/Services/LabelService.swift create mode 100644 KalturaClient/Classes/Services/LanguageService.swift create mode 100644 KalturaClient/Classes/Services/LicensedUrlService.swift create mode 100644 KalturaClient/Classes/Services/LineupService.swift create mode 100644 KalturaClient/Classes/Services/LiveToVodService.swift create mode 100644 KalturaClient/Classes/Services/MediaConcurrencyRuleService.swift create mode 100644 KalturaClient/Classes/Services/MediaFileDynamicDataService.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/PartnerPremiumServicesService.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/PermissionItemService.swift create mode 100644 KalturaClient/Classes/Services/PermissionService.swift create mode 100644 KalturaClient/Classes/Services/PersonalActivityCleanupService.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/PreviewModuleService.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/ProgramAssetGroupOfferService.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/SearchPriorityGroupOrderedIdsSetService.swift create mode 100644 KalturaClient/Classes/Services/SearchPriorityGroupService.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/SmsAdapterProfileService.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/StreamingDeviceService.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/UsageModuleService.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 KalturaClient/Classes/Services/UserSessionProfileService.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..ab90fc9d0 --- /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:23-07-26" + apiVersion = "9.0.0.8" + } +} + +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..543b4ee56 --- /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: AnyObject { + + 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..331c0652c --- /dev/null +++ b/KalturaClient/Classes/Core/Executor/implementors/USRExecutor.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. + */ + +@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) { [weak self] (data, response, error) in + + guard let self = self else { return } + 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.rawValue)) + 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..a1ba001a9 --- /dev/null +++ b/KalturaClient/Classes/Core/Response/JSONParser.swift @@ -0,0 +1,244 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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 API Exception + internal static func parseException(object: [String: Any]) -> ApiException { + let message = object["message"] as? String + let code = object["code"] as? String + + var exceptionArgs: [ApiExceptionArg]? + + if let args = object["args"] as? [[String: Any]] { + do { + exceptionArgs = try self.parse(array: args) as [ApiExceptionArg] + } catch { + return ApiClientException(message: message, code: code) + } + } + return ApiClientException(message: message, code: code, args: exceptionArgs) + } + + // 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 self.parseException(object: error) + } + } + + + 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.rawValue) + } + } + + 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 self.parseException(object: error) + } + } + + throw ApiClientException(message: "Type not found", + code: ApiClientException.ErrorCode.typeNotFound.rawValue) + } + + + + internal static func parse(array: Any) throws -> [T]? { + if let dict = array as? [String: Any] { + if dict["objectType"] as? String == "KalturaAPIException" { + throw self.parseException(object: dict) + } + + 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.rawValue) + } + } + 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.rawValue) + } + + + } + internal static func parse(json: Any) throws -> T? { + + if let dict = json as? [String: Any], dict["objectType"] as? String == "KalturaAPIException" { + throw self.parseException(object: dict) + } + 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.rawValue) + } + } + 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 self.parseException(object: dict) + } + + 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..889b8eff3 --- /dev/null +++ b/KalturaClient/Classes/Model/ApiException.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 protocol ApiException: Error { + var message: String? { get } + var code: String? { get } + var args: [ApiExceptionArg]? { get } +} + +public struct 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 let message: String? + public let code: String? + public let args: [ApiExceptionArg]? + + init(message: String? = nil, code: String? = nil, args: [ApiExceptionArg]? = nil) { + self.message = message + self.code = code + self.args = args + } +} 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/ApiAction.swift b/KalturaClient/Classes/Model/Enums/ApiAction.swift new file mode 100644 index 000000000..37689cdc8 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ApiAction.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 ApiAction: String { + case ADD = "ADD" +} diff --git a/KalturaClient/Classes/Model/Enums/ApiParameterPermissionItemAction.swift b/KalturaClient/Classes/Model/Enums/ApiParameterPermissionItemAction.swift new file mode 100644 index 000000000..c0a514d6f --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ApiParameterPermissionItemAction.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 ApiParameterPermissionItemAction: String { + case READ = "READ" + case INSERT = "INSERT" + case UPDATE = "UPDATE" + case WRITE = "WRITE" + case ALL = "ALL" +} diff --git a/KalturaClient/Classes/Model/Enums/ApiService.swift b/KalturaClient/Classes/Model/Enums/ApiService.swift new file mode 100644 index 000000000..a90477df5 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ApiService.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 ApiService: String { + case HOUSEHOLD_DEVICE = "HOUSEHOLD_DEVICE" +} 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/AssetOrderByStatistics.swift b/KalturaClient/Classes/Model/Enums/AssetOrderByStatistics.swift new file mode 100644 index 000000000..d49287363 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetOrderByStatistics.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 AssetOrderByStatistics: String { + case VIEWS_DESC = "VIEWS_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/AssetOrderByType.swift b/KalturaClient/Classes/Model/Enums/AssetOrderByType.swift new file mode 100644 index 000000000..0956c5a0a --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetOrderByType.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 AssetOrderByType: String { + case RELEVANCY_DESC = "RELEVANCY_DESC" + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_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/AssetPersonalMarkupSearchOrderBy.swift b/KalturaClient/Classes/Model/Enums/AssetPersonalMarkupSearchOrderBy.swift new file mode 100644 index 000000000..f9e238bc8 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetPersonalMarkupSearchOrderBy.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 AssetPersonalMarkupSearchOrderBy: String { + case NONE = "NONE" + case REQUEST_ORDER = "REQUEST_ORDER" +} 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..55ab07610 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/AssetRuleOrderBy.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 AssetRuleOrderBy: String { + case NONE = "NONE" + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" +} 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..d6e5e1bc5 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/BillingAction.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 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" + case PENDING = "pending" +} diff --git a/KalturaClient/Classes/Model/Enums/BillingItemsType.swift b/KalturaClient/Classes/Model/Enums/BillingItemsType.swift new file mode 100644 index 000000000..440ce18bd --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/BillingItemsType.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 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" + case PROGRAM_ASSET_GROUP_OFFER = "program_asset_group_offer" +} 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/BooleanOperator.swift b/KalturaClient/Classes/Model/Enums/BooleanOperator.swift new file mode 100644 index 000000000..11efcf8fc --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/BooleanOperator.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 BooleanOperator: String { + case AND = "And" + case OR = "Or" +} 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..cea64b8d1 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/BundleType.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 BundleType: String { + case SUBSCRIPTION = "subscription" + case COLLECTION = "collection" + case PAGO = "pago" +} diff --git a/KalturaClient/Classes/Model/Enums/CampaignOrderBy.swift b/KalturaClient/Classes/Model/Enums/CampaignOrderBy.swift new file mode 100644 index 000000000..80e6fa5d2 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/CampaignOrderBy.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 CampaignOrderBy: String { + case START_DATE_DESC = "START_DATE_DESC" + case START_DATE_ASC = "START_DATE_ASC" + case UPDATE_DATE_DESC = "UPDATE_DATE_DESC" + case UPDATE_DATE_ASC = "UPDATE_DATE_ASC" + case END_DATE_DESC = "END_DATE_DESC" + case END_DATE_ASC = "END_DATE_ASC" +} 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/CategoryVersionOrderBy.swift b/KalturaClient/Classes/Model/Enums/CategoryVersionOrderBy.swift new file mode 100644 index 000000000..39c99c8dd --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/CategoryVersionOrderBy.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 CategoryVersionOrderBy: String { + case UPDATE_DATE_DESC = "UPDATE_DATE_DESC" + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/CategoryVersionState.swift b/KalturaClient/Classes/Model/Enums/CategoryVersionState.swift new file mode 100644 index 000000000..34c8b335d --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/CategoryVersionState.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 CategoryVersionState: String { + case DRAFT = "DRAFT" + case DEFAULT = "DEFAULT" + case RELEASED = "RELEASED" +} 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/ChannelFieldOrderByType.swift b/KalturaClient/Classes/Model/Enums/ChannelFieldOrderByType.swift new file mode 100644 index 000000000..3486ac33d --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ChannelFieldOrderByType.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 ChannelFieldOrderByType: String { + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" + case START_DATE_DESC = "START_DATE_DESC" + case START_DATE_ASC = "START_DATE_ASC" + case CREATE_DATE_ASC = "CREATE_DATE_ASC" + case CREATE_DATE_DESC = "CREATE_DATE_DESC" + case RELEVANCY_DESC = "RELEVANCY_DESC" + case ORDER_NUM = "ORDER_NUM" +} 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/ChannelSlidingWindowOrderByType.swift b/KalturaClient/Classes/Model/Enums/ChannelSlidingWindowOrderByType.swift new file mode 100644 index 000000000..4bddf392c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ChannelSlidingWindowOrderByType.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 ChannelSlidingWindowOrderByType: String { + case LIKES_DESC = "LIKES_DESC" + case RATINGS_DESC = "RATINGS_DESC" + case VOTES_DESC = "VOTES_DESC" + case VIEWS_DESC = "VIEWS_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/ChannelStruct.swift b/KalturaClient/Classes/Model/Enums/ChannelStruct.swift new file mode 100644 index 000000000..485894acb --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ChannelStruct.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 ChannelStruct: String { + case MANUAL = "Manual" + case DYNAMIC = "Dynamic" +} 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..4b9242af5 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ChannelsOrderBy.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 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" + case UPDATE_DATE_ASC = "UPDATE_DATE_ASC" + case UPDATE_DATE_DESC = "UPDATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/ChronologicalRecordStartTime.swift b/KalturaClient/Classes/Model/Enums/ChronologicalRecordStartTime.swift new file mode 100644 index 000000000..082f87ac8 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ChronologicalRecordStartTime.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 ChronologicalRecordStartTime: String { + case NONE = "NONE" + case NOW = "NOW" + case EPG_START_TIME = "EPG_START_TIME" +} diff --git a/KalturaClient/Classes/Model/Enums/CollectionOrderBy.swift b/KalturaClient/Classes/Model/Enums/CollectionOrderBy.swift new file mode 100644 index 000000000..987a1d291 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/CollectionOrderBy.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 CollectionOrderBy: String { + case NONE = "NONE" + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" + case UPDATE_DATE_ASC = "UPDATE_DATE_ASC" + case UPDATE_DATE_DESC = "UPDATE_DATE_DESC" +} 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/DeviceBrandOrderBy.swift b/KalturaClient/Classes/Model/Enums/DeviceBrandOrderBy.swift new file mode 100644 index 000000000..1f9c65e41 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/DeviceBrandOrderBy.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 DeviceBrandOrderBy: String { + case ID_ASC = "ID_ASC" + case ID_DESC = "ID_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/DeviceBrandType.swift b/KalturaClient/Classes/Model/Enums/DeviceBrandType.swift new file mode 100644 index 000000000..3da9dce78 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/DeviceBrandType.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 DeviceBrandType: String { + case SYSTEM = "System" + case CUSTOM = "Custom" +} diff --git a/KalturaClient/Classes/Model/Enums/DeviceFamilyOrderBy.swift b/KalturaClient/Classes/Model/Enums/DeviceFamilyOrderBy.swift new file mode 100644 index 000000000..ed46b060a --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/DeviceFamilyOrderBy.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 DeviceFamilyOrderBy: String { + case ID_ASC = "ID_ASC" + case ID_DESC = "ID_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/DeviceFamilyType.swift b/KalturaClient/Classes/Model/Enums/DeviceFamilyType.swift new file mode 100644 index 000000000..1d5ae9573 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/DeviceFamilyType.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 DeviceFamilyType: String { + case SYSTEM = "System" + case CUSTOM = "Custom" +} diff --git a/KalturaClient/Classes/Model/Enums/DeviceReferenceDataOrderBy.swift b/KalturaClient/Classes/Model/Enums/DeviceReferenceDataOrderBy.swift new file mode 100644 index 000000000..3c9400778 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/DeviceReferenceDataOrderBy.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 DeviceReferenceDataOrderBy: String { + case NONE = "NONE" +} 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..1b2fa1093 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/DowngradePolicy.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 DowngradePolicy: String { + case LIFO = "LIFO" + case FIFO = "FIFO" + case ACTIVE_DATE = "ACTIVE_DATE" +} 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/DynamicListOrderBy.swift b/KalturaClient/Classes/Model/Enums/DynamicListOrderBy.swift new file mode 100644 index 000000000..3f22b6dcf --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/DynamicListOrderBy.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 DynamicListOrderBy: String { + case NONE = "NONE" +} diff --git a/KalturaClient/Classes/Model/Enums/EncryptionType.swift b/KalturaClient/Classes/Model/Enums/EncryptionType.swift new file mode 100644 index 000000000..77a6c5c73 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/EncryptionType.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 EncryptionType: String { + case AES256 = "AES256" +} 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/EntityAttribute.swift b/KalturaClient/Classes/Model/Enums/EntityAttribute.swift new file mode 100644 index 000000000..efd130394 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/EntityAttribute.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 EntityAttribute: String { + case MEDIA_FILE_LABELS = "MEDIA_FILE_LABELS" +} 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/EpgOrderBy.swift b/KalturaClient/Classes/Model/Enums/EpgOrderBy.swift new file mode 100644 index 000000000..d2c246eb2 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/EpgOrderBy.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 EpgOrderBy { + /** Place holder for future values */ +} 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..74cd57bd0 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/GroupByField.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 GroupByField: String { + case MEDIA_TYPE_ID = "media_type_id" + case SUPPRESSED = "suppressed" + case CRID = "crid" + case LINEAR_MEDIA_ID = "linear_media_id" + case NAME = "name" +} 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/GroupingOption.swift b/KalturaClient/Classes/Model/Enums/GroupingOption.swift new file mode 100644 index 000000000..bdbfed466 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/GroupingOption.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 GroupingOption: String { + case OMIT = "Omit" + case INCLUDE = "Include" +} 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..bd4bdb0c9 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/HouseholdDeviceOrderBy.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 HouseholdDeviceOrderBy: String { + case NONE = "NONE" + case CREATED_DATE_ASC = "CREATED_DATE_ASC" + case CREATED_DATE_DESC = "CREATED_DATE_DESC" +} 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/HouseholdOrderBy.swift b/KalturaClient/Classes/Model/Enums/HouseholdOrderBy.swift new file mode 100644 index 000000000..1d49d4d9c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/HouseholdOrderBy.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 HouseholdOrderBy: String { + case CREATE_DATE_DESC = "CREATE_DATE_DESC" +} 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..a610942d9 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/InboxMessageType.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 InboxMessageType: String { + case SYSTEMANNOUNCEMENT = "SystemAnnouncement" + case FOLLOWED = "Followed" + case ENGAGEMENT = "Engagement" + case INTEREST = "Interest" + case CAMPAIGN = "Campaign" +} diff --git a/KalturaClient/Classes/Model/Enums/IngestEpgProgramResultOrderBy.swift b/KalturaClient/Classes/Model/Enums/IngestEpgProgramResultOrderBy.swift new file mode 100644 index 000000000..a05235ca6 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/IngestEpgProgramResultOrderBy.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 IngestEpgProgramResultOrderBy: String { + case NONE = "NONE" + case EXTERNAL_PROGRAM_ID_DESC = "EXTERNAL_PROGRAM_ID_DESC" + case EXTERNAL_PROGRAM_ID_ASC = "EXTERNAL_PROGRAM_ID_ASC" + case LINEAR_CHANNEL_ID_DESC = "LINEAR_CHANNEL_ID_DESC" + case LINEAR_CHANNEL_ID_ASC = "LINEAR_CHANNEL_ID_ASC" + case INDEX_IN_FILE_DESC = "INDEX_IN_FILE_DESC" + case INDEX_IN_FILE_ASC = "INDEX_IN_FILE_ASC" + case START_DATE_DESC = "START_DATE_DESC" + case START_DATE_ASC = "START_DATE_ASC" + case SEVERITY_DESC = "SEVERITY_DESC" + case SEVERITY_ASC = "SEVERITY_ASC" +} diff --git a/KalturaClient/Classes/Model/Enums/IngestEpgProgramStatus.swift b/KalturaClient/Classes/Model/Enums/IngestEpgProgramStatus.swift new file mode 100644 index 000000000..094b4ff99 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/IngestEpgProgramStatus.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 IngestEpgProgramStatus: String { + case FAILURE = "FAILURE" + case WARNING = "WARNING" + case SUCCESS = "SUCCESS" +} 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/IngestStatus.swift b/KalturaClient/Classes/Model/Enums/IngestStatus.swift new file mode 100644 index 000000000..26ae9860f --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/IngestStatus.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 IngestStatus: String { + case TOTAL_FAILURE = "TOTAL_FAILURE" + case PARTIAL_FAILURE = "PARTIAL_FAILURE" + case WARNING = "WARNING" + case IN_PROGRESS = "IN_PROGRESS" + case SUCCESS = "SUCCESS" +} 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/LabelOrderBy.swift b/KalturaClient/Classes/Model/Enums/LabelOrderBy.swift new file mode 100644 index 000000000..7f02418c1 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/LabelOrderBy.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 LabelOrderBy: String { + case NONE = "NONE" +} 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/LineupRegionalChannelOrderBy.swift b/KalturaClient/Classes/Model/Enums/LineupRegionalChannelOrderBy.swift new file mode 100644 index 000000000..7fe61390a --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/LineupRegionalChannelOrderBy.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 LineupRegionalChannelOrderBy: String { + case LCN_ASC = "LCN_ASC" + case LCN_DESC = "LCN_DESC" + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/ListGroupsRepresentativesOrderBy.swift b/KalturaClient/Classes/Model/Enums/ListGroupsRepresentativesOrderBy.swift new file mode 100644 index 000000000..cb381a848 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ListGroupsRepresentativesOrderBy.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 ListGroupsRepresentativesOrderBy: String { + case NONE = "None" +} diff --git a/KalturaClient/Classes/Model/Enums/ManualCollectionAssetType.swift b/KalturaClient/Classes/Model/Enums/ManualCollectionAssetType.swift new file mode 100644 index 000000000..d3d6f7818 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ManualCollectionAssetType.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 ManualCollectionAssetType: String { + case MEDIA = "media" + case EPG = "epg" +} 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/MediaFileDynamicDataOrderBy.swift b/KalturaClient/Classes/Model/Enums/MediaFileDynamicDataOrderBy.swift new file mode 100644 index 000000000..6a880ed9f --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/MediaFileDynamicDataOrderBy.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 MediaFileDynamicDataOrderBy: String { + case NONE = "NONE" +} 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..711f4b99d --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/MediaFileStreamerType.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 MediaFileStreamerType: String { + case APPLE_HTTP = "APPLE_HTTP" + case MPEG_DASH = "MPEG_DASH" + case URL = "URL" + case SMOOTH_STREAMING = "SMOOTH_STREAMING" + case MULTICAST = "MULTICAST" + 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..f0abeb757 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/MonetizationType.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 MonetizationType: String { + case PPV = "ppv" + case SUBSCRIPTION = "subscription" + case BOXSET = "boxset" + case ANY = "any" + case PPV_LIVE = "ppv_live" +} diff --git a/KalturaClient/Classes/Model/Enums/NotWatchedReturnStrategy.swift b/KalturaClient/Classes/Model/Enums/NotWatchedReturnStrategy.swift new file mode 100644 index 000000000..bedfa2de6 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/NotWatchedReturnStrategy.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 NotWatchedReturnStrategy: String { + case RETURN_NO_NEXT_EPISODE = "RETURN_NO_NEXT_EPISODE" + case RETURN_FIRST_EPISODE = "RETURN_FIRST_EPISODE" +} 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/ObjectState.swift b/KalturaClient/Classes/Model/Enums/ObjectState.swift new file mode 100644 index 000000000..a252063c8 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ObjectState.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 ObjectState: String { + case INACTIVE = "INACTIVE" + case ACTIVE = "ACTIVE" + case ARCHIVE = "ARCHIVE" +} diff --git a/KalturaClient/Classes/Model/Enums/ObjectVirtualAssetInfoType.swift b/KalturaClient/Classes/Model/Enums/ObjectVirtualAssetInfoType.swift new file mode 100644 index 000000000..4d6185b39 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ObjectVirtualAssetInfoType.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 ObjectVirtualAssetInfoType: String { + case SUBSCRIPTION = "Subscription" + case SEGMENT = "Segment" + case CATEGORY = "Category" + case TVOD = "Tvod" + case BOXSET = "Boxset" + case PAGO = "PAGO" +} 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..edf1ed3f6 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PartnerConfigurationType.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 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" + case CATALOG = "Catalog" + case SECURITY = "Security" + case OPC = "Opc" + case BASE = "Base" + case CUSTOMFIELDS = "CustomFields" + case DEFAULTPARENTALSETTINGS = "DefaultParentalSettings" +} 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/PermissionItemOrderBy.swift b/KalturaClient/Classes/Model/Enums/PermissionItemOrderBy.swift new file mode 100644 index 000000000..eea76dfed --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PermissionItemOrderBy.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 PermissionItemOrderBy: String { + case NONE = "NONE" +} 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/PersonalAssetSelectionOrderBy.swift b/KalturaClient/Classes/Model/Enums/PersonalAssetSelectionOrderBy.swift new file mode 100644 index 000000000..8958aad61 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PersonalAssetSelectionOrderBy.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 PersonalAssetSelectionOrderBy: String { + case ASSET_SELECTION_DATE_DESC = "ASSET_SELECTION_DATE_DESC" +} 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..602e8acb6 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PpvOrderBy.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 PpvOrderBy: String { + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" + case UPDATE_DATE_ASC = "UPDATE_DATE_ASC" + case UPDATE_DATE_DESC = "UPDATE_DATE_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/PreviewModuleOrderBy.swift b/KalturaClient/Classes/Model/Enums/PreviewModuleOrderBy.swift new file mode 100644 index 000000000..88851983c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PreviewModuleOrderBy.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 PreviewModuleOrderBy: String { + case NONE = "NONE" +} 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/ProgramAssetGroupOfferOrderBy.swift b/KalturaClient/Classes/Model/Enums/ProgramAssetGroupOfferOrderBy.swift new file mode 100644 index 000000000..1aa0ce3f1 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/ProgramAssetGroupOfferOrderBy.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 ProgramAssetGroupOfferOrderBy: String { + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" + case UPDATE_DATE_ASC = "UPDATE_DATE_ASC" + case UPDATE_DATE_DESC = "UPDATE_DATE_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..9d29c94de --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/PurchaseStatus.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 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" + case PENDING_ENTITLEMENT = "pending_entitlement" + case PROGRAM_ASSET_GROUP_OFFER_PURCHASED = "program_asset_group_offer_purchased" +} 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..87c0f7946 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/RuleActionType.swift @@ -0,0 +1,63 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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" + case FILTERASSETBYKSQL = "FilterAssetByKsql" + case FILTERFILEBYQUALITYINDISCOVERY = "FilterFileByQualityInDiscovery" + case FILTERFILEBYQUALITYINPLAYBACK = "FilterFileByQualityInPlayback" + case FILTERFILEBYFILETYPEIDFORASSETTYPEINDISCOVERY = "FilterFileByFileTypeIdForAssetTypeInDiscovery" + case FILTERFILEBYFILETYPEIDFORASSETTYPEINPLAYBACK = "FilterFileByFileTypeIdForAssetTypeInPlayback" + case FILTERFILEBYFILETYPEIDINDISCOVERY = "FilterFileByFileTypeIdInDiscovery" + case FILTERFILEBYFILETYPEIDINPLAYBACK = "FilterFileByFileTypeIdInPlayback" + case FILTERFILEBYAUDIOCODECINDISCOVERY = "FilterFileByAudioCodecInDiscovery" + case FILTERFILEBYAUDIOCODECINPLAYBACK = "FilterFileByAudioCodecInPlayback" + case FILTERFILEBYVIDEOCODECINDISCOVERY = "FilterFileByVideoCodecInDiscovery" + case FILTERFILEBYVIDEOCODECINPLAYBACK = "FilterFileByVideoCodecInPlayback" + case FILTERFILEBYSTREAMERTYPEINDISCOVERY = "FilterFileByStreamerTypeInDiscovery" + case FILTERFILEBYSTREAMERTYPEINPLAYBACK = "FilterFileByStreamerTypeInPlayback" + case FILTERFILEBYLABELINDISCOVERY = "FilterFileByLabelInDiscovery" + case FILTERFILEBYLABELINPLAYBACK = "FilterFileByLabelInPlayback" + case FILTERFILEBYDYNAMICDATAINDISCOVERY = "FilterFileByDynamicDataInDiscovery" + case FILTERFILEBYDYNAMICDATAINPLAYBACK = "FilterFileByDynamicDataInPlayback" +} diff --git a/KalturaClient/Classes/Model/Enums/RuleConditionType.swift b/KalturaClient/Classes/Model/Enums/RuleConditionType.swift new file mode 100644 index 000000000..7616fafe4 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/RuleConditionType.swift @@ -0,0 +1,59 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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" + case DEVICE_BRAND = "DEVICE_BRAND" + case DEVICE_FAMILY = "DEVICE_FAMILY" + case DEVICE_MANUFACTURER = "DEVICE_MANUFACTURER" + case DEVICE_MODEL = "DEVICE_MODEL" + case DEVICE_UDID_DYNAMIC_LIST = "DEVICE_UDID_DYNAMIC_LIST" + case DYNAMIC_KEYS = "DYNAMIC_KEYS" + case USER_SESSION_PROFILE = "USER_SESSION_PROFILE" + case DEVICE_DYNAMIC_DATA = "DEVICE_DYNAMIC_DATA" + case IP_V6_RANGE = "IP_V6_RANGE" + case ASSET_SHOP = "ASSET_SHOP" + case CHANNEL = "CHANNEL" + case FILE_TYPE = "FILE_TYPE" +} 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/SearchPriorityCriteriaType.swift b/KalturaClient/Classes/Model/Enums/SearchPriorityCriteriaType.swift new file mode 100644 index 000000000..d1f92e222 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SearchPriorityCriteriaType.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 SearchPriorityCriteriaType: String { + case KSQL = "KSql" +} diff --git a/KalturaClient/Classes/Model/Enums/SearchPriorityGroupOrderBy.swift b/KalturaClient/Classes/Model/Enums/SearchPriorityGroupOrderBy.swift new file mode 100644 index 000000000..7fc336014 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SearchPriorityGroupOrderBy.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 SearchPriorityGroupOrderBy: String { + case PRIORITY_DESC = "PRIORITY_DESC" + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/SegmentationTypeOrderBy.swift b/KalturaClient/Classes/Model/Enums/SegmentationTypeOrderBy.swift new file mode 100644 index 000000000..9b290aa82 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SegmentationTypeOrderBy.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 SegmentationTypeOrderBy: String { + case UPDATE_DATE_DESC = "UPDATE_DATE_DESC" + case UPDATE_DATE_ASC = "UPDATE_DATE_ASC" + case CREATE_DATE_DESC = "CREATE_DATE_DESC" + case CREATE_DATE_ASC = "CREATE_DATE_ASC" + case EXECUTE_DATE_DESC = "EXECUTE_DATE_DESC" + case EXECUTE_DATE_ASC = "EXECUTE_DATE_ASC" + case AFFECTED_USERS_DESC = "AFFECTED_USERS_DESC" + case AFFECTED_USERS_ASC = "AFFECTED_USERS_ASC" + case AFFECTED_HOUSEHOLDS_DESC = "AFFECTED_HOUSEHOLDS_DESC" + case AFFECTED_HOUSEHOLDS_ASC = "AFFECTED_HOUSEHOLDS_ASC" +} 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/SmsAdapterProfileOrderBy.swift b/KalturaClient/Classes/Model/Enums/SmsAdapterProfileOrderBy.swift new file mode 100644 index 000000000..7f5cffee9 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SmsAdapterProfileOrderBy.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 SmsAdapterProfileOrderBy: String { + case NONE = "NONE" +} 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/StreamingDeviceOrderBy.swift b/KalturaClient/Classes/Model/Enums/StreamingDeviceOrderBy.swift new file mode 100644 index 000000000..b8b623081 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/StreamingDeviceOrderBy.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 StreamingDeviceOrderBy: String { + case NONE = "NONE" +} 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..e7c54920c --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SubscriptionOrderBy.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 SubscriptionOrderBy: String { + case START_DATE_ASC = "START_DATE_ASC" + case START_DATE_DESC = "START_DATE_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" + case NAME_ASC = "NAME_ASC" + case NAME_DESC = "NAME_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/SuspensionProfileInheritanceType.swift b/KalturaClient/Classes/Model/Enums/SuspensionProfileInheritanceType.swift new file mode 100644 index 000000000..e4e954153 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/SuspensionProfileInheritanceType.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 SuspensionProfileInheritanceType: String { + case ALWAYS = "ALWAYS" + case NEVER = "NEVER" + case DEFAULT = "DEFAULT" +} 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..0722120ea --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/TransactionType.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 TransactionType: String { + case PPV = "ppv" + case SUBSCRIPTION = "subscription" + case COLLECTION = "collection" + case PROGRAMASSETGROUPOFFER = "programAssetGroupOffer" +} 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/UnmatchedItemsPolicy.swift b/KalturaClient/Classes/Model/Enums/UnmatchedItemsPolicy.swift new file mode 100644 index 000000000..e1176ea55 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/UnmatchedItemsPolicy.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 UnmatchedItemsPolicy: String { + case OMIT = "OMIT" + case GROUP = "GROUP" + case INCLUDE_AND_MERGE = "INCLUDE_AND_MERGE" +} 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/UserRoleProfile.swift b/KalturaClient/Classes/Model/Enums/UserRoleProfile.swift new file mode 100644 index 000000000..3d76fa18d --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/UserRoleProfile.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 UserRoleProfile: String { + case USER = "USER" + case PARTNER = "PARTNER" + case PROFILE = "PROFILE" + case SYSTEM = "SYSTEM" + case PERMISSION_EMBEDDED = "PERMISSION_EMBEDDED" +} diff --git a/KalturaClient/Classes/Model/Enums/UserRoleType.swift b/KalturaClient/Classes/Model/Enums/UserRoleType.swift new file mode 100644 index 000000000..583d7baa0 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/UserRoleType.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 UserRoleType: String { + case SYSTEM = "SYSTEM" + case CUSTOM = "CUSTOM" +} 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/VodIngestAssetResultOrderBy.swift b/KalturaClient/Classes/Model/Enums/VodIngestAssetResultOrderBy.swift new file mode 100644 index 000000000..51b595bb4 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/VodIngestAssetResultOrderBy.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 VodIngestAssetResultOrderBy: String { + case FILE_NAME_ASC = "FILE_NAME_ASC" + case FILE_NAME_DESC = "FILE_NAME_DESC" + case ASSET_NAME_ASC = "ASSET_NAME_ASC" + case ASSET_NAME_DESC = "ASSET_NAME_DESC" + case INGEST_DATE_ASC = "INGEST_DATE_ASC" + case INGEST_DATE_DESC = "INGEST_DATE_DESC" + case STATUS_ASC = "STATUS_ASC" + case STATUS_DESC = "STATUS_DESC" +} diff --git a/KalturaClient/Classes/Model/Enums/VodIngestAssetResultStatus.swift b/KalturaClient/Classes/Model/Enums/VodIngestAssetResultStatus.swift new file mode 100644 index 000000000..832874e61 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/VodIngestAssetResultStatus.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 VodIngestAssetResultStatus: String { + case FAILURE = "FAILURE" + case EXTERNAL_FAILURE = "EXTERNAL_FAILURE" + case SUCCESS_WARNING = "SUCCESS_WARNING" + case SUCCESS = "SUCCESS" +} 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/Enums/WatchedAllReturnStrategy.swift b/KalturaClient/Classes/Model/Enums/WatchedAllReturnStrategy.swift new file mode 100644 index 000000000..65abbfaa2 --- /dev/null +++ b/KalturaClient/Classes/Model/Enums/WatchedAllReturnStrategy.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 WatchedAllReturnStrategy: String { + case RETURN_NO_NEXT_EPISODE = "RETURN_NO_NEXT_EPISODE" + case RETURN_FIRST_EPISODE = "RETURN_FIRST_EPISODE" + case RETURN_LAST_EPISODE = "RETURN_LAST_EPISODE" +} 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/ActionResult.swift b/KalturaClient/Classes/Model/Objects/ActionResult.swift new file mode 100644 index 000000000..f7e8d6653 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ActionResult.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. + */ + +/** Result of action performed on entity with Id */ +open class ActionResult: ObjectBase { + + public class ActionResultTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public func result() -> T { + return T(self.append("result")) + } + } + + /** Identifier of entity */ + public var id: Int64? = nil + /** Identifier of entity */ + public var result: Message? = 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"]!)") + } + if dict["result"] != nil { + result = try JSONParser.parse(object: dict["result"] as! [String: Any]) } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/AddDefaultIfEmptyResponseProfile.swift b/KalturaClient/Classes/Model/Objects/AddDefaultIfEmptyResponseProfile.swift new file mode 100644 index 000000000..32b82ea75 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AddDefaultIfEmptyResponseProfile.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 add default if empty ResponseProfile Filter */ +open class AddDefaultIfEmptyResponseProfile: RelatedObjectFilter { + + public class AddDefaultIfEmptyResponseProfileTokenizer: RelatedObjectFilter.RelatedObjectFilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(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/AggregatedIngestInfo.swift b/KalturaClient/Classes/Model/Objects/AggregatedIngestInfo.swift new file mode 100644 index 000000000..b770ce714 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AggregatedIngestInfo.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 AggregatedIngestInfo: ObjectBase { + + public class AggregatedIngestInfoTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var resultsCount: BaseTokenizedObject { + get { + return self.append("resultsCount") + } + } + + public var totalFailureCount: BaseTokenizedObject { + get { + return self.append("totalFailureCount") + } + } + + public var partialFailureCount: BaseTokenizedObject { + get { + return self.append("partialFailureCount") + } + } + + public var warningsCount: BaseTokenizedObject { + get { + return self.append("warningsCount") + } + } + } + + /** Number of results */ + public var resultsCount: Int64? = nil + /** Number of results that include at least one error of severity TotalFailure */ + public var totalFailureCount: Int64? = nil + /** Number of results that include no error with severity TotalFailure but at at + least one error of severity PartialFailure */ + public var partialFailureCount: Int64? = nil + /** Number of results that include at least one warning */ + public var warningsCount: Int64? = nil + + + public func setMultiRequestToken(resultsCount: String) { + self.dict["resultsCount"] = resultsCount + } + + public func setMultiRequestToken(totalFailureCount: String) { + self.dict["totalFailureCount"] = totalFailureCount + } + + public func setMultiRequestToken(partialFailureCount: String) { + self.dict["partialFailureCount"] = partialFailureCount + } + + public func setMultiRequestToken(warningsCount: String) { + self.dict["warningsCount"] = warningsCount + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["resultsCount"] != nil { + resultsCount = Int64("\(dict["resultsCount"]!)") + } + if dict["totalFailureCount"] != nil { + totalFailureCount = Int64("\(dict["totalFailureCount"]!)") + } + if dict["partialFailureCount"] != nil { + partialFailureCount = Int64("\(dict["partialFailureCount"]!)") + } + if dict["warningsCount"] != nil { + warningsCount = Int64("\(dict["warningsCount"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(resultsCount != nil) { + dict["resultsCount"] = resultsCount! + } + if(totalFailureCount != nil) { + dict["totalFailureCount"] = totalFailureCount! + } + if(partialFailureCount != nil) { + dict["partialFailureCount"] = partialFailureCount! + } + if(warningsCount != nil) { + dict["warningsCount"] = warningsCount! + } + 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..22a3cfbbb --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Announcement.swift @@ -0,0 +1,318 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * 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") + } + } + + public var includeUserInbox: BaseTokenizedObject { + get { + return self.append("includeUserInbox") + } + } + } + + /** 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 + /** Should add to user inbox */ + public var includeUserInbox: 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 func setMultiRequestToken(includeUserInbox: String) { + self.dict["includeUserInbox"] = includeUserInbox + } + + 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 + } + if dict["includeUserInbox"] != nil { + includeUserInbox = dict["includeUserInbox"] 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! + } + if(includeUserInbox != nil) { + dict["includeUserInbox"] = includeUserInbox! + } + 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/ApiActionPermissionItem.swift b/KalturaClient/Classes/Model/Objects/ApiActionPermissionItem.swift new file mode 100644 index 000000000..6f432528a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ApiActionPermissionItem.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 ApiActionPermissionItem: PermissionItem { + + public class ApiActionPermissionItemTokenizer: PermissionItem.PermissionItemTokenizer { + + public var service: BaseTokenizedObject { + get { + return self.append("service") + } + } + + public var action: BaseTokenizedObject { + get { + return self.append("action") + } + } + } + + /** API service name */ + public var service: String? = nil + /** API action name */ + public var action: String? = nil + + + public func setMultiRequestToken(service: String) { + self.dict["service"] = service + } + + 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["service"] != nil { + service = dict["service"] as? String + } + if dict["action"] != nil { + action = dict["action"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(service != nil) { + dict["service"] = service! + } + if(action != nil) { + dict["action"] = action! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ApiArgumentPermissionItem.swift b/KalturaClient/Classes/Model/Objects/ApiArgumentPermissionItem.swift new file mode 100644 index 000000000..4d9e8da9b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ApiArgumentPermissionItem.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 ApiArgumentPermissionItem: PermissionItem { + + public class ApiArgumentPermissionItemTokenizer: PermissionItem.PermissionItemTokenizer { + + public var service: BaseTokenizedObject { + get { + return self.append("service") + } + } + + public var action: BaseTokenizedObject { + get { + return self.append("action") + } + } + + public var parameter: BaseTokenizedObject { + get { + return self.append("parameter") + } + } + } + + /** API service name */ + public var service: String? = nil + /** API action name */ + public var action: String? = nil + /** API parameter name */ + public var parameter: String? = nil + + + public func setMultiRequestToken(service: String) { + self.dict["service"] = service + } + + public func setMultiRequestToken(action: String) { + self.dict["action"] = action + } + + public func setMultiRequestToken(parameter: String) { + self.dict["parameter"] = parameter + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["service"] != nil { + service = dict["service"] as? String + } + if dict["action"] != nil { + action = dict["action"] as? String + } + if dict["parameter"] != nil { + parameter = dict["parameter"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(service != nil) { + dict["service"] = service! + } + if(action != nil) { + dict["action"] = action! + } + if(parameter != nil) { + dict["parameter"] = parameter! + } + 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/ApiParameterPermissionItem.swift b/KalturaClient/Classes/Model/Objects/ApiParameterPermissionItem.swift new file mode 100644 index 000000000..562f2beef --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ApiParameterPermissionItem.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 ApiParameterPermissionItem: PermissionItem { + + public class ApiParameterPermissionItemTokenizer: PermissionItem.PermissionItemTokenizer { + + public var object: BaseTokenizedObject { + get { + return self.append("object") + } + } + + public var parameter: BaseTokenizedObject { + get { + return self.append("parameter") + } + } + + public var action: BaseTokenizedObject { + get { + return self.append("action") + } + } + } + + /** API object name */ + public var object: String? = nil + /** API parameter name */ + public var parameter: String? = nil + /** API action type */ + public var action: ApiParameterPermissionItemAction? = nil + + + public func setMultiRequestToken(object: String) { + self.dict["object"] = object + } + + public func setMultiRequestToken(parameter: String) { + self.dict["parameter"] = parameter + } + + 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["object"] != nil { + object = dict["object"] as? String + } + if dict["parameter"] != nil { + parameter = dict["parameter"] as? String + } + if dict["action"] != nil { + action = ApiParameterPermissionItemAction(rawValue: "\(dict["action"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(object != nil) { + dict["object"] = object! + } + if(parameter != nil) { + dict["parameter"] = parameter! + } + if(action != nil) { + dict["action"] = action!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ApiPriviligesPermissionItem.swift b/KalturaClient/Classes/Model/Objects/ApiPriviligesPermissionItem.swift new file mode 100644 index 000000000..5d67e384b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ApiPriviligesPermissionItem.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 ApiPriviligesPermissionItem: PermissionItem { + + public class ApiPriviligesPermissionItemTokenizer: PermissionItem.PermissionItemTokenizer { + + public var object: BaseTokenizedObject { + get { + return self.append("object") + } + } + + public var parameter: BaseTokenizedObject { + get { + return self.append("parameter") + } + } + } + + /** API object name */ + public var object: String? = nil + /** API parameter name */ + public var parameter: String? = nil + + + public func setMultiRequestToken(object: String) { + self.dict["object"] = object + } + + public func setMultiRequestToken(parameter: String) { + self.dict["parameter"] = parameter + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["object"] != nil { + object = dict["object"] as? String + } + if dict["parameter"] != nil { + parameter = dict["parameter"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(object != nil) { + dict["object"] = object! + } + if(parameter != nil) { + dict["parameter"] = parameter! + } + 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..19dec8898 --- /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..c62378a0f --- /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: AssetConditionBase { + + public class AssetConditionTokenizer: AssetConditionBase.AssetConditionBaseTokenizer { + + 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/AssetConditionBase.swift b/KalturaClient/Classes/Model/Objects/AssetConditionBase.swift new file mode 100644 index 000000000..fec1344c9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetConditionBase.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 AssetConditionBase: Condition { + + public class AssetConditionBaseTokenizer: Condition.ConditionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(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/AssetDynamicOrder.swift b/KalturaClient/Classes/Model/Objects/AssetDynamicOrder.swift new file mode 100644 index 000000000..043ef6248 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetDynamicOrder.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 AssetDynamicOrder: BaseAssetOrder { + + public class AssetDynamicOrderTokenizer: BaseAssetOrder.BaseAssetOrderTokenizer { + + 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/AssetEvent.swift b/KalturaClient/Classes/Model/Objects/AssetEvent.swift new file mode 100644 index 000000000..698749ea1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetEvent.swift @@ -0,0 +1,112 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class AssetEvent: EventObject { + + public class AssetEventTokenizer: EventObject.EventObjectTokenizer { + + public var userId: BaseTokenizedObject { + get { + return self.append("userId") + } + } + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var externalId: BaseTokenizedObject { + get { + return self.append("externalId") + } + } + } + + /** User Id */ + public var userId: Int64? = nil + /** Asset Id */ + public var assetId: 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 + /** External identifier for the asset */ + public var externalId: String? = nil + + + public func setMultiRequestToken(userId: String) { + self.dict["userId"] = userId + } + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + 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["userId"] != nil { + userId = Int64("\(dict["userId"]!)") + } + if dict["assetId"] != nil { + assetId = Int64("\(dict["assetId"]!)") + } + 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/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..9c301bc74 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetFileContext.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 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") + } + } + + public var isLivePlayBack: BaseTokenizedObject { + get { + return self.append("isLivePlayBack") + } + } + } + + /** viewLifeCycle */ + public var viewLifeCycle: String? = nil + /** fullLifeCycle */ + public var fullLifeCycle: String? = nil + /** isOfflinePlayBack */ + public var isOfflinePlayBack: Bool? = nil + /** Is Live PlayBack */ + public var isLivePlayBack: 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 func setMultiRequestToken(isLivePlayBack: String) { + self.dict["isLivePlayBack"] = isLivePlayBack + } + + 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 + } + if dict["isLivePlayBack"] != nil { + isLivePlayBack = dict["isLivePlayBack"] 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..d8476cffa --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetFilter.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. + */ + +open class AssetFilter: PersistedFilter { + + public class AssetFilterTokenizer: PersistedFilter.PersistedFilterTokenizer { + + public func dynamicOrderBy() -> T { + return T(self.append("dynamicOrderBy")) + } + + public var orderingParameters: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("orderingParameters")) + } + } + + public var trendingDaysEqual: BaseTokenizedObject { + get { + return self.append("trendingDaysEqual") + } + } + + public var shouldApplyPriorityGroupsEqual: BaseTokenizedObject { + get { + return self.append("shouldApplyPriorityGroupsEqual") + } + } + } + + /** dynamicOrderBy - order by Meta */ + public var dynamicOrderBy: DynamicOrderBy? = nil + /** Parameters for asset list sorting. */ + public var orderingParameters: Array? = nil + /** Trending Days Equal */ + public var trendingDaysEqual: Int? = nil + /** Should apply priority groups filter or not. */ + public var shouldApplyPriorityGroupsEqual: Bool? = nil + + + public func setMultiRequestToken(trendingDaysEqual: String) { + self.dict["trendingDaysEqual"] = trendingDaysEqual + } + + public func setMultiRequestToken(shouldApplyPriorityGroupsEqual: String) { + self.dict["shouldApplyPriorityGroupsEqual"] = shouldApplyPriorityGroupsEqual + } + + 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["orderingParameters"] != nil { + orderingParameters = try JSONParser.parse(array: dict["orderingParameters"] as! [Any]) + } + if dict["trendingDaysEqual"] != nil { + trendingDaysEqual = dict["trendingDaysEqual"] as? Int + } + if dict["shouldApplyPriorityGroupsEqual"] != nil { + shouldApplyPriorityGroupsEqual = dict["shouldApplyPriorityGroupsEqual"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(dynamicOrderBy != nil) { + dict["dynamicOrderBy"] = dynamicOrderBy!.toDictionary() + } + if(orderingParameters != nil) { + dict["orderingParameters"] = orderingParameters!.map { value in value.toDictionary() } + } + if(trendingDaysEqual != nil) { + dict["trendingDaysEqual"] = trendingDaysEqual! + } + if(shouldApplyPriorityGroupsEqual != nil) { + dict["shouldApplyPriorityGroupsEqual"] = shouldApplyPriorityGroupsEqual! + } + 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..1512ba971 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetHistoryFilter.swift @@ -0,0 +1,151 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * 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") + } + } + + public var kSql: BaseTokenizedObject { + get { + return self.append("kSql") + } + } + } + + /** 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 + /** KSQL expression */ + public var kSql: String? = 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 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["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 + } + if dict["kSql"] != nil { + kSql = dict["kSql"] as? String + } + + } + + 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! + } + if(kSql != nil) { + dict["kSql"] = kSql! + } + 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/AssetOrder.swift b/KalturaClient/Classes/Model/Objects/AssetOrder.swift new file mode 100644 index 000000000..89c92b9c3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetOrder.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 AssetOrder: BaseAssetOrder { + + public class AssetOrderTokenizer: BaseAssetOrder.BaseAssetOrderTokenizer { + + public var orderBy: BaseTokenizedObject { + get { + return self.append("orderBy") + } + } + } + + /** Order By */ + public var orderBy: AssetOrderByType? = 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 = AssetOrderByType(rawValue: "\(dict["orderBy"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(orderBy != nil) { + dict["orderBy"] = orderBy!.rawValue + } + 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/AssetPersonalMarkup.swift b/KalturaClient/Classes/Model/Objects/AssetPersonalMarkup.swift new file mode 100644 index 000000000..40de86998 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetPersonalMarkup.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. + */ + +/** Asset Personal Markup */ +open class AssetPersonalMarkup: ObjectBase { + + public class AssetPersonalMarkupTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var assetType: BaseTokenizedObject { + get { + return self.append("assetType") + } + } + + public var products: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("products")) + } + } + } + + /** Asset Id */ + public var assetId: Int64? = nil + /** Asset Type */ + public var assetType: AssetType? = nil + /** all related asset's Product Markups */ + public var products: Array? = nil + + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + public func setMultiRequestToken(assetType: String) { + self.dict["assetType"] = assetType + } + + 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["products"] != nil { + products = try JSONParser.parse(array: dict["products"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(products != nil) { + dict["products"] = products!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetPersonalMarkupListResponse.swift b/KalturaClient/Classes/Model/Objects/AssetPersonalMarkupListResponse.swift new file mode 100644 index 000000000..187c3be9a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetPersonalMarkupListResponse.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 Personal Markup */ +open class AssetPersonalMarkupListResponse: ListResponse { + + public class AssetPersonalMarkupListResponseTokenizer: 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/AssetPersonalMarkupSearchFilter.swift b/KalturaClient/Classes/Model/Objects/AssetPersonalMarkupSearchFilter.swift new file mode 100644 index 000000000..9711839b0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetPersonalMarkupSearchFilter.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 Personal Markup search filter */ +open class AssetPersonalMarkupSearchFilter: Filter { + + public class AssetPersonalMarkupSearchFilterTokenizer: Filter.FilterTokenizer { + + public var assetsIn: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("assetsIn")) + } + } + } + + /** all assets to search their personal markups */ + public var assetsIn: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetsIn"] != nil { + assetsIn = try JSONParser.parse(array: dict["assetsIn"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetsIn != nil) { + dict["assetsIn"] = assetsIn!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetPersonalSelection.swift b/KalturaClient/Classes/Model/Objects/AssetPersonalSelection.swift new file mode 100644 index 000000000..9a206a432 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetPersonalSelection.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. + */ + +/** Asset personal selection */ +open class AssetPersonalSelection: ObjectBase { + + public class AssetPersonalSelectionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var assetId: BaseTokenizedObject { + get { + return self.append("assetId") + } + } + + public var assetType: BaseTokenizedObject { + get { + return self.append("assetType") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + } + + /** Asset Id */ + public var assetId: Int64? = nil + /** Asset Type */ + public var assetType: AssetType? = nil + /** Update Date */ + public var updateDate: Int64? = nil + + + public func setMultiRequestToken(assetId: String) { + self.dict["assetId"] = assetId + } + + public func setMultiRequestToken(assetType: String) { + self.dict["assetType"] = assetType + } + + 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["assetId"] != nil { + assetId = Int64("\(dict["assetId"]!)") + } + if dict["assetType"] != nil { + assetType = AssetType(rawValue: "\(dict["assetType"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + + } + +} + 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..f1d4f6acb --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetRuleFilter.swift @@ -0,0 +1,139 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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") + } + } + + public var nameContains: BaseTokenizedObject { + get { + return self.append("nameContains") + } + } + } + + /** 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 + /** Name */ + public var nameContains: String? = 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 func setMultiRequestToken(nameContains: String) { + self.dict["nameContains"] = nameContains + } + + 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"]!)") + } + if dict["nameContains"] != nil { + nameContains = dict["nameContains"] as? String + } + + } + + 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! + } + if(nameContains != nil) { + dict["nameContains"] = nameContains! + } + 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/AssetShopCondition.swift b/KalturaClient/Classes/Model/Objects/AssetShopCondition.swift new file mode 100644 index 000000000..47e186c39 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetShopCondition.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. + */ + +open class AssetShopCondition: AssetConditionBase { + + public class AssetShopConditionTokenizer: AssetConditionBase.AssetConditionBaseTokenizer { + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + + public func values() -> T { + return T(self.append("values")) + } + } + + /** Shop marker's value */ + public var value: String? = nil + /** Shop marker's values */ + public var values: StringValueArray? = 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["values"] != nil { + values = try JSONParser.parse(object: dict["values"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(value != nil) { + dict["value"] = value! + } + if(values != nil) { + dict["values"] = values!.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/AssetStatisticsOrder.swift b/KalturaClient/Classes/Model/Objects/AssetStatisticsOrder.swift new file mode 100644 index 000000000..a2ecc6a3d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetStatisticsOrder.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 AssetStatisticsOrder: BaseAssetOrder { + + public class AssetStatisticsOrderTokenizer: BaseAssetOrder.BaseAssetOrderTokenizer { + + public var trendingDaysEqual: BaseTokenizedObject { + get { + return self.append("trendingDaysEqual") + } + } + + public var orderBy: BaseTokenizedObject { + get { + return self.append("orderBy") + } + } + } + + /** Trending Days Equal */ + public var trendingDaysEqual: Int? = nil + /** order by meta asc/desc */ + public var orderBy: AssetOrderByStatistics? = nil + + + public func setMultiRequestToken(trendingDaysEqual: String) { + self.dict["trendingDaysEqual"] = trendingDaysEqual + } + + 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["trendingDaysEqual"] != nil { + trendingDaysEqual = dict["trendingDaysEqual"] as? Int + } + if dict["orderBy"] != nil { + orderBy = AssetOrderByStatistics(rawValue: "\(dict["orderBy"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(trendingDaysEqual != nil) { + dict["trendingDaysEqual"] = trendingDaysEqual! + } + if(orderBy != nil) { + dict["orderBy"] = orderBy!.rawValue + } + 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..b93680fd7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetStruct.swift @@ -0,0 +1,289 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * 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") + } + } + + public var dynamicData: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("dynamicData")) + } + } + } + + /** 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 + /** Dynamic data */ + public var dynamicData: Dictionary? = 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"]!)") + } + if dict["dynamicData"] != nil { + dynamicData = try JSONParser.parse(map: dict["dynamicData"] 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(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! + } + if(dynamicData != nil) { + dict["dynamicData"] = dynamicData!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/AssetStructFilter.swift b/KalturaClient/Classes/Model/Objects/AssetStructFilter.swift new file mode 100644 index 000000000..d57c23775 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetStructFilter.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. + */ + +/** Filtering Asset Structs */ +open class AssetStructFilter: BaseAssetStructFilter { + + public class AssetStructFilterTokenizer: BaseAssetStructFilter.BaseAssetStructFilterTokenizer { + + 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") + } + } + + public var objectVirtualAssetInfoTypeEqual: BaseTokenizedObject { + get { + return self.append("objectVirtualAssetInfoTypeEqual") + } + } + } + + /** 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 + /** Filter Asset Structs by object virtual asset info type value */ + public var objectVirtualAssetInfoTypeEqual: ObjectVirtualAssetInfoType? = 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 func setMultiRequestToken(objectVirtualAssetInfoTypeEqual: String) { + self.dict["objectVirtualAssetInfoTypeEqual"] = objectVirtualAssetInfoTypeEqual + } + + 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 + } + if dict["objectVirtualAssetInfoTypeEqual"] != nil { + objectVirtualAssetInfoTypeEqual = ObjectVirtualAssetInfoType(rawValue: "\(dict["objectVirtualAssetInfoTypeEqual"]!)") + } + + } + + 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! + } + if(objectVirtualAssetInfoTypeEqual != nil) { + dict["objectVirtualAssetInfoTypeEqual"] = objectVirtualAssetInfoTypeEqual!.rawValue + } + 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..de7e4f9d2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetStructMeta.swift @@ -0,0 +1,243 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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") + } + } + + public var suppressedOrder: BaseTokenizedObject { + get { + return self.append("suppressedOrder") + } + } + + public var aliasName: BaseTokenizedObject { + get { + return self.append("aliasName") + } + } + } + + /** 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 + /** suppressed Order, ascending */ + public var suppressedOrder: Int? = nil + /** Case sensitive alias value */ + public var aliasName: String? = 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 func setMultiRequestToken(suppressedOrder: String) { + self.dict["suppressedOrder"] = suppressedOrder + } + + public func setMultiRequestToken(aliasName: String) { + self.dict["aliasName"] = aliasName + } + + 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 + } + if dict["suppressedOrder"] != nil { + suppressedOrder = dict["suppressedOrder"] as? Int + } + if dict["aliasName"] != nil { + aliasName = dict["aliasName"] as? String + } + + } + + 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! + } + if(suppressedOrder != nil) { + dict["suppressedOrder"] = suppressedOrder! + } + if(aliasName != nil) { + dict["aliasName"] = aliasName! + } + 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..4e50a2a68 --- /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 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..3a82bdac9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/AssetUserRuleFilter.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. + */ + +/** 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") + } + } + + public var conditionsContainType: BaseTokenizedObject { + get { + return self.append("conditionsContainType") + } + } + } + + /** 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 + /** Indicates that only asset rules are returned that have exactly one and not more + associated condition. */ + public var conditionsContainType: RuleConditionType? = nil + + + public func setMultiRequestToken(attachedUserIdEqualCurrent: String) { + self.dict["attachedUserIdEqualCurrent"] = attachedUserIdEqualCurrent + } + + public func setMultiRequestToken(actionsContainType: String) { + self.dict["actionsContainType"] = actionsContainType + } + + public func setMultiRequestToken(conditionsContainType: String) { + self.dict["conditionsContainType"] = conditionsContainType + } + + 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"]!)") + } + if dict["conditionsContainType"] != nil { + conditionsContainType = RuleConditionType(rawValue: "\(dict["conditionsContainType"]!)") + } + + } + + 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 + } + if(conditionsContainType != nil) { + dict["conditionsContainType"] = conditionsContainType!.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/BaseAssetOrder.swift b/KalturaClient/Classes/Model/Objects/BaseAssetOrder.swift new file mode 100644 index 000000000..004cf3e4c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BaseAssetOrder.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 BaseAssetOrder: ObjectBase { + + public class BaseAssetOrderTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BaseAssetStructFilter.swift b/KalturaClient/Classes/Model/Objects/BaseAssetStructFilter.swift new file mode 100644 index 000000000..5d8b6722e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BaseAssetStructFilter.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 BaseAssetStructFilter: Filter { + + public class BaseAssetStructFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BaseChannel.swift b/KalturaClient/Classes/Model/Objects/BaseChannel.swift new file mode 100644 index 000000000..197ec0407 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BaseChannel.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. + */ + +/** Slim channel */ +open class BaseChannel: OTTObjectSupportNullable { + + public class BaseChannelTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + 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"]!)") + } + + } + + 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/BaseChannelOrder.swift b/KalturaClient/Classes/Model/Objects/BaseChannelOrder.swift new file mode 100644 index 000000000..d9300548f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BaseChannelOrder.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 BaseChannelOrder: ObjectBase { + + public class BaseChannelOrderTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + 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/BasePartnerConfiguration.swift b/KalturaClient/Classes/Model/Objects/BasePartnerConfiguration.swift new file mode 100644 index 000000000..0d51d07dc --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BasePartnerConfiguration.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 BasePartnerConfiguration: PartnerConfiguration { + + public class BasePartnerConfigurationTokenizer: PartnerConfiguration.PartnerConfigurationTokenizer { + + public var ksExpirationSeconds: BaseTokenizedObject { + get { + return self.append("ksExpirationSeconds") + } + } + + public var appTokenSessionMaxDurationSeconds: BaseTokenizedObject { + get { + return self.append("appTokenSessionMaxDurationSeconds") + } + } + + public var anonymousKSExpirationSeconds: BaseTokenizedObject { + get { + return self.append("anonymousKSExpirationSeconds") + } + } + + public var refreshExpirationForPinLoginSeconds: BaseTokenizedObject { + get { + return self.append("refreshExpirationForPinLoginSeconds") + } + } + + public var appTokenMaxExpirySeconds: BaseTokenizedObject { + get { + return self.append("appTokenMaxExpirySeconds") + } + } + + public var autoRefreshAppToken: BaseTokenizedObject { + get { + return self.append("autoRefreshAppToken") + } + } + + public var uploadTokenExpirySeconds: BaseTokenizedObject { + get { + return self.append("uploadTokenExpirySeconds") + } + } + + public var apptokenUserValidationDisabled: BaseTokenizedObject { + get { + return self.append("apptokenUserValidationDisabled") + } + } + + public var epgFeatureVersion: BaseTokenizedObject { + get { + return self.append("epgFeatureVersion") + } + } + } + + /** KSExpirationSeconds */ + public var ksExpirationSeconds: Int64? = nil + /** AppTokenSessionMaxDurationSeconds */ + public var appTokenSessionMaxDurationSeconds: Int? = nil + /** AnonymousKSExpirationSeconds */ + public var anonymousKSExpirationSeconds: Int64? = nil + /** RefreshExpirationForPinLoginSeconds */ + public var refreshExpirationForPinLoginSeconds: Int64? = nil + /** AppTokenMaxExpirySeconds */ + public var appTokenMaxExpirySeconds: Int? = nil + /** AutoRefreshAppToken */ + public var autoRefreshAppToken: Bool? = nil + /** uploadTokenExpirySeconds */ + public var uploadTokenExpirySeconds: Int? = nil + /** apptokenUserValidationDisabled */ + public var apptokenUserValidationDisabled: Bool? = nil + /** epgFeatureVersion defines the epg feature version from version 1 to + version 3 if not provided v2 will be used */ + public var epgFeatureVersion: Int? = nil + + + public func setMultiRequestToken(ksExpirationSeconds: String) { + self.dict["ksExpirationSeconds"] = ksExpirationSeconds + } + + public func setMultiRequestToken(appTokenSessionMaxDurationSeconds: String) { + self.dict["appTokenSessionMaxDurationSeconds"] = appTokenSessionMaxDurationSeconds + } + + public func setMultiRequestToken(anonymousKSExpirationSeconds: String) { + self.dict["anonymousKSExpirationSeconds"] = anonymousKSExpirationSeconds + } + + public func setMultiRequestToken(refreshExpirationForPinLoginSeconds: String) { + self.dict["refreshExpirationForPinLoginSeconds"] = refreshExpirationForPinLoginSeconds + } + + public func setMultiRequestToken(appTokenMaxExpirySeconds: String) { + self.dict["appTokenMaxExpirySeconds"] = appTokenMaxExpirySeconds + } + + public func setMultiRequestToken(autoRefreshAppToken: String) { + self.dict["autoRefreshAppToken"] = autoRefreshAppToken + } + + public func setMultiRequestToken(uploadTokenExpirySeconds: String) { + self.dict["uploadTokenExpirySeconds"] = uploadTokenExpirySeconds + } + + public func setMultiRequestToken(apptokenUserValidationDisabled: String) { + self.dict["apptokenUserValidationDisabled"] = apptokenUserValidationDisabled + } + + public func setMultiRequestToken(epgFeatureVersion: String) { + self.dict["epgFeatureVersion"] = epgFeatureVersion + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["ksExpirationSeconds"] != nil { + ksExpirationSeconds = Int64("\(dict["ksExpirationSeconds"]!)") + } + if dict["appTokenSessionMaxDurationSeconds"] != nil { + appTokenSessionMaxDurationSeconds = dict["appTokenSessionMaxDurationSeconds"] as? Int + } + if dict["anonymousKSExpirationSeconds"] != nil { + anonymousKSExpirationSeconds = Int64("\(dict["anonymousKSExpirationSeconds"]!)") + } + if dict["refreshExpirationForPinLoginSeconds"] != nil { + refreshExpirationForPinLoginSeconds = Int64("\(dict["refreshExpirationForPinLoginSeconds"]!)") + } + if dict["appTokenMaxExpirySeconds"] != nil { + appTokenMaxExpirySeconds = dict["appTokenMaxExpirySeconds"] as? Int + } + if dict["autoRefreshAppToken"] != nil { + autoRefreshAppToken = dict["autoRefreshAppToken"] as? Bool + } + if dict["uploadTokenExpirySeconds"] != nil { + uploadTokenExpirySeconds = dict["uploadTokenExpirySeconds"] as? Int + } + if dict["apptokenUserValidationDisabled"] != nil { + apptokenUserValidationDisabled = dict["apptokenUserValidationDisabled"] as? Bool + } + if dict["epgFeatureVersion"] != nil { + epgFeatureVersion = dict["epgFeatureVersion"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(ksExpirationSeconds != nil) { + dict["ksExpirationSeconds"] = ksExpirationSeconds! + } + if(appTokenSessionMaxDurationSeconds != nil) { + dict["appTokenSessionMaxDurationSeconds"] = appTokenSessionMaxDurationSeconds! + } + if(anonymousKSExpirationSeconds != nil) { + dict["anonymousKSExpirationSeconds"] = anonymousKSExpirationSeconds! + } + if(refreshExpirationForPinLoginSeconds != nil) { + dict["refreshExpirationForPinLoginSeconds"] = refreshExpirationForPinLoginSeconds! + } + if(appTokenMaxExpirySeconds != nil) { + dict["appTokenMaxExpirySeconds"] = appTokenMaxExpirySeconds! + } + if(autoRefreshAppToken != nil) { + dict["autoRefreshAppToken"] = autoRefreshAppToken! + } + if(uploadTokenExpirySeconds != nil) { + dict["uploadTokenExpirySeconds"] = uploadTokenExpirySeconds! + } + if(apptokenUserValidationDisabled != nil) { + dict["apptokenUserValidationDisabled"] = apptokenUserValidationDisabled! + } + if(epgFeatureVersion != nil) { + dict["epgFeatureVersion"] = epgFeatureVersion! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BasePermissionFilter.swift b/KalturaClient/Classes/Model/Objects/BasePermissionFilter.swift new file mode 100644 index 000000000..92fbcbdad --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BasePermissionFilter.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 BasePermissionFilter: Filter { + + public class BasePermissionFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BasePreActionCondition.swift b/KalturaClient/Classes/Model/Objects/BasePreActionCondition.swift new file mode 100644 index 000000000..d16394308 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BasePreActionCondition.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 BasePreActionCondition: ObjectBase { + + public class BasePreActionConditionTokenizer: ObjectBase.ObjectBaseTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BasePromotion.swift b/KalturaClient/Classes/Model/Objects/BasePromotion.swift new file mode 100644 index 000000000..2fd2aff78 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BasePromotion.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. + */ + +/** Base Promotion */ +open class BasePromotion: ObjectBase { + + public class BasePromotionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var conditions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("conditions")) + } + } + } + + /** These conditions define the Promotion that applies on */ + 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/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..c5b2ac82e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BaseSearchAssetFilter.swift @@ -0,0 +1,146 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Kaltura Base Search Asset Filter */ +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") + } + } + + public var groupingOptionEqual: BaseTokenizedObject { + get { + return self.append("groupingOptionEqual") + } + } + } + + /** 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 + /** Grouping Option, Omit if not specified otherwise */ + public var groupingOptionEqual: GroupingOption? = nil + + + public func setMultiRequestToken(kSql: String) { + self.dict["kSql"] = kSql + } + + public func setMultiRequestToken(groupOrderBy: String) { + self.dict["groupOrderBy"] = groupOrderBy + } + + public func setMultiRequestToken(groupingOptionEqual: String) { + self.dict["groupingOptionEqual"] = groupingOptionEqual + } + + 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"]!)") + } + if dict["groupingOptionEqual"] != nil { + groupingOptionEqual = GroupingOption(rawValue: "\(dict["groupingOptionEqual"]!)") + } + + } + + 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 + } + if(groupingOptionEqual != nil) { + dict["groupingOptionEqual"] = groupingOptionEqual!.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/BatchCampaign.swift b/KalturaClient/Classes/Model/Objects/BatchCampaign.swift new file mode 100644 index 000000000..29a3c281f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BatchCampaign.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. + */ + +/** Campaign */ +open class BatchCampaign: Campaign { + + public class BatchCampaignTokenizer: Campaign.CampaignTokenizer { + + public var populationConditions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("populationConditions")) + } + } + } + + /** These conditions define the population that apply one the campaign */ + public var populationConditions: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["populationConditions"] != nil { + populationConditions = try JSONParser.parse(array: dict["populationConditions"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(populationConditions != nil) { + dict["populationConditions"] = populationConditions!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BatchCampaignSearchFilter.swift b/KalturaClient/Classes/Model/Objects/BatchCampaignSearchFilter.swift new file mode 100644 index 000000000..c846298b4 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BatchCampaignSearchFilter.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 BatchCampaignSearchFilter: CampaignSearchFilter { + + public class BatchCampaignSearchFilterTokenizer: CampaignSearchFilter.CampaignSearchFilterTokenizer { + } + + + + 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..7d38a4abe --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Bookmark.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. + */ + +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") + } + } + + public var context: BaseTokenizedObject { + get { + return self.append("context") + } + } + } + + /** User identifier */ + public var userId: String? = nil + /** The position of the user in the specific asset (in seconds) For + external recordings will always be '0' */ + 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 For external recordings will always be + 'True' */ + 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 + /** Playback context type */ + public var context: PlaybackContextType? = 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 func setMultiRequestToken(context: String) { + self.dict["context"] = context + } + + 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 + } + if dict["context"] != nil { + context = PlaybackContextType(rawValue: "\(dict["context"]!)") + } + + } + + 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! + } + if(context != nil) { + dict["context"] = context!.rawValue + } + 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..6af35a005 --- /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/BulkUploadDynamicListData.swift b/KalturaClient/Classes/Model/Objects/BulkUploadDynamicListData.swift new file mode 100644 index 000000000..7e3d2d361 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadDynamicListData.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. + */ + +/** indicates the DynamicList object type in the bulk file */ +open class BulkUploadDynamicListData: BulkUploadObjectData { + + public class BulkUploadDynamicListDataTokenizer: BulkUploadObjectData.BulkUploadObjectDataTokenizer { + + public var dynamicListId: BaseTokenizedObject { + get { + return self.append("dynamicListId") + } + } + } + + /** Identifies the dynamicList Id */ + public var dynamicListId: Int64? = nil + + + public func setMultiRequestToken(dynamicListId: String) { + self.dict["dynamicListId"] = dynamicListId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["dynamicListId"] != nil { + dynamicListId = Int64("\(dict["dynamicListId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(dynamicListId != nil) { + dict["dynamicListId"] = dynamicListId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadDynamicListResult.swift b/KalturaClient/Classes/Model/Objects/BulkUploadDynamicListResult.swift new file mode 100644 index 000000000..904868cf6 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadDynamicListResult.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 BulkUploadDynamicListResult: BulkUploadResult { + + public class BulkUploadDynamicListResultTokenizer: BulkUploadResult.BulkUploadResultTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + 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..e0f32e7e8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadIngestJobData.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. + */ + +/** 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") + } + } + + public var disableEpgNotification: BaseTokenizedObject { + get { + return self.append("disableEpgNotification") + } + } + } + + /** 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 + /** By default, after the successful ingest, devices will be notified about changes + in epg channels. This parameter disables this notification. */ + public var disableEpgNotification: Bool? = nil + + + public func setMultiRequestToken(ingestProfileId: String) { + self.dict["ingestProfileId"] = ingestProfileId + } + + public func setMultiRequestToken(disableEpgNotification: String) { + self.dict["disableEpgNotification"] = disableEpgNotification + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["ingestProfileId"] != nil { + ingestProfileId = dict["ingestProfileId"] as? Int + } + if dict["disableEpgNotification"] != nil { + disableEpgNotification = dict["disableEpgNotification"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(ingestProfileId != nil) { + dict["ingestProfileId"] = ingestProfileId! + } + if(disableEpgNotification != nil) { + dict["disableEpgNotification"] = disableEpgNotification! + } + 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/BulkUploadStatistics.swift b/KalturaClient/Classes/Model/Objects/BulkUploadStatistics.swift new file mode 100644 index 000000000..84bf02522 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadStatistics.swift @@ -0,0 +1,235 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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 Statistics */ +open class BulkUploadStatistics: ObjectBase { + + public class BulkUploadStatisticsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var pending: BaseTokenizedObject { + get { + return self.append("pending") + } + } + + public var uploaded: BaseTokenizedObject { + get { + return self.append("uploaded") + } + } + + public var queued: BaseTokenizedObject { + get { + return self.append("queued") + } + } + + public var parsing: BaseTokenizedObject { + get { + return self.append("parsing") + } + } + + public var processing: BaseTokenizedObject { + get { + return self.append("processing") + } + } + + public var processed: BaseTokenizedObject { + get { + return self.append("processed") + } + } + + public var success: BaseTokenizedObject { + get { + return self.append("success") + } + } + + public var partial: BaseTokenizedObject { + get { + return self.append("partial") + } + } + + public var failed: BaseTokenizedObject { + get { + return self.append("failed") + } + } + + public var fatal: BaseTokenizedObject { + get { + return self.append("fatal") + } + } + } + + /** count of bulk upload in pending status */ + public var pending: Int64? = nil + /** count of bulk Uploaded in uploaded status */ + public var uploaded: Int64? = nil + /** count of bulk upload in queued status */ + public var queued: Int64? = nil + /** count of bulk upload in parsing status */ + public var parsing: Int64? = nil + /** count of bulk upload in processing status */ + public var processing: Int64? = nil + /** count of bulk upload in processed status */ + public var processed: Int64? = nil + /** count of bulk upload in success status */ + public var success: Int64? = nil + /** count of bulk upload in partial status */ + public var partial: Int64? = nil + /** count of bulk upload in failed status */ + public var failed: Int64? = nil + /** count of bulk upload in fatal status */ + public var fatal: Int64? = nil + + + public func setMultiRequestToken(pending: String) { + self.dict["pending"] = pending + } + + public func setMultiRequestToken(uploaded: String) { + self.dict["uploaded"] = uploaded + } + + public func setMultiRequestToken(queued: String) { + self.dict["queued"] = queued + } + + public func setMultiRequestToken(parsing: String) { + self.dict["parsing"] = parsing + } + + public func setMultiRequestToken(processing: String) { + self.dict["processing"] = processing + } + + public func setMultiRequestToken(processed: String) { + self.dict["processed"] = processed + } + + public func setMultiRequestToken(success: String) { + self.dict["success"] = success + } + + public func setMultiRequestToken(partial: String) { + self.dict["partial"] = partial + } + + public func setMultiRequestToken(failed: String) { + self.dict["failed"] = failed + } + + public func setMultiRequestToken(fatal: String) { + self.dict["fatal"] = fatal + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["pending"] != nil { + pending = Int64("\(dict["pending"]!)") + } + if dict["uploaded"] != nil { + uploaded = Int64("\(dict["uploaded"]!)") + } + if dict["queued"] != nil { + queued = Int64("\(dict["queued"]!)") + } + if dict["parsing"] != nil { + parsing = Int64("\(dict["parsing"]!)") + } + if dict["processing"] != nil { + processing = Int64("\(dict["processing"]!)") + } + if dict["processed"] != nil { + processed = Int64("\(dict["processed"]!)") + } + if dict["success"] != nil { + success = Int64("\(dict["success"]!)") + } + if dict["partial"] != nil { + partial = Int64("\(dict["partial"]!)") + } + if dict["failed"] != nil { + failed = Int64("\(dict["failed"]!)") + } + if dict["fatal"] != nil { + fatal = Int64("\(dict["fatal"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(pending != nil) { + dict["pending"] = pending! + } + if(uploaded != nil) { + dict["uploaded"] = uploaded! + } + if(queued != nil) { + dict["queued"] = queued! + } + if(parsing != nil) { + dict["parsing"] = parsing! + } + if(processing != nil) { + dict["processing"] = processing! + } + if(processed != nil) { + dict["processed"] = processed! + } + if(success != nil) { + dict["success"] = success! + } + if(partial != nil) { + dict["partial"] = partial! + } + if(failed != nil) { + dict["failed"] = failed! + } + if(fatal != nil) { + dict["fatal"] = fatal! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadUdidDynamicListData.swift b/KalturaClient/Classes/Model/Objects/BulkUploadUdidDynamicListData.swift new file mode 100644 index 000000000..d4db81fa5 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadUdidDynamicListData.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 UDID DynamicList object type in the bulk file */ +open class BulkUploadUdidDynamicListData: BulkUploadDynamicListData { + + public class BulkUploadUdidDynamicListDataTokenizer: BulkUploadDynamicListData.BulkUploadDynamicListDataTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/BulkUploadUdidDynamicListResult.swift b/KalturaClient/Classes/Model/Objects/BulkUploadUdidDynamicListResult.swift new file mode 100644 index 000000000..33cb3e195 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BulkUploadUdidDynamicListResult.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 BulkUploadUdidDynamicListResult: BulkUploadDynamicListResult { + + public class BulkUploadUdidDynamicListResultTokenizer: BulkUploadDynamicListResult.BulkUploadDynamicListResultTokenizer { + + public var udid: BaseTokenizedObject { + get { + return self.append("udid") + } + } + } + + /** The udid from the excel to add to DynamicLis values */ + public var udid: String? = nil + + + 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["udid"] != nil { + udid = dict["udid"] as? String + } + + } + +} + 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..9dffc9c68 --- /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/BusinessModuleDetails.swift b/KalturaClient/Classes/Model/Objects/BusinessModuleDetails.swift new file mode 100644 index 000000000..080f1456c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/BusinessModuleDetails.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 BusinessModuleDetails: ObjectBase { + + public class BusinessModuleDetailsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var businessModuleId: BaseTokenizedObject { + get { + return self.append("businessModuleId") + } + } + + public var businessModuleType: BaseTokenizedObject { + get { + return self.append("businessModuleType") + } + } + } + + /** BusinessModuleId */ + public var businessModuleId: Int? = nil + /** BusinessModuleType */ + public var businessModuleType: TransactionType? = nil + + + public func setMultiRequestToken(businessModuleId: String) { + self.dict["businessModuleId"] = businessModuleId + } + + public func setMultiRequestToken(businessModuleType: String) { + self.dict["businessModuleType"] = businessModuleType + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["businessModuleId"] != nil { + businessModuleId = dict["businessModuleId"] as? Int + } + if dict["businessModuleType"] != nil { + businessModuleType = TransactionType(rawValue: "\(dict["businessModuleType"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(businessModuleId != nil) { + dict["businessModuleId"] = businessModuleId! + } + if(businessModuleType != nil) { + dict["businessModuleType"] = businessModuleType!.rawValue + } + 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/Campaign.swift b/KalturaClient/Classes/Model/Objects/Campaign.swift new file mode 100644 index 000000000..c8a1459ea --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Campaign.swift @@ -0,0 +1,270 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +/** Campaign */ +open class Campaign: OTTObjectSupportNullable { + + public class CampaignTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var systemName: BaseTokenizedObject { + get { + return self.append("systemName") + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + + public var state: BaseTokenizedObject { + get { + return self.append("state") + } + } + + public func promotion() -> T { + return T(self.append("promotion")) + } + + public var message: BaseTokenizedObject { + get { + return self.append("message") + } + } + + public var collectionIdIn: BaseTokenizedObject { + get { + return self.append("collectionIdIn") + } + } + + public var assetUserRuleId: BaseTokenizedObject { + get { + return self.append("assetUserRuleId") + } + } + } + + /** ID */ + public var id: Int64? = nil + /** Create date of the rule */ + public var createDate: Int64? = nil + /** Update date of the rule */ + public var updateDate: Int64? = nil + /** Start date of the rule */ + public var startDate: Int64? = nil + /** End date of the rule */ + public var endDate: Int64? = nil + /** Name */ + public var name: String? = nil + /** systemName */ + public var systemName: String? = nil + /** Description */ + public var description: String? = nil + /** state */ + public var state: ObjectState? = nil + /** The Promotion that is promoted to the user */ + public var promotion: BasePromotion? = nil + /** Free text message to the user that gives information about the campaign. */ + public var message: String? = nil + /** Comma separated collection IDs list */ + public var collectionIdIn: String? = nil + /** Asset user rule identifier */ + public var assetUserRuleId: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + 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(systemName: String) { + self.dict["systemName"] = systemName + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public func setMultiRequestToken(state: String) { + self.dict["state"] = state + } + + public func setMultiRequestToken(message: String) { + self.dict["message"] = message + } + + public func setMultiRequestToken(collectionIdIn: String) { + self.dict["collectionIdIn"] = collectionIdIn + } + + 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 = Int64("\(dict["id"]!)") + } + if dict["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + if dict["startDate"] != nil { + startDate = Int64("\(dict["startDate"]!)") + } + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + if dict["name"] != nil { + name = dict["name"] as? String + } + if dict["systemName"] != nil { + systemName = dict["systemName"] as? String + } + if dict["description"] != nil { + description = dict["description"] as? String + } + if dict["state"] != nil { + state = ObjectState(rawValue: "\(dict["state"]!)") + } + if dict["promotion"] != nil { + promotion = try JSONParser.parse(object: dict["promotion"] as! [String: Any]) } + if dict["message"] != nil { + message = dict["message"] as? String + } + if dict["collectionIdIn"] != nil { + collectionIdIn = dict["collectionIdIn"] as? String + } + if dict["assetUserRuleId"] != nil { + assetUserRuleId = Int64("\(dict["assetUserRuleId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(startDate != nil) { + dict["startDate"] = startDate! + } + if(endDate != nil) { + dict["endDate"] = endDate! + } + if(name != nil) { + dict["name"] = name! + } + if(systemName != nil) { + dict["systemName"] = systemName! + } + if(description != nil) { + dict["description"] = description! + } + if(promotion != nil) { + dict["promotion"] = promotion!.toDictionary() + } + if(message != nil) { + dict["message"] = message! + } + if(collectionIdIn != nil) { + dict["collectionIdIn"] = collectionIdIn! + } + if(assetUserRuleId != nil) { + dict["assetUserRuleId"] = assetUserRuleId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CampaignEntitlementDiscountDetails.swift b/KalturaClient/Classes/Model/Objects/CampaignEntitlementDiscountDetails.swift new file mode 100644 index 000000000..390901332 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CampaignEntitlementDiscountDetails.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. + */ + +/** Campaign entitlement discount details */ +open class CampaignEntitlementDiscountDetails: EntitlementDiscountDetailsIdentifier { + + public class CampaignEntitlementDiscountDetailsTokenizer: EntitlementDiscountDetailsIdentifier.EntitlementDiscountDetailsIdentifierTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/CampaignFilter.swift b/KalturaClient/Classes/Model/Objects/CampaignFilter.swift new file mode 100644 index 000000000..c5938435a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CampaignFilter.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. + */ + +/** Campaign filter (same as KalturaCampaignSearchFilter with no parameters) */ +open class CampaignFilter: Filter { + + public class CampaignFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/CampaignIdInFilter.swift b/KalturaClient/Classes/Model/Objects/CampaignIdInFilter.swift new file mode 100644 index 000000000..78ef621fe --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CampaignIdInFilter.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 CampaignIdInFilter: CampaignFilter { + + public class CampaignIdInFilterTokenizer: CampaignFilter.CampaignFilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** campaign 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/CampaignListResponse.swift b/KalturaClient/Classes/Model/Objects/CampaignListResponse.swift new file mode 100644 index 000000000..d95388792 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CampaignListResponse.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 CampaignListResponse: ListResponse { + + public class CampaignListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of Campaigns */ + 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/CampaignSearchFilter.swift b/KalturaClient/Classes/Model/Objects/CampaignSearchFilter.swift new file mode 100644 index 000000000..5e46c6c30 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CampaignSearchFilter.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 CampaignSearchFilter: CampaignFilter { + + public class CampaignSearchFilterTokenizer: CampaignFilter.CampaignFilterTokenizer { + + public var startDateGreaterThanOrEqual: BaseTokenizedObject { + get { + return self.append("startDateGreaterThanOrEqual") + } + } + + public var endDateLessThanOrEqual: BaseTokenizedObject { + get { + return self.append("endDateLessThanOrEqual") + } + } + + public var stateEqual: BaseTokenizedObject { + get { + return self.append("stateEqual") + } + } + + public var hasPromotion: BaseTokenizedObject { + get { + return self.append("hasPromotion") + } + } + + public var nameEqual: BaseTokenizedObject { + get { + return self.append("nameEqual") + } + } + + public var nameContains: BaseTokenizedObject { + get { + return self.append("nameContains") + } + } + + public var stateIn: BaseTokenizedObject { + get { + return self.append("stateIn") + } + } + + public var assetUserRuleIdIn: BaseTokenizedObject { + get { + return self.append("assetUserRuleIdIn") + } + } + } + + /** start Date Greater Than Or Equal */ + public var startDateGreaterThanOrEqual: Int64? = nil + /** end Date Greater Than Or Equal */ + public var endDateLessThanOrEqual: Int64? = nil + /** state Equal */ + public var stateEqual: ObjectState? = nil + /** has Promotion */ + public var hasPromotion: Bool? = nil + /** Filter the Campaign with this name. */ + public var nameEqual: String? = nil + /** A string that is included in the Campaign name */ + public var nameContains: String? = nil + /** Comma separated Campaign State list */ + public var stateIn: String? = nil + /** Comma separated AssetUserRule Ids to filter by */ + public var assetUserRuleIdIn: String? = nil + + + public func setMultiRequestToken(startDateGreaterThanOrEqual: String) { + self.dict["startDateGreaterThanOrEqual"] = startDateGreaterThanOrEqual + } + + public func setMultiRequestToken(endDateLessThanOrEqual: String) { + self.dict["endDateLessThanOrEqual"] = endDateLessThanOrEqual + } + + public func setMultiRequestToken(stateEqual: String) { + self.dict["stateEqual"] = stateEqual + } + + public func setMultiRequestToken(hasPromotion: String) { + self.dict["hasPromotion"] = hasPromotion + } + + public func setMultiRequestToken(nameEqual: String) { + self.dict["nameEqual"] = nameEqual + } + + public func setMultiRequestToken(nameContains: String) { + self.dict["nameContains"] = nameContains + } + + public func setMultiRequestToken(stateIn: String) { + self.dict["stateIn"] = stateIn + } + + public func setMultiRequestToken(assetUserRuleIdIn: String) { + self.dict["assetUserRuleIdIn"] = assetUserRuleIdIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["startDateGreaterThanOrEqual"] != nil { + startDateGreaterThanOrEqual = Int64("\(dict["startDateGreaterThanOrEqual"]!)") + } + if dict["endDateLessThanOrEqual"] != nil { + endDateLessThanOrEqual = Int64("\(dict["endDateLessThanOrEqual"]!)") + } + if dict["stateEqual"] != nil { + stateEqual = ObjectState(rawValue: "\(dict["stateEqual"]!)") + } + if dict["hasPromotion"] != nil { + hasPromotion = dict["hasPromotion"] as? Bool + } + if dict["nameEqual"] != nil { + nameEqual = dict["nameEqual"] as? String + } + if dict["nameContains"] != nil { + nameContains = dict["nameContains"] as? String + } + if dict["stateIn"] != nil { + stateIn = dict["stateIn"] as? String + } + if dict["assetUserRuleIdIn"] != nil { + assetUserRuleIdIn = dict["assetUserRuleIdIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(startDateGreaterThanOrEqual != nil) { + dict["startDateGreaterThanOrEqual"] = startDateGreaterThanOrEqual! + } + if(endDateLessThanOrEqual != nil) { + dict["endDateLessThanOrEqual"] = endDateLessThanOrEqual! + } + if(stateEqual != nil) { + dict["stateEqual"] = stateEqual!.rawValue + } + if(hasPromotion != nil) { + dict["hasPromotion"] = hasPromotion! + } + if(nameEqual != nil) { + dict["nameEqual"] = nameEqual! + } + if(nameContains != nil) { + dict["nameContains"] = nameContains! + } + if(stateIn != nil) { + dict["stateIn"] = stateIn! + } + if(assetUserRuleIdIn != nil) { + dict["assetUserRuleIdIn"] = assetUserRuleIdIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CampaignSegmentFilter.swift b/KalturaClient/Classes/Model/Objects/CampaignSegmentFilter.swift new file mode 100644 index 000000000..fc1392b57 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CampaignSegmentFilter.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 CampaignSegmentFilter: CampaignSearchFilter { + + public class CampaignSegmentFilterTokenizer: CampaignSearchFilter.CampaignSearchFilterTokenizer { + + public var segmentIdEqual: BaseTokenizedObject { + get { + return self.append("segmentIdEqual") + } + } + } + + /** segment id to be searched inside campaigns */ + public var segmentIdEqual: Int64? = nil + + + public func setMultiRequestToken(segmentIdEqual: String) { + self.dict["segmentIdEqual"] = segmentIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["segmentIdEqual"] != nil { + segmentIdEqual = Int64("\(dict["segmentIdEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(segmentIdEqual != nil) { + dict["segmentIdEqual"] = segmentIdEqual! + } + 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/CatalogPartnerConfig.swift b/KalturaClient/Classes/Model/Objects/CatalogPartnerConfig.swift new file mode 100644 index 000000000..4d9c21d09 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CatalogPartnerConfig.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. + */ + +/** Partner catalog configuration */ +open class CatalogPartnerConfig: PartnerConfiguration { + + public class CatalogPartnerConfigTokenizer: PartnerConfiguration.PartnerConfigurationTokenizer { + + public var singleMultilingualMode: BaseTokenizedObject { + get { + return self.append("singleMultilingualMode") + } + } + + public func categoryManagement() -> T { + return T(self.append("categoryManagement")) + } + + public var epgMultilingualFallbackSupport: BaseTokenizedObject { + get { + return self.append("epgMultilingualFallbackSupport") + } + } + + public var uploadExportDatalake: BaseTokenizedObject { + get { + return self.append("uploadExportDatalake") + } + } + + public var shopMarkerMetaId: BaseTokenizedObject { + get { + return self.append("shopMarkerMetaId") + } + } + } + + /** Single multilingual mode */ + public var singleMultilingualMode: Bool? = nil + /** Category management */ + public var categoryManagement: CategoryManagement? = nil + /** EPG Multilingual Fallback Support */ + public var epgMultilingualFallbackSupport: Bool? = nil + /** Upload Export Datalake */ + public var uploadExportDatalake: Bool? = nil + /** Shop Marker's identifier */ + public var shopMarkerMetaId: Int64? = nil + + + public func setMultiRequestToken(singleMultilingualMode: String) { + self.dict["singleMultilingualMode"] = singleMultilingualMode + } + + public func setMultiRequestToken(epgMultilingualFallbackSupport: String) { + self.dict["epgMultilingualFallbackSupport"] = epgMultilingualFallbackSupport + } + + public func setMultiRequestToken(uploadExportDatalake: String) { + self.dict["uploadExportDatalake"] = uploadExportDatalake + } + + public func setMultiRequestToken(shopMarkerMetaId: String) { + self.dict["shopMarkerMetaId"] = shopMarkerMetaId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["singleMultilingualMode"] != nil { + singleMultilingualMode = dict["singleMultilingualMode"] as? Bool + } + if dict["categoryManagement"] != nil { + categoryManagement = try JSONParser.parse(object: dict["categoryManagement"] as! [String: Any]) } + if dict["epgMultilingualFallbackSupport"] != nil { + epgMultilingualFallbackSupport = dict["epgMultilingualFallbackSupport"] as? Bool + } + if dict["uploadExportDatalake"] != nil { + uploadExportDatalake = dict["uploadExportDatalake"] as? Bool + } + if dict["shopMarkerMetaId"] != nil { + shopMarkerMetaId = Int64("\(dict["shopMarkerMetaId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(singleMultilingualMode != nil) { + dict["singleMultilingualMode"] = singleMultilingualMode! + } + if(categoryManagement != nil) { + dict["categoryManagement"] = categoryManagement!.toDictionary() + } + if(epgMultilingualFallbackSupport != nil) { + dict["epgMultilingualFallbackSupport"] = epgMultilingualFallbackSupport! + } + if(uploadExportDatalake != nil) { + dict["uploadExportDatalake"] = uploadExportDatalake! + } + if(shopMarkerMetaId != nil) { + dict["shopMarkerMetaId"] = shopMarkerMetaId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CategoryItem.swift b/KalturaClient/Classes/Model/Objects/CategoryItem.swift new file mode 100644 index 000000000..5f386352f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CategoryItem.swift @@ -0,0 +1,296 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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: OTTObjectSupportNullable { + + public class CategoryItemTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + 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") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var versionId: BaseTokenizedObject { + get { + return self.append("versionId") + } + } + + public var virtualAssetId: BaseTokenizedObject { + get { + return self.append("virtualAssetId") + } + } + + public var referenceId: BaseTokenizedObject { + get { + return self.append("referenceId") + } + } + } + + /** 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 + /** Category type */ + public var type: String? = nil + /** Unique identifier for the category version */ + public var versionId: Int64? = nil + /** Virtual asset id */ + public var virtualAssetId: Int64? = nil + /** Category reference identifier */ + public var referenceId: String? = 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 func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(versionId: String) { + self.dict["versionId"] = versionId + } + + public func setMultiRequestToken(virtualAssetId: String) { + self.dict["virtualAssetId"] = virtualAssetId + } + + public func setMultiRequestToken(referenceId: String) { + self.dict["referenceId"] = referenceId + } + + 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"]!)") + } + if dict["type"] != nil { + type = dict["type"] as? String + } + if dict["versionId"] != nil { + versionId = Int64("\(dict["versionId"]!)") + } + if dict["virtualAssetId"] != nil { + virtualAssetId = Int64("\(dict["virtualAssetId"]!)") + } + if dict["referenceId"] != nil { + referenceId = dict["referenceId"] as? String + } + + } + + 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! + } + if(type != nil) { + dict["type"] = type! + } + if(referenceId != nil) { + dict["referenceId"] = referenceId! + } + 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..4dce804b5 --- /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: Filter { + + public class CategoryItemFilterTokenizer: Filter.FilterTokenizer { + } + + + + 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..d927e8b0e --- /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 CategoryItem */ + 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..a770c2315 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CategoryItemSearchFilter.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 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") + } + } + + public var typeEqual: BaseTokenizedObject { + get { + return self.append("typeEqual") + } + } + } + + /** KSQL expression */ + public var kSql: String? = nil + /** Root only */ + public var rootOnly: Bool? = nil + /** Indicates which category to return by their type. */ + public var typeEqual: String? = nil + + + public func setMultiRequestToken(kSql: String) { + self.dict["kSql"] = kSql + } + + public func setMultiRequestToken(rootOnly: String) { + self.dict["rootOnly"] = rootOnly + } + + 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["kSql"] != nil { + kSql = dict["kSql"] as? String + } + if dict["rootOnly"] != nil { + rootOnly = dict["rootOnly"] as? Bool + } + if dict["typeEqual"] != nil { + typeEqual = dict["typeEqual"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(kSql != nil) { + dict["kSql"] = kSql! + } + if(rootOnly != nil) { + dict["rootOnly"] = rootOnly! + } + if(typeEqual != nil) { + dict["typeEqual"] = typeEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CategoryManagement.swift b/KalturaClient/Classes/Model/Objects/CategoryManagement.swift new file mode 100644 index 000000000..912067181 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CategoryManagement.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. + */ + +/** Category management */ +open class CategoryManagement: ObjectBase { + + public class CategoryManagementTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var defaultTreeId: BaseTokenizedObject { + get { + return self.append("defaultTreeId") + } + } + + public var deviceFamilyToCategoryTree: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("deviceFamilyToCategoryTree")) + } + } + } + + /** Default CategoryVersion tree id */ + public var defaultTreeId: Int64? = nil + /** Device family to Category TreeId mapping */ + public var deviceFamilyToCategoryTree: Dictionary? = nil + + + public func setMultiRequestToken(defaultTreeId: String) { + self.dict["defaultTreeId"] = defaultTreeId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["defaultTreeId"] != nil { + defaultTreeId = Int64("\(dict["defaultTreeId"]!)") + } + if dict["deviceFamilyToCategoryTree"] != nil { + deviceFamilyToCategoryTree = try JSONParser.parse(map: dict["deviceFamilyToCategoryTree"] as! [String: Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(defaultTreeId != nil) { + dict["defaultTreeId"] = defaultTreeId! + } + if(deviceFamilyToCategoryTree != nil) { + dict["deviceFamilyToCategoryTree"] = deviceFamilyToCategoryTree!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CategoryTree.swift b/KalturaClient/Classes/Model/Objects/CategoryTree.swift new file mode 100644 index 000000000..17b5eb073 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CategoryTree.swift @@ -0,0 +1,269 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + + public var versionId: BaseTokenizedObject { + get { + return self.append("versionId") + } + } + + public var virtualAssetId: BaseTokenizedObject { + get { + return self.append("virtualAssetId") + } + } + + public var referenceId: BaseTokenizedObject { + get { + return self.append("referenceId") + } + } + } + + /** 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 + /** Category type */ + public var type: String? = nil + /** Unique identifier for the category version */ + public var versionId: Int64? = nil + /** Virtual asset id */ + public var virtualAssetId: Int64? = nil + /** Category reference identifier */ + public var referenceId: 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(startDateInSeconds: String) { + self.dict["startDateInSeconds"] = startDateInSeconds + } + + public func setMultiRequestToken(endDateInSeconds: String) { + self.dict["endDateInSeconds"] = endDateInSeconds + } + + public func setMultiRequestToken(type: String) { + self.dict["type"] = type + } + + public func setMultiRequestToken(versionId: String) { + self.dict["versionId"] = versionId + } + + public func setMultiRequestToken(virtualAssetId: String) { + self.dict["virtualAssetId"] = virtualAssetId + } + + public func setMultiRequestToken(referenceId: String) { + self.dict["referenceId"] = referenceId + } + + 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"]!)") + } + if dict["type"] != nil { + type = dict["type"] as? String + } + if dict["versionId"] != nil { + versionId = Int64("\(dict["versionId"]!)") + } + if dict["virtualAssetId"] != nil { + virtualAssetId = Int64("\(dict["virtualAssetId"]!)") + } + if dict["referenceId"] != nil { + referenceId = dict["referenceId"] as? String + } + + } + + 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! + } + if(type != nil) { + dict["type"] = type! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CategoryVersion.swift b/KalturaClient/Classes/Model/Objects/CategoryVersion.swift new file mode 100644 index 000000000..d752f8c82 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CategoryVersion.swift @@ -0,0 +1,229 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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 CategoryVersion: OTTObjectSupportNullable { + + public class CategoryVersionTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var treeId: BaseTokenizedObject { + get { + return self.append("treeId") + } + } + + public var state: BaseTokenizedObject { + get { + return self.append("state") + } + } + + public var baseVersionId: BaseTokenizedObject { + get { + return self.append("baseVersionId") + } + } + + public var categoryRootId: BaseTokenizedObject { + get { + return self.append("categoryRootId") + } + } + + public var defaultDate: BaseTokenizedObject { + get { + return self.append("defaultDate") + } + } + + public var updaterId: BaseTokenizedObject { + get { + return self.append("updaterId") + } + } + + public var comment: BaseTokenizedObject { + get { + return self.append("comment") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + } + + /** Unique identifier for the category version */ + public var id: Int64? = nil + /** Category version name */ + public var name: String? = nil + /** Category tree identifier */ + public var treeId: Int64? = nil + /** The category version state */ + public var state: CategoryVersionState? = nil + /** The version id that this version was created from */ + public var baseVersionId: Int64? = nil + /** The root of category item id that was created for this version */ + public var categoryRootId: Int64? = nil + /** The date that this version became default represented as epoch. */ + public var defaultDate: Int64? = nil + /** Last updater user id. */ + public var updaterId: Int64? = nil + /** Comment. */ + public var comment: String? = nil + /** The date that this version was created represented as epoch. */ + public var createDate: Int64? = nil + /** The date that this version was last updated 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(treeId: String) { + self.dict["treeId"] = treeId + } + + public func setMultiRequestToken(state: String) { + self.dict["state"] = state + } + + public func setMultiRequestToken(baseVersionId: String) { + self.dict["baseVersionId"] = baseVersionId + } + + public func setMultiRequestToken(categoryRootId: String) { + self.dict["categoryRootId"] = categoryRootId + } + + public func setMultiRequestToken(defaultDate: String) { + self.dict["defaultDate"] = defaultDate + } + + public func setMultiRequestToken(updaterId: String) { + self.dict["updaterId"] = updaterId + } + + public func setMultiRequestToken(comment: String) { + self.dict["comment"] = comment + } + + 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["treeId"] != nil { + treeId = Int64("\(dict["treeId"]!)") + } + if dict["state"] != nil { + state = CategoryVersionState(rawValue: "\(dict["state"]!)") + } + if dict["baseVersionId"] != nil { + baseVersionId = Int64("\(dict["baseVersionId"]!)") + } + if dict["categoryRootId"] != nil { + categoryRootId = Int64("\(dict["categoryRootId"]!)") + } + if dict["defaultDate"] != nil { + defaultDate = Int64("\(dict["defaultDate"]!)") + } + if dict["updaterId"] != nil { + updaterId = Int64("\(dict["updaterId"]!)") + } + if dict["comment"] != nil { + comment = dict["comment"] 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(name != nil) { + dict["name"] = name! + } + if(baseVersionId != nil) { + dict["baseVersionId"] = baseVersionId! + } + if(comment != nil) { + dict["comment"] = comment! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CategoryVersionFilter.swift b/KalturaClient/Classes/Model/Objects/CategoryVersionFilter.swift new file mode 100644 index 000000000..7dee5d7b6 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CategoryVersionFilter.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 CategoryVersionFilter: Filter { + + public class CategoryVersionFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/CategoryVersionFilterByTree.swift b/KalturaClient/Classes/Model/Objects/CategoryVersionFilterByTree.swift new file mode 100644 index 000000000..a0bb61447 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CategoryVersionFilterByTree.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 CategoryVersionFilterByTree: CategoryVersionFilter { + + public class CategoryVersionFilterByTreeTokenizer: CategoryVersionFilter.CategoryVersionFilterTokenizer { + + public var treeIdEqual: BaseTokenizedObject { + get { + return self.append("treeIdEqual") + } + } + + public var stateEqual: BaseTokenizedObject { + get { + return self.append("stateEqual") + } + } + } + + /** Category version tree identifier */ + public var treeIdEqual: Int64? = nil + /** Category version state */ + public var stateEqual: CategoryVersionState? = nil + + + public func setMultiRequestToken(treeIdEqual: String) { + self.dict["treeIdEqual"] = treeIdEqual + } + + public func setMultiRequestToken(stateEqual: String) { + self.dict["stateEqual"] = stateEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["treeIdEqual"] != nil { + treeIdEqual = Int64("\(dict["treeIdEqual"]!)") + } + if dict["stateEqual"] != nil { + stateEqual = CategoryVersionState(rawValue: "\(dict["stateEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(treeIdEqual != nil) { + dict["treeIdEqual"] = treeIdEqual! + } + if(stateEqual != nil) { + dict["stateEqual"] = stateEqual!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CategoryVersionListResponse.swift b/KalturaClient/Classes/Model/Objects/CategoryVersionListResponse.swift new file mode 100644 index 000000000..f91fc7092 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CategoryVersionListResponse.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 CategoryVersionListResponse: ListResponse { + + public class CategoryVersionListResponseTokenizer: 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/Channel.swift b/KalturaClient/Classes/Model/Objects/Channel.swift new file mode 100644 index 000000000..eae6c8117 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Channel.swift @@ -0,0 +1,306 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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 orderingParametersEqual: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("orderingParametersEqual")) + } + } + + 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")) + } + } + + public var virtualAssetId: BaseTokenizedObject { + get { + return self.append("virtualAssetId") + } + } + } + + /** 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 + /** Parameters for asset list sorting. */ + public var orderingParametersEqual: Array? = 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 + /** Virtual asset id */ + public var virtualAssetId: Int64? = 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 func setMultiRequestToken(virtualAssetId: String) { + self.dict["virtualAssetId"] = virtualAssetId + } + + 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["orderingParametersEqual"] != nil { + orderingParametersEqual = try JSONParser.parse(array: dict["orderingParametersEqual"] as! [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]) + } + if dict["virtualAssetId"] != nil { + virtualAssetId = Int64("\(dict["virtualAssetId"]!)") + } + + } + + 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(orderingParametersEqual != nil) { + dict["orderingParametersEqual"] = orderingParametersEqual!.map { value in value.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/ChannelAggregatedIngestInfo.swift b/KalturaClient/Classes/Model/Objects/ChannelAggregatedIngestInfo.swift new file mode 100644 index 000000000..8387b6807 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ChannelAggregatedIngestInfo.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. + */ + +open class ChannelAggregatedIngestInfo: ObjectBase { + + public class ChannelAggregatedIngestInfoTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var linearChannelId: BaseTokenizedObject { + get { + return self.append("linearChannelId") + } + } + + public func aggregatedErrors() -> T { + return T(self.append("aggregatedErrors")) + } + } + + /** The linear channel asset id */ + public var linearChannelId: Int64? = nil + /** Aggregated error counters */ + public var aggregatedErrors: AggregatedIngestInfo? = nil + + + public func setMultiRequestToken(linearChannelId: String) { + self.dict["linearChannelId"] = linearChannelId + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["linearChannelId"] != nil { + linearChannelId = Int64("\(dict["linearChannelId"]!)") + } + if dict["aggregatedErrors"] != nil { + aggregatedErrors = try JSONParser.parse(object: dict["aggregatedErrors"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(linearChannelId != nil) { + dict["linearChannelId"] = linearChannelId! + } + if(aggregatedErrors != nil) { + dict["aggregatedErrors"] = aggregatedErrors!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ChannelCondition.swift b/KalturaClient/Classes/Model/Objects/ChannelCondition.swift new file mode 100644 index 000000000..9c9441096 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ChannelCondition.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 ChannelCondition: Condition { + + public class ChannelConditionTokenizer: Condition.ConditionTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** Comma separated channel 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/ChannelDynamicOrder.swift b/KalturaClient/Classes/Model/Objects/ChannelDynamicOrder.swift new file mode 100644 index 000000000..827f8d113 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ChannelDynamicOrder.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 ChannelDynamicOrder: BaseChannelOrder { + + public class ChannelDynamicOrderTokenizer: BaseChannelOrder.BaseChannelOrderTokenizer { + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var orderBy: BaseTokenizedObject { + get { + return self.append("orderBy") + } + } + } + + /** Value */ + public var name: String? = nil + /** Order By */ + 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/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..0304b6f10 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ChannelExternalFilter.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 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") + } + } + + public var alias: BaseTokenizedObject { + get { + return self.append("alias") + } + } + } + + /** External Channel Id. */ + public var idEqual: Int? = nil + /** UtcOffsetEqual */ + public var utcOffsetEqual: Double? = nil + /** FreeTextEqual */ + public var freeText: String? = nil + /** Alias for External Channel Id. */ + public var alias: 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 func setMultiRequestToken(alias: String) { + self.dict["alias"] = alias + } + + 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 + } + if dict["alias"] != nil { + alias = dict["alias"] 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! + } + if(alias != nil) { + dict["alias"] = alias! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ChannelFieldOrder.swift b/KalturaClient/Classes/Model/Objects/ChannelFieldOrder.swift new file mode 100644 index 000000000..abf2040b7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ChannelFieldOrder.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 ChannelFieldOrder: BaseChannelOrder { + + public class ChannelFieldOrderTokenizer: BaseChannelOrder.BaseChannelOrderTokenizer { + + public var orderBy: BaseTokenizedObject { + get { + return self.append("orderBy") + } + } + } + + /** Order By */ + public var orderBy: ChannelFieldOrderByType? = 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 = ChannelFieldOrderByType(rawValue: "\(dict["orderBy"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(orderBy != nil) { + dict["orderBy"] = orderBy!.rawValue + } + 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/ChannelSearchByKsqlFilter.swift b/KalturaClient/Classes/Model/Objects/ChannelSearchByKsqlFilter.swift new file mode 100644 index 000000000..827290c92 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ChannelSearchByKsqlFilter.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 ChannelSearchByKsqlFilter: ChannelsBaseFilter { + + public class ChannelSearchByKsqlFilterTokenizer: ChannelsBaseFilter.ChannelsBaseFilterTokenizer { + + public var kSql: BaseTokenizedObject { + get { + return self.append("kSql") + } + } + + public var channelStructEqual: BaseTokenizedObject { + get { + return self.append("channelStructEqual") + } + } + } + + /** KSQL expression */ + public var kSql: String? = nil + /** channel struct */ + public var channelStructEqual: ChannelStruct? = nil + + + public func setMultiRequestToken(kSql: String) { + self.dict["kSql"] = kSql + } + + public func setMultiRequestToken(channelStructEqual: String) { + self.dict["channelStructEqual"] = channelStructEqual + } + + 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["channelStructEqual"] != nil { + channelStructEqual = ChannelStruct(rawValue: "\(dict["channelStructEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(kSql != nil) { + dict["kSql"] = kSql! + } + if(channelStructEqual != nil) { + dict["channelStructEqual"] = channelStructEqual!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ChannelSlidingWindowOrder.swift b/KalturaClient/Classes/Model/Objects/ChannelSlidingWindowOrder.swift new file mode 100644 index 000000000..c075d5361 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ChannelSlidingWindowOrder.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 ChannelSlidingWindowOrder: BaseChannelOrder { + + public class ChannelSlidingWindowOrderTokenizer: BaseChannelOrder.BaseChannelOrderTokenizer { + + public var period: BaseTokenizedObject { + get { + return self.append("period") + } + } + + public var orderBy: BaseTokenizedObject { + get { + return self.append("orderBy") + } + } + } + + /** Sliding window period in minutes */ + public var period: Int? = nil + /** Order By */ + public var orderBy: ChannelSlidingWindowOrderByType? = nil + + + public func setMultiRequestToken(period: String) { + self.dict["period"] = period + } + + 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["period"] != nil { + period = dict["period"] as? Int + } + if dict["orderBy"] != nil { + orderBy = ChannelSlidingWindowOrderByType(rawValue: "\(dict["orderBy"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(period != nil) { + dict["period"] = period! + } + if(orderBy != nil) { + dict["orderBy"] = orderBy!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ChannelsBaseFilter.swift b/KalturaClient/Classes/Model/Objects/ChannelsBaseFilter.swift new file mode 100644 index 000000000..2147dc3a2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ChannelsBaseFilter.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 ChannelsBaseFilter: Filter { + + public class ChannelsBaseFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/ChannelsFilter.swift b/KalturaClient/Classes/Model/Objects/ChannelsFilter.swift new file mode 100644 index 000000000..e90a00380 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ChannelsFilter.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 ChannelsFilter: ChannelsBaseFilter { + + public class ChannelsFilterTokenizer: ChannelsBaseFilter.ChannelsBaseFilterTokenizer { + + 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") + } + } + + public var assetUserRuleIdIn: BaseTokenizedObject { + get { + return self.append("assetUserRuleIdIn") + } + } + } + + /** 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 + /** comma-separated list of KalturaChannel.assetUserRuleId values. Matching + KalturaChannel objects will be returned by the filter. */ + public var assetUserRuleIdIn: 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 func setMultiRequestToken(assetUserRuleIdIn: String) { + self.dict["assetUserRuleIdIn"] = assetUserRuleIdIn + } + + 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 + } + if dict["assetUserRuleIdIn"] != nil { + assetUserRuleIdIn = dict["assetUserRuleIdIn"] 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! + } + if(assetUserRuleIdIn != nil) { + dict["assetUserRuleIdIn"] = assetUserRuleIdIn! + } + 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/Collection.swift b/KalturaClient/Classes/Model/Objects/Collection.swift new file mode 100644 index 000000000..f10235650 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Collection.swift @@ -0,0 +1,438 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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: OTTObjectSupportNullable { + + public class CollectionTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var channels: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("channels")) + } + } + + public var channelsIds: BaseTokenizedObject { + get { + return self.append("channelsIds") + } + } + + 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 discountModuleId: BaseTokenizedObject { + get { + return self.append("discountModuleId") + } + } + + 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 usageModuleId: BaseTokenizedObject { + get { + return self.append("usageModuleId") + } + } + + public var couponsGroups: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("couponsGroups")) + } + } + + public var collectionCouponGroup: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("collectionCouponGroup")) + } + } + + 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") + } + } + + 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") + } + } + + public var virtualAssetId: BaseTokenizedObject { + get { + return self.append("virtualAssetId") + } + } + + public var fileTypes: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("fileTypes")) + } + } + + public var fileTypesIds: BaseTokenizedObject { + get { + return self.append("fileTypesIds") + } + } + + public var assetUserRuleId: BaseTokenizedObject { + get { + return self.append("assetUserRuleId") + } + } + } + + /** Collection identifier */ + public var id: String? = nil + /** A list of channels associated with this collection This property + will deprecated soon. Please use ChannelsIds instead of it. */ + public var channels: Array? = nil + /** Comma separated channels Ids associated with this collection */ + public var channelsIds: String? = 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 collection This property will + deprecated soon. Please use DiscountModuleId instead of it. */ + public var discountModule: DiscountModule? = nil + /** The internal discount module identifier for the collection */ + public var discountModuleId: Int64? = nil + /** Name of the collection */ + public var name: String? = nil + /** Name of the collection */ + public var multilingualName: Array? = nil + /** description of the collection */ + public var description: String? = nil + /** description of the collection */ + public var multilingualDescription: Array? = nil + /** Collection usage module This property will deprecated soon. Please + use usageModuleId instead of it. */ + public var usageModule: UsageModule? = nil + /** The internal usage module identifier for the collection */ + public var usageModuleId: Int64? = nil + /** List of Coupons group This property will deprecated soon. Please + use CollectionCouponGroup instead of it. */ + public var couponsGroups: Array? = nil + /** List of collection Coupons group */ + public var collectionCouponGroup: 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 + /** Is active collection */ + public var isActive: Bool? = nil + /** Specifies when was the collection created. Date and time represented as epoch. */ + public var createDate: Int64? = nil + /** Specifies when was the collection last updated. Date and time represented as + epoch. */ + public var updateDate: Int64? = nil + /** Virtual asset id */ + public var virtualAssetId: Int64? = nil + /** A list of file types identifiers that are supported in this collection */ + public var fileTypes: Array? = nil + /** Comma separated file types identifiers that are supported in this collection */ + public var fileTypesIds: String? = nil + /** Asset user rule identifier */ + public var assetUserRuleId: Int64? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(channelsIds: String) { + self.dict["channelsIds"] = channelsIds + } + + public func setMultiRequestToken(startDate: String) { + self.dict["startDate"] = startDate + } + + public func setMultiRequestToken(endDate: String) { + self.dict["endDate"] = endDate + } + + public func setMultiRequestToken(discountModuleId: String) { + self.dict["discountModuleId"] = discountModuleId + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + public func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public func setMultiRequestToken(usageModuleId: String) { + self.dict["usageModuleId"] = usageModuleId + } + + public func setMultiRequestToken(externalId: String) { + self.dict["externalId"] = externalId + } + + public func setMultiRequestToken(priceDetailsId: String) { + self.dict["priceDetailsId"] = priceDetailsId + } + + 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(virtualAssetId: String) { + self.dict["virtualAssetId"] = virtualAssetId + } + + public func setMultiRequestToken(fileTypesIds: String) { + self.dict["fileTypesIds"] = fileTypesIds + } + + 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? String + } + if dict["channels"] != nil { + channels = try JSONParser.parse(array: dict["channels"] as! [Any]) + } + if dict["channelsIds"] != nil { + channelsIds = dict["channelsIds"] as? String + } + 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["discountModuleId"] != nil { + discountModuleId = Int64("\(dict["discountModuleId"]!)") + } + 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["usageModuleId"] != nil { + usageModuleId = Int64("\(dict["usageModuleId"]!)") + } + if dict["couponsGroups"] != nil { + couponsGroups = try JSONParser.parse(array: dict["couponsGroups"] as! [Any]) + } + if dict["collectionCouponGroup"] != nil { + collectionCouponGroup = try JSONParser.parse(array: dict["collectionCouponGroup"] 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"]!)") + } + 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"]!)") + } + if dict["virtualAssetId"] != nil { + virtualAssetId = Int64("\(dict["virtualAssetId"]!)") + } + if dict["fileTypes"] != nil { + fileTypes = try JSONParser.parse(array: dict["fileTypes"] as! [Any]) + } + if dict["fileTypesIds"] != nil { + fileTypesIds = dict["fileTypesIds"] as? String + } + if dict["assetUserRuleId"] != nil { + assetUserRuleId = Int64("\(dict["assetUserRuleId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(id != nil) { + dict["id"] = id! + } + if(channelsIds != nil) { + dict["channelsIds"] = channelsIds! + } + if(startDate != nil) { + dict["startDate"] = startDate! + } + if(endDate != nil) { + dict["endDate"] = endDate! + } + if(discountModuleId != nil) { + dict["discountModuleId"] = discountModuleId! + } + if(multilingualName != nil) { + dict["multilingualName"] = multilingualName!.map { value in value.toDictionary() } + } + if(multilingualDescription != nil) { + dict["multilingualDescription"] = multilingualDescription!.map { value in value.toDictionary() } + } + if(usageModuleId != nil) { + dict["usageModuleId"] = usageModuleId! + } + if(collectionCouponGroup != nil) { + dict["collectionCouponGroup"] = collectionCouponGroup!.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! + } + if(isActive != nil) { + dict["isActive"] = isActive! + } + if(fileTypesIds != nil) { + dict["fileTypesIds"] = fileTypesIds! + } + if(assetUserRuleId != nil) { + dict["assetUserRuleId"] = assetUserRuleId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CollectionCouponGroup.swift b/KalturaClient/Classes/Model/Objects/CollectionCouponGroup.swift new file mode 100644 index 000000000..58eb85725 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CollectionCouponGroup.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. + */ + +/** Coupons group details */ +open class CollectionCouponGroup: ObjectBase { + + public class CollectionCouponGroupTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + } + + /** Coupon group identifier */ + public var id: Int64? = 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 + + + 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 override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["id"] != nil { + id = Int64("\(dict["id"]!)") + } + 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(id != nil) { + dict["id"] = id! + } + if(startDate != nil) { + dict["startDate"] = startDate! + } + if(endDate != nil) { + dict["endDate"] = endDate! + } + 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..131e5c642 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CollectionFilter.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. + */ + +/** 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") + } + } + + public var alsoInactive: BaseTokenizedObject { + get { + return self.append("alsoInactive") + } + } + + public var assetUserRuleIdIn: BaseTokenizedObject { + get { + return self.append("assetUserRuleIdIn") + } + } + + public var nameContains: BaseTokenizedObject { + get { + return self.append("nameContains") + } + } + } + + /** Comma separated collection IDs */ + public var collectionIdIn: String? = nil + /** Media-file ID to get the collections by */ + public var mediaFileIdEqual: Int? = nil + /** couponGroupIdEqual */ + public var couponGroupIdEqual: Int? = nil + /** return also inactive */ + public var alsoInactive: Bool? = nil + /** comma-separated list of KalturaCollection.assetUserRuleId values. Matching + KalturaCollection objects will be returned by the filter. */ + public var assetUserRuleIdIn: String? = nil + /** A string that is included in the collection name */ + public var nameContains: String? = 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 func setMultiRequestToken(alsoInactive: String) { + self.dict["alsoInactive"] = alsoInactive + } + + public func setMultiRequestToken(assetUserRuleIdIn: String) { + self.dict["assetUserRuleIdIn"] = assetUserRuleIdIn + } + + public func setMultiRequestToken(nameContains: String) { + self.dict["nameContains"] = nameContains + } + + 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 + } + if dict["alsoInactive"] != nil { + alsoInactive = dict["alsoInactive"] as? Bool + } + if dict["assetUserRuleIdIn"] != nil { + assetUserRuleIdIn = dict["assetUserRuleIdIn"] as? String + } + if dict["nameContains"] != nil { + nameContains = dict["nameContains"] as? String + } + + } + + 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! + } + if(alsoInactive != nil) { + dict["alsoInactive"] = alsoInactive! + } + if(assetUserRuleIdIn != nil) { + dict["assetUserRuleIdIn"] = assetUserRuleIdIn! + } + if(nameContains != nil) { + dict["nameContains"] = nameContains! + } + 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..3fd21b29f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CommercePartnerConfig.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. + */ + +/** partner configuration for commerce */ +open class CommercePartnerConfig: PartnerConfiguration { + + public class CommercePartnerConfigTokenizer: PartnerConfiguration.PartnerConfigurationTokenizer { + + public var bookmarkEventThresholds: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("bookmarkEventThresholds")) + } + } + + public var keepSubscriptionAddOns: BaseTokenizedObject { + get { + return self.append("keepSubscriptionAddOns") + } + } + + public var programAssetEntitlementPaddingStart: BaseTokenizedObject { + get { + return self.append("programAssetEntitlementPaddingStart") + } + } + + public var programAssetEntitlementPaddingEnd: BaseTokenizedObject { + get { + return self.append("programAssetEntitlementPaddingEnd") + } + } + } + + /** configuration for bookmark event threshold (when to dispatch the event) in + seconds. */ + public var bookmarkEventThresholds: Array? = nil + /** configuration for keep add-ons after subscription deletion */ + public var keepSubscriptionAddOns: Bool? = nil + /** configuration for asset start entitlement padding e.g. asset start time - + padding still relevant for asset */ + public var programAssetEntitlementPaddingStart: Int? = nil + /** configuration for asset end entitlement padding e.g. asset end time + padding + still relevant for asset */ + public var programAssetEntitlementPaddingEnd: Int? = nil + + + public func setMultiRequestToken(keepSubscriptionAddOns: String) { + self.dict["keepSubscriptionAddOns"] = keepSubscriptionAddOns + } + + public func setMultiRequestToken(programAssetEntitlementPaddingStart: String) { + self.dict["programAssetEntitlementPaddingStart"] = programAssetEntitlementPaddingStart + } + + public func setMultiRequestToken(programAssetEntitlementPaddingEnd: String) { + self.dict["programAssetEntitlementPaddingEnd"] = programAssetEntitlementPaddingEnd + } + + 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]) + } + if dict["keepSubscriptionAddOns"] != nil { + keepSubscriptionAddOns = dict["keepSubscriptionAddOns"] as? Bool + } + if dict["programAssetEntitlementPaddingStart"] != nil { + programAssetEntitlementPaddingStart = dict["programAssetEntitlementPaddingStart"] as? Int + } + if dict["programAssetEntitlementPaddingEnd"] != nil { + programAssetEntitlementPaddingEnd = dict["programAssetEntitlementPaddingEnd"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(bookmarkEventThresholds != nil) { + dict["bookmarkEventThresholds"] = bookmarkEventThresholds!.map { value in value.toDictionary() } + } + if(keepSubscriptionAddOns != nil) { + dict["keepSubscriptionAddOns"] = keepSubscriptionAddOns! + } + if(programAssetEntitlementPaddingStart != nil) { + dict["programAssetEntitlementPaddingStart"] = programAssetEntitlementPaddingStart! + } + if(programAssetEntitlementPaddingEnd != nil) { + dict["programAssetEntitlementPaddingEnd"] = programAssetEntitlementPaddingEnd! + } + 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/CompensationEntitlementDiscountDetails.swift b/KalturaClient/Classes/Model/Objects/CompensationEntitlementDiscountDetails.swift new file mode 100644 index 000000000..5c8b3d379 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CompensationEntitlementDiscountDetails.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. + */ + +/** Compensation entitlement discount details */ +open class CompensationEntitlementDiscountDetails: EntitlementDiscountDetailsIdentifier { + + public class CompensationEntitlementDiscountDetailsTokenizer: EntitlementDiscountDetailsIdentifier.EntitlementDiscountDetailsIdentifierTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(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..76b62a0a2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ConcurrencyPartnerConfig.swift @@ -0,0 +1,146 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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") + } + } + + public var revokeOnDeviceDelete: BaseTokenizedObject { + get { + return self.append("revokeOnDeviceDelete") + } + } + + public var excludeFreeContentFromConcurrency: BaseTokenizedObject { + get { + return self.append("excludeFreeContentFromConcurrency") + } + } + } + + /** 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 + /** Revoke on device delete */ + public var revokeOnDeviceDelete: Bool? = nil + /** If set to true then for all concurrency checks in all APIs, system shall exclude + free content from counting towards the use of a concurrency slot */ + public var excludeFreeContentFromConcurrency: Bool? = 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 func setMultiRequestToken(revokeOnDeviceDelete: String) { + self.dict["revokeOnDeviceDelete"] = revokeOnDeviceDelete + } + + public func setMultiRequestToken(excludeFreeContentFromConcurrency: String) { + self.dict["excludeFreeContentFromConcurrency"] = excludeFreeContentFromConcurrency + } + + 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"]!)") + } + if dict["revokeOnDeviceDelete"] != nil { + revokeOnDeviceDelete = dict["revokeOnDeviceDelete"] as? Bool + } + if dict["excludeFreeContentFromConcurrency"] != nil { + excludeFreeContentFromConcurrency = dict["excludeFreeContentFromConcurrency"] as? Bool + } + + } + + 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! + } + if(revokeOnDeviceDelete != nil) { + dict["revokeOnDeviceDelete"] = revokeOnDeviceDelete! + } + if(excludeFreeContentFromConcurrency != nil) { + dict["excludeFreeContentFromConcurrency"] = excludeFreeContentFromConcurrency! + } + 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..0ede0978a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Configurations.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 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 + /** The default value for "isForceUpdate" is + "FALSE". When "isForceUpdate" is not + populated it will revert to its default value. */ + 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/CouponEntitlementDiscountDetails.swift b/KalturaClient/Classes/Model/Objects/CouponEntitlementDiscountDetails.swift new file mode 100644 index 000000000..65021d356 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CouponEntitlementDiscountDetails.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. + */ + +/** Coupon discount details */ +open class CouponEntitlementDiscountDetails: EntitlementDiscountDetails { + + public class CouponEntitlementDiscountDetailsTokenizer: EntitlementDiscountDetails.EntitlementDiscountDetailsTokenizer { + + public var couponCode: BaseTokenizedObject { + get { + return self.append("couponCode") + } + } + + public var endlessCoupon: BaseTokenizedObject { + get { + return self.append("endlessCoupon") + } + } + } + + /** Coupon Code */ + public var couponCode: String? = nil + /** Endless coupon */ + public var endlessCoupon: Bool? = nil + + + public func setMultiRequestToken(couponCode: String) { + self.dict["couponCode"] = couponCode + } + + public func setMultiRequestToken(endlessCoupon: String) { + self.dict["endlessCoupon"] = endlessCoupon + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["couponCode"] != nil { + couponCode = dict["couponCode"] as? String + } + if dict["endlessCoupon"] != nil { + endlessCoupon = dict["endlessCoupon"] as? Bool + } + + } + +} + 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..6a22d59d3 --- /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")) + } + } + } + + /** A list of 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/CouponPromotion.swift b/KalturaClient/Classes/Model/Objects/CouponPromotion.swift new file mode 100644 index 000000000..d6d0c9928 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CouponPromotion.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. + */ + +/** Coupon promotion */ +open class CouponPromotion: BasePromotion { + + public class CouponPromotionTokenizer: BasePromotion.BasePromotionTokenizer { + + public var couponGroupId: BaseTokenizedObject { + get { + return self.append("couponGroupId") + } + } + } + + /** CouponGroup identifier */ + public var couponGroupId: Int64? = nil + + + 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["couponGroupId"] != nil { + couponGroupId = Int64("\(dict["couponGroupId"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(couponGroupId != nil) { + dict["couponGroupId"] = couponGroupId! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/CouponsGroup.swift b/KalturaClient/Classes/Model/Objects/CouponsGroup.swift new file mode 100644 index 000000000..bd82012a0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CouponsGroup.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. + */ + +/** 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(id != nil) { + dict["id"] = id! + } + 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/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/CustomFieldsPartnerConfiguration.swift b/KalturaClient/Classes/Model/Objects/CustomFieldsPartnerConfiguration.swift new file mode 100644 index 000000000..c8b47d7b0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/CustomFieldsPartnerConfiguration.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. + */ + +/** Custom Fields Partner Configuration */ +open class CustomFieldsPartnerConfiguration: PartnerConfiguration { + + public class CustomFieldsPartnerConfigurationTokenizer: PartnerConfiguration.PartnerConfigurationTokenizer { + + public var metaSystemNameInsteadOfAliasList: BaseTokenizedObject { + get { + return self.append("metaSystemNameInsteadOfAliasList") + } + } + } + + /** Array of clientTag values */ + public var metaSystemNameInsteadOfAliasList: String? = nil + + + public func setMultiRequestToken(metaSystemNameInsteadOfAliasList: String) { + self.dict["metaSystemNameInsteadOfAliasList"] = metaSystemNameInsteadOfAliasList + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["metaSystemNameInsteadOfAliasList"] != nil { + metaSystemNameInsteadOfAliasList = dict["metaSystemNameInsteadOfAliasList"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(metaSystemNameInsteadOfAliasList != nil) { + dict["metaSystemNameInsteadOfAliasList"] = metaSystemNameInsteadOfAliasList! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DataEncryption.swift b/KalturaClient/Classes/Model/Objects/DataEncryption.swift new file mode 100644 index 000000000..b6faa527f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DataEncryption.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 DataEncryption: ObjectBase { + + public class DataEncryptionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public func username() -> T { + return T(self.append("username")) + } + } + + /** Username encryption config */ + public var username: Encryption? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["username"] != nil { + username = try JSONParser.parse(object: dict["username"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(username != nil) { + dict["username"] = username!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DateAggregatedIngestInfo.swift b/KalturaClient/Classes/Model/Objects/DateAggregatedIngestInfo.swift new file mode 100644 index 000000000..f4ee7e47c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DateAggregatedIngestInfo.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. + */ + +open class DateAggregatedIngestInfo: ObjectBase { + + public class DateAggregatedIngestInfoTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var date: BaseTokenizedObject { + get { + return self.append("date") + } + } + + public func aggregatedErrors() -> T { + return T(self.append("aggregatedErrors")) + } + } + + /** 00:00 UTC of the date in question */ + public var date: Int64? = nil + /** Aggregated error counters */ + public var aggregatedErrors: AggregatedIngestInfo? = 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"]!)") + } + if dict["aggregatedErrors"] != nil { + aggregatedErrors = try JSONParser.parse(object: dict["aggregatedErrors"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(date != nil) { + dict["date"] = date! + } + if(aggregatedErrors != nil) { + dict["aggregatedErrors"] = aggregatedErrors!.toDictionary() + } + 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/DefaultParentalSettingsPartnerConfig.swift b/KalturaClient/Classes/Model/Objects/DefaultParentalSettingsPartnerConfig.swift new file mode 100644 index 000000000..9ca04b4ff --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DefaultParentalSettingsPartnerConfig.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 DefaultParentalSettingsPartnerConfig: PartnerConfiguration { + + public class DefaultParentalSettingsPartnerConfigTokenizer: PartnerConfiguration.PartnerConfigurationTokenizer { + + public var defaultMoviesParentalRuleId: BaseTokenizedObject { + get { + return self.append("defaultMoviesParentalRuleId") + } + } + + public var defaultTvSeriesParentalRuleId: BaseTokenizedObject { + get { + return self.append("defaultTvSeriesParentalRuleId") + } + } + + public var defaultParentalPin: BaseTokenizedObject { + get { + return self.append("defaultParentalPin") + } + } + + public var defaultPurchasePin: BaseTokenizedObject { + get { + return self.append("defaultPurchasePin") + } + } + + public var defaultPurchaseSettings: BaseTokenizedObject { + get { + return self.append("defaultPurchaseSettings") + } + } + } + + /** defaultTvSeriesParentalRuleId */ + public var defaultMoviesParentalRuleId: Int64? = nil + /** defaultTvSeriesParentalRuleId */ + public var defaultTvSeriesParentalRuleId: Int64? = nil + /** defaultParentalPin */ + public var defaultParentalPin: String? = nil + /** defaultPurchasePin */ + public var defaultPurchasePin: String? = nil + /** defaultPurchaseSettings */ + public var defaultPurchaseSettings: Int64? = nil + + + public func setMultiRequestToken(defaultMoviesParentalRuleId: String) { + self.dict["defaultMoviesParentalRuleId"] = defaultMoviesParentalRuleId + } + + public func setMultiRequestToken(defaultTvSeriesParentalRuleId: String) { + self.dict["defaultTvSeriesParentalRuleId"] = defaultTvSeriesParentalRuleId + } + + public func setMultiRequestToken(defaultParentalPin: String) { + self.dict["defaultParentalPin"] = defaultParentalPin + } + + public func setMultiRequestToken(defaultPurchasePin: String) { + self.dict["defaultPurchasePin"] = defaultPurchasePin + } + + public func setMultiRequestToken(defaultPurchaseSettings: String) { + self.dict["defaultPurchaseSettings"] = defaultPurchaseSettings + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["defaultMoviesParentalRuleId"] != nil { + defaultMoviesParentalRuleId = Int64("\(dict["defaultMoviesParentalRuleId"]!)") + } + if dict["defaultTvSeriesParentalRuleId"] != nil { + defaultTvSeriesParentalRuleId = Int64("\(dict["defaultTvSeriesParentalRuleId"]!)") + } + if dict["defaultParentalPin"] != nil { + defaultParentalPin = dict["defaultParentalPin"] as? String + } + if dict["defaultPurchasePin"] != nil { + defaultPurchasePin = dict["defaultPurchasePin"] as? String + } + if dict["defaultPurchaseSettings"] != nil { + defaultPurchaseSettings = Int64("\(dict["defaultPurchaseSettings"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(defaultMoviesParentalRuleId != nil) { + dict["defaultMoviesParentalRuleId"] = defaultMoviesParentalRuleId! + } + if(defaultTvSeriesParentalRuleId != nil) { + dict["defaultTvSeriesParentalRuleId"] = defaultTvSeriesParentalRuleId! + } + if(defaultParentalPin != nil) { + dict["defaultParentalPin"] = defaultParentalPin! + } + if(defaultPurchasePin != nil) { + dict["defaultPurchasePin"] = defaultPurchasePin! + } + if(defaultPurchaseSettings != nil) { + dict["defaultPurchaseSettings"] = defaultPurchaseSettings! + } + 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..2a6151aa7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceBrand.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. + */ + +/** 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") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** Device brand identifier */ + public var id: Int64? = nil + /** Device brand name */ + public var name: String? = nil + /** Device family identifier */ + public var deviceFamilyid: Int64? = nil + /** Type of device family. if this device family belongs only to this + group, otherwise. */ + public var type: DeviceBrandType? = 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 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["deviceFamilyid"] != nil { + deviceFamilyid = Int64("\(dict["deviceFamilyid"]!)") + } + if dict["type"] != nil { + type = DeviceBrandType(rawValue: "\(dict["type"]!)") + } + + } + + 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(deviceFamilyid != nil) { + dict["deviceFamilyid"] = deviceFamilyid! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DeviceBrandCondition.swift b/KalturaClient/Classes/Model/Objects/DeviceBrandCondition.swift new file mode 100644 index 000000000..c5426b8a0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceBrandCondition.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 DeviceBrandCondition: Condition { + + public class DeviceBrandConditionTokenizer: Condition.ConditionTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** Comma separated Device Brand 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/DeviceBrandFilter.swift b/KalturaClient/Classes/Model/Objects/DeviceBrandFilter.swift new file mode 100644 index 000000000..3b9518cc2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceBrandFilter.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 DeviceBrandFilter: Filter { + + public class DeviceBrandFilterTokenizer: Filter.FilterTokenizer { + + public var idEqual: BaseTokenizedObject { + get { + return self.append("idEqual") + } + } + + public var deviceFamilyIdEqual: BaseTokenizedObject { + get { + return self.append("deviceFamilyIdEqual") + } + } + + public var nameEqual: BaseTokenizedObject { + get { + return self.append("nameEqual") + } + } + + public var typeEqual: BaseTokenizedObject { + get { + return self.append("typeEqual") + } + } + } + + /** Filter the device brand with this identifier. */ + public var idEqual: Int64? = nil + /** Filter the device brands with this device family's identifier. */ + public var deviceFamilyIdEqual: Int64? = nil + /** Filter the device brand with this name. */ + public var nameEqual: String? = nil + /** Filter device brands of this type */ + public var typeEqual: DeviceBrandType? = nil + + + public func setMultiRequestToken(idEqual: String) { + self.dict["idEqual"] = idEqual + } + + public func setMultiRequestToken(deviceFamilyIdEqual: String) { + self.dict["deviceFamilyIdEqual"] = deviceFamilyIdEqual + } + + public func setMultiRequestToken(nameEqual: String) { + self.dict["nameEqual"] = nameEqual + } + + 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["idEqual"] != nil { + idEqual = Int64("\(dict["idEqual"]!)") + } + if dict["deviceFamilyIdEqual"] != nil { + deviceFamilyIdEqual = Int64("\(dict["deviceFamilyIdEqual"]!)") + } + if dict["nameEqual"] != nil { + nameEqual = dict["nameEqual"] as? String + } + if dict["typeEqual"] != nil { + typeEqual = DeviceBrandType(rawValue: "\(dict["typeEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idEqual != nil) { + dict["idEqual"] = idEqual! + } + if(deviceFamilyIdEqual != nil) { + dict["deviceFamilyIdEqual"] = deviceFamilyIdEqual! + } + if(nameEqual != nil) { + dict["nameEqual"] = nameEqual! + } + if(typeEqual != nil) { + dict["typeEqual"] = typeEqual!.rawValue + } + 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/DeviceDynamicDataCondition.swift b/KalturaClient/Classes/Model/Objects/DeviceDynamicDataCondition.swift new file mode 100644 index 000000000..f503adeff --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceDynamicDataCondition.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 DeviceDynamicDataCondition: Condition { + + public class DeviceDynamicDataConditionTokenizer: Condition.ConditionTokenizer { + + 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/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..fac821b6d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceFamilyBase.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. + */ + +/** 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") + } + } + + public var type: BaseTokenizedObject { + get { + return self.append("type") + } + } + } + + /** Device family identifier */ + public var id: Int64? = nil + /** Device family name */ + public var name: String? = nil + /** Type of device family. if this device family belongs only to this + group, otherwise. */ + public var type: DeviceFamilyType? = 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 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 = DeviceFamilyType(rawValue: "\(dict["type"]!)") + } + + } + + 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/DeviceFamilyCondition.swift b/KalturaClient/Classes/Model/Objects/DeviceFamilyCondition.swift new file mode 100644 index 000000000..b9d07e685 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceFamilyCondition.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 DeviceFamilyCondition: Condition { + + public class DeviceFamilyConditionTokenizer: Condition.ConditionTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** Comma separated Device Family 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/DeviceFamilyFilter.swift b/KalturaClient/Classes/Model/Objects/DeviceFamilyFilter.swift new file mode 100644 index 000000000..1bdb9c4d2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceFamilyFilter.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 DeviceFamilyFilter: Filter { + + public class DeviceFamilyFilterTokenizer: Filter.FilterTokenizer { + + public var idEqual: BaseTokenizedObject { + get { + return self.append("idEqual") + } + } + + public var nameEqual: BaseTokenizedObject { + get { + return self.append("nameEqual") + } + } + + public var typeEqual: BaseTokenizedObject { + get { + return self.append("typeEqual") + } + } + } + + /** Filter the device family with this identifier. */ + public var idEqual: Int64? = nil + /** Filter the device family with this name. */ + public var nameEqual: String? = nil + /** Filter device families of this type */ + public var typeEqual: DeviceFamilyType? = nil + + + public func setMultiRequestToken(idEqual: String) { + self.dict["idEqual"] = idEqual + } + + public func setMultiRequestToken(nameEqual: String) { + self.dict["nameEqual"] = nameEqual + } + + 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["idEqual"] != nil { + idEqual = Int64("\(dict["idEqual"]!)") + } + if dict["nameEqual"] != nil { + nameEqual = dict["nameEqual"] as? String + } + if dict["typeEqual"] != nil { + typeEqual = DeviceFamilyType(rawValue: "\(dict["typeEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idEqual != nil) { + dict["idEqual"] = idEqual! + } + if(nameEqual != nil) { + dict["nameEqual"] = nameEqual! + } + if(typeEqual != nil) { + dict["typeEqual"] = typeEqual!.rawValue + } + 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/DeviceManufacturerCondition.swift b/KalturaClient/Classes/Model/Objects/DeviceManufacturerCondition.swift new file mode 100644 index 000000000..adf15d21f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceManufacturerCondition.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 DeviceManufacturerCondition: Condition { + + public class DeviceManufacturerConditionTokenizer: Condition.ConditionTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** Comma separated Device Manufacturer 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/DeviceManufacturerInformation.swift b/KalturaClient/Classes/Model/Objects/DeviceManufacturerInformation.swift new file mode 100644 index 000000000..c5ebbeba3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceManufacturerInformation.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 Manufacturer Information */ +open class DeviceManufacturerInformation: DeviceReferenceData { + + public class DeviceManufacturerInformationTokenizer: DeviceReferenceData.DeviceReferenceDataTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/DeviceManufacturersReferenceDataFilter.swift b/KalturaClient/Classes/Model/Objects/DeviceManufacturersReferenceDataFilter.swift new file mode 100644 index 000000000..af0c94b3a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceManufacturersReferenceDataFilter.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 DeviceManufacturersReferenceDataFilter: DeviceReferenceDataFilter { + + public class DeviceManufacturersReferenceDataFilterTokenizer: DeviceReferenceDataFilter.DeviceReferenceDataFilterTokenizer { + + public var nameEqual: BaseTokenizedObject { + get { + return self.append("nameEqual") + } + } + } + + /** name equal */ + public var nameEqual: String? = nil + + + 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["nameEqual"] != nil { + nameEqual = dict["nameEqual"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(nameEqual != nil) { + dict["nameEqual"] = nameEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DeviceModelCondition.swift b/KalturaClient/Classes/Model/Objects/DeviceModelCondition.swift new file mode 100644 index 000000000..f11a75e54 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceModelCondition.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 DeviceModelCondition: Condition { + + public class DeviceModelConditionTokenizer: Condition.ConditionTokenizer { + + public var regexEqual: BaseTokenizedObject { + get { + return self.append("regexEqual") + } + } + } + + /** regex of device model that is compared to */ + public var regexEqual: String? = nil + + + public func setMultiRequestToken(regexEqual: String) { + self.dict["regexEqual"] = regexEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["regexEqual"] != nil { + regexEqual = dict["regexEqual"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(regexEqual != nil) { + dict["regexEqual"] = regexEqual! + } + 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/DeviceReferenceData.swift b/KalturaClient/Classes/Model/Objects/DeviceReferenceData.swift new file mode 100644 index 000000000..abc1a7587 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceReferenceData.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. + */ + +/** Device Information */ +open class DeviceReferenceData: OTTObjectSupportNullable { + + public class DeviceReferenceDataTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + } + + /** id */ + public var id: Int64? = nil + /** Name */ + public var name: String? = nil + /** Status */ + public var status: Bool? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(name: String) { + self.dict["name"] = name + } + + 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["name"] != nil { + name = dict["name"] as? String + } + if dict["status"] != nil { + status = dict["status"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(status != nil) { + dict["status"] = status! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DeviceReferenceDataFilter.swift b/KalturaClient/Classes/Model/Objects/DeviceReferenceDataFilter.swift new file mode 100644 index 000000000..84c7911fa --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceReferenceDataFilter.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 Reference Data Filter */ +open class DeviceReferenceDataFilter: Filter { + + public class DeviceReferenceDataFilterTokenizer: Filter.FilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** IdIn */ + 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/DeviceReferenceDataListResponse.swift b/KalturaClient/Classes/Model/Objects/DeviceReferenceDataListResponse.swift new file mode 100644 index 000000000..10a82a47c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DeviceReferenceDataListResponse.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 DeviceReferenceDataListResponse: ListResponse { + + public class DeviceReferenceDataListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of KalturaDeviceReferenceData */ + 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/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..f6481fe97 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Discount.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. + */ + +/** 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: Double? = 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? Double + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(percentage != nil) { + dict["percentage"] = percentage! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DiscountDetails.swift b/KalturaClient/Classes/Model/Objects/DiscountDetails.swift new file mode 100644 index 000000000..1f0a44137 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DiscountDetails.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. + */ + +/** 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") + } + } + + public var whenAlgoTimes: BaseTokenizedObject { + get { + return self.append("whenAlgoTimes") + } + } + + public var whenAlgoType: BaseTokenizedObject { + get { + return self.append("whenAlgoType") + } + } + } + + /** 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 + /** End date represented as epoch */ + public var whenAlgoTimes: Int? = nil + /** End date represented as epoch */ + public var whenAlgoType: Int? = 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(whenAlgoTimes: String) { + self.dict["whenAlgoTimes"] = whenAlgoTimes + } + + public func setMultiRequestToken(whenAlgoType: String) { + self.dict["whenAlgoType"] = whenAlgoType + } + + 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"]!)") + } + if dict["whenAlgoTimes"] != nil { + whenAlgoTimes = dict["whenAlgoTimes"] as? Int + } + if dict["whenAlgoType"] != nil { + whenAlgoType = dict["whenAlgoType"] as? Int + } + + } + + 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! + } + if(whenAlgoTimes != nil) { + dict["whenAlgoTimes"] = whenAlgoTimes! + } + if(whenAlgoType != nil) { + dict["whenAlgoType"] = whenAlgoType! + } + 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..34df13ec1 --- /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 discount 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/DiscountEntitlementDiscountDetails.swift b/KalturaClient/Classes/Model/Objects/DiscountEntitlementDiscountDetails.swift new file mode 100644 index 000000000..36378f6d9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DiscountEntitlementDiscountDetails.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. + */ + +/** Discount entitlement discount details */ +open class DiscountEntitlementDiscountDetails: EntitlementDiscountDetailsIdentifier { + + public class DiscountEntitlementDiscountDetailsTokenizer: EntitlementDiscountDetailsIdentifier.EntitlementDiscountDetailsIdentifierTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/DiscountModule.swift b/KalturaClient/Classes/Model/Objects/DiscountModule.swift new file mode 100644 index 000000000..995ab0a5f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DiscountModule.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. + */ + +/** Discount module */ +open class DiscountModule: ObjectBase { + + public class DiscountModuleTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + 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") + } + } + } + + /** Discount module identifier */ + public var id: Int64? = nil + /** 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(id: String) { + self.dict["id"] = id + } + + 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["id"] != nil { + id = Int64("\(dict["id"]!)") + } + 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(id != nil) { + dict["id"] = id! + } + 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/DiscoveryMediaFile.swift b/KalturaClient/Classes/Model/Objects/DiscoveryMediaFile.swift new file mode 100644 index 000000000..80d150aea --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DiscoveryMediaFile.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. + */ + +/** Media file in discovery context */ +open class DiscoveryMediaFile: MediaFile { + + public class DiscoveryMediaFileTokenizer: MediaFile.MediaFileTokenizer { + + public var isPlaybackable: BaseTokenizedObject { + get { + return self.append("isPlaybackable") + } + } + } + + /** show, if file could be played */ + public var isPlaybackable: Bool? = nil + + + public func setMultiRequestToken(isPlaybackable: String) { + self.dict["isPlaybackable"] = isPlaybackable + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["isPlaybackable"] != nil { + isPlaybackable = dict["isPlaybackable"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(isPlaybackable != nil) { + dict["isPlaybackable"] = isPlaybackable! + } + 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..b959672a5 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DrmPlaybackPluginData.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 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") + } + } + + public var dynamicData: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("dynamicData")) + } + } + } + + /** Scheme */ + public var scheme: DrmSchemeName? = nil + /** License URL */ + public var licenseURL: String? = nil + /** Dynamic data */ + public var dynamicData: Dictionary? = 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 + } + if dict["dynamicData"] != nil { + dynamicData = try JSONParser.parse(map: dict["dynamicData"] as! [String: Any]) + } + + } + + 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! + } + if(dynamicData != nil) { + dict["dynamicData"] = dynamicData!.toDictionary() + } + 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..fa298a6d6 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Duration.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. + */ + +/** 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") + } + } + + public var code: BaseTokenizedObject { + get { + return self.append("code") + } + } + } + + /** duration unit */ + public var unit: DurationUnit? = nil + /** duration value */ + public var value: Int? = nil + /** duration code - the canculat time in minutes except from years and months that + have specific code */ + public var code: Int64? = nil + + + public func setMultiRequestToken(unit: String) { + self.dict["unit"] = unit + } + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + 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["unit"] != nil { + unit = DurationUnit(rawValue: "\(dict["unit"]!)") + } + if dict["value"] != nil { + value = dict["value"] as? Int + } + if dict["code"] != nil { + code = Int64("\(dict["code"]!)") + } + + } + + 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/DurationListResponse.swift b/KalturaClient/Classes/Model/Objects/DurationListResponse.swift new file mode 100644 index 000000000..d05923d4e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DurationListResponse.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 DurationListResponse: ListResponse { + + public class DurationListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** Durations */ + 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/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/DynamicData.swift b/KalturaClient/Classes/Model/Objects/DynamicData.swift new file mode 100644 index 000000000..0678c315d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DynamicData.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. + */ + +open class DynamicData: ObjectBase { + + public class DynamicDataTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var key: BaseTokenizedObject { + get { + return self.append("key") + } + } + + public func value() -> T { + return T(self.append("value")) + } + } + + /** Key */ + public var key: String? = nil + /** Value */ + public var value: Value? = nil + + + 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["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/DynamicKeysCondition.swift b/KalturaClient/Classes/Model/Objects/DynamicKeysCondition.swift new file mode 100644 index 000000000..cc01febf9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DynamicKeysCondition.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 DynamicKeysCondition: Condition { + + public class DynamicKeysConditionTokenizer: Condition.ConditionTokenizer { + + public var key: BaseTokenizedObject { + get { + return self.append("key") + } + } + + public var values: BaseTokenizedObject { + get { + return self.append("values") + } + } + } + + /** key */ + public var key: String? = nil + /** comma-separated values */ + public var values: String? = nil + + + public func setMultiRequestToken(key: String) { + self.dict["key"] = key + } + + public func setMultiRequestToken(values: String) { + self.dict["values"] = values + } + + 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["values"] != nil { + values = dict["values"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(key != nil) { + dict["key"] = key! + } + if(values != nil) { + dict["values"] = values! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/DynamicList.swift b/KalturaClient/Classes/Model/Objects/DynamicList.swift new file mode 100644 index 000000000..04b87c706 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DynamicList.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. + */ + +open class DynamicList: OTTObjectSupportNullable { + + public class DynamicListTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + + public var name: BaseTokenizedObject { + get { + return self.append("name") + } + } + } + + /** ID */ + public var id: Int64? = nil + /** Create date of the DynamicList */ + public var createDate: Int64? = nil + /** Update date of the DynamicList */ + public var updateDate: Int64? = nil + /** Name */ + public var name: String? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(createDate: String) { + self.dict["createDate"] = createDate + } + + public func setMultiRequestToken(updateDate: String) { + self.dict["updateDate"] = updateDate + } + + 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["createDate"] != nil { + createDate = Int64("\(dict["createDate"]!)") + } + if dict["updateDate"] != nil { + updateDate = Int64("\(dict["updateDate"]!)") + } + 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/DynamicListFilter.swift b/KalturaClient/Classes/Model/Objects/DynamicListFilter.swift new file mode 100644 index 000000000..037fef928 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DynamicListFilter.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. + */ + +/** DynamicListFilter */ +open class DynamicListFilter: Filter { + + public class DynamicListFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/DynamicListIdInFilter.swift b/KalturaClient/Classes/Model/Objects/DynamicListIdInFilter.swift new file mode 100644 index 000000000..3804cf8df --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DynamicListIdInFilter.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. + */ + +/** DynamicListIdInFilter */ +open class DynamicListIdInFilter: DynamicListFilter { + + public class DynamicListIdInFilterTokenizer: DynamicListFilter.DynamicListFilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** DynamicList 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/DynamicListListResponse.swift b/KalturaClient/Classes/Model/Objects/DynamicListListResponse.swift new file mode 100644 index 000000000..2d079f686 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DynamicListListResponse.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 DynamicListListResponse: ListResponse { + + public class DynamicListListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of KalturaDynamicList */ + 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/DynamicListSearchFilter.swift b/KalturaClient/Classes/Model/Objects/DynamicListSearchFilter.swift new file mode 100644 index 000000000..348ba8817 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/DynamicListSearchFilter.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. + */ + +/** DynamicListSearchFilter */ +open class DynamicListSearchFilter: DynamicListFilter { + + public class DynamicListSearchFilterTokenizer: DynamicListFilter.DynamicListFilterTokenizer { + + public var idEqual: BaseTokenizedObject { + get { + return self.append("idEqual") + } + } + + public var valueEqual: BaseTokenizedObject { + get { + return self.append("valueEqual") + } + } + } + + /** DynamicList id to search by */ + public var idEqual: Int64? = nil + /** udid value that should be in the DynamicList */ + public var valueEqual: String? = nil + + + public func setMultiRequestToken(idEqual: String) { + self.dict["idEqual"] = idEqual + } + + public func setMultiRequestToken(valueEqual: String) { + self.dict["valueEqual"] = valueEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["idEqual"] != nil { + idEqual = Int64("\(dict["idEqual"]!)") + } + if dict["valueEqual"] != nil { + valueEqual = dict["valueEqual"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idEqual != nil) { + dict["idEqual"] = idEqual! + } + if(valueEqual != nil) { + dict["valueEqual"] = valueEqual! + } + 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/Encryption.swift b/KalturaClient/Classes/Model/Objects/Encryption.swift new file mode 100644 index 000000000..673014db9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Encryption.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 Encryption: ObjectBase { + + public class EncryptionTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var encryptionType: BaseTokenizedObject { + get { + return self.append("encryptionType") + } + } + } + + /** Encryption type */ + public var encryptionType: EncryptionType? = nil + + + public func setMultiRequestToken(encryptionType: String) { + self.dict["encryptionType"] = encryptionType + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["encryptionType"] != nil { + encryptionType = EncryptionType(rawValue: "\(dict["encryptionType"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(encryptionType != nil) { + dict["encryptionType"] = encryptionType!.rawValue + } + 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..b15f7e441 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Entitlement.swift @@ -0,0 +1,287 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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") + } + } + + public var isPending: BaseTokenizedObject { + get { + return self.append("isPending") + } + } + } + + /** 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 + /** Indicates whether the asynchronous purchase is pending */ + public var isPending: Bool? = 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 func setMultiRequestToken(isPending: String) { + self.dict["isPending"] = isPending + } + + 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"]!)") + } + if dict["isPending"] != nil { + isPending = dict["isPending"] as? Bool + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(endDate != nil) { + dict["endDate"] = endDate! + } + if(isPending != nil) { + dict["isPending"] = isPending! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EntitlementDiscountDetails.swift b/KalturaClient/Classes/Model/Objects/EntitlementDiscountDetails.swift new file mode 100644 index 000000000..751f47fd2 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EntitlementDiscountDetails.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. + */ + +/** Entitlement discount details */ +open class EntitlementDiscountDetails: ObjectBase { + + public class EntitlementDiscountDetailsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var amount: BaseTokenizedObject { + get { + return self.append("amount") + } + } + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + } + + /** Amount */ + public var amount: Double? = nil + /** Start date */ + public var startDate: Int64? = nil + /** End date */ + public var endDate: Int64? = nil + + + public func setMultiRequestToken(amount: String) { + self.dict["amount"] = amount + } + + 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["amount"] != nil { + amount = dict["amount"] as? Double + } + if dict["startDate"] != nil { + startDate = Int64("\(dict["startDate"]!)") + } + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/EntitlementDiscountDetailsIdentifier.swift b/KalturaClient/Classes/Model/Objects/EntitlementDiscountDetailsIdentifier.swift new file mode 100644 index 000000000..534dcf25c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EntitlementDiscountDetailsIdentifier.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 EntitlementDiscountDetailsIdentifier: EntitlementDiscountDetails { + + public class EntitlementDiscountDetailsIdentifierTokenizer: EntitlementDiscountDetails.EntitlementDiscountDetailsTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + } + + /** Identifier */ + 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/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/EntitlementPriceDetails.swift b/KalturaClient/Classes/Model/Objects/EntitlementPriceDetails.swift new file mode 100644 index 000000000..d90f926bd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EntitlementPriceDetails.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. + */ + +/** Entitlement price details */ +open class EntitlementPriceDetails: ObjectBase { + + public class EntitlementPriceDetailsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public func fullPrice() -> T { + return T(self.append("fullPrice")) + } + + public var discountDetails: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("discountDetails")) + } + } + } + + /** Full price */ + public var fullPrice: Price? = nil + /** List of the season numbers to exclude. */ + public var discountDetails: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["fullPrice"] != nil { + fullPrice = try JSONParser.parse(object: dict["fullPrice"] as! [String: Any]) } + if dict["discountDetails"] != nil { + discountDetails = try JSONParser.parse(array: dict["discountDetails"] as! [Any]) + } + + } + +} + 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/Epg.swift b/KalturaClient/Classes/Model/Objects/Epg.swift new file mode 100644 index 000000000..55c221f75 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Epg.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 Epg: ProgramAsset { + + public class EpgTokenizer: ProgramAsset.ProgramAssetTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/EpgFilter.swift b/KalturaClient/Classes/Model/Objects/EpgFilter.swift new file mode 100644 index 000000000..5ff7f155b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EpgFilter.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 EpgFilter: Filter { + + public class EpgFilterTokenizer: Filter.FilterTokenizer { + + public var dateEqual: BaseTokenizedObject { + get { + return self.append("dateEqual") + } + } + + public var liveAssetIdEqual: BaseTokenizedObject { + get { + return self.append("liveAssetIdEqual") + } + } + } + + /** date in unix timestamp, e.g. 1610928000(January 18, 2021 0:00:00), + 1611014400(January 19, 2021 0:00:00) */ + public var dateEqual: Int64? = nil + /** EPG live asset identifier */ + public var liveAssetIdEqual: Int64? = nil + + + public func setMultiRequestToken(dateEqual: String) { + self.dict["dateEqual"] = dateEqual + } + + public func setMultiRequestToken(liveAssetIdEqual: String) { + self.dict["liveAssetIdEqual"] = liveAssetIdEqual + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["dateEqual"] != nil { + dateEqual = Int64("\(dict["dateEqual"]!)") + } + if dict["liveAssetIdEqual"] != nil { + liveAssetIdEqual = Int64("\(dict["liveAssetIdEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(dateEqual != nil) { + dict["dateEqual"] = dateEqual! + } + if(liveAssetIdEqual != nil) { + dict["liveAssetIdEqual"] = liveAssetIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EpgIngestErrorMessage.swift b/KalturaClient/Classes/Model/Objects/EpgIngestErrorMessage.swift new file mode 100644 index 000000000..13f6d9487 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EpgIngestErrorMessage.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. + */ + +/** A Kaltura error message */ +open class EpgIngestErrorMessage: ObjectBase { + + public class EpgIngestErrorMessageTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var message: BaseTokenizedObject { + get { + return self.append("message") + } + } + + public var code: BaseTokenizedObject { + get { + return self.append("code") + } + } + + public var args: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("args")) + } + } + } + + /** The message description with arguments place holders */ + public var message: String? = nil + /** The message code */ + public var code: String? = nil + /** Message args */ + public var args: Dictionary? = 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 + } + 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(message != nil) { + dict["message"] = message! + } + if(code != nil) { + dict["code"] = code! + } + if(args != nil) { + dict["args"] = args!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EpgListResponse.swift b/KalturaClient/Classes/Model/Objects/EpgListResponse.swift new file mode 100644 index 000000000..bf68604a3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EpgListResponse.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. + */ + +/** EPG wrapper */ +open class EpgListResponse: ListResponse { + + public class EpgListResponseTokenizer: 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/EpgNotificationSettings.swift b/KalturaClient/Classes/Model/Objects/EpgNotificationSettings.swift new file mode 100644 index 000000000..509f434a3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EpgNotificationSettings.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. + */ + +open class EpgNotificationSettings: ObjectBase { + + public class EpgNotificationSettingsTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var enabled: BaseTokenizedObject { + get { + return self.append("enabled") + } + } + + public var deviceFamilyIds: BaseTokenizedObject { + get { + return self.append("deviceFamilyIds") + } + } + + public var liveAssetIds: BaseTokenizedObject { + get { + return self.append("liveAssetIds") + } + } + + public var backwardTimeRange: BaseTokenizedObject { + get { + return self.append("backwardTimeRange") + } + } + + public var forwardTimeRange: BaseTokenizedObject { + get { + return self.append("forwardTimeRange") + } + } + } + + /** EPG notification capability is enabled for the account */ + public var enabled: Bool? = nil + /** Specify which devices should receive notifications */ + public var deviceFamilyIds: String? = nil + /** Specify which live assets should fire notifications */ + public var liveAssetIds: String? = nil + /** The backward range (in hours), in which, EPG updates triggers a notification, + every program that is updated and it’s starts time falls within this + range shall trigger a notification */ + public var backwardTimeRange: Int? = nil + /** The forward range (in hours), in which, EPG updates triggers a notification, + every program that is updated and it’s starts time falls within this + range shall trigger a notification */ + public var forwardTimeRange: Int? = nil + + + public func setMultiRequestToken(enabled: String) { + self.dict["enabled"] = enabled + } + + public func setMultiRequestToken(deviceFamilyIds: String) { + self.dict["deviceFamilyIds"] = deviceFamilyIds + } + + public func setMultiRequestToken(liveAssetIds: String) { + self.dict["liveAssetIds"] = liveAssetIds + } + + public func setMultiRequestToken(backwardTimeRange: String) { + self.dict["backwardTimeRange"] = backwardTimeRange + } + + public func setMultiRequestToken(forwardTimeRange: String) { + self.dict["forwardTimeRange"] = forwardTimeRange + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["enabled"] != nil { + enabled = dict["enabled"] as? Bool + } + if dict["deviceFamilyIds"] != nil { + deviceFamilyIds = dict["deviceFamilyIds"] as? String + } + if dict["liveAssetIds"] != nil { + liveAssetIds = dict["liveAssetIds"] as? String + } + if dict["backwardTimeRange"] != nil { + backwardTimeRange = dict["backwardTimeRange"] as? Int + } + if dict["forwardTimeRange"] != nil { + forwardTimeRange = dict["forwardTimeRange"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(enabled != nil) { + dict["enabled"] = enabled! + } + if(deviceFamilyIds != nil) { + dict["deviceFamilyIds"] = deviceFamilyIds! + } + if(liveAssetIds != nil) { + dict["liveAssetIds"] = liveAssetIds! + } + if(backwardTimeRange != nil) { + dict["backwardTimeRange"] = backwardTimeRange! + } + if(forwardTimeRange != nil) { + dict["forwardTimeRange"] = forwardTimeRange! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EpgServicePartnerConfiguration.swift b/KalturaClient/Classes/Model/Objects/EpgServicePartnerConfiguration.swift new file mode 100644 index 000000000..27a055044 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/EpgServicePartnerConfiguration.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 EpgServicePartnerConfiguration: ObjectBase { + + public class EpgServicePartnerConfigurationTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var numberOfSlots: BaseTokenizedObject { + get { + return self.append("numberOfSlots") + } + } + + public var firstSlotOffset: BaseTokenizedObject { + get { + return self.append("firstSlotOffset") + } + } + } + + /** The number of slots (NOS) that are supported (1, 2, 3, 4, 6, 8, 12, 24) */ + public var numberOfSlots: Int? = nil + /** The offset of the first slot from 00:00 UTC */ + public var firstSlotOffset: Int? = nil + + + public func setMultiRequestToken(numberOfSlots: String) { + self.dict["numberOfSlots"] = numberOfSlots + } + + public func setMultiRequestToken(firstSlotOffset: String) { + self.dict["firstSlotOffset"] = firstSlotOffset + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["numberOfSlots"] != nil { + numberOfSlots = dict["numberOfSlots"] as? Int + } + if dict["firstSlotOffset"] != nil { + firstSlotOffset = dict["firstSlotOffset"] as? Int + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(numberOfSlots != nil) { + dict["numberOfSlots"] = numberOfSlots! + } + if(firstSlotOffset != nil) { + dict["firstSlotOffset"] = firstSlotOffset! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/EventNotification.swift b/KalturaClient/Classes/Model/Objects/EventNotification.swift new file mode 100644 index 000000000..208ad52fa --- /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: OTTObjectSupportNullable { + + public class EventNotificationTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + 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..47ac8a4ea --- /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: Filter { + + public class EventNotificationFilterTokenizer: Filter.FilterTokenizer { + + 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/ExpressionAnd.swift b/KalturaClient/Classes/Model/Objects/ExpressionAnd.swift new file mode 100644 index 000000000..bd43c7352 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ExpressionAnd.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. + */ + +/** And Expression */ +open class ExpressionAnd: UserSessionProfileExpression { + + public class ExpressionAndTokenizer: UserSessionProfileExpression.UserSessionProfileExpressionTokenizer { + + public var expressions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("expressions")) + } + } + } + + /** expressions with and relation between them */ + public var expressions: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["expressions"] != nil { + expressions = try JSONParser.parse(array: dict["expressions"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(expressions != nil) { + dict["expressions"] = expressions!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ExpressionNot.swift b/KalturaClient/Classes/Model/Objects/ExpressionNot.swift new file mode 100644 index 000000000..dc31ba930 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ExpressionNot.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. + */ + +/** Not Expression */ +open class ExpressionNot: UserSessionProfileExpression { + + public class ExpressionNotTokenizer: UserSessionProfileExpression.UserSessionProfileExpressionTokenizer { + + public func expression() -> T { + return T(self.append("expression")) + } + } + + /** expression */ + public var expression: UserSessionProfileExpression? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["expression"] != nil { + expression = try JSONParser.parse(object: dict["expression"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(expression != nil) { + dict["expression"] = expression!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/ExpressionOr.swift b/KalturaClient/Classes/Model/Objects/ExpressionOr.swift new file mode 100644 index 000000000..e879ea2ad --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ExpressionOr.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. + */ + +/** Or Expression */ +open class ExpressionOr: UserSessionProfileExpression { + + public class ExpressionOrTokenizer: UserSessionProfileExpression.UserSessionProfileExpressionTokenizer { + + public var expressions: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("expressions")) + } + } + } + + /** expressions with or relation between them */ + public var expressions: Array? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["expressions"] != nil { + expressions = try JSONParser.parse(array: dict["expressions"] as! [Any]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(expressions != nil) { + dict["expressions"] = expressions!.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/FileTypeCondition.swift b/KalturaClient/Classes/Model/Objects/FileTypeCondition.swift new file mode 100644 index 000000000..fe3847e88 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FileTypeCondition.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 FileTypeCondition: Condition { + + public class FileTypeConditionTokenizer: Condition.ConditionTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + } + + /** Comma separated filetype 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/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/FilterAction.swift b/KalturaClient/Classes/Model/Objects/FilterAction.swift new file mode 100644 index 000000000..144f6c8fd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterAction.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 FilterAction: AssetRuleAction { + + public class FilterActionTokenizer: AssetRuleAction.AssetRuleActionTokenizer { + + public func preActionCondition() -> T { + return T(self.append("preActionCondition")) + } + } + + /** PreAction condition */ + public var preActionCondition: BasePreActionCondition? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["preActionCondition"] != nil { + preActionCondition = try JSONParser.parse(object: dict["preActionCondition"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(preActionCondition != nil) { + dict["preActionCondition"] = preActionCondition!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterAssetByKsqlAction.swift b/KalturaClient/Classes/Model/Objects/FilterAssetByKsqlAction.swift new file mode 100644 index 000000000..868faec04 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterAssetByKsqlAction.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 FilterAssetByKsqlAction: FilterAction { + + public class FilterAssetByKsqlActionTokenizer: FilterAction.FilterActionTokenizer { + + public var ksql: BaseTokenizedObject { + get { + return self.append("ksql") + } + } + } + + /** ksql to filter assets by */ + 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/FilterFileByAudioCodecAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByAudioCodecAction.swift new file mode 100644 index 000000000..ae98cc619 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByAudioCodecAction.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. + */ + +/** FilterFile By AudioCodec */ +open class FilterFileByAudioCodecAction: FilterAction { + + public class FilterFileByAudioCodecActionTokenizer: FilterAction.FilterActionTokenizer { + + public var audioCodecIn: BaseTokenizedObject { + get { + return self.append("audioCodecIn") + } + } + } + + /** List of comma separated audioCodecs */ + public var audioCodecIn: String? = nil + + + public func setMultiRequestToken(audioCodecIn: String) { + self.dict["audioCodecIn"] = audioCodecIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["audioCodecIn"] != nil { + audioCodecIn = dict["audioCodecIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(audioCodecIn != nil) { + dict["audioCodecIn"] = audioCodecIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByAudioCodecInDiscoveryAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByAudioCodecInDiscoveryAction.swift new file mode 100644 index 000000000..e23b71e97 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByAudioCodecInDiscoveryAction.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 FilterFileByAudioCodecInDiscoveryAction: FilterFileByAudioCodecAction { + + public class FilterFileByAudioCodecInDiscoveryActionTokenizer: FilterFileByAudioCodecAction.FilterFileByAudioCodecActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByAudioCodecInPlaybackAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByAudioCodecInPlaybackAction.swift new file mode 100644 index 000000000..7413a34c0 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByAudioCodecInPlaybackAction.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 FilterFileByAudioCodecInPlaybackAction: FilterFileByAudioCodecAction { + + public class FilterFileByAudioCodecInPlaybackActionTokenizer: FilterFileByAudioCodecAction.FilterFileByAudioCodecActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByDynamicDataAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByDynamicDataAction.swift new file mode 100644 index 000000000..1ba2d31e6 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByDynamicDataAction.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 File By Dynamic Data */ +open class FilterFileByDynamicDataAction: FilterAction { + + public class FilterFileByDynamicDataActionTokenizer: FilterAction.FilterActionTokenizer { + + public var key: BaseTokenizedObject { + get { + return self.append("key") + } + } + + public var values: BaseTokenizedObject { + get { + return self.append("values") + } + } + } + + /** Key to be searched */ + public var key: String? = nil + /** Comma separated values to be searched */ + public var values: String? = nil + + + public func setMultiRequestToken(key: String) { + self.dict["key"] = key + } + + public func setMultiRequestToken(values: String) { + self.dict["values"] = values + } + + 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["values"] != nil { + values = dict["values"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(key != nil) { + dict["key"] = key! + } + if(values != nil) { + dict["values"] = values! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByDynamicDataInDiscoveryAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByDynamicDataInDiscoveryAction.swift new file mode 100644 index 000000000..c7412802a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByDynamicDataInDiscoveryAction.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 FilterFileByDynamicDataInDiscoveryAction: FilterFileByDynamicDataAction { + + public class FilterFileByDynamicDataInDiscoveryActionTokenizer: FilterFileByDynamicDataAction.FilterFileByDynamicDataActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByDynamicDataInPlaybackAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByDynamicDataInPlaybackAction.swift new file mode 100644 index 000000000..061e3f7a8 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByDynamicDataInPlaybackAction.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 FilterFileByDynamicDataInPlaybackAction: FilterFileByDynamicDataAction { + + public class FilterFileByDynamicDataInPlaybackActionTokenizer: FilterFileByDynamicDataAction.FilterFileByDynamicDataActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdAction.swift new file mode 100644 index 000000000..ffa367c82 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdAction.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. + */ + +/** FilterFile By FileType */ +open class FilterFileByFileTypeIdAction: FilterAction { + + public class FilterFileByFileTypeIdActionTokenizer: FilterAction.FilterActionTokenizer { + + public var fileTypeIdIn: BaseTokenizedObject { + get { + return self.append("fileTypeIdIn") + } + } + } + + /** List of comma separated fileTypesIds */ + public var fileTypeIdIn: String? = nil + + + public func setMultiRequestToken(fileTypeIdIn: String) { + self.dict["fileTypeIdIn"] = fileTypeIdIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["fileTypeIdIn"] != nil { + fileTypeIdIn = dict["fileTypeIdIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(fileTypeIdIn != nil) { + dict["fileTypeIdIn"] = fileTypeIdIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdForAssetTypeAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdForAssetTypeAction.swift new file mode 100644 index 000000000..5c257487c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdForAssetTypeAction.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. + */ + +/** Filter file By FileType For AssetType */ +open class FilterFileByFileTypeIdForAssetTypeAction: FilterFileByFileTypeIdAction { + + public class FilterFileByFileTypeIdForAssetTypeActionTokenizer: FilterFileByFileTypeIdAction.FilterFileByFileTypeIdActionTokenizer { + + public var assetTypeIn: BaseTokenizedObject { + get { + return self.append("assetTypeIn") + } + } + } + + /** List of comma separated assetTypes */ + public var assetTypeIn: String? = nil + + + public func setMultiRequestToken(assetTypeIn: String) { + self.dict["assetTypeIn"] = assetTypeIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["assetTypeIn"] != nil { + assetTypeIn = dict["assetTypeIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(assetTypeIn != nil) { + dict["assetTypeIn"] = assetTypeIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdForAssetTypeInDiscoveryAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdForAssetTypeInDiscoveryAction.swift new file mode 100644 index 000000000..c67a6b200 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdForAssetTypeInDiscoveryAction.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 FilterFileByFileTypeIdForAssetTypeInDiscoveryAction: FilterFileByFileTypeIdForAssetTypeAction { + + public class FilterFileByFileTypeIdForAssetTypeInDiscoveryActionTokenizer: FilterFileByFileTypeIdForAssetTypeAction.FilterFileByFileTypeIdForAssetTypeActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdForAssetTypeInPlaybackAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdForAssetTypeInPlaybackAction.swift new file mode 100644 index 000000000..54974f2c3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdForAssetTypeInPlaybackAction.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 FilterFileByFileTypeIdForAssetTypeInPlaybackAction: FilterFileByFileTypeIdForAssetTypeAction { + + public class FilterFileByFileTypeIdForAssetTypeInPlaybackActionTokenizer: FilterFileByFileTypeIdForAssetTypeAction.FilterFileByFileTypeIdForAssetTypeActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdInDiscoveryAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdInDiscoveryAction.swift new file mode 100644 index 000000000..44052e76f --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdInDiscoveryAction.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 FilterFileByFileTypeIdInDiscoveryAction: FilterFileByFileTypeIdAction { + + public class FilterFileByFileTypeIdInDiscoveryActionTokenizer: FilterFileByFileTypeIdAction.FilterFileByFileTypeIdActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdInPlaybackAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdInPlaybackAction.swift new file mode 100644 index 000000000..3444d4272 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByFileTypeIdInPlaybackAction.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 FilterFileByFileTypeIdInPlaybackAction: FilterFileByFileTypeIdAction { + + public class FilterFileByFileTypeIdInPlaybackActionTokenizer: FilterFileByFileTypeIdAction.FilterFileByFileTypeIdActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByLabelAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByLabelAction.swift new file mode 100644 index 000000000..e77101713 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByLabelAction.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. + */ + +/** FilterFile By Label */ +open class FilterFileByLabelAction: FilterAction { + + public class FilterFileByLabelActionTokenizer: FilterAction.FilterActionTokenizer { + + public var labelIn: BaseTokenizedObject { + get { + return self.append("labelIn") + } + } + } + + /** List of comma separated labels */ + public var labelIn: String? = nil + + + public func setMultiRequestToken(labelIn: String) { + self.dict["labelIn"] = labelIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["labelIn"] != nil { + labelIn = dict["labelIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(labelIn != nil) { + dict["labelIn"] = labelIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByLabelInDiscoveryAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByLabelInDiscoveryAction.swift new file mode 100644 index 000000000..1d906071b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByLabelInDiscoveryAction.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 FilterFileByLabelInDiscoveryAction: FilterFileByLabelAction { + + public class FilterFileByLabelInDiscoveryActionTokenizer: FilterFileByLabelAction.FilterFileByLabelActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByLabelInPlaybackAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByLabelInPlaybackAction.swift new file mode 100644 index 000000000..5d0d2d0ea --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByLabelInPlaybackAction.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 FilterFileByLabelInPlaybackAction: FilterFileByLabelAction { + + public class FilterFileByLabelInPlaybackActionTokenizer: FilterFileByLabelAction.FilterFileByLabelActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByQualityAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByQualityAction.swift new file mode 100644 index 000000000..58f993683 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByQualityAction.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. + */ + +/** Filter Files By their Quality */ +open class FilterFileByQualityAction: FilterAction { + + public class FilterFileByQualityActionTokenizer: FilterAction.FilterActionTokenizer { + + public var qualityIn: BaseTokenizedObject { + get { + return self.append("qualityIn") + } + } + } + + /** List of comma separated qualities */ + public var qualityIn: String? = nil + + + public func setMultiRequestToken(qualityIn: String) { + self.dict["qualityIn"] = qualityIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["qualityIn"] != nil { + qualityIn = dict["qualityIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(qualityIn != nil) { + dict["qualityIn"] = qualityIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByQualityInDiscoveryAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByQualityInDiscoveryAction.swift new file mode 100644 index 000000000..39acebb24 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByQualityInDiscoveryAction.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 FilterFileByQualityInDiscoveryAction: FilterFileByQualityAction { + + public class FilterFileByQualityInDiscoveryActionTokenizer: FilterFileByQualityAction.FilterFileByQualityActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByQualityInPlaybackAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByQualityInPlaybackAction.swift new file mode 100644 index 000000000..709f5b2a7 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByQualityInPlaybackAction.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 FilterFileByQualityInPlaybackAction: FilterFileByQualityAction { + + public class FilterFileByQualityInPlaybackActionTokenizer: FilterFileByQualityAction.FilterFileByQualityActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByStreamerTypeAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByStreamerTypeAction.swift new file mode 100644 index 000000000..bf098299e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByStreamerTypeAction.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. + */ + +/** FilterFile By StreamerType */ +open class FilterFileByStreamerTypeAction: FilterAction { + + public class FilterFileByStreamerTypeActionTokenizer: FilterAction.FilterActionTokenizer { + + public var streamerTypeIn: BaseTokenizedObject { + get { + return self.append("streamerTypeIn") + } + } + } + + /** List of comma separated streamerTypes */ + public var streamerTypeIn: String? = nil + + + public func setMultiRequestToken(streamerTypeIn: String) { + self.dict["streamerTypeIn"] = streamerTypeIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["streamerTypeIn"] != nil { + streamerTypeIn = dict["streamerTypeIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(streamerTypeIn != nil) { + dict["streamerTypeIn"] = streamerTypeIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByStreamerTypeInDiscovery.swift b/KalturaClient/Classes/Model/Objects/FilterFileByStreamerTypeInDiscovery.swift new file mode 100644 index 000000000..1e4b1fc2d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByStreamerTypeInDiscovery.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 FilterFileByStreamerTypeInDiscovery: FilterFileByStreamerTypeAction { + + public class FilterFileByStreamerTypeInDiscoveryTokenizer: FilterFileByStreamerTypeAction.FilterFileByStreamerTypeActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByStreamerTypeInPlayback.swift b/KalturaClient/Classes/Model/Objects/FilterFileByStreamerTypeInPlayback.swift new file mode 100644 index 000000000..0070ecf7b --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByStreamerTypeInPlayback.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 FilterFileByStreamerTypeInPlayback: FilterFileByStreamerTypeAction { + + public class FilterFileByStreamerTypeInPlaybackTokenizer: FilterFileByStreamerTypeAction.FilterFileByStreamerTypeActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByVideoCodecAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByVideoCodecAction.swift new file mode 100644 index 000000000..5d858db1c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByVideoCodecAction.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. + */ + +/** FilterFile By VideoCode */ +open class FilterFileByVideoCodecAction: FilterAction { + + public class FilterFileByVideoCodecActionTokenizer: FilterAction.FilterActionTokenizer { + + public var videoCodecIn: BaseTokenizedObject { + get { + return self.append("videoCodecIn") + } + } + } + + /** List of comma separated videoCodecs */ + public var videoCodecIn: String? = nil + + + public func setMultiRequestToken(videoCodecIn: String) { + self.dict["videoCodecIn"] = videoCodecIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["videoCodecIn"] != nil { + videoCodecIn = dict["videoCodecIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(videoCodecIn != nil) { + dict["videoCodecIn"] = videoCodecIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByVideoCodecInDiscoveryAction.swift b/KalturaClient/Classes/Model/Objects/FilterFileByVideoCodecInDiscoveryAction.swift new file mode 100644 index 000000000..71dc25552 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByVideoCodecInDiscoveryAction.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 FilterFileByVideoCodecInDiscoveryAction: FilterFileByVideoCodecAction { + + public class FilterFileByVideoCodecInDiscoveryActionTokenizer: FilterFileByVideoCodecAction.FilterFileByVideoCodecActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/FilterFileByVideoCodecInPlayback.swift b/KalturaClient/Classes/Model/Objects/FilterFileByVideoCodecInPlayback.swift new file mode 100644 index 000000000..fffaa6590 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/FilterFileByVideoCodecInPlayback.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 FilterFileByVideoCodecInPlayback: FilterFileByVideoCodecAction { + + public class FilterFileByVideoCodecInPlaybackTokenizer: FilterFileByVideoCodecAction.FilterFileByVideoCodecActionTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(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..dba433cef --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/GeneralPartnerConfig.swift @@ -0,0 +1,391 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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 downgradePriorityFamilyIds: BaseTokenizedObject { + get { + return self.append("downgradePriorityFamilyIds") + } + } + + 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 linearWatchHistoryThreshold: BaseTokenizedObject { + get { + return self.append("linearWatchHistoryThreshold") + } + } + + public var finishedPercentThreshold: BaseTokenizedObject { + get { + return self.append("finishedPercentThreshold") + } + } + + public var suspensionProfileInheritanceType: BaseTokenizedObject { + get { + return self.append("suspensionProfileInheritanceType") + } + } + + public var allowDeviceMobility: BaseTokenizedObject { + get { + return self.append("allowDeviceMobility") + } + } + + public var enableMultiLcns: BaseTokenizedObject { + get { + return self.append("enableMultiLcns") + } + } + } + + /** 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 + /** Priority Family Ids to remove devices on downgrade (first in the list first to + remove) */ + public var downgradePriorityFamilyIds: String? = 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 + /** minimum bookmark position of a linear channel to be included in a watch history */ + public var linearWatchHistoryThreshold: Int? = nil + /** Finished PercentThreshold */ + public var finishedPercentThreshold: Int? = nil + /** Suspension Profile Inheritance */ + public var suspensionProfileInheritanceType: SuspensionProfileInheritanceType? = nil + /** Allow Device Mobility */ + public var allowDeviceMobility: Bool? = nil + /** Enable multi LCNs per linear channel */ + public var enableMultiLcns: Bool? = 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(downgradePriorityFamilyIds: String) { + self.dict["downgradePriorityFamilyIds"] = downgradePriorityFamilyIds + } + + 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(linearWatchHistoryThreshold: String) { + self.dict["linearWatchHistoryThreshold"] = linearWatchHistoryThreshold + } + + public func setMultiRequestToken(finishedPercentThreshold: String) { + self.dict["finishedPercentThreshold"] = finishedPercentThreshold + } + + public func setMultiRequestToken(suspensionProfileInheritanceType: String) { + self.dict["suspensionProfileInheritanceType"] = suspensionProfileInheritanceType + } + + public func setMultiRequestToken(allowDeviceMobility: String) { + self.dict["allowDeviceMobility"] = allowDeviceMobility + } + + public func setMultiRequestToken(enableMultiLcns: String) { + self.dict["enableMultiLcns"] = enableMultiLcns + } + + 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["downgradePriorityFamilyIds"] != nil { + downgradePriorityFamilyIds = dict["downgradePriorityFamilyIds"] as? String + } + 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["linearWatchHistoryThreshold"] != nil { + linearWatchHistoryThreshold = dict["linearWatchHistoryThreshold"] as? Int + } + if dict["finishedPercentThreshold"] != nil { + finishedPercentThreshold = dict["finishedPercentThreshold"] as? Int + } + if dict["suspensionProfileInheritanceType"] != nil { + suspensionProfileInheritanceType = SuspensionProfileInheritanceType(rawValue: "\(dict["suspensionProfileInheritanceType"]!)") + } + if dict["allowDeviceMobility"] != nil { + allowDeviceMobility = dict["allowDeviceMobility"] as? Bool + } + if dict["enableMultiLcns"] != nil { + enableMultiLcns = dict["enableMultiLcns"] as? Bool + } + + } + + 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(downgradePriorityFamilyIds != nil) { + dict["downgradePriorityFamilyIds"] = downgradePriorityFamilyIds! + } + 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(linearWatchHistoryThreshold != nil) { + dict["linearWatchHistoryThreshold"] = linearWatchHistoryThreshold! + } + if(finishedPercentThreshold != nil) { + dict["finishedPercentThreshold"] = finishedPercentThreshold! + } + if(suspensionProfileInheritanceType != nil) { + dict["suspensionProfileInheritanceType"] = suspensionProfileInheritanceType!.rawValue + } + if(allowDeviceMobility != nil) { + dict["allowDeviceMobility"] = allowDeviceMobility! + } + if(enableMultiLcns != nil) { + dict["enableMultiLcns"] = enableMultiLcns! + } + 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..00f8e535a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Household.swift @@ -0,0 +1,322 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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") + } + } + + public var createDate: BaseTokenizedObject { + get { + return self.append("createDate") + } + } + + public var updateDate: BaseTokenizedObject { + get { + return self.append("updateDate") + } + } + } + + /** 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 + /** 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(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 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["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 + } + 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(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..5237cf2a0 --- /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: OTTObjectSupportNullable { + + public class HouseholdCouponTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + 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..192f09b5a --- /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: Filter { + + public class HouseholdCouponFilterTokenizer: Filter.FilterTokenizer { + + 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..b2a7fdaba --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdDevice.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. + */ + +/** 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") + } + } + + public var dynamicData: DictionaryTokenizedObject { + get { + return DictionaryTokenizedObject(self.append("dynamicData")) + } + } + + public var model: BaseTokenizedObject { + get { + return self.append("model") + } + } + + public var manufacturer: BaseTokenizedObject { + get { + return self.append("manufacturer") + } + } + + public var manufacturerId: BaseTokenizedObject { + get { + return self.append("manufacturerId") + } + } + + public var lastActivityTime: BaseTokenizedObject { + get { + return self.append("lastActivityTime") + } + } + } + + /** 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 + /** Dynamic data */ + public var dynamicData: Dictionary? = nil + /** model */ + public var model: String? = nil + /** manufacturer */ + public var manufacturer: String? = nil + /** manufacturer Id, read only */ + public var manufacturerId: Int64? = nil + /** Last Activity Time, read only */ + public var lastActivityTime: Int64? = 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 func setMultiRequestToken(model: String) { + self.dict["model"] = model + } + + public func setMultiRequestToken(manufacturer: String) { + self.dict["manufacturer"] = manufacturer + } + + public func setMultiRequestToken(manufacturerId: String) { + self.dict["manufacturerId"] = manufacturerId + } + + public func setMultiRequestToken(lastActivityTime: String) { + self.dict["lastActivityTime"] = lastActivityTime + } + + 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 + } + if dict["dynamicData"] != nil { + dynamicData = try JSONParser.parse(map: dict["dynamicData"] as! [String: Any]) + } + if dict["model"] != nil { + model = dict["model"] as? String + } + if dict["manufacturer"] != nil { + manufacturer = dict["manufacturer"] as? String + } + if dict["manufacturerId"] != nil { + manufacturerId = Int64("\(dict["manufacturerId"]!)") + } + if dict["lastActivityTime"] != nil { + lastActivityTime = Int64("\(dict["lastActivityTime"]!)") + } + + } + + 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! + } + if(dynamicData != nil) { + dict["dynamicData"] = dynamicData!.toDictionary() + } + if(model != nil) { + dict["model"] = model! + } + if(manufacturer != nil) { + dict["manufacturer"] = manufacturer! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdDeviceFamilyLimitations.swift b/KalturaClient/Classes/Model/Objects/HouseholdDeviceFamilyLimitations.swift new file mode 100644 index 000000000..cf336e9a9 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdDeviceFamilyLimitations.swift @@ -0,0 +1,139 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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") + } + } + + public var isDefaultDeviceLimit: BaseTokenizedObject { + get { + return self.append("isDefaultDeviceLimit") + } + } + + public var isDefaultConcurrentLimit: BaseTokenizedObject { + get { + return self.append("isDefaultConcurrentLimit") + } + } + } + + /** 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 + /** Is the Max number of devices allowed for this family is default value or not */ + public var isDefaultDeviceLimit: Bool? = nil + /** Is the Max number of streams allowed for this family is default value or not */ + public var isDefaultConcurrentLimit: Bool? = 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 func setMultiRequestToken(isDefaultDeviceLimit: String) { + self.dict["isDefaultDeviceLimit"] = isDefaultDeviceLimit + } + + public func setMultiRequestToken(isDefaultConcurrentLimit: String) { + self.dict["isDefaultConcurrentLimit"] = isDefaultConcurrentLimit + } + + 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 + } + if dict["isDefaultDeviceLimit"] != nil { + isDefaultDeviceLimit = dict["isDefaultDeviceLimit"] as? Bool + } + if dict["isDefaultConcurrentLimit"] != nil { + isDefaultConcurrentLimit = dict["isDefaultConcurrentLimit"] as? Bool + } + + } + + 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/HouseholdFilter.swift b/KalturaClient/Classes/Model/Objects/HouseholdFilter.swift new file mode 100644 index 000000000..f2182ce45 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdFilter.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. + */ + +/** Household details */ +open class HouseholdFilter: Filter { + + public class HouseholdFilterTokenizer: Filter.FilterTokenizer { + + public var externalIdEqual: BaseTokenizedObject { + get { + return self.append("externalIdEqual") + } + } + } + + /** Household external identifier to search by */ + public var externalIdEqual: String? = nil + + + 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["externalIdEqual"] != nil { + externalIdEqual = dict["externalIdEqual"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(externalIdEqual != nil) { + dict["externalIdEqual"] = externalIdEqual! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/HouseholdLimitations.swift b/KalturaClient/Classes/Model/Objects/HouseholdLimitations.swift new file mode 100644 index 000000000..1d2484981 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdLimitations.swift @@ -0,0 +1,273 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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")) + } + } + + public var description: BaseTokenizedObject { + get { + return self.append("description") + } + } + + public var associatedDeviceFamiliesIdsIn: BaseTokenizedObject { + get { + return self.append("associatedDeviceFamiliesIdsIn") + } + } + } + + /** 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 + /** Allowed device change frequency description */ + public var description: String? = nil + /** Associated Device Families ids */ + public var associatedDeviceFamiliesIdsIn: String? = 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 func setMultiRequestToken(description: String) { + self.dict["description"] = description + } + + public func setMultiRequestToken(associatedDeviceFamiliesIdsIn: String) { + self.dict["associatedDeviceFamiliesIdsIn"] = associatedDeviceFamiliesIdsIn + } + + 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]) + } + if dict["description"] != nil { + description = dict["description"] as? String + } + if dict["associatedDeviceFamiliesIdsIn"] != nil { + associatedDeviceFamiliesIdsIn = dict["associatedDeviceFamiliesIdsIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(name != nil) { + dict["name"] = name! + } + if(concurrentLimit != nil) { + dict["concurrentLimit"] = concurrentLimit! + } + if(deviceLimit != nil) { + dict["deviceLimit"] = deviceLimit! + } + if(deviceFrequency != nil) { + dict["deviceFrequency"] = deviceFrequency! + } + if(userFrequency != nil) { + dict["userFrequency"] = userFrequency! + } + if(usersLimit != nil) { + dict["usersLimit"] = usersLimit! + } + if(deviceFamiliesLimitations != nil) { + dict["deviceFamiliesLimitations"] = deviceFamiliesLimitations!.map { value in value.toDictionary() } + } + if(description != nil) { + dict["description"] = description! + } + if(associatedDeviceFamiliesIdsIn != nil) { + dict["associatedDeviceFamiliesIdsIn"] = associatedDeviceFamiliesIdsIn! + } + return dict + } +} + 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/HouseholdListResponse.swift b/KalturaClient/Classes/Model/Objects/HouseholdListResponse.swift new file mode 100644 index 000000000..f31aebed1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/HouseholdListResponse.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 HouseholdListResponse: ListResponse { + + public class HouseholdListResponseTokenizer: 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/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..f6a2f979a --- /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: OTTObjectSupportNullable { + + public class HouseholdSegmentTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + 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..c04e28173 --- /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: Filter { + + public class HouseholdSegmentFilterTokenizer: Filter.FilterTokenizer { + + 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..99e086e13 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Image.swift @@ -0,0 +1,216 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * 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 imageTypeName: BaseTokenizedObject { + get { + return self.append("imageTypeName") + } + } + + 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 + /** Image type Name */ + public var imageTypeName: String? = 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(imageTypeName: String) { + self.dict["imageTypeName"] = imageTypeName + } + + 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["imageTypeName"] != nil { + imageTypeName = dict["imageTypeName"] as? String + } + 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(imageTypeName != nil) { + dict["imageTypeName"] = imageTypeName! + } + 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/ImmediateRecording.swift b/KalturaClient/Classes/Model/Objects/ImmediateRecording.swift new file mode 100644 index 000000000..5b2ad944d --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/ImmediateRecording.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. + */ + +open class ImmediateRecording: Recording { + + public class ImmediateRecordingTokenizer: Recording.RecordingTokenizer { + + public var endPadding: BaseTokenizedObject { + get { + return self.append("endPadding") + } + } + + public var absoluteStart: BaseTokenizedObject { + get { + return self.append("absoluteStart") + } + } + + public var absoluteEnd: BaseTokenizedObject { + get { + return self.append("absoluteEnd") + } + } + } + + /** Household specific end padding of the recording */ + public var endPadding: Int? = nil + /** Household absolute start time of the immediate recording */ + public var absoluteStart: Int64? = nil + /** Household absolute end time of the immediate recording, empty if till end of + program */ + public var absoluteEnd: Int64? = nil + + + public func setMultiRequestToken(endPadding: String) { + self.dict["endPadding"] = endPadding + } + + public func setMultiRequestToken(absoluteStart: String) { + self.dict["absoluteStart"] = absoluteStart + } + + public func setMultiRequestToken(absoluteEnd: String) { + self.dict["absoluteEnd"] = absoluteEnd + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["endPadding"] != nil { + endPadding = dict["endPadding"] as? Int + } + if dict["absoluteStart"] != nil { + absoluteStart = Int64("\(dict["absoluteStart"]!)") + } + if dict["absoluteEnd"] != nil { + absoluteEnd = Int64("\(dict["absoluteEnd"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(endPadding != nil) { + dict["endPadding"] = endPadding! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/InboxMessage.swift b/KalturaClient/Classes/Model/Objects/InboxMessage.swift new file mode 100644 index 000000000..0055177ba --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/InboxMessage.swift @@ -0,0 +1,168 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * 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") + } + } + + public var campaignId: BaseTokenizedObject { + get { + return self.append("campaignId") + } + } + } + + /** 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 + /** campaignId */ + public var campaignId: Int64? = 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 func setMultiRequestToken(campaignId: String) { + self.dict["campaignId"] = campaignId + } + + 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 + } + if dict["campaignId"] != nil { + campaignId = Int64("\(dict["campaignId"]!)") + } + + } + + 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/IngestByCompoundFilter.swift b/KalturaClient/Classes/Model/Objects/IngestByCompoundFilter.swift new file mode 100644 index 000000000..cf94fea95 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestByCompoundFilter.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. + */ + +open class IngestByCompoundFilter: Filter { + + public class IngestByCompoundFilterTokenizer: Filter.FilterTokenizer { + + public var ingestNameContains: BaseTokenizedObject { + get { + return self.append("ingestNameContains") + } + } + + public var ingestedByUserIdIn: BaseTokenizedObject { + get { + return self.append("ingestedByUserIdIn") + } + } + + public var ingestStatusIn: BaseTokenizedObject { + get { + return self.append("ingestStatusIn") + } + } + + public var createdDateGreaterThan: BaseTokenizedObject { + get { + return self.append("createdDateGreaterThan") + } + } + + public var createdDateSmallerThan: BaseTokenizedObject { + get { + return self.append("createdDateSmallerThan") + } + } + } + + /** A string that is included in the ingest file name */ + public var ingestNameContains: String? = nil + /** Comma seperated user ids */ + public var ingestedByUserIdIn: String? = nil + /** Comma seperated valid stutuses */ + public var ingestStatusIn: String? = nil + /** Ingest created date greater then this value. . Date and time represented as + epoch. */ + public var createdDateGreaterThan: Int64? = nil + /** Ingest created date smaller than this value. Date and time represented as epoch. */ + public var createdDateSmallerThan: Int64? = nil + + + public func setMultiRequestToken(ingestNameContains: String) { + self.dict["ingestNameContains"] = ingestNameContains + } + + public func setMultiRequestToken(ingestedByUserIdIn: String) { + self.dict["ingestedByUserIdIn"] = ingestedByUserIdIn + } + + public func setMultiRequestToken(ingestStatusIn: String) { + self.dict["ingestStatusIn"] = ingestStatusIn + } + + public func setMultiRequestToken(createdDateGreaterThan: String) { + self.dict["createdDateGreaterThan"] = createdDateGreaterThan + } + + public func setMultiRequestToken(createdDateSmallerThan: String) { + self.dict["createdDateSmallerThan"] = createdDateSmallerThan + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["ingestNameContains"] != nil { + ingestNameContains = dict["ingestNameContains"] as? String + } + if dict["ingestedByUserIdIn"] != nil { + ingestedByUserIdIn = dict["ingestedByUserIdIn"] as? String + } + if dict["ingestStatusIn"] != nil { + ingestStatusIn = dict["ingestStatusIn"] as? String + } + if dict["createdDateGreaterThan"] != nil { + createdDateGreaterThan = Int64("\(dict["createdDateGreaterThan"]!)") + } + if dict["createdDateSmallerThan"] != nil { + createdDateSmallerThan = Int64("\(dict["createdDateSmallerThan"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(ingestNameContains != nil) { + dict["ingestNameContains"] = ingestNameContains! + } + if(ingestedByUserIdIn != nil) { + dict["ingestedByUserIdIn"] = ingestedByUserIdIn! + } + if(ingestStatusIn != nil) { + dict["ingestStatusIn"] = ingestStatusIn! + } + if(createdDateGreaterThan != nil) { + dict["createdDateGreaterThan"] = createdDateGreaterThan! + } + if(createdDateSmallerThan != nil) { + dict["createdDateSmallerThan"] = createdDateSmallerThan! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IngestByIdsFilter.swift b/KalturaClient/Classes/Model/Objects/IngestByIdsFilter.swift new file mode 100644 index 000000000..702c421ff --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestByIdsFilter.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 IngestByIdsFilter: Filter { + + public class IngestByIdsFilterTokenizer: Filter.FilterTokenizer { + + public var ingestIdIn: BaseTokenizedObject { + get { + return self.append("ingestIdIn") + } + } + } + + /** Comma seperated ingest profile ids */ + public var ingestIdIn: String? = nil + + + public func setMultiRequestToken(ingestIdIn: String) { + self.dict["ingestIdIn"] = ingestIdIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["ingestIdIn"] != nil { + ingestIdIn = dict["ingestIdIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(ingestIdIn != nil) { + dict["ingestIdIn"] = ingestIdIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IngestEpg.swift b/KalturaClient/Classes/Model/Objects/IngestEpg.swift new file mode 100644 index 000000000..53578d4e6 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestEpg.swift @@ -0,0 +1,195 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class IngestEpg: ObjectBase { + + public class IngestEpgTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var ingestId: BaseTokenizedObject { + get { + return self.append("ingestId") + } + } + + public var ingestName: BaseTokenizedObject { + get { + return self.append("ingestName") + } + } + + public var ingestFilenameExtension: BaseTokenizedObject { + get { + return self.append("ingestFilenameExtension") + } + } + + public var createdDate: BaseTokenizedObject { + get { + return self.append("createdDate") + } + } + + public var ingestedByUserId: BaseTokenizedObject { + get { + return self.append("ingestedByUserId") + } + } + + public var completedDate: BaseTokenizedObject { + get { + return self.append("completedDate") + } + } + + public var ingestProfileId: BaseTokenizedObject { + get { + return self.append("ingestProfileId") + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + } + + /** Unique id of the ingest job in question */ + public var ingestId: Int64? = nil + /** The ingested file name without its extention */ + public var ingestName: String? = nil + /** The ingested file name extention */ + public var ingestFilenameExtension: String? = nil + /** The ingest job created date and time. Date and time represented as epoch. */ + public var createdDate: Int64? = nil + /** The user id of the addFromBulkUpload caller. */ + public var ingestedByUserId: Int64? = nil + /** The ingest job completed date and time. Date and time represented as epoch. */ + public var completedDate: Int64? = nil + /** The ingest profile id that of the ingest job. */ + public var ingestProfileId: Int64? = nil + /** The ingest profile id that of the ingest job. */ + public var status: IngestStatus? = nil + + + public func setMultiRequestToken(ingestId: String) { + self.dict["ingestId"] = ingestId + } + + public func setMultiRequestToken(ingestName: String) { + self.dict["ingestName"] = ingestName + } + + public func setMultiRequestToken(ingestFilenameExtension: String) { + self.dict["ingestFilenameExtension"] = ingestFilenameExtension + } + + public func setMultiRequestToken(createdDate: String) { + self.dict["createdDate"] = createdDate + } + + public func setMultiRequestToken(ingestedByUserId: String) { + self.dict["ingestedByUserId"] = ingestedByUserId + } + + public func setMultiRequestToken(completedDate: String) { + self.dict["completedDate"] = completedDate + } + + public func setMultiRequestToken(ingestProfileId: String) { + self.dict["ingestProfileId"] = ingestProfileId + } + + 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["ingestId"] != nil { + ingestId = Int64("\(dict["ingestId"]!)") + } + if dict["ingestName"] != nil { + ingestName = dict["ingestName"] as? String + } + if dict["ingestFilenameExtension"] != nil { + ingestFilenameExtension = dict["ingestFilenameExtension"] as? String + } + if dict["createdDate"] != nil { + createdDate = Int64("\(dict["createdDate"]!)") + } + if dict["ingestedByUserId"] != nil { + ingestedByUserId = Int64("\(dict["ingestedByUserId"]!)") + } + if dict["completedDate"] != nil { + completedDate = Int64("\(dict["completedDate"]!)") + } + if dict["ingestProfileId"] != nil { + ingestProfileId = Int64("\(dict["ingestProfileId"]!)") + } + if dict["status"] != nil { + status = IngestStatus(rawValue: "\(dict["status"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(ingestName != nil) { + dict["ingestName"] = ingestName! + } + if(ingestFilenameExtension != nil) { + dict["ingestFilenameExtension"] = ingestFilenameExtension! + } + if(createdDate != nil) { + dict["createdDate"] = createdDate! + } + if(ingestedByUserId != nil) { + dict["ingestedByUserId"] = ingestedByUserId! + } + if(completedDate != nil) { + dict["completedDate"] = completedDate! + } + if(ingestProfileId != nil) { + dict["ingestProfileId"] = ingestProfileId! + } + if(status != nil) { + dict["status"] = status!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IngestEpgDetails.swift b/KalturaClient/Classes/Model/Objects/IngestEpgDetails.swift new file mode 100644 index 000000000..a50ced21e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestEpgDetails.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 IngestEpgDetails: IngestEpg { + + public class IngestEpgDetailsTokenizer: IngestEpg.IngestEpgTokenizer { + + public var errors: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("errors")) + } + } + + public func aggregations() -> T { + return T(self.append("aggregations")) + } + } + + /** Errors */ + public var errors: Array? = nil + /** Aggregated counters */ + public var aggregations: IngestEpgDetailsAggregation? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["errors"] != nil { + errors = try JSONParser.parse(array: dict["errors"] as! [Any]) + } + if dict["aggregations"] != nil { + aggregations = try JSONParser.parse(object: dict["aggregations"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(errors != nil) { + dict["errors"] = errors!.map { value in value.toDictionary() } + } + if(aggregations != nil) { + dict["aggregations"] = aggregations!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IngestEpgDetailsAggregation.swift b/KalturaClient/Classes/Model/Objects/IngestEpgDetailsAggregation.swift new file mode 100644 index 000000000..78d7fe147 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestEpgDetailsAggregation.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 IngestEpgDetailsAggregation: ObjectBase { + + public class IngestEpgDetailsAggregationTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var linearChannels: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("linearChannels")) + } + } + + public var dates: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("dates")) + } + } + + public func all() -> T { + return T(self.append("all")) + } + } + + /** Array of aggregated information per channel that included in the ingest job in + question */ + public var linearChannels: Array? = nil + /** Array of aggregated information per date that included in the ingest job in + question */ + public var dates: Array? = nil + /** All aggregated counters */ + public var all: AggregatedIngestInfo? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["linearChannels"] != nil { + linearChannels = try JSONParser.parse(array: dict["linearChannels"] as! [Any]) + } + if dict["dates"] != nil { + dates = try JSONParser.parse(array: dict["dates"] as! [Any]) + } + if dict["all"] != nil { + all = try JSONParser.parse(object: dict["all"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(linearChannels != nil) { + dict["linearChannels"] = linearChannels!.map { value in value.toDictionary() } + } + if(dates != nil) { + dict["dates"] = dates!.map { value in value.toDictionary() } + } + if(all != nil) { + dict["all"] = all!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IngestEpgProgramResult.swift b/KalturaClient/Classes/Model/Objects/IngestEpgProgramResult.swift new file mode 100644 index 000000000..b7664644e --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestEpgProgramResult.swift @@ -0,0 +1,209 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class IngestEpgProgramResult: ObjectBase { + + public class IngestEpgProgramResultTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var programId: BaseTokenizedObject { + get { + return self.append("programId") + } + } + + public var externalProgramId: BaseTokenizedObject { + get { + return self.append("externalProgramId") + } + } + + public var linearChannelId: BaseTokenizedObject { + get { + return self.append("linearChannelId") + } + } + + public var indexInFile: BaseTokenizedObject { + get { + return self.append("indexInFile") + } + } + + public var startDate: BaseTokenizedObject { + get { + return self.append("startDate") + } + } + + public var endDate: BaseTokenizedObject { + get { + return self.append("endDate") + } + } + + 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 unique ingested program id */ + public var programId: Int64? = nil + /** An external program id */ + public var externalProgramId: String? = nil + /** The id of the linear channel asset that the program belongs to */ + public var linearChannelId: Int64? = nil + /** The index of the program in the ingested file */ + public var indexInFile: Int64? = nil + /** Program EPG start date. Date and time represented as epoch */ + public var startDate: Int64? = nil + /** Program EPG end date. Date and time represented as epoch */ + public var endDate: Int64? = nil + /** The program status */ + public var status: IngestEpgProgramStatus? = nil + /** List of errors. Note: error cause the data in question or the whole ingest to + fail */ + public var errors: Array? = nil + /** List of warnings. Note: warning cause no failure */ + public var warnings: Array? = nil + + + public func setMultiRequestToken(programId: String) { + self.dict["programId"] = programId + } + + public func setMultiRequestToken(externalProgramId: String) { + self.dict["externalProgramId"] = externalProgramId + } + + public func setMultiRequestToken(linearChannelId: String) { + self.dict["linearChannelId"] = linearChannelId + } + + public func setMultiRequestToken(indexInFile: String) { + self.dict["indexInFile"] = indexInFile + } + + public func setMultiRequestToken(startDate: String) { + self.dict["startDate"] = startDate + } + + public func setMultiRequestToken(endDate: String) { + self.dict["endDate"] = endDate + } + + 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["programId"] != nil { + programId = Int64("\(dict["programId"]!)") + } + if dict["externalProgramId"] != nil { + externalProgramId = dict["externalProgramId"] as? String + } + if dict["linearChannelId"] != nil { + linearChannelId = Int64("\(dict["linearChannelId"]!)") + } + if dict["indexInFile"] != nil { + indexInFile = Int64("\(dict["indexInFile"]!)") + } + if dict["startDate"] != nil { + startDate = Int64("\(dict["startDate"]!)") + } + if dict["endDate"] != nil { + endDate = Int64("\(dict["endDate"]!)") + } + if dict["status"] != nil { + status = IngestEpgProgramStatus(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]) + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(programId != nil) { + dict["programId"] = programId! + } + if(externalProgramId != nil) { + dict["externalProgramId"] = externalProgramId! + } + if(linearChannelId != nil) { + dict["linearChannelId"] = linearChannelId! + } + if(indexInFile != nil) { + dict["indexInFile"] = indexInFile! + } + if(startDate != nil) { + dict["startDate"] = startDate! + } + if(endDate != nil) { + dict["endDate"] = endDate! + } + if(status != nil) { + dict["status"] = status!.rawValue + } + if(errors != nil) { + dict["errors"] = errors!.map { value in value.toDictionary() } + } + if(warnings != nil) { + dict["warnings"] = warnings!.map { value in value.toDictionary() } + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IngestEpgProgramResultFilter.swift b/KalturaClient/Classes/Model/Objects/IngestEpgProgramResultFilter.swift new file mode 100644 index 000000000..3ea139d9c --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestEpgProgramResultFilter.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 IngestEpgProgramResultFilter: Filter { + + public class IngestEpgProgramResultFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(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/IngestProgramResultsByCombinedFieldsFilter.swift b/KalturaClient/Classes/Model/Objects/IngestProgramResultsByCombinedFieldsFilter.swift new file mode 100644 index 000000000..3ee0cd545 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestProgramResultsByCombinedFieldsFilter.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 IngestProgramResultsByCombinedFieldsFilter: IngestProgramResultsByRefineFilter { + + public class IngestProgramResultsByCombinedFieldsFilterTokenizer: IngestProgramResultsByRefineFilter.IngestProgramResultsByRefineFilterTokenizer { + + public var combinedFieldsValue: BaseTokenizedObject { + get { + return self.append("combinedFieldsValue") + } + } + } + + /** String value to substring search by ProgramID or ExternalProgramID or + LinearChannelID. Up to 20 ids are allowed. */ + public var combinedFieldsValue: String? = nil + + + public func setMultiRequestToken(combinedFieldsValue: String) { + self.dict["combinedFieldsValue"] = combinedFieldsValue + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["combinedFieldsValue"] != nil { + combinedFieldsValue = dict["combinedFieldsValue"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(combinedFieldsValue != nil) { + dict["combinedFieldsValue"] = combinedFieldsValue! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IngestProgramResultsByCompoundFilter.swift b/KalturaClient/Classes/Model/Objects/IngestProgramResultsByCompoundFilter.swift new file mode 100644 index 000000000..a36dd5e42 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestProgramResultsByCompoundFilter.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 IngestProgramResultsByCompoundFilter: IngestProgramResultsByRefineFilter { + + public class IngestProgramResultsByCompoundFilterTokenizer: IngestProgramResultsByRefineFilter.IngestProgramResultsByRefineFilterTokenizer { + + public var linearChannelIdIn: BaseTokenizedObject { + get { + return self.append("linearChannelIdIn") + } + } + } + + /** Comma seperated channel id (the id of the linear channel asset that the program + belongs to). Up to 20 ids are allowed. */ + public var linearChannelIdIn: String? = nil + + + public func setMultiRequestToken(linearChannelIdIn: String) { + self.dict["linearChannelIdIn"] = linearChannelIdIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["linearChannelIdIn"] != nil { + linearChannelIdIn = dict["linearChannelIdIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(linearChannelIdIn != nil) { + dict["linearChannelIdIn"] = linearChannelIdIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IngestProgramResultsByExternalIdsFilter.swift b/KalturaClient/Classes/Model/Objects/IngestProgramResultsByExternalIdsFilter.swift new file mode 100644 index 000000000..dcd3eab67 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestProgramResultsByExternalIdsFilter.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 IngestProgramResultsByExternalIdsFilter: IngestEpgProgramResultFilter { + + public class IngestProgramResultsByExternalIdsFilterTokenizer: IngestEpgProgramResultFilter.IngestEpgProgramResultFilterTokenizer { + + public var externalProgramIdIn: BaseTokenizedObject { + get { + return self.append("externalProgramIdIn") + } + } + } + + /** Comma seperated external program id. Up to 20 ids are allowed. */ + public var externalProgramIdIn: String? = nil + + + public func setMultiRequestToken(externalProgramIdIn: String) { + self.dict["externalProgramIdIn"] = externalProgramIdIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["externalProgramIdIn"] != nil { + externalProgramIdIn = dict["externalProgramIdIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(externalProgramIdIn != nil) { + dict["externalProgramIdIn"] = externalProgramIdIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IngestProgramResultsByProgramIdsFilter.swift b/KalturaClient/Classes/Model/Objects/IngestProgramResultsByProgramIdsFilter.swift new file mode 100644 index 000000000..44738a8e1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestProgramResultsByProgramIdsFilter.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 IngestProgramResultsByProgramIdsFilter: IngestEpgProgramResultFilter { + + public class IngestProgramResultsByProgramIdsFilterTokenizer: IngestEpgProgramResultFilter.IngestEpgProgramResultFilterTokenizer { + + public var programIdIn: BaseTokenizedObject { + get { + return self.append("programIdIn") + } + } + } + + /** Comma seperated program id (the unique ingested program id as it determined by + Kaltura BE). Up to 20 ids are allowed. */ + public var programIdIn: String? = nil + + + public func setMultiRequestToken(programIdIn: String) { + self.dict["programIdIn"] = programIdIn + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["programIdIn"] != nil { + programIdIn = dict["programIdIn"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(programIdIn != nil) { + dict["programIdIn"] = programIdIn! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IngestProgramResultsByRefineFilter.swift b/KalturaClient/Classes/Model/Objects/IngestProgramResultsByRefineFilter.swift new file mode 100644 index 000000000..24a833af1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestProgramResultsByRefineFilter.swift @@ -0,0 +1,112 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @ignore +// =================================================================================================== + +/** + * This class was generated using exec.php + * against an XML schema provided by Kaltura. + * + * MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN. + */ + +open class IngestProgramResultsByRefineFilter: IngestEpgProgramResultFilter { + + public class IngestProgramResultsByRefineFilterTokenizer: IngestEpgProgramResultFilter.IngestEpgProgramResultFilterTokenizer { + + public var ingestStatusIn: BaseTokenizedObject { + get { + return self.append("ingestStatusIn") + } + } + + public var startDateGreaterThan: BaseTokenizedObject { + get { + return self.append("startDateGreaterThan") + } + } + + public var startDateSmallerThan: BaseTokenizedObject { + get { + return self.append("startDateSmallerThan") + } + } + } + + /** Comma seperated valid statuses - only 'FAILURE', + 'WARNING' and 'SUCCESS' are valid strings. No + repetitions are allowed. */ + public var ingestStatusIn: String? = nil + /** Program EPG start date greater then this value. Date and time represented as + epoch. */ + public var startDateGreaterThan: Int64? = nil + /** Program EPG start date smaller than this value. Date and time represented as + epoch. */ + public var startDateSmallerThan: Int64? = nil + + + public func setMultiRequestToken(ingestStatusIn: String) { + self.dict["ingestStatusIn"] = ingestStatusIn + } + + public func setMultiRequestToken(startDateGreaterThan: String) { + self.dict["startDateGreaterThan"] = startDateGreaterThan + } + + public func setMultiRequestToken(startDateSmallerThan: String) { + self.dict["startDateSmallerThan"] = startDateSmallerThan + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["ingestStatusIn"] != nil { + ingestStatusIn = dict["ingestStatusIn"] as? String + } + if dict["startDateGreaterThan"] != nil { + startDateGreaterThan = Int64("\(dict["startDateGreaterThan"]!)") + } + if dict["startDateSmallerThan"] != nil { + startDateSmallerThan = Int64("\(dict["startDateSmallerThan"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(ingestStatusIn != nil) { + dict["ingestStatusIn"] = ingestStatusIn! + } + if(startDateGreaterThan != nil) { + dict["startDateGreaterThan"] = startDateGreaterThan! + } + if(startDateSmallerThan != nil) { + dict["startDateSmallerThan"] = startDateSmallerThan! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IngestStatusEpgConfiguration.swift b/KalturaClient/Classes/Model/Objects/IngestStatusEpgConfiguration.swift new file mode 100644 index 000000000..7f8525bdd --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestStatusEpgConfiguration.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 IngestStatusEpgConfiguration: ObjectBase { + + public class IngestStatusEpgConfigurationTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var isSupported: BaseTokenizedObject { + get { + return self.append("isSupported") + } + } + + public var retainingPeriod: BaseTokenizedObject { + get { + return self.append("retainingPeriod") + } + } + } + + /** Defines whether partner in question enabled core ingest status service. */ + public var isSupported: Bool? = nil + /** Defines the time in seconds that the service retain information about ingest + status. */ + public var retainingPeriod: Int64? = nil + + + public func setMultiRequestToken(isSupported: String) { + self.dict["isSupported"] = isSupported + } + + public func setMultiRequestToken(retainingPeriod: String) { + self.dict["retainingPeriod"] = retainingPeriod + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["isSupported"] != nil { + isSupported = dict["isSupported"] as? Bool + } + if dict["retainingPeriod"] != nil { + retainingPeriod = Int64("\(dict["retainingPeriod"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(isSupported != nil) { + dict["isSupported"] = isSupported! + } + if(retainingPeriod != nil) { + dict["retainingPeriod"] = retainingPeriod! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IngestStatusEpgListResponse.swift b/KalturaClient/Classes/Model/Objects/IngestStatusEpgListResponse.swift new file mode 100644 index 000000000..f98676191 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestStatusEpgListResponse.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 IngestStatusEpgListResponse: ListResponse { + + public class IngestStatusEpgListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** A list of IngestStatus */ + 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/IngestStatusEpgProgramResultListResponse.swift b/KalturaClient/Classes/Model/Objects/IngestStatusEpgProgramResultListResponse.swift new file mode 100644 index 000000000..9243b99ac --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestStatusEpgProgramResultListResponse.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 IngestStatusEpgProgramResultListResponse: ListResponse { + + public class IngestStatusEpgProgramResultListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** list of KalturaIngestEpgProgramResult */ + 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/IngestStatusPartnerConfiguration.swift b/KalturaClient/Classes/Model/Objects/IngestStatusPartnerConfiguration.swift new file mode 100644 index 000000000..8aefeff5a --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestStatusPartnerConfiguration.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 IngestStatusPartnerConfiguration: ObjectBase { + + public class IngestStatusPartnerConfigurationTokenizer: ObjectBase.ObjectBaseTokenizer { + + public func epg() -> T { + return T(self.append("epg")) + } + + public func vod() -> T { + return T(self.append("vod")) + } + } + + /** Defines the epg configuration of the partner. */ + public var epg: IngestStatusEpgConfiguration? = nil + /** Defines the vod configuration of the partner. */ + public var vod: IngestStatusVodConfiguration? = nil + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["epg"] != nil { + epg = try JSONParser.parse(object: dict["epg"] as! [String: Any]) } + if dict["vod"] != nil { + vod = try JSONParser.parse(object: dict["vod"] as! [String: Any]) } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(epg != nil) { + dict["epg"] = epg!.toDictionary() + } + if(vod != nil) { + dict["vod"] = vod!.toDictionary() + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IngestStatusVodConfiguration.swift b/KalturaClient/Classes/Model/Objects/IngestStatusVodConfiguration.swift new file mode 100644 index 000000000..305431990 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IngestStatusVodConfiguration.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 IngestStatusVodConfiguration: ObjectBase { + + public class IngestStatusVodConfigurationTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var isSupported: BaseTokenizedObject { + get { + return self.append("isSupported") + } + } + + public var retainingPeriod: BaseTokenizedObject { + get { + return self.append("retainingPeriod") + } + } + } + + /** Defines whether partner in question enabled core ingest status service. */ + public var isSupported: Bool? = nil + /** Defines the time in seconds that the service retain information about ingest + status. */ + public var retainingPeriod: Int64? = nil + + + public func setMultiRequestToken(isSupported: String) { + self.dict["isSupported"] = isSupported + } + + public func setMultiRequestToken(retainingPeriod: String) { + self.dict["retainingPeriod"] = retainingPeriod + } + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + // set members values: + if dict["isSupported"] != nil { + isSupported = dict["isSupported"] as? Bool + } + if dict["retainingPeriod"] != nil { + retainingPeriod = Int64("\(dict["retainingPeriod"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(isSupported != nil) { + dict["isSupported"] = isSupported! + } + if(retainingPeriod != nil) { + dict["retainingPeriod"] = retainingPeriod! + } + 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..1ecd36993 --- /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: OTTObjectSupportNullable { + + public class IotTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + 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..5c45e85a3 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IotClientConfiguration.swift @@ -0,0 +1,303 @@ +// =================================================================================================== +// _ __ _ _ +// | |/ /__ _| | |_ _ _ _ _ __ _ +// | ' . +// +// @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 identityPoolId: BaseTokenizedObject { + get { + return self.append("identityPoolId") + } + } + + public var userPoolId: BaseTokenizedObject { + get { + return self.append("userPoolId") + } + } + + public var awsRegion: BaseTokenizedObject { + get { + return self.append("awsRegion") + } + } + + public var appClientId: BaseTokenizedObject { + get { + return self.append("appClientId") + } + } + + public var legacyEndPoint: BaseTokenizedObject { + get { + return self.append("legacyEndPoint") + } + } + + public var endPoint: BaseTokenizedObject { + get { + return self.append("endPoint") + } + } + + public var thingName: BaseTokenizedObject { + get { + return self.append("thingName") + } + } + + public var thingArn: BaseTokenizedObject { + get { + return self.append("thingArn") + } + } + + public var thingId: BaseTokenizedObject { + get { + return self.append("thingId") + } + } + + public var username: BaseTokenizedObject { + get { + return self.append("username") + } + } + + public var password: BaseTokenizedObject { + get { + return self.append("password") + } + } + + public var topics: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("topics")) + } + } + + public var status: BaseTokenizedObject { + get { + return self.append("status") + } + } + + public var message: BaseTokenizedObject { + get { + return self.append("message") + } + } + } + + /** IdentityPoolId */ + public var identityPoolId: String? = nil + /** UserPoolId */ + public var userPoolId: String? = nil + /** AwsRegion */ + public var awsRegion: String? = nil + /** appClientId */ + public var appClientId: String? = nil + /** legacyEndPoint */ + public var legacyEndPoint: String? = nil + /** endPoint */ + public var endPoint: String? = nil + /** thingName */ + public var thingName: String? = nil + /** thingArn */ + public var thingArn: String? = nil + /** thingId */ + public var thingId: String? = nil + /** username */ + public var username: String? = nil + /** password */ + public var password: String? = nil + /** topics */ + public var topics: Array? = nil + /** status */ + public var status: String? = nil + /** message */ + public var message: String? = nil + + + public func setMultiRequestToken(identityPoolId: String) { + self.dict["identityPoolId"] = identityPoolId + } + + public func setMultiRequestToken(userPoolId: String) { + self.dict["userPoolId"] = userPoolId + } + + public func setMultiRequestToken(awsRegion: String) { + self.dict["awsRegion"] = awsRegion + } + + public func setMultiRequestToken(appClientId: String) { + self.dict["appClientId"] = appClientId + } + + public func setMultiRequestToken(legacyEndPoint: String) { + self.dict["legacyEndPoint"] = legacyEndPoint + } + + public func setMultiRequestToken(endPoint: String) { + self.dict["endPoint"] = endPoint + } + + public func setMultiRequestToken(thingName: String) { + self.dict["thingName"] = thingName + } + + public func setMultiRequestToken(thingArn: String) { + self.dict["thingArn"] = thingArn + } + + public func setMultiRequestToken(thingId: String) { + self.dict["thingId"] = thingId + } + + public func setMultiRequestToken(username: String) { + self.dict["username"] = username + } + + public func setMultiRequestToken(password: String) { + self.dict["password"] = password + } + + public func setMultiRequestToken(status: String) { + self.dict["status"] = status + } + + 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["identityPoolId"] != nil { + identityPoolId = dict["identityPoolId"] as? String + } + if dict["userPoolId"] != nil { + userPoolId = dict["userPoolId"] as? String + } + if dict["awsRegion"] != nil { + awsRegion = dict["awsRegion"] as? String + } + if dict["appClientId"] != nil { + appClientId = dict["appClientId"] as? String + } + if dict["legacyEndPoint"] != nil { + legacyEndPoint = dict["legacyEndPoint"] as? String + } + if dict["endPoint"] != nil { + endPoint = dict["endPoint"] as? String + } + if dict["thingName"] != nil { + thingName = dict["thingName"] as? String + } + if dict["thingArn"] != nil { + thingArn = dict["thingArn"] as? String + } + if dict["thingId"] != nil { + thingId = dict["thingId"] as? String + } + if dict["username"] != nil { + username = dict["username"] as? String + } + if dict["password"] != nil { + password = dict["password"] as? String + } + if dict["topics"] != nil { + topics = try JSONParser.parse(array: dict["topics"] as! [Any]) + } + if dict["status"] != nil { + status = dict["status"] as? String + } + if dict["message"] != nil { + message = dict["message"] as? String + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(identityPoolId != nil) { + dict["identityPoolId"] = identityPoolId! + } + if(userPoolId != nil) { + dict["userPoolId"] = userPoolId! + } + if(awsRegion != nil) { + dict["awsRegion"] = awsRegion! + } + if(appClientId != nil) { + dict["appClientId"] = appClientId! + } + if(legacyEndPoint != nil) { + dict["legacyEndPoint"] = legacyEndPoint! + } + if(endPoint != nil) { + dict["endPoint"] = endPoint! + } + if(thingName != nil) { + dict["thingName"] = thingName! + } + if(thingArn != nil) { + dict["thingArn"] = thingArn! + } + if(thingId != nil) { + dict["thingId"] = thingId! + } + if(username != nil) { + dict["username"] = username! + } + if(password != nil) { + dict["password"] = password! + } + if(topics != nil) { + dict["topics"] = topics!.map { value in value.toDictionary() } + } + if(status != nil) { + dict["status"] = status! + } + if(message != nil) { + dict["message"] = message! + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/IotFilter.swift b/KalturaClient/Classes/Model/Objects/IotFilter.swift new file mode 100644 index 000000000..7f0734676 --- /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: Filter { + + public class IotFilterTokenizer: Filter.FilterTokenizer { + } + + + + public override func populate(_ dict: [String: Any]) throws { + try super.populate(dict); + } + +} + diff --git a/KalturaClient/Classes/Model/Objects/IotListResponse.swift b/KalturaClient/Classes/Model/Objects/IotListResponse.swift new file mode 100644 index 000000000..1f7a91b48 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IotListResponse.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 IotListResponse: ListResponse { + + public class IotListResponseTokenizer: 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/IotProfileAws.swift b/KalturaClient/Classes/Model/Objects/IotProfileAws.swift new file mode 100644 index 000000000..1626a81bd --- /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: OTTObjectSupportNullable { + + public class IotProfileAwsTokenizer: OTTObjectSupportNullable.OTTObjectSupportNullableTokenizer { + + 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..d116f732a --- /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: Filter { + + public class IotProfileFilterTokenizer: Filter.FilterTokenizer { + } + + + + 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/IpV6RangeCondition.swift b/KalturaClient/Classes/Model/Objects/IpV6RangeCondition.swift new file mode 100644 index 000000000..a07ba2eb1 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/IpV6RangeCondition.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 V6 range condition */ +open class IpV6RangeCondition: Condition { + + public class IpV6RangeConditionTokenizer: 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/Label.swift b/KalturaClient/Classes/Model/Objects/Label.swift new file mode 100644 index 000000000..1655c6ffc --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/Label.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 Label: ObjectBase { + + public class LabelTokenizer: ObjectBase.ObjectBaseTokenizer { + + public var id: BaseTokenizedObject { + get { + return self.append("id") + } + } + + public var value: BaseTokenizedObject { + get { + return self.append("value") + } + } + + public var entityAttribute: BaseTokenizedObject { + get { + return self.append("entityAttribute") + } + } + } + + /** Label identifier */ + public var id: Int64? = nil + /** Label value. It must be unique in the context of entityAttribute */ + public var value: String? = nil + /** Identifier of entity to which label belongs */ + public var entityAttribute: EntityAttribute? = nil + + + public func setMultiRequestToken(id: String) { + self.dict["id"] = id + } + + public func setMultiRequestToken(value: String) { + self.dict["value"] = value + } + + public func setMultiRequestToken(entityAttribute: String) { + self.dict["entityAttribute"] = entityAttribute + } + + 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["value"] != nil { + value = dict["value"] as? String + } + if dict["entityAttribute"] != nil { + entityAttribute = EntityAttribute(rawValue: "\(dict["entityAttribute"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(value != nil) { + dict["value"] = value! + } + if(entityAttribute != nil) { + dict["entityAttribute"] = entityAttribute!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/LabelFilter.swift b/KalturaClient/Classes/Model/Objects/LabelFilter.swift new file mode 100644 index 000000000..c76d87e55 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/LabelFilter.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 LabelFilter: Filter { + + public class LabelFilterTokenizer: Filter.FilterTokenizer { + + public var idIn: BaseTokenizedObject { + get { + return self.append("idIn") + } + } + + public var labelEqual: BaseTokenizedObject { + get { + return self.append("labelEqual") + } + } + + public var labelStartsWith: BaseTokenizedObject { + get { + return self.append("labelStartsWith") + } + } + + public var entityAttributeEqual: BaseTokenizedObject { + get { + return self.append("entityAttributeEqual") + } + } + } + + /** Comma-separated identifiers of labels */ + public var idIn: String? = nil + /** Filter the label with this value */ + public var labelEqual: String? = nil + /** Filter labels which start with this value */ + public var labelStartsWith: String? = nil + /** Type of entity that labels are associated with */ + public var entityAttributeEqual: EntityAttribute? = nil + + + public func setMultiRequestToken(idIn: String) { + self.dict["idIn"] = idIn + } + + public func setMultiRequestToken(labelEqual: String) { + self.dict["labelEqual"] = labelEqual + } + + public func setMultiRequestToken(labelStartsWith: String) { + self.dict["labelStartsWith"] = labelStartsWith + } + + public func setMultiRequestToken(entityAttributeEqual: String) { + self.dict["entityAttributeEqual"] = entityAttributeEqual + } + + 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["labelEqual"] != nil { + labelEqual = dict["labelEqual"] as? String + } + if dict["labelStartsWith"] != nil { + labelStartsWith = dict["labelStartsWith"] as? String + } + if dict["entityAttributeEqual"] != nil { + entityAttributeEqual = EntityAttribute(rawValue: "\(dict["entityAttributeEqual"]!)") + } + + } + + internal override func toDictionary() -> [String: Any] { + var dict: [String: Any] = super.toDictionary() + if(idIn != nil) { + dict["idIn"] = idIn! + } + if(labelEqual != nil) { + dict["labelEqual"] = labelEqual! + } + if(labelStartsWith != nil) { + dict["labelStartsWith"] = labelStartsWith! + } + if(entityAttributeEqual != nil) { + dict["entityAttributeEqual"] = entityAttributeEqual!.rawValue + } + return dict + } +} + diff --git a/KalturaClient/Classes/Model/Objects/LabelListResponse.swift b/KalturaClient/Classes/Model/Objects/LabelListResponse.swift new file mode 100644 index 000000000..3f65f6608 --- /dev/null +++ b/KalturaClient/Classes/Model/Objects/LabelListResponse.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 LabelListResponse: ListResponse { + + public class LabelListResponseTokenizer: ListResponse.ListResponseTokenizer { + + public var objects: ArrayTokenizedObject { + get { + return ArrayTokenizedObject(self.append("objects")) + } + } + } + + /** List of labels */ + public var objects: Array