diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemBase.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemBase.md index 3d051f559..14c4b4980 100644 --- a/src/Packages/ZkEvmApi/Documentation~/FeedItemBase.md +++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemBase.md @@ -8,9 +8,7 @@ Name | Type | Description | Notes **Name** | **string** | Feed item name | **QuestId** | **string** | Quest ID | **Priority** | **int** | Feed item priority | -**Type** | **string** | Feed item type | **GemsEarnable** | **int** | Amount of gems earnable when user completes the quest | -**Status** | **string** | Feed item status, e.g., enabled, disabled, archived, deleted | **Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional] **DayZero** | **bool** | If the quest is a day0 quest | [optional] **GameId** | **string** | Game ID | [optional] diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemBonusGems.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemBonusGems.md new file mode 100644 index 000000000..1f5bc5654 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemBonusGems.md @@ -0,0 +1,23 @@ +# Immutable.Api.ZkEvm.Model.FeedItemBonusGems + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Feed item ID | +**Name** | **string** | Feed item name | +**QuestId** | **string** | Quest ID | +**Priority** | **int** | Feed item priority | +**GemsEarnable** | **int** | Amount of gems earnable when user completes the quest | +**Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional] +**DayZero** | **bool** | If the quest is a day0 quest | [optional] +**GameId** | **string** | Game ID | [optional] +**GameName** | **string** | Game name | [optional] +**QuestCompletedPopupText** | **string** | Text to display when the quest is completed in an onboarding experience | [optional] +**Tags** | **List<string>** | The tags for the feed item | [optional] +**Categories** | **List<string>** | The categories for the feed item | [optional] +**OnboardingExperience** | **string** | The onboarding experience for the feed item | [optional] +**Type** | **string** | Feed item type | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemCTA.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemCTA.md index c71aaabfb..8dfb98ebf 100644 --- a/src/Packages/ZkEvmApi/Documentation~/FeedItemCTA.md +++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemCTA.md @@ -8,9 +8,7 @@ Name | Type | Description | Notes **Name** | **string** | Feed item name | **QuestId** | **string** | Quest ID | **Priority** | **int** | Feed item priority | -**Type** | **string** | Feed item type | **GemsEarnable** | **int** | Amount of gems earnable when user completes the quest | -**Status** | **string** | Feed item status, e.g., enabled, disabled, archived, deleted | **Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional] **DayZero** | **bool** | If the quest is a day0 quest | [optional] **GameId** | **string** | Game ID | [optional] @@ -19,6 +17,7 @@ Name | Type | Description | Notes **Tags** | **List<string>** | The tags for the feed item | [optional] **Categories** | **List<string>** | The categories for the feed item | [optional] **OnboardingExperience** | **string** | The onboarding experience for the feed item | [optional] +**Type** | **string** | Feed item type | **CtaLabel** | **string** | The label for the CTA button | **CtaDescription** | **string** | The description for the CTA button | **CtaUrl** | **string** | The URL for the CTA button | diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemDailyGems.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemDailyGems.md new file mode 100644 index 000000000..be18a7d91 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemDailyGems.md @@ -0,0 +1,23 @@ +# Immutable.Api.ZkEvm.Model.FeedItemDailyGems + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Feed item ID | +**Name** | **string** | Feed item name | +**QuestId** | **string** | Quest ID | +**Priority** | **int** | Feed item priority | +**GemsEarnable** | **int** | Amount of gems earnable when user completes the quest | +**Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional] +**DayZero** | **bool** | If the quest is a day0 quest | [optional] +**GameId** | **string** | Game ID | [optional] +**GameName** | **string** | Game name | [optional] +**QuestCompletedPopupText** | **string** | Text to display when the quest is completed in an onboarding experience | [optional] +**Tags** | **List<string>** | The tags for the feed item | [optional] +**Categories** | **List<string>** | The categories for the feed item | [optional] +**OnboardingExperience** | **string** | The onboarding experience for the feed item | [optional] +**Type** | **string** | Feed item type | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemLanding.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemLanding.md new file mode 100644 index 000000000..34d794c49 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemLanding.md @@ -0,0 +1,23 @@ +# Immutable.Api.ZkEvm.Model.FeedItemLanding + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Feed item ID | +**Name** | **string** | Feed item name | +**QuestId** | **string** | Quest ID | +**Priority** | **int** | Feed item priority | +**GemsEarnable** | **int** | Amount of gems earnable when user completes the quest | +**Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional] +**DayZero** | **bool** | If the quest is a day0 quest | [optional] +**GameId** | **string** | Game ID | [optional] +**GameName** | **string** | Game name | [optional] +**QuestCompletedPopupText** | **string** | Text to display when the quest is completed in an onboarding experience | [optional] +**Tags** | **List<string>** | The tags for the feed item | [optional] +**Categories** | **List<string>** | The categories for the feed item | [optional] +**OnboardingExperience** | **string** | The onboarding experience for the feed item | [optional] +**Type** | **string** | Feed item type | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemPinToHome.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemPinToHome.md new file mode 100644 index 000000000..a0c329faa --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemPinToHome.md @@ -0,0 +1,23 @@ +# Immutable.Api.ZkEvm.Model.FeedItemPinToHome + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Feed item ID | +**Name** | **string** | Feed item name | +**QuestId** | **string** | Quest ID | +**Priority** | **int** | Feed item priority | +**GemsEarnable** | **int** | Amount of gems earnable when user completes the quest | +**Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional] +**DayZero** | **bool** | If the quest is a day0 quest | [optional] +**GameId** | **string** | Game ID | [optional] +**GameName** | **string** | Game name | [optional] +**QuestCompletedPopupText** | **string** | Text to display when the quest is completed in an onboarding experience | [optional] +**Tags** | **List<string>** | The tags for the feed item | [optional] +**Categories** | **List<string>** | The categories for the feed item | [optional] +**OnboardingExperience** | **string** | The onboarding experience for the feed item | [optional] +**Type** | **string** | Feed item type | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemQuiz.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemQuiz.md index c3b36d6e5..bfc597bf1 100644 --- a/src/Packages/ZkEvmApi/Documentation~/FeedItemQuiz.md +++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemQuiz.md @@ -8,9 +8,7 @@ Name | Type | Description | Notes **Name** | **string** | Feed item name | **QuestId** | **string** | Quest ID | **Priority** | **int** | Feed item priority | -**Type** | **string** | Feed item type | **GemsEarnable** | **int** | Amount of gems earnable when user completes the quest | -**Status** | **string** | Feed item status, e.g., enabled, disabled, archived, deleted | **Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional] **DayZero** | **bool** | If the quest is a day0 quest | [optional] **GameId** | **string** | Game ID | [optional] @@ -19,6 +17,7 @@ Name | Type | Description | Notes **Tags** | **List<string>** | The tags for the feed item | [optional] **Categories** | **List<string>** | The categories for the feed item | [optional] **OnboardingExperience** | **string** | The onboarding experience for the feed item | [optional] +**Type** | **string** | Feed item type | **QuizHeaderVideoUrl** | **string** | URL of the quiz header video | [optional] **QuizLogo** | **string** | URL of the quiz logo | [optional] **QuizQuestion** | **string** | The quiz question | diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemReferral.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemReferral.md new file mode 100644 index 000000000..ab94c80b3 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemReferral.md @@ -0,0 +1,23 @@ +# Immutable.Api.ZkEvm.Model.FeedItemReferral + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Feed item ID | +**Name** | **string** | Feed item name | +**QuestId** | **string** | Quest ID | +**Priority** | **int** | Feed item priority | +**GemsEarnable** | **int** | Amount of gems earnable when user completes the quest | +**Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional] +**DayZero** | **bool** | If the quest is a day0 quest | [optional] +**GameId** | **string** | Game ID | [optional] +**GameName** | **string** | Game name | [optional] +**QuestCompletedPopupText** | **string** | Text to display when the quest is completed in an onboarding experience | [optional] +**Tags** | **List<string>** | The tags for the feed item | [optional] +**Categories** | **List<string>** | The categories for the feed item | [optional] +**OnboardingExperience** | **string** | The onboarding experience for the feed item | [optional] +**Type** | **string** | Feed item type | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemReward.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemReward.md new file mode 100644 index 000000000..40a8b2466 --- /dev/null +++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemReward.md @@ -0,0 +1,29 @@ +# Immutable.Api.ZkEvm.Model.FeedItemReward + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | Feed item ID | +**Name** | **string** | Feed item name | +**QuestId** | **string** | Quest ID | +**Priority** | **int** | Feed item priority | +**GemsEarnable** | **int** | Amount of gems earnable when user completes the quest | +**Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional] +**DayZero** | **bool** | If the quest is a day0 quest | [optional] +**GameId** | **string** | Game ID | [optional] +**GameName** | **string** | Game name | [optional] +**QuestCompletedPopupText** | **string** | Text to display when the quest is completed in an onboarding experience | [optional] +**Tags** | **List<string>** | The tags for the feed item | [optional] +**Categories** | **List<string>** | The categories for the feed item | [optional] +**OnboardingExperience** | **string** | The onboarding experience for the feed item | [optional] +**Type** | **string** | Feed item type | +**CtaLabel** | **string** | The label for the CTA button | +**CtaDescription** | **string** | The description for the CTA button | +**CtaUrl** | **string** | The URL for the CTA button | +**CtaImage** | **string** | The image for the CTA background | +**SignInRedirectUrl** | **string** | The URL to redirect to when the user completes the sign in quest | +**SignInBackground** | **string** | The background for the sign in quest | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemSignIn.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemSignIn.md index 58fbd9243..c23e2e45a 100644 --- a/src/Packages/ZkEvmApi/Documentation~/FeedItemSignIn.md +++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemSignIn.md @@ -8,9 +8,7 @@ Name | Type | Description | Notes **Name** | **string** | Feed item name | **QuestId** | **string** | Quest ID | **Priority** | **int** | Feed item priority | -**Type** | **string** | Feed item type | **GemsEarnable** | **int** | Amount of gems earnable when user completes the quest | -**Status** | **string** | Feed item status, e.g., enabled, disabled, archived, deleted | **Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional] **DayZero** | **bool** | If the quest is a day0 quest | [optional] **GameId** | **string** | Game ID | [optional] @@ -19,6 +17,7 @@ Name | Type | Description | Notes **Tags** | **List<string>** | The tags for the feed item | [optional] **Categories** | **List<string>** | The categories for the feed item | [optional] **OnboardingExperience** | **string** | The onboarding experience for the feed item | [optional] +**Type** | **string** | Feed item type | **CtaLabel** | **string** | The label for the CTA button | **CtaDescription** | **string** | The description for the CTA button | **CtaUrl** | **string** | The URL for the CTA button | diff --git a/src/Packages/ZkEvmApi/Documentation~/FeedItemVideo.md b/src/Packages/ZkEvmApi/Documentation~/FeedItemVideo.md index 49a8ec137..7cc525b5f 100644 --- a/src/Packages/ZkEvmApi/Documentation~/FeedItemVideo.md +++ b/src/Packages/ZkEvmApi/Documentation~/FeedItemVideo.md @@ -8,9 +8,7 @@ Name | Type | Description | Notes **Name** | **string** | Feed item name | **QuestId** | **string** | Quest ID | **Priority** | **int** | Feed item priority | -**Type** | **string** | Feed item type | **GemsEarnable** | **int** | Amount of gems earnable when user completes the quest | -**Status** | **string** | Feed item status, e.g., enabled, disabled, archived, deleted | **Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional] **DayZero** | **bool** | If the quest is a day0 quest | [optional] **GameId** | **string** | Game ID | [optional] @@ -19,6 +17,7 @@ Name | Type | Description | Notes **Tags** | **List<string>** | The tags for the feed item | [optional] **Categories** | **List<string>** | The categories for the feed item | [optional] **OnboardingExperience** | **string** | The onboarding experience for the feed item | [optional] +**Type** | **string** | Feed item type | **VideoTitle** | **string** | Title of the video | **VideoUrl** | **string** | URL of the video | diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemBase.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemBase.cs index 446f5d8e8..09741f7aa 100644 --- a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemBase.cs +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemBase.cs @@ -43,9 +43,7 @@ protected FeedItemBase() { } /// Feed item name (required). /// Quest ID (required). /// Feed item priority (required). - /// Feed item type (required). /// Amount of gems earnable when user completes the quest (required). - /// Feed item status, e.g., enabled, disabled, archived, deleted (required). /// If the quest is bypassed, the user will not be able to see it on the feed. /// If the quest is a day0 quest. /// Game ID. @@ -54,7 +52,7 @@ protected FeedItemBase() { } /// The tags for the feed item. /// The categories for the feed item. /// The onboarding experience for the feed item. - public FeedItemBase(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), string type = default(string), int gemsEarnable = default(int), string status = default(string), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string)) + public FeedItemBase(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string)) { // to ensure "id" is required (not null) if (id == null) @@ -75,19 +73,7 @@ protected FeedItemBase() { } } this.QuestId = questId; this.Priority = priority; - // to ensure "type" is required (not null) - if (type == null) - { - throw new ArgumentNullException("type is a required property for FeedItemBase and cannot be null"); - } - this.Type = type; this.GemsEarnable = gemsEarnable; - // to ensure "status" is required (not null) - if (status == null) - { - throw new ArgumentNullException("status is a required property for FeedItemBase and cannot be null"); - } - this.Status = status; this.Bypass = bypass; this.DayZero = dayZero; this.GameId = gameId; @@ -126,13 +112,6 @@ protected FeedItemBase() { } [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] public int Priority { get; set; } - /// - /// Feed item type - /// - /// Feed item type - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public string Type { get; set; } - /// /// Amount of gems earnable when user completes the quest /// @@ -140,13 +119,6 @@ protected FeedItemBase() { } [DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)] public int GemsEarnable { get; set; } - /// - /// Feed item status, e.g., enabled, disabled, archived, deleted - /// - /// Feed item status, e.g., enabled, disabled, archived, deleted - [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] - public string Status { get; set; } - /// /// If the quest is bypassed, the user will not be able to see it on the feed /// @@ -215,9 +187,7 @@ public override string ToString() sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" QuestId: ").Append(QuestId).Append("\n"); sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" Bypass: ").Append(Bypass).Append("\n"); sb.Append(" DayZero: ").Append(DayZero).Append("\n"); sb.Append(" GameId: ").Append(GameId).Append("\n"); diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemBonusGems.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemBonusGems.cs new file mode 100644 index 000000000..40cab1c3e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemBonusGems.cs @@ -0,0 +1,238 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// FeedItemBonusGems + /// + [DataContract(Name = "FeedItemBonusGems")] + public partial class FeedItemBonusGems + { + /// + /// Feed item type + /// + /// Feed item type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum Bonusgems for value: bonusgems + /// + [EnumMember(Value = "bonusgems")] + Bonusgems = 1 + } + + + /// + /// Feed item type + /// + /// Feed item type + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FeedItemBonusGems() { } + /// + /// Initializes a new instance of the class. + /// + /// Feed item ID (required). + /// Feed item name (required). + /// Quest ID (required). + /// Feed item priority (required). + /// Amount of gems earnable when user completes the quest (required). + /// If the quest is bypassed, the user will not be able to see it on the feed. + /// If the quest is a day0 quest. + /// Game ID. + /// Game name. + /// Text to display when the quest is completed in an onboarding experience. + /// The tags for the feed item. + /// The categories for the feed item. + /// The onboarding experience for the feed item. + /// Feed item type (required). + public FeedItemBonusGems(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), TypeEnum type = default(TypeEnum)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for FeedItemBonusGems and cannot be null"); + } + this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for FeedItemBonusGems and cannot be null"); + } + this.Name = name; + // to ensure "questId" is required (not null) + if (questId == null) + { + throw new ArgumentNullException("questId is a required property for FeedItemBonusGems and cannot be null"); + } + this.QuestId = questId; + this.Priority = priority; + this.GemsEarnable = gemsEarnable; + this.Type = type; + this.Bypass = bypass; + this.DayZero = dayZero; + this.GameId = gameId; + this.GameName = gameName; + this.QuestCompletedPopupText = questCompletedPopupText; + this.Tags = tags; + this.Categories = categories; + this.OnboardingExperience = onboardingExperience; + } + + /// + /// Feed item ID + /// + /// Feed item ID + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Feed item name + /// + /// Feed item name + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Quest ID + /// + /// Quest ID + [DataMember(Name = "quest_id", IsRequired = true, EmitDefaultValue = true)] + public string QuestId { get; set; } + + /// + /// Feed item priority + /// + /// Feed item priority + [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] + public int Priority { get; set; } + + /// + /// Amount of gems earnable when user completes the quest + /// + /// Amount of gems earnable when user completes the quest + [DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)] + public int GemsEarnable { get; set; } + + /// + /// If the quest is bypassed, the user will not be able to see it on the feed + /// + /// If the quest is bypassed, the user will not be able to see it on the feed + [DataMember(Name = "bypass", EmitDefaultValue = true)] + public bool Bypass { get; set; } + + /// + /// If the quest is a day0 quest + /// + /// If the quest is a day0 quest + [DataMember(Name = "day_zero", EmitDefaultValue = true)] + public bool DayZero { get; set; } + + /// + /// Game ID + /// + /// Game ID + [DataMember(Name = "game_id", EmitDefaultValue = false)] + public string GameId { get; set; } + + /// + /// Game name + /// + /// Game name + [DataMember(Name = "game_name", EmitDefaultValue = false)] + public string GameName { get; set; } + + /// + /// Text to display when the quest is completed in an onboarding experience + /// + /// Text to display when the quest is completed in an onboarding experience + [DataMember(Name = "quest_completed_popup_text", EmitDefaultValue = false)] + public string QuestCompletedPopupText { get; set; } + + /// + /// The tags for the feed item + /// + /// The tags for the feed item + [DataMember(Name = "tags", EmitDefaultValue = false)] + public List Tags { get; set; } + + /// + /// The categories for the feed item + /// + /// The categories for the feed item + [DataMember(Name = "categories", EmitDefaultValue = false)] + public List Categories { get; set; } + + /// + /// The onboarding experience for the feed item + /// + /// The onboarding experience for the feed item + [DataMember(Name = "onboarding_experience", EmitDefaultValue = false)] + public string OnboardingExperience { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FeedItemBonusGems {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" QuestId: ").Append(QuestId).Append("\n"); + sb.Append(" Priority: ").Append(Priority).Append("\n"); + sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n"); + sb.Append(" Bypass: ").Append(Bypass).Append("\n"); + sb.Append(" DayZero: ").Append(DayZero).Append("\n"); + sb.Append(" GameId: ").Append(GameId).Append("\n"); + sb.Append(" GameName: ").Append(GameName).Append("\n"); + sb.Append(" QuestCompletedPopupText: ").Append(QuestCompletedPopupText).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Categories: ").Append(Categories).Append("\n"); + sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemBonusGems.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemBonusGems.cs.meta new file mode 100644 index 000000000..c7d26589e --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemBonusGems.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ab5c36c706d950d42a168a45291102e2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemCTA.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemCTA.cs index 6f465db62..568b2c464 100644 --- a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemCTA.cs +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemCTA.cs @@ -31,6 +31,27 @@ namespace Immutable.Api.ZkEvm.Model [DataContract(Name = "FeedItemCTA")] public partial class FeedItemCTA { + /// + /// Feed item type + /// + /// Feed item type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum Cta for value: cta + /// + [EnumMember(Value = "cta")] + Cta = 1 + } + + + /// + /// Feed item type + /// + /// Feed item type + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } /// /// Initializes a new instance of the class. /// @@ -43,9 +64,7 @@ protected FeedItemCTA() { } /// Feed item name (required). /// Quest ID (required). /// Feed item priority (required). - /// Feed item type (required). /// Amount of gems earnable when user completes the quest (required). - /// Feed item status, e.g., enabled, disabled, archived, deleted (required). /// If the quest is bypassed, the user will not be able to see it on the feed. /// If the quest is a day0 quest. /// Game ID. @@ -54,11 +73,12 @@ protected FeedItemCTA() { } /// The tags for the feed item. /// The categories for the feed item. /// The onboarding experience for the feed item. + /// Feed item type (required). /// The label for the CTA button (required). /// The description for the CTA button (required). /// The URL for the CTA button (required). /// The image for the CTA background (required). - public FeedItemCTA(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), string type = default(string), int gemsEarnable = default(int), string status = default(string), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), string ctaLabel = default(string), string ctaDescription = default(string), string ctaUrl = default(string), string ctaImage = default(string)) + public FeedItemCTA(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), TypeEnum type = default(TypeEnum), string ctaLabel = default(string), string ctaDescription = default(string), string ctaUrl = default(string), string ctaImage = default(string)) { // to ensure "id" is required (not null) if (id == null) @@ -79,19 +99,8 @@ protected FeedItemCTA() { } } this.QuestId = questId; this.Priority = priority; - // to ensure "type" is required (not null) - if (type == null) - { - throw new ArgumentNullException("type is a required property for FeedItemCTA and cannot be null"); - } - this.Type = type; this.GemsEarnable = gemsEarnable; - // to ensure "status" is required (not null) - if (status == null) - { - throw new ArgumentNullException("status is a required property for FeedItemCTA and cannot be null"); - } - this.Status = status; + this.Type = type; // to ensure "ctaLabel" is required (not null) if (ctaLabel == null) { @@ -154,13 +163,6 @@ protected FeedItemCTA() { } [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] public int Priority { get; set; } - /// - /// Feed item type - /// - /// Feed item type - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public string Type { get; set; } - /// /// Amount of gems earnable when user completes the quest /// @@ -168,13 +170,6 @@ protected FeedItemCTA() { } [DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)] public int GemsEarnable { get; set; } - /// - /// Feed item status, e.g., enabled, disabled, archived, deleted - /// - /// Feed item status, e.g., enabled, disabled, archived, deleted - [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] - public string Status { get; set; } - /// /// If the quest is bypassed, the user will not be able to see it on the feed /// @@ -271,9 +266,7 @@ public override string ToString() sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" QuestId: ").Append(QuestId).Append("\n"); sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" Bypass: ").Append(Bypass).Append("\n"); sb.Append(" DayZero: ").Append(DayZero).Append("\n"); sb.Append(" GameId: ").Append(GameId).Append("\n"); @@ -282,6 +275,7 @@ public override string ToString() sb.Append(" Tags: ").Append(Tags).Append("\n"); sb.Append(" Categories: ").Append(Categories).Append("\n"); sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" CtaLabel: ").Append(CtaLabel).Append("\n"); sb.Append(" CtaDescription: ").Append(CtaDescription).Append("\n"); sb.Append(" CtaUrl: ").Append(CtaUrl).Append("\n"); diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemDailyGems.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemDailyGems.cs new file mode 100644 index 000000000..e4f70cfa1 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemDailyGems.cs @@ -0,0 +1,238 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// FeedItemDailyGems + /// + [DataContract(Name = "FeedItemDailyGems")] + public partial class FeedItemDailyGems + { + /// + /// Feed item type + /// + /// Feed item type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum Dailygems for value: dailygems + /// + [EnumMember(Value = "dailygems")] + Dailygems = 1 + } + + + /// + /// Feed item type + /// + /// Feed item type + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FeedItemDailyGems() { } + /// + /// Initializes a new instance of the class. + /// + /// Feed item ID (required). + /// Feed item name (required). + /// Quest ID (required). + /// Feed item priority (required). + /// Amount of gems earnable when user completes the quest (required). + /// If the quest is bypassed, the user will not be able to see it on the feed. + /// If the quest is a day0 quest. + /// Game ID. + /// Game name. + /// Text to display when the quest is completed in an onboarding experience. + /// The tags for the feed item. + /// The categories for the feed item. + /// The onboarding experience for the feed item. + /// Feed item type (required). + public FeedItemDailyGems(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), TypeEnum type = default(TypeEnum)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for FeedItemDailyGems and cannot be null"); + } + this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for FeedItemDailyGems and cannot be null"); + } + this.Name = name; + // to ensure "questId" is required (not null) + if (questId == null) + { + throw new ArgumentNullException("questId is a required property for FeedItemDailyGems and cannot be null"); + } + this.QuestId = questId; + this.Priority = priority; + this.GemsEarnable = gemsEarnable; + this.Type = type; + this.Bypass = bypass; + this.DayZero = dayZero; + this.GameId = gameId; + this.GameName = gameName; + this.QuestCompletedPopupText = questCompletedPopupText; + this.Tags = tags; + this.Categories = categories; + this.OnboardingExperience = onboardingExperience; + } + + /// + /// Feed item ID + /// + /// Feed item ID + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Feed item name + /// + /// Feed item name + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Quest ID + /// + /// Quest ID + [DataMember(Name = "quest_id", IsRequired = true, EmitDefaultValue = true)] + public string QuestId { get; set; } + + /// + /// Feed item priority + /// + /// Feed item priority + [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] + public int Priority { get; set; } + + /// + /// Amount of gems earnable when user completes the quest + /// + /// Amount of gems earnable when user completes the quest + [DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)] + public int GemsEarnable { get; set; } + + /// + /// If the quest is bypassed, the user will not be able to see it on the feed + /// + /// If the quest is bypassed, the user will not be able to see it on the feed + [DataMember(Name = "bypass", EmitDefaultValue = true)] + public bool Bypass { get; set; } + + /// + /// If the quest is a day0 quest + /// + /// If the quest is a day0 quest + [DataMember(Name = "day_zero", EmitDefaultValue = true)] + public bool DayZero { get; set; } + + /// + /// Game ID + /// + /// Game ID + [DataMember(Name = "game_id", EmitDefaultValue = false)] + public string GameId { get; set; } + + /// + /// Game name + /// + /// Game name + [DataMember(Name = "game_name", EmitDefaultValue = false)] + public string GameName { get; set; } + + /// + /// Text to display when the quest is completed in an onboarding experience + /// + /// Text to display when the quest is completed in an onboarding experience + [DataMember(Name = "quest_completed_popup_text", EmitDefaultValue = false)] + public string QuestCompletedPopupText { get; set; } + + /// + /// The tags for the feed item + /// + /// The tags for the feed item + [DataMember(Name = "tags", EmitDefaultValue = false)] + public List Tags { get; set; } + + /// + /// The categories for the feed item + /// + /// The categories for the feed item + [DataMember(Name = "categories", EmitDefaultValue = false)] + public List Categories { get; set; } + + /// + /// The onboarding experience for the feed item + /// + /// The onboarding experience for the feed item + [DataMember(Name = "onboarding_experience", EmitDefaultValue = false)] + public string OnboardingExperience { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FeedItemDailyGems {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" QuestId: ").Append(QuestId).Append("\n"); + sb.Append(" Priority: ").Append(Priority).Append("\n"); + sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n"); + sb.Append(" Bypass: ").Append(Bypass).Append("\n"); + sb.Append(" DayZero: ").Append(DayZero).Append("\n"); + sb.Append(" GameId: ").Append(GameId).Append("\n"); + sb.Append(" GameName: ").Append(GameName).Append("\n"); + sb.Append(" QuestCompletedPopupText: ").Append(QuestCompletedPopupText).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Categories: ").Append(Categories).Append("\n"); + sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemDailyGems.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemDailyGems.cs.meta new file mode 100644 index 000000000..07edce814 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemDailyGems.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9ff4c0c4585338d26a0e53a333ac7b41 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemLanding.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemLanding.cs new file mode 100644 index 000000000..fac13014f --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemLanding.cs @@ -0,0 +1,238 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// FeedItemLanding + /// + [DataContract(Name = "FeedItemLanding")] + public partial class FeedItemLanding + { + /// + /// Feed item type + /// + /// Feed item type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum Landing for value: landing + /// + [EnumMember(Value = "landing")] + Landing = 1 + } + + + /// + /// Feed item type + /// + /// Feed item type + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FeedItemLanding() { } + /// + /// Initializes a new instance of the class. + /// + /// Feed item ID (required). + /// Feed item name (required). + /// Quest ID (required). + /// Feed item priority (required). + /// Amount of gems earnable when user completes the quest (required). + /// If the quest is bypassed, the user will not be able to see it on the feed. + /// If the quest is a day0 quest. + /// Game ID. + /// Game name. + /// Text to display when the quest is completed in an onboarding experience. + /// The tags for the feed item. + /// The categories for the feed item. + /// The onboarding experience for the feed item. + /// Feed item type (required). + public FeedItemLanding(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), TypeEnum type = default(TypeEnum)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for FeedItemLanding and cannot be null"); + } + this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for FeedItemLanding and cannot be null"); + } + this.Name = name; + // to ensure "questId" is required (not null) + if (questId == null) + { + throw new ArgumentNullException("questId is a required property for FeedItemLanding and cannot be null"); + } + this.QuestId = questId; + this.Priority = priority; + this.GemsEarnable = gemsEarnable; + this.Type = type; + this.Bypass = bypass; + this.DayZero = dayZero; + this.GameId = gameId; + this.GameName = gameName; + this.QuestCompletedPopupText = questCompletedPopupText; + this.Tags = tags; + this.Categories = categories; + this.OnboardingExperience = onboardingExperience; + } + + /// + /// Feed item ID + /// + /// Feed item ID + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Feed item name + /// + /// Feed item name + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Quest ID + /// + /// Quest ID + [DataMember(Name = "quest_id", IsRequired = true, EmitDefaultValue = true)] + public string QuestId { get; set; } + + /// + /// Feed item priority + /// + /// Feed item priority + [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] + public int Priority { get; set; } + + /// + /// Amount of gems earnable when user completes the quest + /// + /// Amount of gems earnable when user completes the quest + [DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)] + public int GemsEarnable { get; set; } + + /// + /// If the quest is bypassed, the user will not be able to see it on the feed + /// + /// If the quest is bypassed, the user will not be able to see it on the feed + [DataMember(Name = "bypass", EmitDefaultValue = true)] + public bool Bypass { get; set; } + + /// + /// If the quest is a day0 quest + /// + /// If the quest is a day0 quest + [DataMember(Name = "day_zero", EmitDefaultValue = true)] + public bool DayZero { get; set; } + + /// + /// Game ID + /// + /// Game ID + [DataMember(Name = "game_id", EmitDefaultValue = false)] + public string GameId { get; set; } + + /// + /// Game name + /// + /// Game name + [DataMember(Name = "game_name", EmitDefaultValue = false)] + public string GameName { get; set; } + + /// + /// Text to display when the quest is completed in an onboarding experience + /// + /// Text to display when the quest is completed in an onboarding experience + [DataMember(Name = "quest_completed_popup_text", EmitDefaultValue = false)] + public string QuestCompletedPopupText { get; set; } + + /// + /// The tags for the feed item + /// + /// The tags for the feed item + [DataMember(Name = "tags", EmitDefaultValue = false)] + public List Tags { get; set; } + + /// + /// The categories for the feed item + /// + /// The categories for the feed item + [DataMember(Name = "categories", EmitDefaultValue = false)] + public List Categories { get; set; } + + /// + /// The onboarding experience for the feed item + /// + /// The onboarding experience for the feed item + [DataMember(Name = "onboarding_experience", EmitDefaultValue = false)] + public string OnboardingExperience { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FeedItemLanding {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" QuestId: ").Append(QuestId).Append("\n"); + sb.Append(" Priority: ").Append(Priority).Append("\n"); + sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n"); + sb.Append(" Bypass: ").Append(Bypass).Append("\n"); + sb.Append(" DayZero: ").Append(DayZero).Append("\n"); + sb.Append(" GameId: ").Append(GameId).Append("\n"); + sb.Append(" GameName: ").Append(GameName).Append("\n"); + sb.Append(" QuestCompletedPopupText: ").Append(QuestCompletedPopupText).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Categories: ").Append(Categories).Append("\n"); + sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemLanding.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemLanding.cs.meta new file mode 100644 index 000000000..f04b224e7 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemLanding.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bdc3aea3e1901fe06bee25b9d794e113 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemPinToHome.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemPinToHome.cs new file mode 100644 index 000000000..d09084bd0 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemPinToHome.cs @@ -0,0 +1,238 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// FeedItemPinToHome + /// + [DataContract(Name = "FeedItemPinToHome")] + public partial class FeedItemPinToHome + { + /// + /// Feed item type + /// + /// Feed item type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum Pintohome for value: pintohome + /// + [EnumMember(Value = "pintohome")] + Pintohome = 1 + } + + + /// + /// Feed item type + /// + /// Feed item type + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FeedItemPinToHome() { } + /// + /// Initializes a new instance of the class. + /// + /// Feed item ID (required). + /// Feed item name (required). + /// Quest ID (required). + /// Feed item priority (required). + /// Amount of gems earnable when user completes the quest (required). + /// If the quest is bypassed, the user will not be able to see it on the feed. + /// If the quest is a day0 quest. + /// Game ID. + /// Game name. + /// Text to display when the quest is completed in an onboarding experience. + /// The tags for the feed item. + /// The categories for the feed item. + /// The onboarding experience for the feed item. + /// Feed item type (required). + public FeedItemPinToHome(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), TypeEnum type = default(TypeEnum)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for FeedItemPinToHome and cannot be null"); + } + this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for FeedItemPinToHome and cannot be null"); + } + this.Name = name; + // to ensure "questId" is required (not null) + if (questId == null) + { + throw new ArgumentNullException("questId is a required property for FeedItemPinToHome and cannot be null"); + } + this.QuestId = questId; + this.Priority = priority; + this.GemsEarnable = gemsEarnable; + this.Type = type; + this.Bypass = bypass; + this.DayZero = dayZero; + this.GameId = gameId; + this.GameName = gameName; + this.QuestCompletedPopupText = questCompletedPopupText; + this.Tags = tags; + this.Categories = categories; + this.OnboardingExperience = onboardingExperience; + } + + /// + /// Feed item ID + /// + /// Feed item ID + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Feed item name + /// + /// Feed item name + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Quest ID + /// + /// Quest ID + [DataMember(Name = "quest_id", IsRequired = true, EmitDefaultValue = true)] + public string QuestId { get; set; } + + /// + /// Feed item priority + /// + /// Feed item priority + [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] + public int Priority { get; set; } + + /// + /// Amount of gems earnable when user completes the quest + /// + /// Amount of gems earnable when user completes the quest + [DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)] + public int GemsEarnable { get; set; } + + /// + /// If the quest is bypassed, the user will not be able to see it on the feed + /// + /// If the quest is bypassed, the user will not be able to see it on the feed + [DataMember(Name = "bypass", EmitDefaultValue = true)] + public bool Bypass { get; set; } + + /// + /// If the quest is a day0 quest + /// + /// If the quest is a day0 quest + [DataMember(Name = "day_zero", EmitDefaultValue = true)] + public bool DayZero { get; set; } + + /// + /// Game ID + /// + /// Game ID + [DataMember(Name = "game_id", EmitDefaultValue = false)] + public string GameId { get; set; } + + /// + /// Game name + /// + /// Game name + [DataMember(Name = "game_name", EmitDefaultValue = false)] + public string GameName { get; set; } + + /// + /// Text to display when the quest is completed in an onboarding experience + /// + /// Text to display when the quest is completed in an onboarding experience + [DataMember(Name = "quest_completed_popup_text", EmitDefaultValue = false)] + public string QuestCompletedPopupText { get; set; } + + /// + /// The tags for the feed item + /// + /// The tags for the feed item + [DataMember(Name = "tags", EmitDefaultValue = false)] + public List Tags { get; set; } + + /// + /// The categories for the feed item + /// + /// The categories for the feed item + [DataMember(Name = "categories", EmitDefaultValue = false)] + public List Categories { get; set; } + + /// + /// The onboarding experience for the feed item + /// + /// The onboarding experience for the feed item + [DataMember(Name = "onboarding_experience", EmitDefaultValue = false)] + public string OnboardingExperience { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FeedItemPinToHome {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" QuestId: ").Append(QuestId).Append("\n"); + sb.Append(" Priority: ").Append(Priority).Append("\n"); + sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n"); + sb.Append(" Bypass: ").Append(Bypass).Append("\n"); + sb.Append(" DayZero: ").Append(DayZero).Append("\n"); + sb.Append(" GameId: ").Append(GameId).Append("\n"); + sb.Append(" GameName: ").Append(GameName).Append("\n"); + sb.Append(" QuestCompletedPopupText: ").Append(QuestCompletedPopupText).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Categories: ").Append(Categories).Append("\n"); + sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemPinToHome.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemPinToHome.cs.meta new file mode 100644 index 000000000..b3163b679 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemPinToHome.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 167a97a59cce64cd9a88b60d8b66df31 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemQuiz.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemQuiz.cs index 29628d84c..d2c8c5fb6 100644 --- a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemQuiz.cs +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemQuiz.cs @@ -31,6 +31,27 @@ namespace Immutable.Api.ZkEvm.Model [DataContract(Name = "FeedItemQuiz")] public partial class FeedItemQuiz { + /// + /// Feed item type + /// + /// Feed item type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum Quiz for value: quiz + /// + [EnumMember(Value = "quiz")] + Quiz = 1 + } + + + /// + /// Feed item type + /// + /// Feed item type + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } /// /// Initializes a new instance of the class. /// @@ -43,9 +64,7 @@ protected FeedItemQuiz() { } /// Feed item name (required). /// Quest ID (required). /// Feed item priority (required). - /// Feed item type (required). /// Amount of gems earnable when user completes the quest (required). - /// Feed item status, e.g., enabled, disabled, archived, deleted (required). /// If the quest is bypassed, the user will not be able to see it on the feed. /// If the quest is a day0 quest. /// Game ID. @@ -54,6 +73,7 @@ protected FeedItemQuiz() { } /// The tags for the feed item. /// The categories for the feed item. /// The onboarding experience for the feed item. + /// Feed item type (required). /// URL of the quiz header video. /// URL of the quiz logo. /// The quiz question (required). @@ -62,7 +82,7 @@ protected FeedItemQuiz() { } /// The text to display when the user answers the quiz correctly. /// The initial image for the quiz header. /// The image to display when the user answers the quiz correctly. - public FeedItemQuiz(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), string type = default(string), int gemsEarnable = default(int), string status = default(string), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), string quizHeaderVideoUrl = default(string), string quizLogo = default(string), string quizQuestion = default(string), List quizAnswers = default(List), List quizCorrectAnswers = default(List), string quizCorrectAnswerText = default(string), string quizHeaderInitialImage = default(string), string quizHeaderAnsweredImage = default(string)) + public FeedItemQuiz(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), TypeEnum type = default(TypeEnum), string quizHeaderVideoUrl = default(string), string quizLogo = default(string), string quizQuestion = default(string), List quizAnswers = default(List), List quizCorrectAnswers = default(List), string quizCorrectAnswerText = default(string), string quizHeaderInitialImage = default(string), string quizHeaderAnsweredImage = default(string)) { // to ensure "id" is required (not null) if (id == null) @@ -83,19 +103,8 @@ protected FeedItemQuiz() { } } this.QuestId = questId; this.Priority = priority; - // to ensure "type" is required (not null) - if (type == null) - { - throw new ArgumentNullException("type is a required property for FeedItemQuiz and cannot be null"); - } - this.Type = type; this.GemsEarnable = gemsEarnable; - // to ensure "status" is required (not null) - if (status == null) - { - throw new ArgumentNullException("status is a required property for FeedItemQuiz and cannot be null"); - } - this.Status = status; + this.Type = type; // to ensure "quizQuestion" is required (not null) if (quizQuestion == null) { @@ -157,13 +166,6 @@ protected FeedItemQuiz() { } [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] public int Priority { get; set; } - /// - /// Feed item type - /// - /// Feed item type - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public string Type { get; set; } - /// /// Amount of gems earnable when user completes the quest /// @@ -171,13 +173,6 @@ protected FeedItemQuiz() { } [DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)] public int GemsEarnable { get; set; } - /// - /// Feed item status, e.g., enabled, disabled, archived, deleted - /// - /// Feed item status, e.g., enabled, disabled, archived, deleted - [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] - public string Status { get; set; } - /// /// If the quest is bypassed, the user will not be able to see it on the feed /// @@ -302,9 +297,7 @@ public override string ToString() sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" QuestId: ").Append(QuestId).Append("\n"); sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" Bypass: ").Append(Bypass).Append("\n"); sb.Append(" DayZero: ").Append(DayZero).Append("\n"); sb.Append(" GameId: ").Append(GameId).Append("\n"); @@ -313,6 +306,7 @@ public override string ToString() sb.Append(" Tags: ").Append(Tags).Append("\n"); sb.Append(" Categories: ").Append(Categories).Append("\n"); sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" QuizHeaderVideoUrl: ").Append(QuizHeaderVideoUrl).Append("\n"); sb.Append(" QuizLogo: ").Append(QuizLogo).Append("\n"); sb.Append(" QuizQuestion: ").Append(QuizQuestion).Append("\n"); diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemReferral.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemReferral.cs new file mode 100644 index 000000000..2830795d4 --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemReferral.cs @@ -0,0 +1,238 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// FeedItemReferral + /// + [DataContract(Name = "FeedItemReferral")] + public partial class FeedItemReferral + { + /// + /// Feed item type + /// + /// Feed item type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum Referral for value: referral + /// + [EnumMember(Value = "referral")] + Referral = 1 + } + + + /// + /// Feed item type + /// + /// Feed item type + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FeedItemReferral() { } + /// + /// Initializes a new instance of the class. + /// + /// Feed item ID (required). + /// Feed item name (required). + /// Quest ID (required). + /// Feed item priority (required). + /// Amount of gems earnable when user completes the quest (required). + /// If the quest is bypassed, the user will not be able to see it on the feed. + /// If the quest is a day0 quest. + /// Game ID. + /// Game name. + /// Text to display when the quest is completed in an onboarding experience. + /// The tags for the feed item. + /// The categories for the feed item. + /// The onboarding experience for the feed item. + /// Feed item type (required). + public FeedItemReferral(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), TypeEnum type = default(TypeEnum)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for FeedItemReferral and cannot be null"); + } + this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for FeedItemReferral and cannot be null"); + } + this.Name = name; + // to ensure "questId" is required (not null) + if (questId == null) + { + throw new ArgumentNullException("questId is a required property for FeedItemReferral and cannot be null"); + } + this.QuestId = questId; + this.Priority = priority; + this.GemsEarnable = gemsEarnable; + this.Type = type; + this.Bypass = bypass; + this.DayZero = dayZero; + this.GameId = gameId; + this.GameName = gameName; + this.QuestCompletedPopupText = questCompletedPopupText; + this.Tags = tags; + this.Categories = categories; + this.OnboardingExperience = onboardingExperience; + } + + /// + /// Feed item ID + /// + /// Feed item ID + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Feed item name + /// + /// Feed item name + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Quest ID + /// + /// Quest ID + [DataMember(Name = "quest_id", IsRequired = true, EmitDefaultValue = true)] + public string QuestId { get; set; } + + /// + /// Feed item priority + /// + /// Feed item priority + [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] + public int Priority { get; set; } + + /// + /// Amount of gems earnable when user completes the quest + /// + /// Amount of gems earnable when user completes the quest + [DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)] + public int GemsEarnable { get; set; } + + /// + /// If the quest is bypassed, the user will not be able to see it on the feed + /// + /// If the quest is bypassed, the user will not be able to see it on the feed + [DataMember(Name = "bypass", EmitDefaultValue = true)] + public bool Bypass { get; set; } + + /// + /// If the quest is a day0 quest + /// + /// If the quest is a day0 quest + [DataMember(Name = "day_zero", EmitDefaultValue = true)] + public bool DayZero { get; set; } + + /// + /// Game ID + /// + /// Game ID + [DataMember(Name = "game_id", EmitDefaultValue = false)] + public string GameId { get; set; } + + /// + /// Game name + /// + /// Game name + [DataMember(Name = "game_name", EmitDefaultValue = false)] + public string GameName { get; set; } + + /// + /// Text to display when the quest is completed in an onboarding experience + /// + /// Text to display when the quest is completed in an onboarding experience + [DataMember(Name = "quest_completed_popup_text", EmitDefaultValue = false)] + public string QuestCompletedPopupText { get; set; } + + /// + /// The tags for the feed item + /// + /// The tags for the feed item + [DataMember(Name = "tags", EmitDefaultValue = false)] + public List Tags { get; set; } + + /// + /// The categories for the feed item + /// + /// The categories for the feed item + [DataMember(Name = "categories", EmitDefaultValue = false)] + public List Categories { get; set; } + + /// + /// The onboarding experience for the feed item + /// + /// The onboarding experience for the feed item + [DataMember(Name = "onboarding_experience", EmitDefaultValue = false)] + public string OnboardingExperience { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FeedItemReferral {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" QuestId: ").Append(QuestId).Append("\n"); + sb.Append(" Priority: ").Append(Priority).Append("\n"); + sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n"); + sb.Append(" Bypass: ").Append(Bypass).Append("\n"); + sb.Append(" DayZero: ").Append(DayZero).Append("\n"); + sb.Append(" GameId: ").Append(GameId).Append("\n"); + sb.Append(" GameName: ").Append(GameName).Append("\n"); + sb.Append(" QuestCompletedPopupText: ").Append(QuestCompletedPopupText).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Categories: ").Append(Categories).Append("\n"); + sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemReferral.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemReferral.cs.meta new file mode 100644 index 000000000..877027ceb --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemReferral.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 909882481ed13ef64b8f743e2ca877b1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemReward.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemReward.cs new file mode 100644 index 000000000..551cafa8a --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemReward.cs @@ -0,0 +1,328 @@ +/* + * Immutable zkEVM API + * + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; + +namespace Immutable.Api.ZkEvm.Model +{ + /// + /// FeedItemReward + /// + [DataContract(Name = "FeedItemReward")] + public partial class FeedItemReward + { + /// + /// Feed item type + /// + /// Feed item type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum Reward for value: reward + /// + [EnumMember(Value = "reward")] + Reward = 1 + } + + + /// + /// Feed item type + /// + /// Feed item type + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FeedItemReward() { } + /// + /// Initializes a new instance of the class. + /// + /// Feed item ID (required). + /// Feed item name (required). + /// Quest ID (required). + /// Feed item priority (required). + /// Amount of gems earnable when user completes the quest (required). + /// If the quest is bypassed, the user will not be able to see it on the feed. + /// If the quest is a day0 quest. + /// Game ID. + /// Game name. + /// Text to display when the quest is completed in an onboarding experience. + /// The tags for the feed item. + /// The categories for the feed item. + /// The onboarding experience for the feed item. + /// Feed item type (required). + /// The label for the CTA button (required). + /// The description for the CTA button (required). + /// The URL for the CTA button (required). + /// The image for the CTA background (required). + /// The URL to redirect to when the user completes the sign in quest (required). + /// The background for the sign in quest (required). + public FeedItemReward(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), TypeEnum type = default(TypeEnum), string ctaLabel = default(string), string ctaDescription = default(string), string ctaUrl = default(string), string ctaImage = default(string), string signInRedirectUrl = default(string), string signInBackground = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for FeedItemReward and cannot be null"); + } + this.Id = id; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for FeedItemReward and cannot be null"); + } + this.Name = name; + // to ensure "questId" is required (not null) + if (questId == null) + { + throw new ArgumentNullException("questId is a required property for FeedItemReward and cannot be null"); + } + this.QuestId = questId; + this.Priority = priority; + this.GemsEarnable = gemsEarnable; + this.Type = type; + // to ensure "ctaLabel" is required (not null) + if (ctaLabel == null) + { + throw new ArgumentNullException("ctaLabel is a required property for FeedItemReward and cannot be null"); + } + this.CtaLabel = ctaLabel; + // to ensure "ctaDescription" is required (not null) + if (ctaDescription == null) + { + throw new ArgumentNullException("ctaDescription is a required property for FeedItemReward and cannot be null"); + } + this.CtaDescription = ctaDescription; + // to ensure "ctaUrl" is required (not null) + if (ctaUrl == null) + { + throw new ArgumentNullException("ctaUrl is a required property for FeedItemReward and cannot be null"); + } + this.CtaUrl = ctaUrl; + // to ensure "ctaImage" is required (not null) + if (ctaImage == null) + { + throw new ArgumentNullException("ctaImage is a required property for FeedItemReward and cannot be null"); + } + this.CtaImage = ctaImage; + // to ensure "signInRedirectUrl" is required (not null) + if (signInRedirectUrl == null) + { + throw new ArgumentNullException("signInRedirectUrl is a required property for FeedItemReward and cannot be null"); + } + this.SignInRedirectUrl = signInRedirectUrl; + // to ensure "signInBackground" is required (not null) + if (signInBackground == null) + { + throw new ArgumentNullException("signInBackground is a required property for FeedItemReward and cannot be null"); + } + this.SignInBackground = signInBackground; + this.Bypass = bypass; + this.DayZero = dayZero; + this.GameId = gameId; + this.GameName = gameName; + this.QuestCompletedPopupText = questCompletedPopupText; + this.Tags = tags; + this.Categories = categories; + this.OnboardingExperience = onboardingExperience; + } + + /// + /// Feed item ID + /// + /// Feed item ID + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Feed item name + /// + /// Feed item name + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Quest ID + /// + /// Quest ID + [DataMember(Name = "quest_id", IsRequired = true, EmitDefaultValue = true)] + public string QuestId { get; set; } + + /// + /// Feed item priority + /// + /// Feed item priority + [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] + public int Priority { get; set; } + + /// + /// Amount of gems earnable when user completes the quest + /// + /// Amount of gems earnable when user completes the quest + [DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)] + public int GemsEarnable { get; set; } + + /// + /// If the quest is bypassed, the user will not be able to see it on the feed + /// + /// If the quest is bypassed, the user will not be able to see it on the feed + [DataMember(Name = "bypass", EmitDefaultValue = true)] + public bool Bypass { get; set; } + + /// + /// If the quest is a day0 quest + /// + /// If the quest is a day0 quest + [DataMember(Name = "day_zero", EmitDefaultValue = true)] + public bool DayZero { get; set; } + + /// + /// Game ID + /// + /// Game ID + [DataMember(Name = "game_id", EmitDefaultValue = false)] + public string GameId { get; set; } + + /// + /// Game name + /// + /// Game name + [DataMember(Name = "game_name", EmitDefaultValue = false)] + public string GameName { get; set; } + + /// + /// Text to display when the quest is completed in an onboarding experience + /// + /// Text to display when the quest is completed in an onboarding experience + [DataMember(Name = "quest_completed_popup_text", EmitDefaultValue = false)] + public string QuestCompletedPopupText { get; set; } + + /// + /// The tags for the feed item + /// + /// The tags for the feed item + [DataMember(Name = "tags", EmitDefaultValue = false)] + public List Tags { get; set; } + + /// + /// The categories for the feed item + /// + /// The categories for the feed item + [DataMember(Name = "categories", EmitDefaultValue = false)] + public List Categories { get; set; } + + /// + /// The onboarding experience for the feed item + /// + /// The onboarding experience for the feed item + [DataMember(Name = "onboarding_experience", EmitDefaultValue = false)] + public string OnboardingExperience { get; set; } + + /// + /// The label for the CTA button + /// + /// The label for the CTA button + [DataMember(Name = "cta_label", IsRequired = true, EmitDefaultValue = true)] + public string CtaLabel { get; set; } + + /// + /// The description for the CTA button + /// + /// The description for the CTA button + [DataMember(Name = "cta_description", IsRequired = true, EmitDefaultValue = true)] + public string CtaDescription { get; set; } + + /// + /// The URL for the CTA button + /// + /// The URL for the CTA button + [DataMember(Name = "cta_url", IsRequired = true, EmitDefaultValue = true)] + public string CtaUrl { get; set; } + + /// + /// The image for the CTA background + /// + /// The image for the CTA background + [DataMember(Name = "cta_image", IsRequired = true, EmitDefaultValue = true)] + public string CtaImage { get; set; } + + /// + /// The URL to redirect to when the user completes the sign in quest + /// + /// The URL to redirect to when the user completes the sign in quest + [DataMember(Name = "sign_in_redirect_url", IsRequired = true, EmitDefaultValue = true)] + public string SignInRedirectUrl { get; set; } + + /// + /// The background for the sign in quest + /// + /// The background for the sign in quest + [DataMember(Name = "sign_in_background", IsRequired = true, EmitDefaultValue = true)] + public string SignInBackground { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class FeedItemReward {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" QuestId: ").Append(QuestId).Append("\n"); + sb.Append(" Priority: ").Append(Priority).Append("\n"); + sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n"); + sb.Append(" Bypass: ").Append(Bypass).Append("\n"); + sb.Append(" DayZero: ").Append(DayZero).Append("\n"); + sb.Append(" GameId: ").Append(GameId).Append("\n"); + sb.Append(" GameName: ").Append(GameName).Append("\n"); + sb.Append(" QuestCompletedPopupText: ").Append(QuestCompletedPopupText).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Categories: ").Append(Categories).Append("\n"); + sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" CtaLabel: ").Append(CtaLabel).Append("\n"); + sb.Append(" CtaDescription: ").Append(CtaDescription).Append("\n"); + sb.Append(" CtaUrl: ").Append(CtaUrl).Append("\n"); + sb.Append(" CtaImage: ").Append(CtaImage).Append("\n"); + sb.Append(" SignInRedirectUrl: ").Append(SignInRedirectUrl).Append("\n"); + sb.Append(" SignInBackground: ").Append(SignInBackground).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + } + +} diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemReward.cs.meta b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemReward.cs.meta new file mode 100644 index 000000000..59fffd18d --- /dev/null +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 46827dbdaea2caca395e2f075d05477d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemSignIn.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemSignIn.cs index 93f6f1a68..531bb6f0f 100644 --- a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemSignIn.cs +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemSignIn.cs @@ -31,6 +31,27 @@ namespace Immutable.Api.ZkEvm.Model [DataContract(Name = "FeedItemSignIn")] public partial class FeedItemSignIn { + /// + /// Feed item type + /// + /// Feed item type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum Signin for value: signin + /// + [EnumMember(Value = "signin")] + Signin = 1 + } + + + /// + /// Feed item type + /// + /// Feed item type + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } /// /// Initializes a new instance of the class. /// @@ -43,9 +64,7 @@ protected FeedItemSignIn() { } /// Feed item name (required). /// Quest ID (required). /// Feed item priority (required). - /// Feed item type (required). /// Amount of gems earnable when user completes the quest (required). - /// Feed item status, e.g., enabled, disabled, archived, deleted (required). /// If the quest is bypassed, the user will not be able to see it on the feed. /// If the quest is a day0 quest. /// Game ID. @@ -54,13 +73,14 @@ protected FeedItemSignIn() { } /// The tags for the feed item. /// The categories for the feed item. /// The onboarding experience for the feed item. + /// Feed item type (required). /// The label for the CTA button (required). /// The description for the CTA button (required). /// The URL for the CTA button (required). /// The image for the CTA background (required). /// The URL to redirect to when the user completes the sign in quest (required). /// The background for the sign in quest (required). - public FeedItemSignIn(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), string type = default(string), int gemsEarnable = default(int), string status = default(string), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), string ctaLabel = default(string), string ctaDescription = default(string), string ctaUrl = default(string), string ctaImage = default(string), string signInRedirectUrl = default(string), string signInBackground = default(string)) + public FeedItemSignIn(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), TypeEnum type = default(TypeEnum), string ctaLabel = default(string), string ctaDescription = default(string), string ctaUrl = default(string), string ctaImage = default(string), string signInRedirectUrl = default(string), string signInBackground = default(string)) { // to ensure "id" is required (not null) if (id == null) @@ -81,19 +101,8 @@ protected FeedItemSignIn() { } } this.QuestId = questId; this.Priority = priority; - // to ensure "type" is required (not null) - if (type == null) - { - throw new ArgumentNullException("type is a required property for FeedItemSignIn and cannot be null"); - } - this.Type = type; this.GemsEarnable = gemsEarnable; - // to ensure "status" is required (not null) - if (status == null) - { - throw new ArgumentNullException("status is a required property for FeedItemSignIn and cannot be null"); - } - this.Status = status; + this.Type = type; // to ensure "ctaLabel" is required (not null) if (ctaLabel == null) { @@ -168,13 +177,6 @@ protected FeedItemSignIn() { } [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] public int Priority { get; set; } - /// - /// Feed item type - /// - /// Feed item type - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public string Type { get; set; } - /// /// Amount of gems earnable when user completes the quest /// @@ -182,13 +184,6 @@ protected FeedItemSignIn() { } [DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)] public int GemsEarnable { get; set; } - /// - /// Feed item status, e.g., enabled, disabled, archived, deleted - /// - /// Feed item status, e.g., enabled, disabled, archived, deleted - [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] - public string Status { get; set; } - /// /// If the quest is bypassed, the user will not be able to see it on the feed /// @@ -299,9 +294,7 @@ public override string ToString() sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" QuestId: ").Append(QuestId).Append("\n"); sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" Bypass: ").Append(Bypass).Append("\n"); sb.Append(" DayZero: ").Append(DayZero).Append("\n"); sb.Append(" GameId: ").Append(GameId).Append("\n"); @@ -310,6 +303,7 @@ public override string ToString() sb.Append(" Tags: ").Append(Tags).Append("\n"); sb.Append(" Categories: ").Append(Categories).Append("\n"); sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" CtaLabel: ").Append(CtaLabel).Append("\n"); sb.Append(" CtaDescription: ").Append(CtaDescription).Append("\n"); sb.Append(" CtaUrl: ").Append(CtaUrl).Append("\n"); diff --git a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemVideo.cs b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemVideo.cs index 824edc6ff..1f3ba373d 100644 --- a/src/Packages/ZkEvmApi/Runtime/Model/FeedItemVideo.cs +++ b/src/Packages/ZkEvmApi/Runtime/Model/FeedItemVideo.cs @@ -31,6 +31,27 @@ namespace Immutable.Api.ZkEvm.Model [DataContract(Name = "FeedItemVideo")] public partial class FeedItemVideo { + /// + /// Feed item type + /// + /// Feed item type + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum Video for value: video + /// + [EnumMember(Value = "video")] + Video = 1 + } + + + /// + /// Feed item type + /// + /// Feed item type + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public TypeEnum Type { get; set; } /// /// Initializes a new instance of the class. /// @@ -43,9 +64,7 @@ protected FeedItemVideo() { } /// Feed item name (required). /// Quest ID (required). /// Feed item priority (required). - /// Feed item type (required). /// Amount of gems earnable when user completes the quest (required). - /// Feed item status, e.g., enabled, disabled, archived, deleted (required). /// If the quest is bypassed, the user will not be able to see it on the feed. /// If the quest is a day0 quest. /// Game ID. @@ -54,9 +73,10 @@ protected FeedItemVideo() { } /// The tags for the feed item. /// The categories for the feed item. /// The onboarding experience for the feed item. + /// Feed item type (required). /// Title of the video (required). /// URL of the video (required). - public FeedItemVideo(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), string type = default(string), int gemsEarnable = default(int), string status = default(string), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), string videoTitle = default(string), string videoUrl = default(string)) + public FeedItemVideo(string id = default(string), string name = default(string), string questId = default(string), int priority = default(int), int gemsEarnable = default(int), bool bypass = default(bool), bool dayZero = default(bool), string gameId = default(string), string gameName = default(string), string questCompletedPopupText = default(string), List tags = default(List), List categories = default(List), string onboardingExperience = default(string), TypeEnum type = default(TypeEnum), string videoTitle = default(string), string videoUrl = default(string)) { // to ensure "id" is required (not null) if (id == null) @@ -77,19 +97,8 @@ protected FeedItemVideo() { } } this.QuestId = questId; this.Priority = priority; - // to ensure "type" is required (not null) - if (type == null) - { - throw new ArgumentNullException("type is a required property for FeedItemVideo and cannot be null"); - } - this.Type = type; this.GemsEarnable = gemsEarnable; - // to ensure "status" is required (not null) - if (status == null) - { - throw new ArgumentNullException("status is a required property for FeedItemVideo and cannot be null"); - } - this.Status = status; + this.Type = type; // to ensure "videoTitle" is required (not null) if (videoTitle == null) { @@ -140,13 +149,6 @@ protected FeedItemVideo() { } [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] public int Priority { get; set; } - /// - /// Feed item type - /// - /// Feed item type - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public string Type { get; set; } - /// /// Amount of gems earnable when user completes the quest /// @@ -154,13 +156,6 @@ protected FeedItemVideo() { } [DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)] public int GemsEarnable { get; set; } - /// - /// Feed item status, e.g., enabled, disabled, archived, deleted - /// - /// Feed item status, e.g., enabled, disabled, archived, deleted - [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] - public string Status { get; set; } - /// /// If the quest is bypassed, the user will not be able to see it on the feed /// @@ -243,9 +238,7 @@ public override string ToString() sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" QuestId: ").Append(QuestId).Append("\n"); sb.Append(" Priority: ").Append(Priority).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" Bypass: ").Append(Bypass).Append("\n"); sb.Append(" DayZero: ").Append(DayZero).Append("\n"); sb.Append(" GameId: ").Append(GameId).Append("\n"); @@ -254,6 +247,7 @@ public override string ToString() sb.Append(" Tags: ").Append(Tags).Append("\n"); sb.Append(" Categories: ").Append(Categories).Append("\n"); sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" VideoTitle: ").Append(VideoTitle).Append("\n"); sb.Append(" VideoUrl: ").Append(VideoUrl).Append("\n"); sb.Append("}\n"); diff --git a/src/Packages/ZkEvmApi/api~/openapi.yaml b/src/Packages/ZkEvmApi/api~/openapi.yaml index 82a911797..299ec7492 100644 --- a/src/Packages/ZkEvmApi/api~/openapi.yaml +++ b/src/Packages/ZkEvmApi/api~/openapi.yaml @@ -8988,15 +8988,9 @@ components: priority: description: Feed item priority type: integer - type: - description: Feed item type - type: string gems_earnable: description: Amount of gems earnable when user completes the quest type: integer - status: - description: "Feed item status, e.g., enabled, disabled, archived, deleted" - type: string bypass: description: "If the quest is bypassed, the user will not be able to see\ \ it on the feed" @@ -9033,7 +9027,6 @@ components: - name - priority - quest_id - - status - type type: object FeedItemVideo: @@ -9041,13 +9034,20 @@ components: - $ref: '#/components/schemas/FeedItemBase' - type: object - properties: + type: + description: Feed item type + enum: + - video + type: string video_title: description: Title of the video type: string video_url: description: URL of the video + format: uri type: string required: + - type - video_title - video_url FeedItemQuiz: @@ -9055,11 +9055,18 @@ components: - $ref: '#/components/schemas/FeedItemBase' - type: object - properties: + type: + description: Feed item type + enum: + - quiz + type: string quiz_header_video_url: description: URL of the quiz header video + format: uri type: string quiz_logo: description: URL of the quiz logo + format: uri type: string quiz_question: description: The quiz question @@ -9079,19 +9086,27 @@ components: type: string quiz_header_initial_image: description: The initial image for the quiz header + format: uri type: string quiz_header_answered_image: description: The image to display when the user answers the quiz correctly + format: uri type: string required: - quiz_answers - quiz_correct_answers - quiz_question + - type FeedItemCTA: allOf: - $ref: '#/components/schemas/FeedItemBase' - type: object - properties: + type: + description: Feed item type + enum: + - cta + type: string cta_label: description: The label for the CTA button type: string @@ -9103,27 +9118,107 @@ components: type: string cta_image: description: The image for the CTA background + format: uri type: string required: - cta_description - cta_image - cta_label - cta_url + - type FeedItemSignIn: allOf: - $ref: '#/components/schemas/FeedItemCTA' - type: object - properties: + type: + description: Feed item type + enum: + - signin + type: string sign_in_redirect_url: description: The URL to redirect to when the user completes the sign in quest + format: uri type: string sign_in_background: description: The background for the sign in quest + format: uri type: string required: - sign_in_background - sign_in_redirect_url + - type + FeedItemReward: + allOf: + - $ref: '#/components/schemas/FeedItemSignIn' + - type: object + - properties: + type: + description: Feed item type + enum: + - reward + type: string + FeedItemLanding: + allOf: + - $ref: '#/components/schemas/FeedItemBase' + - type: object + - properties: + type: + description: Feed item type + enum: + - landing + type: string + required: + - type + FeedItemPinToHome: + allOf: + - $ref: '#/components/schemas/FeedItemBase' + - type: object + - properties: + type: + description: Feed item type + enum: + - pintohome + type: string + required: + - type + FeedItemDailyGems: + allOf: + - $ref: '#/components/schemas/FeedItemBase' + - type: object + - properties: + type: + description: Feed item type + enum: + - dailygems + type: string + required: + - type + FeedItemBonusGems: + allOf: + - $ref: '#/components/schemas/FeedItemBase' + - type: object + - properties: + type: + description: Feed item type + enum: + - bonusgems + type: string + required: + - type + FeedItemReferral: + allOf: + - $ref: '#/components/schemas/FeedItemBase' + - type: object + - properties: + type: + description: Feed item type + enum: + - referral + type: string + required: + - type FilterValue: example: - value: Common