|
| 1 | +/* |
| 2 | + * Immutable zkEVM API |
| 3 | + * |
| 4 | + * Immutable Multi Rollup API |
| 5 | + * |
| 6 | + * The version of the OpenAPI document: 1.0.0 |
| 7 | + |
| 8 | + * Generated by: https://github.com/openapitools/openapi-generator.git |
| 9 | + */ |
| 10 | + |
| 11 | + |
| 12 | +using System; |
| 13 | +using System.Collections; |
| 14 | +using System.Collections.Generic; |
| 15 | +using System.Collections.ObjectModel; |
| 16 | +using System.Linq; |
| 17 | +using System.IO; |
| 18 | +using System.Runtime.Serialization; |
| 19 | +using System.Text; |
| 20 | +using System.Text.RegularExpressions; |
| 21 | +using Newtonsoft.Json; |
| 22 | +using Newtonsoft.Json.Converters; |
| 23 | +using Newtonsoft.Json.Linq; |
| 24 | +using OpenAPIDateConverter = Immutable.Api.ZkEvm.Client.OpenAPIDateConverter; |
| 25 | + |
| 26 | +namespace Immutable.Api.ZkEvm.Model |
| 27 | +{ |
| 28 | + /// <summary> |
| 29 | + /// FeedItemBase |
| 30 | + /// </summary> |
| 31 | + [DataContract(Name = "FeedItemBase")] |
| 32 | + public partial class FeedItemBase |
| 33 | + { |
| 34 | + /// <summary> |
| 35 | + /// Initializes a new instance of the <see cref="FeedItemBase" /> class. |
| 36 | + /// </summary> |
| 37 | + [JsonConstructorAttribute] |
| 38 | + protected FeedItemBase() { } |
| 39 | + /// <summary> |
| 40 | + /// Initializes a new instance of the <see cref="FeedItemBase" /> class. |
| 41 | + /// </summary> |
| 42 | + /// <param name="id">Feed item ID (required).</param> |
| 43 | + /// <param name="questId">Quest ID (required).</param> |
| 44 | + /// <param name="priority">Feed item priority (required).</param> |
| 45 | + /// <param name="type">Feed item type (required).</param> |
| 46 | + /// <param name="gemsEarnable">Amount of gems earnable when user completes the quest (required).</param> |
| 47 | + /// <param name="bypass">If the quest is bypassed, the user will not be able to see it on the feed.</param> |
| 48 | + /// <param name="dayZero">If the quest is a day0 quest.</param> |
| 49 | + /// <param name="gameId">Game ID.</param> |
| 50 | + /// <param name="gameName">Game name.</param> |
| 51 | + /// <param name="questCompletedPopupText">Text to display when the quest is completed in an onboarding experience.</param> |
| 52 | + /// <param name="tags">The tags for the feed item.</param> |
| 53 | + /// <param name="categories">The categories for the feed item.</param> |
| 54 | + /// <param name="onboardingExperience">The onboarding experience for the feed item.</param> |
| 55 | + public FeedItemBase(string id = default(string), string questId = default(string), int priority = default(int), string type = default(string), 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<string> tags = default(List<string>), List<string> categories = default(List<string>), string onboardingExperience = default(string)) |
| 56 | + { |
| 57 | + // to ensure "id" is required (not null) |
| 58 | + if (id == null) |
| 59 | + { |
| 60 | + throw new ArgumentNullException("id is a required property for FeedItemBase and cannot be null"); |
| 61 | + } |
| 62 | + this.Id = id; |
| 63 | + // to ensure "questId" is required (not null) |
| 64 | + if (questId == null) |
| 65 | + { |
| 66 | + throw new ArgumentNullException("questId is a required property for FeedItemBase and cannot be null"); |
| 67 | + } |
| 68 | + this.QuestId = questId; |
| 69 | + this.Priority = priority; |
| 70 | + // to ensure "type" is required (not null) |
| 71 | + if (type == null) |
| 72 | + { |
| 73 | + throw new ArgumentNullException("type is a required property for FeedItemBase and cannot be null"); |
| 74 | + } |
| 75 | + this.Type = type; |
| 76 | + this.GemsEarnable = gemsEarnable; |
| 77 | + this.Bypass = bypass; |
| 78 | + this.DayZero = dayZero; |
| 79 | + this.GameId = gameId; |
| 80 | + this.GameName = gameName; |
| 81 | + this.QuestCompletedPopupText = questCompletedPopupText; |
| 82 | + this.Tags = tags; |
| 83 | + this.Categories = categories; |
| 84 | + this.OnboardingExperience = onboardingExperience; |
| 85 | + } |
| 86 | + |
| 87 | + /// <summary> |
| 88 | + /// Feed item ID |
| 89 | + /// </summary> |
| 90 | + /// <value>Feed item ID</value> |
| 91 | + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] |
| 92 | + public string Id { get; set; } |
| 93 | + |
| 94 | + /// <summary> |
| 95 | + /// Quest ID |
| 96 | + /// </summary> |
| 97 | + /// <value>Quest ID</value> |
| 98 | + [DataMember(Name = "quest_id", IsRequired = true, EmitDefaultValue = true)] |
| 99 | + public string QuestId { get; set; } |
| 100 | + |
| 101 | + /// <summary> |
| 102 | + /// Feed item priority |
| 103 | + /// </summary> |
| 104 | + /// <value>Feed item priority</value> |
| 105 | + [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] |
| 106 | + public int Priority { get; set; } |
| 107 | + |
| 108 | + /// <summary> |
| 109 | + /// Feed item type |
| 110 | + /// </summary> |
| 111 | + /// <value>Feed item type</value> |
| 112 | + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] |
| 113 | + public string Type { get; set; } |
| 114 | + |
| 115 | + /// <summary> |
| 116 | + /// Amount of gems earnable when user completes the quest |
| 117 | + /// </summary> |
| 118 | + /// <value>Amount of gems earnable when user completes the quest</value> |
| 119 | + [DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)] |
| 120 | + public int GemsEarnable { get; set; } |
| 121 | + |
| 122 | + /// <summary> |
| 123 | + /// If the quest is bypassed, the user will not be able to see it on the feed |
| 124 | + /// </summary> |
| 125 | + /// <value>If the quest is bypassed, the user will not be able to see it on the feed</value> |
| 126 | + [DataMember(Name = "bypass", EmitDefaultValue = true)] |
| 127 | + public bool Bypass { get; set; } |
| 128 | + |
| 129 | + /// <summary> |
| 130 | + /// If the quest is a day0 quest |
| 131 | + /// </summary> |
| 132 | + /// <value>If the quest is a day0 quest</value> |
| 133 | + [DataMember(Name = "day_zero", EmitDefaultValue = true)] |
| 134 | + public bool DayZero { get; set; } |
| 135 | + |
| 136 | + /// <summary> |
| 137 | + /// Game ID |
| 138 | + /// </summary> |
| 139 | + /// <value>Game ID</value> |
| 140 | + [DataMember(Name = "game_id", EmitDefaultValue = false)] |
| 141 | + public string GameId { get; set; } |
| 142 | + |
| 143 | + /// <summary> |
| 144 | + /// Game name |
| 145 | + /// </summary> |
| 146 | + /// <value>Game name</value> |
| 147 | + [DataMember(Name = "game_name", EmitDefaultValue = false)] |
| 148 | + public string GameName { get; set; } |
| 149 | + |
| 150 | + /// <summary> |
| 151 | + /// Text to display when the quest is completed in an onboarding experience |
| 152 | + /// </summary> |
| 153 | + /// <value>Text to display when the quest is completed in an onboarding experience</value> |
| 154 | + [DataMember(Name = "quest_completed_popup_text", EmitDefaultValue = false)] |
| 155 | + public string QuestCompletedPopupText { get; set; } |
| 156 | + |
| 157 | + /// <summary> |
| 158 | + /// The tags for the feed item |
| 159 | + /// </summary> |
| 160 | + /// <value>The tags for the feed item</value> |
| 161 | + [DataMember(Name = "tags", EmitDefaultValue = false)] |
| 162 | + public List<string> Tags { get; set; } |
| 163 | + |
| 164 | + /// <summary> |
| 165 | + /// The categories for the feed item |
| 166 | + /// </summary> |
| 167 | + /// <value>The categories for the feed item</value> |
| 168 | + [DataMember(Name = "categories", EmitDefaultValue = false)] |
| 169 | + public List<string> Categories { get; set; } |
| 170 | + |
| 171 | + /// <summary> |
| 172 | + /// The onboarding experience for the feed item |
| 173 | + /// </summary> |
| 174 | + /// <value>The onboarding experience for the feed item</value> |
| 175 | + [DataMember(Name = "onboarding_experience", EmitDefaultValue = false)] |
| 176 | + public string OnboardingExperience { get; set; } |
| 177 | + |
| 178 | + /// <summary> |
| 179 | + /// Returns the string presentation of the object |
| 180 | + /// </summary> |
| 181 | + /// <returns>String presentation of the object</returns> |
| 182 | + public override string ToString() |
| 183 | + { |
| 184 | + StringBuilder sb = new StringBuilder(); |
| 185 | + sb.Append("class FeedItemBase {\n"); |
| 186 | + sb.Append(" Id: ").Append(Id).Append("\n"); |
| 187 | + sb.Append(" QuestId: ").Append(QuestId).Append("\n"); |
| 188 | + sb.Append(" Priority: ").Append(Priority).Append("\n"); |
| 189 | + sb.Append(" Type: ").Append(Type).Append("\n"); |
| 190 | + sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n"); |
| 191 | + sb.Append(" Bypass: ").Append(Bypass).Append("\n"); |
| 192 | + sb.Append(" DayZero: ").Append(DayZero).Append("\n"); |
| 193 | + sb.Append(" GameId: ").Append(GameId).Append("\n"); |
| 194 | + sb.Append(" GameName: ").Append(GameName).Append("\n"); |
| 195 | + sb.Append(" QuestCompletedPopupText: ").Append(QuestCompletedPopupText).Append("\n"); |
| 196 | + sb.Append(" Tags: ").Append(Tags).Append("\n"); |
| 197 | + sb.Append(" Categories: ").Append(Categories).Append("\n"); |
| 198 | + sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n"); |
| 199 | + sb.Append("}\n"); |
| 200 | + return sb.ToString(); |
| 201 | + } |
| 202 | + |
| 203 | + /// <summary> |
| 204 | + /// Returns the JSON string presentation of the object |
| 205 | + /// </summary> |
| 206 | + /// <returns>JSON string presentation of the object</returns> |
| 207 | + public virtual string ToJson() |
| 208 | + { |
| 209 | + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); |
| 210 | + } |
| 211 | + |
| 212 | + } |
| 213 | + |
| 214 | +} |
0 commit comments