-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathFeedItemBase.cs
More file actions
244 lines (222 loc) · 10.3 KB
/
Copy pathFeedItemBase.cs
File metadata and controls
244 lines (222 loc) · 10.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
/*
* 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
{
/// <summary>
/// FeedItemBase
/// </summary>
[DataContract(Name = "FeedItemBase")]
public partial class FeedItemBase
{
/// <summary>
/// Initializes a new instance of the <see cref="FeedItemBase" /> class.
/// </summary>
[JsonConstructorAttribute]
protected FeedItemBase() { }
/// <summary>
/// Initializes a new instance of the <see cref="FeedItemBase" /> class.
/// </summary>
/// <param name="id">Feed item ID (required).</param>
/// <param name="name">Feed item name (required).</param>
/// <param name="questId">Quest ID (required).</param>
/// <param name="priority">Feed item priority (required).</param>
/// <param name="type">Feed item type (required).</param>
/// <param name="gemsEarnable">Amount of gems earnable when user completes the quest (required).</param>
/// <param name="status">Feed item status, e.g., enabled, disabled, archived, deleted (required).</param>
/// <param name="bypass">If the quest is bypassed, the user will not be able to see it on the feed.</param>
/// <param name="dayZero">If the quest is a day0 quest.</param>
/// <param name="gameId">Game ID.</param>
/// <param name="gameName">Game name.</param>
/// <param name="questCompletedPopupText">Text to display when the quest is completed in an onboarding experience.</param>
/// <param name="tags">The tags for the feed item.</param>
/// <param name="categories">The categories for the feed item.</param>
/// <param name="onboardingExperience">The onboarding experience for the feed item.</param>
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<string> tags = default(List<string>), List<string> categories = default(List<string>), string onboardingExperience = default(string))
{
// to ensure "id" is required (not null)
if (id == null)
{
throw new ArgumentNullException("id is a required property for FeedItemBase 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 FeedItemBase 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 FeedItemBase and cannot be null");
}
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;
this.GameName = gameName;
this.QuestCompletedPopupText = questCompletedPopupText;
this.Tags = tags;
this.Categories = categories;
this.OnboardingExperience = onboardingExperience;
}
/// <summary>
/// Feed item ID
/// </summary>
/// <value>Feed item ID</value>
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public string Id { get; set; }
/// <summary>
/// Feed item name
/// </summary>
/// <value>Feed item name</value>
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
public string Name { get; set; }
/// <summary>
/// Quest ID
/// </summary>
/// <value>Quest ID</value>
[DataMember(Name = "quest_id", IsRequired = true, EmitDefaultValue = true)]
public string QuestId { get; set; }
/// <summary>
/// Feed item priority
/// </summary>
/// <value>Feed item priority</value>
[DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)]
public int Priority { get; set; }
/// <summary>
/// Feed item type
/// </summary>
/// <value>Feed item type</value>
[DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
public string Type { get; set; }
/// <summary>
/// Amount of gems earnable when user completes the quest
/// </summary>
/// <value>Amount of gems earnable when user completes the quest</value>
[DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)]
public int GemsEarnable { get; set; }
/// <summary>
/// Feed item status, e.g., enabled, disabled, archived, deleted
/// </summary>
/// <value>Feed item status, e.g., enabled, disabled, archived, deleted</value>
[DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)]
public string Status { get; set; }
/// <summary>
/// If the quest is bypassed, the user will not be able to see it on the feed
/// </summary>
/// <value>If the quest is bypassed, the user will not be able to see it on the feed</value>
[DataMember(Name = "bypass", EmitDefaultValue = true)]
public bool Bypass { get; set; }
/// <summary>
/// If the quest is a day0 quest
/// </summary>
/// <value>If the quest is a day0 quest</value>
[DataMember(Name = "day_zero", EmitDefaultValue = true)]
public bool DayZero { get; set; }
/// <summary>
/// Game ID
/// </summary>
/// <value>Game ID</value>
[DataMember(Name = "game_id", EmitDefaultValue = false)]
public string GameId { get; set; }
/// <summary>
/// Game name
/// </summary>
/// <value>Game name</value>
[DataMember(Name = "game_name", EmitDefaultValue = false)]
public string GameName { get; set; }
/// <summary>
/// Text to display when the quest is completed in an onboarding experience
/// </summary>
/// <value>Text to display when the quest is completed in an onboarding experience</value>
[DataMember(Name = "quest_completed_popup_text", EmitDefaultValue = false)]
public string QuestCompletedPopupText { get; set; }
/// <summary>
/// The tags for the feed item
/// </summary>
/// <value>The tags for the feed item</value>
[DataMember(Name = "tags", EmitDefaultValue = false)]
public List<string> Tags { get; set; }
/// <summary>
/// The categories for the feed item
/// </summary>
/// <value>The categories for the feed item</value>
[DataMember(Name = "categories", EmitDefaultValue = false)]
public List<string> Categories { get; set; }
/// <summary>
/// The onboarding experience for the feed item
/// </summary>
/// <value>The onboarding experience for the feed item</value>
[DataMember(Name = "onboarding_experience", EmitDefaultValue = false)]
public string OnboardingExperience { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class FeedItemBase {\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(" 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");
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("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
}
}