Skip to content

Commit 69fc487

Browse files
committed
feat: update immutable zkEVM API package
1 parent b839208 commit 69fc487

4 files changed

Lines changed: 386 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Immutable.Api.ZkEvm.Model.FeedItemFollowGame
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**Id** | **string** | Feed item ID |
8+
**Name** | **string** | Feed item name |
9+
**QuestId** | **string** | Quest ID |
10+
**Priority** | **int** | Feed item priority |
11+
**GemsEarnable** | **int** | Amount of gems earnable when user completes the quest |
12+
**Bypass** | **bool** | If the quest is bypassed, the user will not be able to see it on the feed | [optional]
13+
**DayZero** | **bool** | If the quest is a day0 quest | [optional]
14+
**GameId** | **Guid** | Game ID | [optional]
15+
**GameName** | **string** | Game name | [optional]
16+
**QuestCompletedPopupText** | **string** | Text to display when the quest is completed in an onboarding experience | [optional]
17+
**Tags** | **List<string>** | The tags for the feed item | [optional]
18+
**Categories** | **List<string>** | The categories for the feed item | [optional]
19+
**OnboardingExperience** | **string** | The onboarding experience for the feed item | [optional]
20+
**Type** | **string** | Feed item type |
21+
**CtaImage** | **string** | URL of the CTA image |
22+
**CtaLabel** | **string** | Label of the CTA button |
23+
**CtaDescription** | **string** | Description of the CTA button |
24+
**QuizLogo** | **string** | URL of the quiz logo |
25+
**VideoTitle** | **string** | Title of the video |
26+
27+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
28+
Lines changed: 313 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,313 @@
1+
/*
2+
* Immutable zkEVM API
3+
*
4+
* Immutable Multi Rollup API
5+
*
6+
* The version of the OpenAPI document: 1.0.0
7+
* Contact: support@immutable.com
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+
/// FeedItemFollowGame
30+
/// </summary>
31+
[DataContract(Name = "FeedItemFollowGame")]
32+
public partial class FeedItemFollowGame
33+
{
34+
/// <summary>
35+
/// Feed item type
36+
/// </summary>
37+
/// <value>Feed item type</value>
38+
[JsonConverter(typeof(StringEnumConverter))]
39+
public enum TypeEnum
40+
{
41+
/// <summary>
42+
/// Enum Followgame for value: followgame
43+
/// </summary>
44+
[EnumMember(Value = "followgame")]
45+
Followgame = 1
46+
}
47+
48+
49+
/// <summary>
50+
/// Feed item type
51+
/// </summary>
52+
/// <value>Feed item type</value>
53+
[DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
54+
public TypeEnum Type { get; set; }
55+
/// <summary>
56+
/// Initializes a new instance of the <see cref="FeedItemFollowGame" /> class.
57+
/// </summary>
58+
[JsonConstructorAttribute]
59+
protected FeedItemFollowGame() { }
60+
/// <summary>
61+
/// Initializes a new instance of the <see cref="FeedItemFollowGame" /> class.
62+
/// </summary>
63+
/// <param name="id">Feed item ID (required).</param>
64+
/// <param name="name">Feed item name (required).</param>
65+
/// <param name="questId">Quest ID (required).</param>
66+
/// <param name="priority">Feed item priority (required).</param>
67+
/// <param name="gemsEarnable">Amount of gems earnable when user completes the quest (required).</param>
68+
/// <param name="bypass">If the quest is bypassed, the user will not be able to see it on the feed.</param>
69+
/// <param name="dayZero">If the quest is a day0 quest.</param>
70+
/// <param name="gameId">Game ID.</param>
71+
/// <param name="gameName">Game name.</param>
72+
/// <param name="questCompletedPopupText">Text to display when the quest is completed in an onboarding experience.</param>
73+
/// <param name="tags">The tags for the feed item.</param>
74+
/// <param name="categories">The categories for the feed item.</param>
75+
/// <param name="onboardingExperience">The onboarding experience for the feed item.</param>
76+
/// <param name="type">Feed item type (required).</param>
77+
/// <param name="ctaImage">URL of the CTA image (required).</param>
78+
/// <param name="ctaLabel">Label of the CTA button (required).</param>
79+
/// <param name="ctaDescription">Description of the CTA button (required).</param>
80+
/// <param name="quizLogo">URL of the quiz logo (required).</param>
81+
/// <param name="videoTitle">Title of the video (required).</param>
82+
public FeedItemFollowGame(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), Guid gameId = default(Guid), string gameName = default(string), string questCompletedPopupText = default(string), List<string> tags = default(List<string>), List<string> categories = default(List<string>), string onboardingExperience = default(string), TypeEnum type = default(TypeEnum), string ctaImage = default(string), string ctaLabel = default(string), string ctaDescription = default(string), string quizLogo = default(string), string videoTitle = default(string))
83+
{
84+
// to ensure "id" is required (not null)
85+
if (id == null)
86+
{
87+
throw new ArgumentNullException("id is a required property for FeedItemFollowGame and cannot be null");
88+
}
89+
this.Id = id;
90+
// to ensure "name" is required (not null)
91+
if (name == null)
92+
{
93+
throw new ArgumentNullException("name is a required property for FeedItemFollowGame and cannot be null");
94+
}
95+
this.Name = name;
96+
// to ensure "questId" is required (not null)
97+
if (questId == null)
98+
{
99+
throw new ArgumentNullException("questId is a required property for FeedItemFollowGame and cannot be null");
100+
}
101+
this.QuestId = questId;
102+
this.Priority = priority;
103+
this.GemsEarnable = gemsEarnable;
104+
this.Type = type;
105+
// to ensure "ctaImage" is required (not null)
106+
if (ctaImage == null)
107+
{
108+
throw new ArgumentNullException("ctaImage is a required property for FeedItemFollowGame and cannot be null");
109+
}
110+
this.CtaImage = ctaImage;
111+
// to ensure "ctaLabel" is required (not null)
112+
if (ctaLabel == null)
113+
{
114+
throw new ArgumentNullException("ctaLabel is a required property for FeedItemFollowGame and cannot be null");
115+
}
116+
this.CtaLabel = ctaLabel;
117+
// to ensure "ctaDescription" is required (not null)
118+
if (ctaDescription == null)
119+
{
120+
throw new ArgumentNullException("ctaDescription is a required property for FeedItemFollowGame and cannot be null");
121+
}
122+
this.CtaDescription = ctaDescription;
123+
// to ensure "quizLogo" is required (not null)
124+
if (quizLogo == null)
125+
{
126+
throw new ArgumentNullException("quizLogo is a required property for FeedItemFollowGame and cannot be null");
127+
}
128+
this.QuizLogo = quizLogo;
129+
// to ensure "videoTitle" is required (not null)
130+
if (videoTitle == null)
131+
{
132+
throw new ArgumentNullException("videoTitle is a required property for FeedItemFollowGame and cannot be null");
133+
}
134+
this.VideoTitle = videoTitle;
135+
this.Bypass = bypass;
136+
this.DayZero = dayZero;
137+
this.GameId = gameId;
138+
this.GameName = gameName;
139+
this.QuestCompletedPopupText = questCompletedPopupText;
140+
this.Tags = tags;
141+
this.Categories = categories;
142+
this.OnboardingExperience = onboardingExperience;
143+
}
144+
145+
/// <summary>
146+
/// Feed item ID
147+
/// </summary>
148+
/// <value>Feed item ID</value>
149+
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
150+
public string Id { get; set; }
151+
152+
/// <summary>
153+
/// Feed item name
154+
/// </summary>
155+
/// <value>Feed item name</value>
156+
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
157+
public string Name { get; set; }
158+
159+
/// <summary>
160+
/// Quest ID
161+
/// </summary>
162+
/// <value>Quest ID</value>
163+
[DataMember(Name = "quest_id", IsRequired = true, EmitDefaultValue = true)]
164+
public string QuestId { get; set; }
165+
166+
/// <summary>
167+
/// Feed item priority
168+
/// </summary>
169+
/// <value>Feed item priority</value>
170+
[DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)]
171+
public int Priority { get; set; }
172+
173+
/// <summary>
174+
/// Amount of gems earnable when user completes the quest
175+
/// </summary>
176+
/// <value>Amount of gems earnable when user completes the quest</value>
177+
[DataMember(Name = "gems_earnable", IsRequired = true, EmitDefaultValue = true)]
178+
public int GemsEarnable { get; set; }
179+
180+
/// <summary>
181+
/// If the quest is bypassed, the user will not be able to see it on the feed
182+
/// </summary>
183+
/// <value>If the quest is bypassed, the user will not be able to see it on the feed</value>
184+
[DataMember(Name = "bypass", EmitDefaultValue = true)]
185+
public bool Bypass { get; set; }
186+
187+
/// <summary>
188+
/// If the quest is a day0 quest
189+
/// </summary>
190+
/// <value>If the quest is a day0 quest</value>
191+
[DataMember(Name = "day_zero", EmitDefaultValue = true)]
192+
public bool DayZero { get; set; }
193+
194+
/// <summary>
195+
/// Game ID
196+
/// </summary>
197+
/// <value>Game ID</value>
198+
[DataMember(Name = "game_id", EmitDefaultValue = false)]
199+
public Guid GameId { get; set; }
200+
201+
/// <summary>
202+
/// Game name
203+
/// </summary>
204+
/// <value>Game name</value>
205+
[DataMember(Name = "game_name", EmitDefaultValue = false)]
206+
public string GameName { get; set; }
207+
208+
/// <summary>
209+
/// Text to display when the quest is completed in an onboarding experience
210+
/// </summary>
211+
/// <value>Text to display when the quest is completed in an onboarding experience</value>
212+
[DataMember(Name = "quest_completed_popup_text", EmitDefaultValue = false)]
213+
public string QuestCompletedPopupText { get; set; }
214+
215+
/// <summary>
216+
/// The tags for the feed item
217+
/// </summary>
218+
/// <value>The tags for the feed item</value>
219+
[DataMember(Name = "tags", EmitDefaultValue = false)]
220+
public List<string> Tags { get; set; }
221+
222+
/// <summary>
223+
/// The categories for the feed item
224+
/// </summary>
225+
/// <value>The categories for the feed item</value>
226+
[DataMember(Name = "categories", EmitDefaultValue = false)]
227+
public List<string> Categories { get; set; }
228+
229+
/// <summary>
230+
/// The onboarding experience for the feed item
231+
/// </summary>
232+
/// <value>The onboarding experience for the feed item</value>
233+
[DataMember(Name = "onboarding_experience", EmitDefaultValue = false)]
234+
public string OnboardingExperience { get; set; }
235+
236+
/// <summary>
237+
/// URL of the CTA image
238+
/// </summary>
239+
/// <value>URL of the CTA image</value>
240+
[DataMember(Name = "cta_image", IsRequired = true, EmitDefaultValue = true)]
241+
public string CtaImage { get; set; }
242+
243+
/// <summary>
244+
/// Label of the CTA button
245+
/// </summary>
246+
/// <value>Label of the CTA button</value>
247+
[DataMember(Name = "cta_label", IsRequired = true, EmitDefaultValue = true)]
248+
public string CtaLabel { get; set; }
249+
250+
/// <summary>
251+
/// Description of the CTA button
252+
/// </summary>
253+
/// <value>Description of the CTA button</value>
254+
[DataMember(Name = "cta_description", IsRequired = true, EmitDefaultValue = true)]
255+
public string CtaDescription { get; set; }
256+
257+
/// <summary>
258+
/// URL of the quiz logo
259+
/// </summary>
260+
/// <value>URL of the quiz logo</value>
261+
[DataMember(Name = "quiz_logo", IsRequired = true, EmitDefaultValue = true)]
262+
public string QuizLogo { get; set; }
263+
264+
/// <summary>
265+
/// Title of the video
266+
/// </summary>
267+
/// <value>Title of the video</value>
268+
[DataMember(Name = "video_title", IsRequired = true, EmitDefaultValue = true)]
269+
public string VideoTitle { get; set; }
270+
271+
/// <summary>
272+
/// Returns the string presentation of the object
273+
/// </summary>
274+
/// <returns>String presentation of the object</returns>
275+
public override string ToString()
276+
{
277+
StringBuilder sb = new StringBuilder();
278+
sb.Append("class FeedItemFollowGame {\n");
279+
sb.Append(" Id: ").Append(Id).Append("\n");
280+
sb.Append(" Name: ").Append(Name).Append("\n");
281+
sb.Append(" QuestId: ").Append(QuestId).Append("\n");
282+
sb.Append(" Priority: ").Append(Priority).Append("\n");
283+
sb.Append(" GemsEarnable: ").Append(GemsEarnable).Append("\n");
284+
sb.Append(" Bypass: ").Append(Bypass).Append("\n");
285+
sb.Append(" DayZero: ").Append(DayZero).Append("\n");
286+
sb.Append(" GameId: ").Append(GameId).Append("\n");
287+
sb.Append(" GameName: ").Append(GameName).Append("\n");
288+
sb.Append(" QuestCompletedPopupText: ").Append(QuestCompletedPopupText).Append("\n");
289+
sb.Append(" Tags: ").Append(Tags).Append("\n");
290+
sb.Append(" Categories: ").Append(Categories).Append("\n");
291+
sb.Append(" OnboardingExperience: ").Append(OnboardingExperience).Append("\n");
292+
sb.Append(" Type: ").Append(Type).Append("\n");
293+
sb.Append(" CtaImage: ").Append(CtaImage).Append("\n");
294+
sb.Append(" CtaLabel: ").Append(CtaLabel).Append("\n");
295+
sb.Append(" CtaDescription: ").Append(CtaDescription).Append("\n");
296+
sb.Append(" QuizLogo: ").Append(QuizLogo).Append("\n");
297+
sb.Append(" VideoTitle: ").Append(VideoTitle).Append("\n");
298+
sb.Append("}\n");
299+
return sb.ToString();
300+
}
301+
302+
/// <summary>
303+
/// Returns the JSON string presentation of the object
304+
/// </summary>
305+
/// <returns>JSON string presentation of the object</returns>
306+
public virtual string ToJson()
307+
{
308+
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
309+
}
310+
311+
}
312+
313+
}

src/Packages/ZkEvmApi/Runtime/Model/FeedItemFollowGame.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Packages/ZkEvmApi/api~/openapi.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9140,6 +9140,40 @@ components:
91409140
- type
91419141
- video_title
91429142
- video_url
9143+
FeedItemFollowGame:
9144+
allOf:
9145+
- $ref: '#/components/schemas/FeedItemBase'
9146+
- type: object
9147+
- properties:
9148+
type:
9149+
description: Feed item type
9150+
enum:
9151+
- followgame
9152+
type: string
9153+
cta_image:
9154+
description: URL of the CTA image
9155+
format: uri
9156+
type: string
9157+
cta_label:
9158+
description: Label of the CTA button
9159+
type: string
9160+
cta_description:
9161+
description: Description of the CTA button
9162+
type: string
9163+
quiz_logo:
9164+
description: URL of the quiz logo
9165+
format: uri
9166+
type: string
9167+
video_title:
9168+
description: Title of the video
9169+
type: string
9170+
required:
9171+
- cta_description
9172+
- cta_image
9173+
- cta_label
9174+
- quiz_logo
9175+
- type
9176+
- video_title
91439177
FeedItemQuiz:
91449178
allOf:
91459179
- $ref: '#/components/schemas/FeedItemBase'

0 commit comments

Comments
 (0)