Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/Packages/ZkEvmApi/Documentation~/FeedItemBase.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | Feed item ID |
**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]
Expand Down
10 changes: 6 additions & 4 deletions src/Packages/ZkEvmApi/Documentation~/FeedItemCTA.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**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 |
**Id** | **string** | Feed item ID |
**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]
Expand All @@ -21,6 +19,10 @@ 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]
**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 |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

18 changes: 10 additions & 8 deletions src/Packages/ZkEvmApi/Documentation~/FeedItemQuiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,13 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**QuizHeaderVideoUrl** | **string** | URL of the quiz header video | [optional]
**QuizLogo** | **string** | URL of the quiz logo | [optional]
**QuizQuestion** | **string** | The quiz question |
**QuizAnswers** | **List<string>** | Quiz answers to display |
**QuizCorrectAnswers** | **List<int>** | Quiz correct answers |
**QuizCorrectAnswerText** | **string** | The text to display when the user answers the quiz correctly | [optional]
**QuizHeaderInitialImage** | **string** | The initial image for the quiz header | [optional]
**QuizHeaderAnsweredImage** | **string** | The image to display when the user answers the quiz correctly | [optional]
**Id** | **string** | Feed item ID |
**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]
Expand All @@ -25,6 +19,14 @@ 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]
**QuizHeaderVideoUrl** | **string** | URL of the quiz header video | [optional]
**QuizLogo** | **string** | URL of the quiz logo | [optional]
**QuizQuestion** | **string** | The quiz question |
**QuizAnswers** | **List<string>** | Quiz answers to display |
**QuizCorrectAnswers** | **List<int>** | Quiz correct answers |
**QuizCorrectAnswerText** | **string** | The text to display when the user answers the quiz correctly | [optional]
**QuizHeaderInitialImage** | **string** | The initial image for the quiz header | [optional]
**QuizHeaderAnsweredImage** | **string** | The image to display when the user answers the quiz correctly | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

14 changes: 8 additions & 6 deletions src/Packages/ZkEvmApi/Documentation~/FeedItemSignIn.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**SignInRedirectUrl** | **string** | The URL to redirect to when the user completes the sign in quest |
**SignInBackground** | **string** | The background for the sign in quest |
**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 |
**Id** | **string** | Feed item ID |
**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]
Expand All @@ -23,6 +19,12 @@ 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]
**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)

6 changes: 4 additions & 2 deletions src/Packages/ZkEvmApi/Documentation~/FeedItemVideo.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**VideoTitle** | **string** | Title of the video |
**VideoUrl** | **string** | URL of the video |
**Id** | **string** | Feed item ID |
**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]
Expand All @@ -19,6 +19,8 @@ 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]
**VideoTitle** | **string** | Title of the video |
**VideoUrl** | **string** | URL of the video |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

32 changes: 31 additions & 1 deletion src/Packages/ZkEvmApi/Runtime/Model/FeedItemBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ protected FeedItemBase() { }
/// 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>
Expand All @@ -52,14 +54,20 @@ protected FeedItemBase() { }
/// <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 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))
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)
{
Expand All @@ -74,6 +82,12 @@ protected FeedItemBase() { }
}
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;
Expand All @@ -91,6 +105,13 @@ protected FeedItemBase() { }
[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>
Expand Down Expand Up @@ -119,6 +140,13 @@ protected FeedItemBase() { }
[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>
Expand Down Expand Up @@ -184,10 +212,12 @@ 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");
Expand Down
Loading