Skip to content
Merged
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
22 changes: 22 additions & 0 deletions src/Packages/ZkEvmApi/Documentation~/FeedItemBase.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Immutable.Api.ZkEvm.Model.FeedItemBase

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Id** | **string** | Feed item ID |
**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 |
**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]

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

26 changes: 26 additions & 0 deletions src/Packages/ZkEvmApi/Documentation~/FeedItemCTA.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Immutable.Api.ZkEvm.Model.FeedItemCTA

## Properties

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 |
**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 |
**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]

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

30 changes: 30 additions & 0 deletions src/Packages/ZkEvmApi/Documentation~/FeedItemQuiz.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Immutable.Api.ZkEvm.Model.FeedItemQuiz

## Properties

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 |
**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 |
**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]

[[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 changes: 28 additions & 0 deletions src/Packages/ZkEvmApi/Documentation~/FeedItemSignIn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Immutable.Api.ZkEvm.Model.FeedItemSignIn

## Properties

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 |
**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 |
**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]

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

24 changes: 24 additions & 0 deletions src/Packages/ZkEvmApi/Documentation~/FeedItemVideo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Immutable.Api.ZkEvm.Model.FeedItemVideo

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**VideoTitle** | **string** | Title of the video |
**VideoUrl** | **string** | URL of the video |
**Id** | **string** | Feed item ID |
**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 |
**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]

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

214 changes: 214 additions & 0 deletions src/Packages/ZkEvmApi/Runtime/Model/FeedItemBase.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
/*
* Immutable zkEVM API
*
* Immutable Multi Rollup API
*
* The version of the OpenAPI document: 1.0.0
* Contact: [email protected]
* 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="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="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 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))
{
// 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 "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;
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>
/// 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>
/// 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(" 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(" 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);
}

}

}
11 changes: 11 additions & 0 deletions src/Packages/ZkEvmApi/Runtime/Model/FeedItemBase.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading