mirror of
https://github.com/tribufu/tribufu-dotnet
synced 2025-06-16 18:34:19 +00:00
Generate client with open-api-generator (#1)
* Generate project with open-api-generator * Add example project * Create wrapper class
This commit is contained in:
77
src/Tribufu.Generated/Model/AbstractOpenAPISchema.cs
Normal file
77
src/Tribufu.Generated/Model/AbstractOpenAPISchema.cs
Normal file
@ -0,0 +1,77 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.com
|
||||
* Generated by: https://github.com/openapitools/openapi-generator.git
|
||||
*/
|
||||
|
||||
|
||||
using System;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Serialization;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Abstract base class for oneOf, anyOf schemas in the OpenAPI specification
|
||||
/// </summary>
|
||||
public abstract partial class AbstractOpenAPISchema
|
||||
{
|
||||
/// <summary>
|
||||
/// Custom JSON serializer
|
||||
/// </summary>
|
||||
static public readonly JsonSerializerSettings SerializerSettings = new JsonSerializerSettings
|
||||
{
|
||||
// OpenAPI generated types generally hide default constructors.
|
||||
ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor,
|
||||
MissingMemberHandling = MissingMemberHandling.Error,
|
||||
ContractResolver = new DefaultContractResolver
|
||||
{
|
||||
NamingStrategy = new CamelCaseNamingStrategy
|
||||
{
|
||||
OverrideSpecifiedNames = false
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Custom JSON serializer for objects with additional properties
|
||||
/// </summary>
|
||||
static public readonly JsonSerializerSettings AdditionalPropertiesSerializerSettings = new JsonSerializerSettings
|
||||
{
|
||||
// OpenAPI generated types generally hide default constructors.
|
||||
ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor,
|
||||
MissingMemberHandling = MissingMemberHandling.Ignore,
|
||||
ContractResolver = new DefaultContractResolver
|
||||
{
|
||||
NamingStrategy = new CamelCaseNamingStrategy
|
||||
{
|
||||
OverrideSpecifiedNames = false
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the actual instance
|
||||
/// </summary>
|
||||
public abstract Object ActualInstance { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets IsNullable to indicate whether the instance is nullable
|
||||
/// </summary>
|
||||
public bool IsNullable { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets the schema type, which can be either `oneOf` or `anyOf`
|
||||
/// </summary>
|
||||
public string SchemaType { get; protected set; }
|
||||
|
||||
/// <summary>
|
||||
/// Converts the instance into JSON string.
|
||||
/// </summary>
|
||||
public abstract string ToJson();
|
||||
}
|
||||
}
|
146
src/Tribufu.Generated/Model/Account.cs
Normal file
146
src/Tribufu.Generated/Model/Account.cs
Normal file
@ -0,0 +1,146 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Account
|
||||
/// </summary>
|
||||
[DataContract(Name = "Account")]
|
||||
public partial class Account : IValidatableObject
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Provider
|
||||
/// </summary>
|
||||
[DataMember(Name = "provider", EmitDefaultValue = false)]
|
||||
public LoginProvider? Provider { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Account" /> class.
|
||||
/// </summary>
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="provider">provider.</param>
|
||||
/// <param name="userId">userId.</param>
|
||||
/// <param name="authorized">authorized.</param>
|
||||
/// <param name="fields">fields.</param>
|
||||
/// <param name="created">created.</param>
|
||||
/// <param name="updated">updated.</param>
|
||||
public Account(string id = default(string), string name = default(string), LoginProvider? provider = default(LoginProvider?), string userId = default(string), bool authorized = default(bool), Object fields = default(Object), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
|
||||
{
|
||||
this.Id = id;
|
||||
this.Name = name;
|
||||
this.Provider = provider;
|
||||
this.UserId = userId;
|
||||
this.Authorized = authorized;
|
||||
this.Fields = fields;
|
||||
this.Created = created;
|
||||
this.Updated = updated;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", EmitDefaultValue = true)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UserId
|
||||
/// </summary>
|
||||
[DataMember(Name = "user_id", EmitDefaultValue = false)]
|
||||
public string UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Authorized
|
||||
/// </summary>
|
||||
[DataMember(Name = "authorized", EmitDefaultValue = true)]
|
||||
public bool Authorized { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Fields
|
||||
/// </summary>
|
||||
[DataMember(Name = "fields", EmitDefaultValue = true)]
|
||||
public Object Fields { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Created
|
||||
/// </summary>
|
||||
[DataMember(Name = "created", EmitDefaultValue = false)]
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Updated
|
||||
/// </summary>
|
||||
[DataMember(Name = "updated", EmitDefaultValue = true)]
|
||||
public DateTime? Updated { 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 Account {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" Provider: ").Append(Provider).Append("\n");
|
||||
sb.Append(" UserId: ").Append(UserId).Append("\n");
|
||||
sb.Append(" Authorized: ").Append(Authorized).Append("\n");
|
||||
sb.Append(" Fields: ").Append(Fields).Append("\n");
|
||||
sb.Append(" Created: ").Append(Created).Append("\n");
|
||||
sb.Append(" Updated: ").Append(Updated).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
284
src/Tribufu.Generated/Model/Application.cs
Normal file
284
src/Tribufu.Generated/Model/Application.cs
Normal file
@ -0,0 +1,284 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Application
|
||||
/// </summary>
|
||||
[DataContract(Name = "Application")]
|
||||
public partial class Application : IValidatableObject
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Type
|
||||
/// </summary>
|
||||
[DataMember(Name = "type", EmitDefaultValue = false)]
|
||||
public ApplicationType? Type { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Application" /> class.
|
||||
/// </summary>
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="description">description.</param>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="organizationId">organizationId.</param>
|
||||
/// <param name="iconUrl">iconUrl.</param>
|
||||
/// <param name="bannerUrl">bannerUrl.</param>
|
||||
/// <param name="capsuleImageUrl">capsuleImageUrl.</param>
|
||||
/// <param name="libraryImageUrl">libraryImageUrl.</param>
|
||||
/// <param name="parentId">parentId.</param>
|
||||
/// <param name="slug">slug.</param>
|
||||
/// <param name="visibility">visibility.</param>
|
||||
/// <param name="password">password.</param>
|
||||
/// <param name="primary">primary.</param>
|
||||
/// <param name="userCount">userCount.</param>
|
||||
/// <param name="achievementCount">achievementCount.</param>
|
||||
/// <param name="badgeCount">badgeCount.</param>
|
||||
/// <param name="downloadCount">downloadCount.</param>
|
||||
/// <param name="created">created.</param>
|
||||
/// <param name="updated">updated.</param>
|
||||
public Application(string id = default(string), string name = default(string), string description = default(string), ApplicationType? type = default(ApplicationType?), string organizationId = default(string), string iconUrl = default(string), string bannerUrl = default(string), string capsuleImageUrl = default(string), string libraryImageUrl = default(string), string parentId = default(string), string slug = default(string), int visibility = default(int), string password = default(string), int primary = default(int), int userCount = default(int), int achievementCount = default(int), int? badgeCount = default(int?), int downloadCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
|
||||
{
|
||||
this.Id = id;
|
||||
this.Name = name;
|
||||
this.Description = description;
|
||||
this.Type = type;
|
||||
this.OrganizationId = organizationId;
|
||||
this.IconUrl = iconUrl;
|
||||
this.BannerUrl = bannerUrl;
|
||||
this.CapsuleImageUrl = capsuleImageUrl;
|
||||
this.LibraryImageUrl = libraryImageUrl;
|
||||
this.ParentId = parentId;
|
||||
this.Slug = slug;
|
||||
this.Visibility = visibility;
|
||||
this.Password = password;
|
||||
this.Primary = primary;
|
||||
this.UserCount = userCount;
|
||||
this.AchievementCount = achievementCount;
|
||||
this.BadgeCount = badgeCount;
|
||||
this.DownloadCount = downloadCount;
|
||||
this.Created = created;
|
||||
this.Updated = updated;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Description
|
||||
/// </summary>
|
||||
[DataMember(Name = "description", EmitDefaultValue = true)]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets OrganizationId
|
||||
/// </summary>
|
||||
[DataMember(Name = "organization_id", EmitDefaultValue = true)]
|
||||
public string OrganizationId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets IconUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "icon_url", EmitDefaultValue = true)]
|
||||
public string IconUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets BannerUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "banner_url", EmitDefaultValue = true)]
|
||||
public string BannerUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets CapsuleImageUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "capsule_image_url", EmitDefaultValue = true)]
|
||||
public string CapsuleImageUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LibraryImageUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "library_image_url", EmitDefaultValue = true)]
|
||||
public string LibraryImageUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ParentId
|
||||
/// </summary>
|
||||
[DataMember(Name = "parent_id", EmitDefaultValue = true)]
|
||||
public string ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Slug
|
||||
/// </summary>
|
||||
[DataMember(Name = "slug", EmitDefaultValue = true)]
|
||||
public string Slug { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Visibility
|
||||
/// </summary>
|
||||
[DataMember(Name = "visibility", EmitDefaultValue = false)]
|
||||
public int Visibility { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Password
|
||||
/// </summary>
|
||||
[DataMember(Name = "password", EmitDefaultValue = true)]
|
||||
public string Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Primary
|
||||
/// </summary>
|
||||
[DataMember(Name = "primary", EmitDefaultValue = false)]
|
||||
public int Primary { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UserCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "user_count", EmitDefaultValue = false)]
|
||||
public int UserCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AchievementCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "achievement_count", EmitDefaultValue = false)]
|
||||
public int AchievementCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets BadgeCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "badge_count", EmitDefaultValue = true)]
|
||||
public int? BadgeCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DownloadCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "download_count", EmitDefaultValue = false)]
|
||||
public int DownloadCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Created
|
||||
/// </summary>
|
||||
[DataMember(Name = "created", EmitDefaultValue = false)]
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Updated
|
||||
/// </summary>
|
||||
[DataMember(Name = "updated", EmitDefaultValue = true)]
|
||||
public DateTime? Updated { 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 Application {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" Description: ").Append(Description).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" OrganizationId: ").Append(OrganizationId).Append("\n");
|
||||
sb.Append(" IconUrl: ").Append(IconUrl).Append("\n");
|
||||
sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n");
|
||||
sb.Append(" CapsuleImageUrl: ").Append(CapsuleImageUrl).Append("\n");
|
||||
sb.Append(" LibraryImageUrl: ").Append(LibraryImageUrl).Append("\n");
|
||||
sb.Append(" ParentId: ").Append(ParentId).Append("\n");
|
||||
sb.Append(" Slug: ").Append(Slug).Append("\n");
|
||||
sb.Append(" Visibility: ").Append(Visibility).Append("\n");
|
||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||
sb.Append(" Primary: ").Append(Primary).Append("\n");
|
||||
sb.Append(" UserCount: ").Append(UserCount).Append("\n");
|
||||
sb.Append(" AchievementCount: ").Append(AchievementCount).Append("\n");
|
||||
sb.Append(" BadgeCount: ").Append(BadgeCount).Append("\n");
|
||||
sb.Append(" DownloadCount: ").Append(DownloadCount).Append("\n");
|
||||
sb.Append(" Created: ").Append(Created).Append("\n");
|
||||
sb.Append(" Updated: ").Append(Updated).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
// Name (string) maxLength
|
||||
if (this.Name != null && this.Name.Length > 75)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Name, length must be less than 75.", new [] { "Name" });
|
||||
}
|
||||
|
||||
// IconUrl (string) maxLength
|
||||
if (this.IconUrl != null && this.IconUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for IconUrl, length must be less than 255.", new [] { "IconUrl" });
|
||||
}
|
||||
|
||||
// BannerUrl (string) maxLength
|
||||
if (this.BannerUrl != null && this.BannerUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for BannerUrl, length must be less than 255.", new [] { "BannerUrl" });
|
||||
}
|
||||
|
||||
// CapsuleImageUrl (string) maxLength
|
||||
if (this.CapsuleImageUrl != null && this.CapsuleImageUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for CapsuleImageUrl, length must be less than 255.", new [] { "CapsuleImageUrl" });
|
||||
}
|
||||
|
||||
// LibraryImageUrl (string) maxLength
|
||||
if (this.LibraryImageUrl != null && this.LibraryImageUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for LibraryImageUrl, length must be less than 255.", new [] { "LibraryImageUrl" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
48
src/Tribufu.Generated/Model/ApplicationType.cs
Normal file
48
src/Tribufu.Generated/Model/ApplicationType.cs
Normal file
@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines ApplicationType
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum ApplicationType
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum Application for value: application
|
||||
/// </summary>
|
||||
[EnumMember(Value = "application")]
|
||||
Application,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Game for value: game
|
||||
/// </summary>
|
||||
[EnumMember(Value = "game")]
|
||||
Game
|
||||
}
|
||||
|
||||
}
|
137
src/Tribufu.Generated/Model/AuthorizeRequest.cs
Normal file
137
src/Tribufu.Generated/Model/AuthorizeRequest.cs
Normal file
@ -0,0 +1,137 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// AuthorizeRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "AuthorizeRequest")]
|
||||
public partial class AuthorizeRequest : IValidatableObject
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ResponseType
|
||||
/// </summary>
|
||||
[DataMember(Name = "response_type", EmitDefaultValue = false)]
|
||||
public ResponseType? ResponseType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets CodeChallengeMethod
|
||||
/// </summary>
|
||||
[DataMember(Name = "code_challenge_method", EmitDefaultValue = false)]
|
||||
public CodeChallengeMethod? CodeChallengeMethod { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AuthorizeRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="responseType">responseType.</param>
|
||||
/// <param name="clientId">clientId.</param>
|
||||
/// <param name="codeChallenge">codeChallenge.</param>
|
||||
/// <param name="codeChallengeMethod">codeChallengeMethod.</param>
|
||||
/// <param name="redirectUri">redirectUri.</param>
|
||||
/// <param name="scope">scope.</param>
|
||||
/// <param name="state">state.</param>
|
||||
public AuthorizeRequest(ResponseType? responseType = default(ResponseType?), string clientId = default(string), string codeChallenge = default(string), CodeChallengeMethod? codeChallengeMethod = default(CodeChallengeMethod?), string redirectUri = default(string), string scope = default(string), string state = default(string))
|
||||
{
|
||||
this.ResponseType = responseType;
|
||||
this.ClientId = clientId;
|
||||
this.CodeChallenge = codeChallenge;
|
||||
this.CodeChallengeMethod = codeChallengeMethod;
|
||||
this.RedirectUri = redirectUri;
|
||||
this.Scope = scope;
|
||||
this.State = state;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ClientId
|
||||
/// </summary>
|
||||
[DataMember(Name = "client_id", EmitDefaultValue = true)]
|
||||
public string ClientId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets CodeChallenge
|
||||
/// </summary>
|
||||
[DataMember(Name = "code_challenge", EmitDefaultValue = true)]
|
||||
public string CodeChallenge { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets RedirectUri
|
||||
/// </summary>
|
||||
[DataMember(Name = "redirect_uri", EmitDefaultValue = true)]
|
||||
public string RedirectUri { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Scope
|
||||
/// </summary>
|
||||
[DataMember(Name = "scope", EmitDefaultValue = true)]
|
||||
public string Scope { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets State
|
||||
/// </summary>
|
||||
[DataMember(Name = "state", EmitDefaultValue = true)]
|
||||
public string State { 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 AuthorizeRequest {\n");
|
||||
sb.Append(" ResponseType: ").Append(ResponseType).Append("\n");
|
||||
sb.Append(" ClientId: ").Append(ClientId).Append("\n");
|
||||
sb.Append(" CodeChallenge: ").Append(CodeChallenge).Append("\n");
|
||||
sb.Append(" CodeChallengeMethod: ").Append(CodeChallengeMethod).Append("\n");
|
||||
sb.Append(" RedirectUri: ").Append(RedirectUri).Append("\n");
|
||||
sb.Append(" Scope: ").Append(Scope).Append("\n");
|
||||
sb.Append(" State: ").Append(State).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
48
src/Tribufu.Generated/Model/CodeChallengeMethod.cs
Normal file
48
src/Tribufu.Generated/Model/CodeChallengeMethod.cs
Normal file
@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines CodeChallengeMethod
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum CodeChallengeMethod
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum Plain for value: plain
|
||||
/// </summary>
|
||||
[EnumMember(Value = "plain")]
|
||||
Plain,
|
||||
|
||||
/// <summary>
|
||||
/// Enum S256 for value: S256
|
||||
/// </summary>
|
||||
[EnumMember(Value = "S256")]
|
||||
S256
|
||||
}
|
||||
|
||||
}
|
92
src/Tribufu.Generated/Model/CryptoViewModel.cs
Normal file
92
src/Tribufu.Generated/Model/CryptoViewModel.cs
Normal file
@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// CryptoViewModel
|
||||
/// </summary>
|
||||
[DataContract(Name = "CryptoViewModel")]
|
||||
public partial class CryptoViewModel : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="CryptoViewModel" /> class.
|
||||
/// </summary>
|
||||
/// <param name="encoded">encoded.</param>
|
||||
/// <param name="decoded">decoded.</param>
|
||||
public CryptoViewModel(string encoded = default(string), string decoded = default(string))
|
||||
{
|
||||
this.Encoded = encoded;
|
||||
this.Decoded = decoded;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Encoded
|
||||
/// </summary>
|
||||
[DataMember(Name = "encoded", EmitDefaultValue = true)]
|
||||
public string Encoded { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Decoded
|
||||
/// </summary>
|
||||
[DataMember(Name = "decoded", EmitDefaultValue = true)]
|
||||
public string Decoded { 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 CryptoViewModel {\n");
|
||||
sb.Append(" Encoded: ").Append(Encoded).Append("\n");
|
||||
sb.Append(" Decoded: ").Append(Decoded).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
401
src/Tribufu.Generated/Model/Game.cs
Normal file
401
src/Tribufu.Generated/Model/Game.cs
Normal file
@ -0,0 +1,401 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Game
|
||||
/// </summary>
|
||||
[DataContract(Name = "Game")]
|
||||
public partial class Game : IValidatableObject
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Type
|
||||
/// </summary>
|
||||
[DataMember(Name = "type", EmitDefaultValue = false)]
|
||||
public ApplicationType? Type { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Game" /> class.
|
||||
/// </summary>
|
||||
/// <param name="gamePort">gamePort.</param>
|
||||
/// <param name="queryPort">queryPort.</param>
|
||||
/// <param name="rconPort">rconPort.</param>
|
||||
/// <param name="serverCount">serverCount.</param>
|
||||
/// <param name="steamAppId">steamAppId.</param>
|
||||
/// <param name="steamServerAppId">steamServerAppId.</param>
|
||||
/// <param name="enableServers">enableServers.</param>
|
||||
/// <param name="rustGamedigId">rustGamedigId.</param>
|
||||
/// <param name="nodeGamedigId">nodeGamedigId.</param>
|
||||
/// <param name="serverConnectUrl">serverConnectUrl.</param>
|
||||
/// <param name="serverTags">serverTags.</param>
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="description">description.</param>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="organizationId">organizationId.</param>
|
||||
/// <param name="iconUrl">iconUrl.</param>
|
||||
/// <param name="bannerUrl">bannerUrl.</param>
|
||||
/// <param name="capsuleImageUrl">capsuleImageUrl.</param>
|
||||
/// <param name="libraryImageUrl">libraryImageUrl.</param>
|
||||
/// <param name="parentId">parentId.</param>
|
||||
/// <param name="slug">slug.</param>
|
||||
/// <param name="visibility">visibility.</param>
|
||||
/// <param name="password">password.</param>
|
||||
/// <param name="primary">primary.</param>
|
||||
/// <param name="userCount">userCount.</param>
|
||||
/// <param name="achievementCount">achievementCount.</param>
|
||||
/// <param name="badgeCount">badgeCount.</param>
|
||||
/// <param name="downloadCount">downloadCount.</param>
|
||||
/// <param name="created">created.</param>
|
||||
/// <param name="updated">updated.</param>
|
||||
public Game(int? gamePort = default(int?), int? queryPort = default(int?), int? rconPort = default(int?), int serverCount = default(int), int? steamAppId = default(int?), int? steamServerAppId = default(int?), bool enableServers = default(bool), string rustGamedigId = default(string), string nodeGamedigId = default(string), string serverConnectUrl = default(string), string serverTags = default(string), string id = default(string), string name = default(string), string description = default(string), ApplicationType? type = default(ApplicationType?), string organizationId = default(string), string iconUrl = default(string), string bannerUrl = default(string), string capsuleImageUrl = default(string), string libraryImageUrl = default(string), string parentId = default(string), string slug = default(string), int visibility = default(int), string password = default(string), int primary = default(int), int userCount = default(int), int achievementCount = default(int), int? badgeCount = default(int?), int downloadCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
|
||||
{
|
||||
this.GamePort = gamePort;
|
||||
this.QueryPort = queryPort;
|
||||
this.RconPort = rconPort;
|
||||
this.ServerCount = serverCount;
|
||||
this.SteamAppId = steamAppId;
|
||||
this.SteamServerAppId = steamServerAppId;
|
||||
this.EnableServers = enableServers;
|
||||
this.RustGamedigId = rustGamedigId;
|
||||
this.NodeGamedigId = nodeGamedigId;
|
||||
this.ServerConnectUrl = serverConnectUrl;
|
||||
this.ServerTags = serverTags;
|
||||
this.Id = id;
|
||||
this.Name = name;
|
||||
this.Description = description;
|
||||
this.Type = type;
|
||||
this.OrganizationId = organizationId;
|
||||
this.IconUrl = iconUrl;
|
||||
this.BannerUrl = bannerUrl;
|
||||
this.CapsuleImageUrl = capsuleImageUrl;
|
||||
this.LibraryImageUrl = libraryImageUrl;
|
||||
this.ParentId = parentId;
|
||||
this.Slug = slug;
|
||||
this.Visibility = visibility;
|
||||
this.Password = password;
|
||||
this.Primary = primary;
|
||||
this.UserCount = userCount;
|
||||
this.AchievementCount = achievementCount;
|
||||
this.BadgeCount = badgeCount;
|
||||
this.DownloadCount = downloadCount;
|
||||
this.Created = created;
|
||||
this.Updated = updated;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets GamePort
|
||||
/// </summary>
|
||||
[DataMember(Name = "game_port", EmitDefaultValue = true)]
|
||||
public int? GamePort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets QueryPort
|
||||
/// </summary>
|
||||
[DataMember(Name = "query_port", EmitDefaultValue = true)]
|
||||
public int? QueryPort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets RconPort
|
||||
/// </summary>
|
||||
[DataMember(Name = "rcon_port", EmitDefaultValue = true)]
|
||||
public int? RconPort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ServerCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "server_count", EmitDefaultValue = false)]
|
||||
public int ServerCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets SteamAppId
|
||||
/// </summary>
|
||||
[DataMember(Name = "steam_app_id", EmitDefaultValue = true)]
|
||||
public int? SteamAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets SteamServerAppId
|
||||
/// </summary>
|
||||
[DataMember(Name = "steam_server_app_id", EmitDefaultValue = true)]
|
||||
public int? SteamServerAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets EnableServers
|
||||
/// </summary>
|
||||
[DataMember(Name = "enable_servers", EmitDefaultValue = true)]
|
||||
public bool EnableServers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets RustGamedigId
|
||||
/// </summary>
|
||||
[DataMember(Name = "rust_gamedig_id", EmitDefaultValue = true)]
|
||||
public string RustGamedigId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets NodeGamedigId
|
||||
/// </summary>
|
||||
[DataMember(Name = "node_gamedig_id", EmitDefaultValue = true)]
|
||||
public string NodeGamedigId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ServerConnectUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "server_connect_url", EmitDefaultValue = true)]
|
||||
public string ServerConnectUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ServerTags
|
||||
/// </summary>
|
||||
[DataMember(Name = "server_tags", EmitDefaultValue = true)]
|
||||
public string ServerTags { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Description
|
||||
/// </summary>
|
||||
[DataMember(Name = "description", EmitDefaultValue = true)]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets OrganizationId
|
||||
/// </summary>
|
||||
[DataMember(Name = "organization_id", EmitDefaultValue = true)]
|
||||
public string OrganizationId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets IconUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "icon_url", EmitDefaultValue = true)]
|
||||
public string IconUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets BannerUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "banner_url", EmitDefaultValue = true)]
|
||||
public string BannerUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets CapsuleImageUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "capsule_image_url", EmitDefaultValue = true)]
|
||||
public string CapsuleImageUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LibraryImageUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "library_image_url", EmitDefaultValue = true)]
|
||||
public string LibraryImageUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ParentId
|
||||
/// </summary>
|
||||
[DataMember(Name = "parent_id", EmitDefaultValue = true)]
|
||||
public string ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Slug
|
||||
/// </summary>
|
||||
[DataMember(Name = "slug", EmitDefaultValue = true)]
|
||||
public string Slug { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Visibility
|
||||
/// </summary>
|
||||
[DataMember(Name = "visibility", EmitDefaultValue = false)]
|
||||
public int Visibility { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Password
|
||||
/// </summary>
|
||||
[DataMember(Name = "password", EmitDefaultValue = true)]
|
||||
public string Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Primary
|
||||
/// </summary>
|
||||
[DataMember(Name = "primary", EmitDefaultValue = false)]
|
||||
public int Primary { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UserCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "user_count", EmitDefaultValue = false)]
|
||||
public int UserCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AchievementCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "achievement_count", EmitDefaultValue = false)]
|
||||
public int AchievementCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets BadgeCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "badge_count", EmitDefaultValue = true)]
|
||||
public int? BadgeCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DownloadCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "download_count", EmitDefaultValue = false)]
|
||||
public int DownloadCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Created
|
||||
/// </summary>
|
||||
[DataMember(Name = "created", EmitDefaultValue = false)]
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Updated
|
||||
/// </summary>
|
||||
[DataMember(Name = "updated", EmitDefaultValue = true)]
|
||||
public DateTime? Updated { 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 Game {\n");
|
||||
sb.Append(" GamePort: ").Append(GamePort).Append("\n");
|
||||
sb.Append(" QueryPort: ").Append(QueryPort).Append("\n");
|
||||
sb.Append(" RconPort: ").Append(RconPort).Append("\n");
|
||||
sb.Append(" ServerCount: ").Append(ServerCount).Append("\n");
|
||||
sb.Append(" SteamAppId: ").Append(SteamAppId).Append("\n");
|
||||
sb.Append(" SteamServerAppId: ").Append(SteamServerAppId).Append("\n");
|
||||
sb.Append(" EnableServers: ").Append(EnableServers).Append("\n");
|
||||
sb.Append(" RustGamedigId: ").Append(RustGamedigId).Append("\n");
|
||||
sb.Append(" NodeGamedigId: ").Append(NodeGamedigId).Append("\n");
|
||||
sb.Append(" ServerConnectUrl: ").Append(ServerConnectUrl).Append("\n");
|
||||
sb.Append(" ServerTags: ").Append(ServerTags).Append("\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" Description: ").Append(Description).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" OrganizationId: ").Append(OrganizationId).Append("\n");
|
||||
sb.Append(" IconUrl: ").Append(IconUrl).Append("\n");
|
||||
sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n");
|
||||
sb.Append(" CapsuleImageUrl: ").Append(CapsuleImageUrl).Append("\n");
|
||||
sb.Append(" LibraryImageUrl: ").Append(LibraryImageUrl).Append("\n");
|
||||
sb.Append(" ParentId: ").Append(ParentId).Append("\n");
|
||||
sb.Append(" Slug: ").Append(Slug).Append("\n");
|
||||
sb.Append(" Visibility: ").Append(Visibility).Append("\n");
|
||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||
sb.Append(" Primary: ").Append(Primary).Append("\n");
|
||||
sb.Append(" UserCount: ").Append(UserCount).Append("\n");
|
||||
sb.Append(" AchievementCount: ").Append(AchievementCount).Append("\n");
|
||||
sb.Append(" BadgeCount: ").Append(BadgeCount).Append("\n");
|
||||
sb.Append(" DownloadCount: ").Append(DownloadCount).Append("\n");
|
||||
sb.Append(" Created: ").Append(Created).Append("\n");
|
||||
sb.Append(" Updated: ").Append(Updated).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
// RustGamedigId (string) maxLength
|
||||
if (this.RustGamedigId != null && this.RustGamedigId.Length > 45)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for RustGamedigId, length must be less than 45.", new [] { "RustGamedigId" });
|
||||
}
|
||||
|
||||
// NodeGamedigId (string) maxLength
|
||||
if (this.NodeGamedigId != null && this.NodeGamedigId.Length > 45)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for NodeGamedigId, length must be less than 45.", new [] { "NodeGamedigId" });
|
||||
}
|
||||
|
||||
// ServerConnectUrl (string) maxLength
|
||||
if (this.ServerConnectUrl != null && this.ServerConnectUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for ServerConnectUrl, length must be less than 255.", new [] { "ServerConnectUrl" });
|
||||
}
|
||||
|
||||
// Name (string) maxLength
|
||||
if (this.Name != null && this.Name.Length > 75)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Name, length must be less than 75.", new [] { "Name" });
|
||||
}
|
||||
|
||||
// IconUrl (string) maxLength
|
||||
if (this.IconUrl != null && this.IconUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for IconUrl, length must be less than 255.", new [] { "IconUrl" });
|
||||
}
|
||||
|
||||
// BannerUrl (string) maxLength
|
||||
if (this.BannerUrl != null && this.BannerUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for BannerUrl, length must be less than 255.", new [] { "BannerUrl" });
|
||||
}
|
||||
|
||||
// CapsuleImageUrl (string) maxLength
|
||||
if (this.CapsuleImageUrl != null && this.CapsuleImageUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for CapsuleImageUrl, length must be less than 255.", new [] { "CapsuleImageUrl" });
|
||||
}
|
||||
|
||||
// LibraryImageUrl (string) maxLength
|
||||
if (this.LibraryImageUrl != null && this.LibraryImageUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for LibraryImageUrl, length must be less than 255.", new [] { "LibraryImageUrl" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
407
src/Tribufu.Generated/Model/GameServer.cs
Normal file
407
src/Tribufu.Generated/Model/GameServer.cs
Normal file
@ -0,0 +1,407 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// GameServer
|
||||
/// </summary>
|
||||
[DataContract(Name = "GameServer")]
|
||||
public partial class GameServer : IValidatableObject
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Status
|
||||
/// </summary>
|
||||
[DataMember(Name = "status", EmitDefaultValue = false)]
|
||||
public ServerStatus? Status { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GameServer" /> class.
|
||||
/// </summary>
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="description">description.</param>
|
||||
/// <param name="address">address.</param>
|
||||
/// <param name="gamePort">gamePort.</param>
|
||||
/// <param name="queryPort">queryPort.</param>
|
||||
/// <param name="gameId">gameId.</param>
|
||||
/// <param name="gameIconUrl">gameIconUrl.</param>
|
||||
/// <param name="varVersion">varVersion.</param>
|
||||
/// <param name="featured">featured.</param>
|
||||
/// <param name="clusterId">clusterId.</param>
|
||||
/// <param name="websiteUrl">websiteUrl.</param>
|
||||
/// <param name="bannerUrl">bannerUrl.</param>
|
||||
/// <param name="ownerId">ownerId.</param>
|
||||
/// <param name="uptime">uptime.</param>
|
||||
/// <param name="status">status.</param>
|
||||
/// <param name="ping">ping.</param>
|
||||
/// <param name="map">map.</param>
|
||||
/// <param name="usedSlots">usedSlots.</param>
|
||||
/// <param name="maxSlots">maxSlots.</param>
|
||||
/// <param name="motd">motd.</param>
|
||||
/// <param name="players">players.</param>
|
||||
/// <param name="lastOnline">lastOnline.</param>
|
||||
/// <param name="country">country.</param>
|
||||
/// <param name="steam">steam.</param>
|
||||
/// <param name="discordServerId">discordServerId.</param>
|
||||
/// <param name="youtubeVideoUrl">youtubeVideoUrl.</param>
|
||||
/// <param name="tags">tags.</param>
|
||||
/// <param name="commentCount">commentCount.</param>
|
||||
/// <param name="created">created.</param>
|
||||
/// <param name="updated">updated.</param>
|
||||
public GameServer(string id = default(string), string name = default(string), string description = default(string), string address = default(string), int? gamePort = default(int?), int queryPort = default(int), string gameId = default(string), string gameIconUrl = default(string), string varVersion = default(string), bool featured = default(bool), string clusterId = default(string), string websiteUrl = default(string), string bannerUrl = default(string), string ownerId = default(string), double uptime = default(double), ServerStatus? status = default(ServerStatus?), int? ping = default(int?), string map = default(string), int? usedSlots = default(int?), int? maxSlots = default(int?), string motd = default(string), string players = default(string), DateTime? lastOnline = default(DateTime?), string country = default(string), bool steam = default(bool), string discordServerId = default(string), string youtubeVideoUrl = default(string), string tags = default(string), int commentCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
|
||||
{
|
||||
this.Id = id;
|
||||
this.Name = name;
|
||||
this.Description = description;
|
||||
this.Address = address;
|
||||
this.GamePort = gamePort;
|
||||
this.QueryPort = queryPort;
|
||||
this.GameId = gameId;
|
||||
this.GameIconUrl = gameIconUrl;
|
||||
this.VarVersion = varVersion;
|
||||
this.Featured = featured;
|
||||
this.ClusterId = clusterId;
|
||||
this.WebsiteUrl = websiteUrl;
|
||||
this.BannerUrl = bannerUrl;
|
||||
this.OwnerId = ownerId;
|
||||
this.Uptime = uptime;
|
||||
this.Status = status;
|
||||
this.Ping = ping;
|
||||
this.Map = map;
|
||||
this.UsedSlots = usedSlots;
|
||||
this.MaxSlots = maxSlots;
|
||||
this.Motd = motd;
|
||||
this.Players = players;
|
||||
this.LastOnline = lastOnline;
|
||||
this.Country = country;
|
||||
this.Steam = steam;
|
||||
this.DiscordServerId = discordServerId;
|
||||
this.YoutubeVideoUrl = youtubeVideoUrl;
|
||||
this.Tags = tags;
|
||||
this.CommentCount = commentCount;
|
||||
this.Created = created;
|
||||
this.Updated = updated;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Description
|
||||
/// </summary>
|
||||
[DataMember(Name = "description", EmitDefaultValue = true)]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Address
|
||||
/// </summary>
|
||||
[DataMember(Name = "address", EmitDefaultValue = true)]
|
||||
public string Address { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets GamePort
|
||||
/// </summary>
|
||||
[DataMember(Name = "game_port", EmitDefaultValue = true)]
|
||||
public int? GamePort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets QueryPort
|
||||
/// </summary>
|
||||
[DataMember(Name = "query_port", EmitDefaultValue = false)]
|
||||
public int QueryPort { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets GameId
|
||||
/// </summary>
|
||||
[DataMember(Name = "game_id", EmitDefaultValue = false)]
|
||||
public string GameId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets GameIconUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "game_icon_url", EmitDefaultValue = true)]
|
||||
public string GameIconUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarVersion
|
||||
/// </summary>
|
||||
[DataMember(Name = "version", EmitDefaultValue = true)]
|
||||
public string VarVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Featured
|
||||
/// </summary>
|
||||
[DataMember(Name = "featured", EmitDefaultValue = true)]
|
||||
public bool Featured { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ClusterId
|
||||
/// </summary>
|
||||
[DataMember(Name = "cluster_id", EmitDefaultValue = true)]
|
||||
public string ClusterId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets WebsiteUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "website_url", EmitDefaultValue = true)]
|
||||
public string WebsiteUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets BannerUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "banner_url", EmitDefaultValue = true)]
|
||||
public string BannerUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets OwnerId
|
||||
/// </summary>
|
||||
[DataMember(Name = "owner_id", EmitDefaultValue = true)]
|
||||
public string OwnerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Uptime
|
||||
/// </summary>
|
||||
[DataMember(Name = "uptime", EmitDefaultValue = false)]
|
||||
public double Uptime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Ping
|
||||
/// </summary>
|
||||
[DataMember(Name = "ping", EmitDefaultValue = true)]
|
||||
public int? Ping { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Map
|
||||
/// </summary>
|
||||
[DataMember(Name = "map", EmitDefaultValue = true)]
|
||||
public string Map { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UsedSlots
|
||||
/// </summary>
|
||||
[DataMember(Name = "used_slots", EmitDefaultValue = true)]
|
||||
public int? UsedSlots { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MaxSlots
|
||||
/// </summary>
|
||||
[DataMember(Name = "max_slots", EmitDefaultValue = true)]
|
||||
public int? MaxSlots { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Motd
|
||||
/// </summary>
|
||||
[DataMember(Name = "motd", EmitDefaultValue = true)]
|
||||
public string Motd { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Players
|
||||
/// </summary>
|
||||
[DataMember(Name = "players", EmitDefaultValue = true)]
|
||||
public string Players { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LastOnline
|
||||
/// </summary>
|
||||
[DataMember(Name = "last_online", EmitDefaultValue = true)]
|
||||
public DateTime? LastOnline { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Country
|
||||
/// </summary>
|
||||
[DataMember(Name = "country", EmitDefaultValue = true)]
|
||||
public string Country { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Steam
|
||||
/// </summary>
|
||||
[DataMember(Name = "steam", EmitDefaultValue = true)]
|
||||
public bool Steam { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DiscordServerId
|
||||
/// </summary>
|
||||
[DataMember(Name = "discord_server_id", EmitDefaultValue = true)]
|
||||
public string DiscordServerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets YoutubeVideoUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "youtube_video_url", EmitDefaultValue = true)]
|
||||
public string YoutubeVideoUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Tags
|
||||
/// </summary>
|
||||
[DataMember(Name = "tags", EmitDefaultValue = true)]
|
||||
public string Tags { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets CommentCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "comment_count", EmitDefaultValue = false)]
|
||||
public int CommentCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Created
|
||||
/// </summary>
|
||||
[DataMember(Name = "created", EmitDefaultValue = false)]
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Updated
|
||||
/// </summary>
|
||||
[DataMember(Name = "updated", EmitDefaultValue = true)]
|
||||
public DateTime? Updated { 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 GameServer {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" Description: ").Append(Description).Append("\n");
|
||||
sb.Append(" Address: ").Append(Address).Append("\n");
|
||||
sb.Append(" GamePort: ").Append(GamePort).Append("\n");
|
||||
sb.Append(" QueryPort: ").Append(QueryPort).Append("\n");
|
||||
sb.Append(" GameId: ").Append(GameId).Append("\n");
|
||||
sb.Append(" GameIconUrl: ").Append(GameIconUrl).Append("\n");
|
||||
sb.Append(" VarVersion: ").Append(VarVersion).Append("\n");
|
||||
sb.Append(" Featured: ").Append(Featured).Append("\n");
|
||||
sb.Append(" ClusterId: ").Append(ClusterId).Append("\n");
|
||||
sb.Append(" WebsiteUrl: ").Append(WebsiteUrl).Append("\n");
|
||||
sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n");
|
||||
sb.Append(" OwnerId: ").Append(OwnerId).Append("\n");
|
||||
sb.Append(" Uptime: ").Append(Uptime).Append("\n");
|
||||
sb.Append(" Status: ").Append(Status).Append("\n");
|
||||
sb.Append(" Ping: ").Append(Ping).Append("\n");
|
||||
sb.Append(" Map: ").Append(Map).Append("\n");
|
||||
sb.Append(" UsedSlots: ").Append(UsedSlots).Append("\n");
|
||||
sb.Append(" MaxSlots: ").Append(MaxSlots).Append("\n");
|
||||
sb.Append(" Motd: ").Append(Motd).Append("\n");
|
||||
sb.Append(" Players: ").Append(Players).Append("\n");
|
||||
sb.Append(" LastOnline: ").Append(LastOnline).Append("\n");
|
||||
sb.Append(" Country: ").Append(Country).Append("\n");
|
||||
sb.Append(" Steam: ").Append(Steam).Append("\n");
|
||||
sb.Append(" DiscordServerId: ").Append(DiscordServerId).Append("\n");
|
||||
sb.Append(" YoutubeVideoUrl: ").Append(YoutubeVideoUrl).Append("\n");
|
||||
sb.Append(" Tags: ").Append(Tags).Append("\n");
|
||||
sb.Append(" CommentCount: ").Append(CommentCount).Append("\n");
|
||||
sb.Append(" Created: ").Append(Created).Append("\n");
|
||||
sb.Append(" Updated: ").Append(Updated).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
// Name (string) maxLength
|
||||
if (this.Name != null && this.Name.Length > 75)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Name, length must be less than 75.", new [] { "Name" });
|
||||
}
|
||||
|
||||
// Address (string) maxLength
|
||||
if (this.Address != null && this.Address.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Address, length must be less than 255.", new [] { "Address" });
|
||||
}
|
||||
|
||||
// VarVersion (string) maxLength
|
||||
if (this.VarVersion != null && this.VarVersion.Length > 45)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for VarVersion, length must be less than 45.", new [] { "VarVersion" });
|
||||
}
|
||||
|
||||
// WebsiteUrl (string) maxLength
|
||||
if (this.WebsiteUrl != null && this.WebsiteUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for WebsiteUrl, length must be less than 255.", new [] { "WebsiteUrl" });
|
||||
}
|
||||
|
||||
// BannerUrl (string) maxLength
|
||||
if (this.BannerUrl != null && this.BannerUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for BannerUrl, length must be less than 255.", new [] { "BannerUrl" });
|
||||
}
|
||||
|
||||
// Map (string) maxLength
|
||||
if (this.Map != null && this.Map.Length > 45)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Map, length must be less than 45.", new [] { "Map" });
|
||||
}
|
||||
|
||||
// Motd (string) maxLength
|
||||
if (this.Motd != null && this.Motd.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Motd, length must be less than 255.", new [] { "Motd" });
|
||||
}
|
||||
|
||||
// Country (string) maxLength
|
||||
if (this.Country != null && this.Country.Length > 2)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Country, length must be less than 2.", new [] { "Country" });
|
||||
}
|
||||
|
||||
// YoutubeVideoUrl (string) maxLength
|
||||
if (this.YoutubeVideoUrl != null && this.YoutubeVideoUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for YoutubeVideoUrl, length must be less than 255.", new [] { "YoutubeVideoUrl" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
224
src/Tribufu.Generated/Model/GameServerCluster.cs
Normal file
224
src/Tribufu.Generated/Model/GameServerCluster.cs
Normal file
@ -0,0 +1,224 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// GameServerCluster
|
||||
/// </summary>
|
||||
[DataContract(Name = "GameServerCluster")]
|
||||
public partial class GameServerCluster : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GameServerCluster" /> class.
|
||||
/// </summary>
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="description">description.</param>
|
||||
/// <param name="gameId">gameId.</param>
|
||||
/// <param name="websiteUrl">websiteUrl.</param>
|
||||
/// <param name="bannerUrl">bannerUrl.</param>
|
||||
/// <param name="ownerId">ownerId.</param>
|
||||
/// <param name="discordServerId">discordServerId.</param>
|
||||
/// <param name="youtubeVideoUrl">youtubeVideoUrl.</param>
|
||||
/// <param name="tags">tags.</param>
|
||||
/// <param name="commentCount">commentCount.</param>
|
||||
/// <param name="serverCount">serverCount.</param>
|
||||
/// <param name="created">created.</param>
|
||||
/// <param name="updated">updated.</param>
|
||||
public GameServerCluster(string id = default(string), string name = default(string), string description = default(string), string gameId = default(string), string websiteUrl = default(string), string bannerUrl = default(string), string ownerId = default(string), string discordServerId = default(string), string youtubeVideoUrl = default(string), string tags = default(string), int commentCount = default(int), int serverCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
|
||||
{
|
||||
this.Id = id;
|
||||
this.Name = name;
|
||||
this.Description = description;
|
||||
this.GameId = gameId;
|
||||
this.WebsiteUrl = websiteUrl;
|
||||
this.BannerUrl = bannerUrl;
|
||||
this.OwnerId = ownerId;
|
||||
this.DiscordServerId = discordServerId;
|
||||
this.YoutubeVideoUrl = youtubeVideoUrl;
|
||||
this.Tags = tags;
|
||||
this.CommentCount = commentCount;
|
||||
this.ServerCount = serverCount;
|
||||
this.Created = created;
|
||||
this.Updated = updated;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Description
|
||||
/// </summary>
|
||||
[DataMember(Name = "description", EmitDefaultValue = true)]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets GameId
|
||||
/// </summary>
|
||||
[DataMember(Name = "game_id", EmitDefaultValue = false)]
|
||||
public string GameId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets WebsiteUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "website_url", EmitDefaultValue = true)]
|
||||
public string WebsiteUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets BannerUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "banner_url", EmitDefaultValue = true)]
|
||||
public string BannerUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets OwnerId
|
||||
/// </summary>
|
||||
[DataMember(Name = "owner_id", EmitDefaultValue = false)]
|
||||
public string OwnerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DiscordServerId
|
||||
/// </summary>
|
||||
[DataMember(Name = "discord_server_id", EmitDefaultValue = true)]
|
||||
public string DiscordServerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets YoutubeVideoUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "youtube_video_url", EmitDefaultValue = true)]
|
||||
public string YoutubeVideoUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Tags
|
||||
/// </summary>
|
||||
[DataMember(Name = "tags", EmitDefaultValue = true)]
|
||||
public string Tags { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets CommentCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "comment_count", EmitDefaultValue = false)]
|
||||
public int CommentCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ServerCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "server_count", EmitDefaultValue = false)]
|
||||
public int ServerCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Created
|
||||
/// </summary>
|
||||
[DataMember(Name = "created", EmitDefaultValue = false)]
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Updated
|
||||
/// </summary>
|
||||
[DataMember(Name = "updated", EmitDefaultValue = true)]
|
||||
public DateTime? Updated { 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 GameServerCluster {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" Description: ").Append(Description).Append("\n");
|
||||
sb.Append(" GameId: ").Append(GameId).Append("\n");
|
||||
sb.Append(" WebsiteUrl: ").Append(WebsiteUrl).Append("\n");
|
||||
sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n");
|
||||
sb.Append(" OwnerId: ").Append(OwnerId).Append("\n");
|
||||
sb.Append(" DiscordServerId: ").Append(DiscordServerId).Append("\n");
|
||||
sb.Append(" YoutubeVideoUrl: ").Append(YoutubeVideoUrl).Append("\n");
|
||||
sb.Append(" Tags: ").Append(Tags).Append("\n");
|
||||
sb.Append(" CommentCount: ").Append(CommentCount).Append("\n");
|
||||
sb.Append(" ServerCount: ").Append(ServerCount).Append("\n");
|
||||
sb.Append(" Created: ").Append(Created).Append("\n");
|
||||
sb.Append(" Updated: ").Append(Updated).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
// Name (string) maxLength
|
||||
if (this.Name != null && this.Name.Length > 75)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Name, length must be less than 75.", new [] { "Name" });
|
||||
}
|
||||
|
||||
// WebsiteUrl (string) maxLength
|
||||
if (this.WebsiteUrl != null && this.WebsiteUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for WebsiteUrl, length must be less than 255.", new [] { "WebsiteUrl" });
|
||||
}
|
||||
|
||||
// BannerUrl (string) maxLength
|
||||
if (this.BannerUrl != null && this.BannerUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for BannerUrl, length must be less than 255.", new [] { "BannerUrl" });
|
||||
}
|
||||
|
||||
// YoutubeVideoUrl (string) maxLength
|
||||
if (this.YoutubeVideoUrl != null && this.YoutubeVideoUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for YoutubeVideoUrl, length must be less than 255.", new [] { "YoutubeVideoUrl" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
60
src/Tribufu.Generated/Model/GrantType.cs
Normal file
60
src/Tribufu.Generated/Model/GrantType.cs
Normal file
@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines GrantType
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum GrantType
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum AuthorizationCode for value: authorization_code
|
||||
/// </summary>
|
||||
[EnumMember(Value = "authorization_code")]
|
||||
AuthorizationCode,
|
||||
|
||||
/// <summary>
|
||||
/// Enum ClientCredentials for value: client_credentials
|
||||
/// </summary>
|
||||
[EnumMember(Value = "client_credentials")]
|
||||
ClientCredentials,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Password for value: password
|
||||
/// </summary>
|
||||
[EnumMember(Value = "password")]
|
||||
Password,
|
||||
|
||||
/// <summary>
|
||||
/// Enum RefreshToken for value: refresh_token
|
||||
/// </summary>
|
||||
[EnumMember(Value = "refresh_token")]
|
||||
RefreshToken
|
||||
}
|
||||
|
||||
}
|
218
src/Tribufu.Generated/Model/Group.cs
Normal file
218
src/Tribufu.Generated/Model/Group.cs
Normal file
@ -0,0 +1,218 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Group
|
||||
/// </summary>
|
||||
[DataContract(Name = "Group")]
|
||||
public partial class Group : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Group" /> class.
|
||||
/// </summary>
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="uuid">uuid.</param>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="tag">tag.</param>
|
||||
/// <param name="description">description.</param>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="privacy">privacy.</param>
|
||||
/// <param name="ownerId">ownerId.</param>
|
||||
/// <param name="verified">verified.</param>
|
||||
/// <param name="photoUrl">photoUrl.</param>
|
||||
/// <param name="bannerUrl">bannerUrl.</param>
|
||||
/// <param name="memberCount">memberCount.</param>
|
||||
/// <param name="followerCount">followerCount.</param>
|
||||
/// <param name="viewCount">viewCount.</param>
|
||||
/// <param name="created">created.</param>
|
||||
/// <param name="updated">updated.</param>
|
||||
public Group(string id = default(string), Guid uuid = default(Guid), string name = default(string), string tag = default(string), string description = default(string), int type = default(int), int privacy = default(int), string ownerId = default(string), bool verified = default(bool), string photoUrl = default(string), string bannerUrl = default(string), int memberCount = default(int), int followerCount = default(int), int viewCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
|
||||
{
|
||||
this.Id = id;
|
||||
this.Uuid = uuid;
|
||||
this.Name = name;
|
||||
this.Tag = tag;
|
||||
this.Description = description;
|
||||
this.Type = type;
|
||||
this.Privacy = privacy;
|
||||
this.OwnerId = ownerId;
|
||||
this.Verified = verified;
|
||||
this.PhotoUrl = photoUrl;
|
||||
this.BannerUrl = bannerUrl;
|
||||
this.MemberCount = memberCount;
|
||||
this.FollowerCount = followerCount;
|
||||
this.ViewCount = viewCount;
|
||||
this.Created = created;
|
||||
this.Updated = updated;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Uuid
|
||||
/// </summary>
|
||||
[DataMember(Name = "uuid", EmitDefaultValue = false)]
|
||||
public Guid Uuid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Tag
|
||||
/// </summary>
|
||||
[DataMember(Name = "tag", EmitDefaultValue = true)]
|
||||
public string Tag { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Description
|
||||
/// </summary>
|
||||
[DataMember(Name = "description", EmitDefaultValue = true)]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Type
|
||||
/// </summary>
|
||||
[DataMember(Name = "type", EmitDefaultValue = false)]
|
||||
public int Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Privacy
|
||||
/// </summary>
|
||||
[DataMember(Name = "privacy", EmitDefaultValue = false)]
|
||||
public int Privacy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets OwnerId
|
||||
/// </summary>
|
||||
[DataMember(Name = "owner_id", EmitDefaultValue = false)]
|
||||
public string OwnerId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Verified
|
||||
/// </summary>
|
||||
[DataMember(Name = "verified", EmitDefaultValue = true)]
|
||||
public bool Verified { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PhotoUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "photo_url", EmitDefaultValue = true)]
|
||||
public string PhotoUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets BannerUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "banner_url", EmitDefaultValue = true)]
|
||||
public string BannerUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MemberCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "member_count", EmitDefaultValue = false)]
|
||||
public int MemberCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets FollowerCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "follower_count", EmitDefaultValue = false)]
|
||||
public int FollowerCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ViewCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "view_count", EmitDefaultValue = false)]
|
||||
public int ViewCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Created
|
||||
/// </summary>
|
||||
[DataMember(Name = "created", EmitDefaultValue = false)]
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Updated
|
||||
/// </summary>
|
||||
[DataMember(Name = "updated", EmitDefaultValue = true)]
|
||||
public DateTime? Updated { 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 Group {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" Tag: ").Append(Tag).Append("\n");
|
||||
sb.Append(" Description: ").Append(Description).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" Privacy: ").Append(Privacy).Append("\n");
|
||||
sb.Append(" OwnerId: ").Append(OwnerId).Append("\n");
|
||||
sb.Append(" Verified: ").Append(Verified).Append("\n");
|
||||
sb.Append(" PhotoUrl: ").Append(PhotoUrl).Append("\n");
|
||||
sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n");
|
||||
sb.Append(" MemberCount: ").Append(MemberCount).Append("\n");
|
||||
sb.Append(" FollowerCount: ").Append(FollowerCount).Append("\n");
|
||||
sb.Append(" ViewCount: ").Append(ViewCount).Append("\n");
|
||||
sb.Append(" Created: ").Append(Created).Append("\n");
|
||||
sb.Append(" Updated: ").Append(Updated).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
137
src/Tribufu.Generated/Model/GroupGame.cs
Normal file
137
src/Tribufu.Generated/Model/GroupGame.cs
Normal file
@ -0,0 +1,137 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// GroupGame
|
||||
/// </summary>
|
||||
[DataContract(Name = "GroupGame")]
|
||||
public partial class GroupGame : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GroupGame" /> class.
|
||||
/// </summary>
|
||||
/// <param name="groupId">groupId.</param>
|
||||
/// <param name="group">group.</param>
|
||||
/// <param name="applicationId">applicationId.</param>
|
||||
/// <param name="application">application.</param>
|
||||
/// <param name="stats">stats.</param>
|
||||
/// <param name="acquired">acquired.</param>
|
||||
/// <param name="lastUsed">lastUsed.</param>
|
||||
public GroupGame(string groupId = default(string), Group group = default(Group), string applicationId = default(string), Application application = default(Application), Object stats = default(Object), DateTime acquired = default(DateTime), DateTime? lastUsed = default(DateTime?))
|
||||
{
|
||||
this.GroupId = groupId;
|
||||
this.Group = group;
|
||||
this.ApplicationId = applicationId;
|
||||
this.Application = application;
|
||||
this.Stats = stats;
|
||||
this.Acquired = acquired;
|
||||
this.LastUsed = lastUsed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets GroupId
|
||||
/// </summary>
|
||||
[DataMember(Name = "group_id", EmitDefaultValue = false)]
|
||||
public string GroupId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Group
|
||||
/// </summary>
|
||||
[DataMember(Name = "group", EmitDefaultValue = false)]
|
||||
public Group Group { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ApplicationId
|
||||
/// </summary>
|
||||
[DataMember(Name = "application_id", EmitDefaultValue = false)]
|
||||
public string ApplicationId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Application
|
||||
/// </summary>
|
||||
[DataMember(Name = "application", EmitDefaultValue = false)]
|
||||
public Application Application { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Stats
|
||||
/// </summary>
|
||||
[DataMember(Name = "stats", EmitDefaultValue = true)]
|
||||
public Object Stats { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Acquired
|
||||
/// </summary>
|
||||
[DataMember(Name = "acquired", EmitDefaultValue = false)]
|
||||
public DateTime Acquired { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LastUsed
|
||||
/// </summary>
|
||||
[DataMember(Name = "last_used", EmitDefaultValue = true)]
|
||||
public DateTime? LastUsed { 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 GroupGame {\n");
|
||||
sb.Append(" GroupId: ").Append(GroupId).Append("\n");
|
||||
sb.Append(" Group: ").Append(Group).Append("\n");
|
||||
sb.Append(" ApplicationId: ").Append(ApplicationId).Append("\n");
|
||||
sb.Append(" Application: ").Append(Application).Append("\n");
|
||||
sb.Append(" Stats: ").Append(Stats).Append("\n");
|
||||
sb.Append(" Acquired: ").Append(Acquired).Append("\n");
|
||||
sb.Append(" LastUsed: ").Append(LastUsed).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
155
src/Tribufu.Generated/Model/GroupMember.cs
Normal file
155
src/Tribufu.Generated/Model/GroupMember.cs
Normal file
@ -0,0 +1,155 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// GroupMember
|
||||
/// </summary>
|
||||
[DataContract(Name = "GroupMember")]
|
||||
public partial class GroupMember : IValidatableObject
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Rank
|
||||
/// </summary>
|
||||
[DataMember(Name = "rank", EmitDefaultValue = false)]
|
||||
public GroupRank? Rank { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="GroupMember" /> class.
|
||||
/// </summary>
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="uuid">uuid.</param>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="displayName">displayName.</param>
|
||||
/// <param name="verified">verified.</param>
|
||||
/// <param name="photoUrl">photoUrl.</param>
|
||||
/// <param name="lastOnline">lastOnline.</param>
|
||||
/// <param name="rank">rank.</param>
|
||||
/// <param name="since">since.</param>
|
||||
public GroupMember(string id = default(string), Guid uuid = default(Guid), string name = default(string), string displayName = default(string), bool verified = default(bool), string photoUrl = default(string), DateTime? lastOnline = default(DateTime?), GroupRank? rank = default(GroupRank?), DateTime since = default(DateTime))
|
||||
{
|
||||
this.Id = id;
|
||||
this.Uuid = uuid;
|
||||
this.Name = name;
|
||||
this.DisplayName = displayName;
|
||||
this.Verified = verified;
|
||||
this.PhotoUrl = photoUrl;
|
||||
this.LastOnline = lastOnline;
|
||||
this.Rank = rank;
|
||||
this.Since = since;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Uuid
|
||||
/// </summary>
|
||||
[DataMember(Name = "uuid", EmitDefaultValue = false)]
|
||||
public Guid Uuid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DisplayName
|
||||
/// </summary>
|
||||
[DataMember(Name = "display_name", EmitDefaultValue = true)]
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Verified
|
||||
/// </summary>
|
||||
[DataMember(Name = "verified", EmitDefaultValue = true)]
|
||||
public bool Verified { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PhotoUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "photo_url", EmitDefaultValue = true)]
|
||||
public string PhotoUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LastOnline
|
||||
/// </summary>
|
||||
[DataMember(Name = "last_online", EmitDefaultValue = true)]
|
||||
public DateTime? LastOnline { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Since
|
||||
/// </summary>
|
||||
[DataMember(Name = "since", EmitDefaultValue = false)]
|
||||
public DateTime Since { 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 GroupMember {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" DisplayName: ").Append(DisplayName).Append("\n");
|
||||
sb.Append(" Verified: ").Append(Verified).Append("\n");
|
||||
sb.Append(" PhotoUrl: ").Append(PhotoUrl).Append("\n");
|
||||
sb.Append(" LastOnline: ").Append(LastOnline).Append("\n");
|
||||
sb.Append(" Rank: ").Append(Rank).Append("\n");
|
||||
sb.Append(" Since: ").Append(Since).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
54
src/Tribufu.Generated/Model/GroupRank.cs
Normal file
54
src/Tribufu.Generated/Model/GroupRank.cs
Normal file
@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines GroupRank
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum GroupRank
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum Member for value: member
|
||||
/// </summary>
|
||||
[EnumMember(Value = "member")]
|
||||
Member,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Leader for value: leader
|
||||
/// </summary>
|
||||
[EnumMember(Value = "leader")]
|
||||
Leader,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Owner for value: owner
|
||||
/// </summary>
|
||||
[EnumMember(Value = "owner")]
|
||||
Owner
|
||||
}
|
||||
|
||||
}
|
83
src/Tribufu.Generated/Model/HashViewModel.cs
Normal file
83
src/Tribufu.Generated/Model/HashViewModel.cs
Normal file
@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// HashViewModel
|
||||
/// </summary>
|
||||
[DataContract(Name = "HashViewModel")]
|
||||
public partial class HashViewModel : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="HashViewModel" /> class.
|
||||
/// </summary>
|
||||
/// <param name="value">value.</param>
|
||||
public HashViewModel(string value = default(string))
|
||||
{
|
||||
this.Value = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Value
|
||||
/// </summary>
|
||||
[DataMember(Name = "value", EmitDefaultValue = true)]
|
||||
public string Value { 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 HashViewModel {\n");
|
||||
sb.Append(" Value: ").Append(Value).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
92
src/Tribufu.Generated/Model/IntrospectRequest.cs
Normal file
92
src/Tribufu.Generated/Model/IntrospectRequest.cs
Normal file
@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// IntrospectRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "IntrospectRequest")]
|
||||
public partial class IntrospectRequest : IValidatableObject
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets TokenTypeHint
|
||||
/// </summary>
|
||||
[DataMember(Name = "token_type_hint", EmitDefaultValue = false)]
|
||||
public TokenHintType? TokenTypeHint { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="IntrospectRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="token">token.</param>
|
||||
/// <param name="tokenTypeHint">tokenTypeHint.</param>
|
||||
public IntrospectRequest(string token = default(string), TokenHintType? tokenTypeHint = default(TokenHintType?))
|
||||
{
|
||||
this.Token = token;
|
||||
this.TokenTypeHint = tokenTypeHint;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Token
|
||||
/// </summary>
|
||||
[DataMember(Name = "token", EmitDefaultValue = true)]
|
||||
public string Token { 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 IntrospectRequest {\n");
|
||||
sb.Append(" Token: ").Append(Token).Append("\n");
|
||||
sb.Append(" TokenTypeHint: ").Append(TokenTypeHint).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
320
src/Tribufu.Generated/Model/IpAddress.cs
Normal file
320
src/Tribufu.Generated/Model/IpAddress.cs
Normal file
@ -0,0 +1,320 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// IpAddress
|
||||
/// </summary>
|
||||
[DataContract(Name = "IpAddress")]
|
||||
public partial class IpAddress : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="IpAddress" /> class.
|
||||
/// </summary>
|
||||
/// <param name="address">address.</param>
|
||||
/// <param name="varVersion">varVersion.</param>
|
||||
/// <param name="network">network.</param>
|
||||
/// <param name="reserved">reserved.</param>
|
||||
/// <param name="asn">asn.</param>
|
||||
/// <param name="isp">isp.</param>
|
||||
/// <param name="continent">continent.</param>
|
||||
/// <param name="country">country.</param>
|
||||
/// <param name="region">region.</param>
|
||||
/// <param name="city">city.</param>
|
||||
/// <param name="postalCode">postalCode.</param>
|
||||
/// <param name="callingCode">callingCode.</param>
|
||||
/// <param name="tld">tld.</param>
|
||||
/// <param name="language">language.</param>
|
||||
/// <param name="timezone">timezone.</param>
|
||||
/// <param name="currency">currency.</param>
|
||||
/// <param name="latitude">latitude.</param>
|
||||
/// <param name="longitude">longitude.</param>
|
||||
public IpAddress(string address = default(string), int varVersion = default(int), string network = default(string), bool reserved = default(bool), string asn = default(string), string isp = default(string), string continent = default(string), string country = default(string), string region = default(string), string city = default(string), string postalCode = default(string), string callingCode = default(string), string tld = default(string), string language = default(string), string timezone = default(string), string currency = default(string), float? latitude = default(float?), float? longitude = default(float?))
|
||||
{
|
||||
this.Address = address;
|
||||
this.VarVersion = varVersion;
|
||||
this.Network = network;
|
||||
this.Reserved = reserved;
|
||||
this.Asn = asn;
|
||||
this.Isp = isp;
|
||||
this.Continent = continent;
|
||||
this.Country = country;
|
||||
this.Region = region;
|
||||
this.City = city;
|
||||
this.PostalCode = postalCode;
|
||||
this.CallingCode = callingCode;
|
||||
this.Tld = tld;
|
||||
this.Language = language;
|
||||
this.Timezone = timezone;
|
||||
this.Currency = currency;
|
||||
this.Latitude = latitude;
|
||||
this.Longitude = longitude;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Address
|
||||
/// </summary>
|
||||
[DataMember(Name = "address", EmitDefaultValue = true)]
|
||||
public string Address { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarVersion
|
||||
/// </summary>
|
||||
[DataMember(Name = "version", EmitDefaultValue = false)]
|
||||
public int VarVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Network
|
||||
/// </summary>
|
||||
[DataMember(Name = "network", EmitDefaultValue = true)]
|
||||
public string Network { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Reserved
|
||||
/// </summary>
|
||||
[DataMember(Name = "reserved", EmitDefaultValue = true)]
|
||||
public bool Reserved { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Asn
|
||||
/// </summary>
|
||||
[DataMember(Name = "asn", EmitDefaultValue = true)]
|
||||
public string Asn { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Isp
|
||||
/// </summary>
|
||||
[DataMember(Name = "isp", EmitDefaultValue = true)]
|
||||
public string Isp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Continent
|
||||
/// </summary>
|
||||
[DataMember(Name = "continent", EmitDefaultValue = true)]
|
||||
public string Continent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Country
|
||||
/// </summary>
|
||||
[DataMember(Name = "country", EmitDefaultValue = true)]
|
||||
public string Country { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Region
|
||||
/// </summary>
|
||||
[DataMember(Name = "region", EmitDefaultValue = true)]
|
||||
public string Region { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets City
|
||||
/// </summary>
|
||||
[DataMember(Name = "city", EmitDefaultValue = true)]
|
||||
public string City { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PostalCode
|
||||
/// </summary>
|
||||
[DataMember(Name = "postal_code", EmitDefaultValue = true)]
|
||||
public string PostalCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets CallingCode
|
||||
/// </summary>
|
||||
[DataMember(Name = "calling_code", EmitDefaultValue = true)]
|
||||
public string CallingCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Tld
|
||||
/// </summary>
|
||||
[DataMember(Name = "tld", EmitDefaultValue = true)]
|
||||
public string Tld { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Language
|
||||
/// </summary>
|
||||
[DataMember(Name = "language", EmitDefaultValue = true)]
|
||||
public string Language { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Timezone
|
||||
/// </summary>
|
||||
[DataMember(Name = "timezone", EmitDefaultValue = true)]
|
||||
public string Timezone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Currency
|
||||
/// </summary>
|
||||
[DataMember(Name = "currency", EmitDefaultValue = true)]
|
||||
public string Currency { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Latitude
|
||||
/// </summary>
|
||||
[DataMember(Name = "latitude", EmitDefaultValue = true)]
|
||||
public float? Latitude { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Longitude
|
||||
/// </summary>
|
||||
[DataMember(Name = "longitude", EmitDefaultValue = true)]
|
||||
public float? Longitude { 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 IpAddress {\n");
|
||||
sb.Append(" Address: ").Append(Address).Append("\n");
|
||||
sb.Append(" VarVersion: ").Append(VarVersion).Append("\n");
|
||||
sb.Append(" Network: ").Append(Network).Append("\n");
|
||||
sb.Append(" Reserved: ").Append(Reserved).Append("\n");
|
||||
sb.Append(" Asn: ").Append(Asn).Append("\n");
|
||||
sb.Append(" Isp: ").Append(Isp).Append("\n");
|
||||
sb.Append(" Continent: ").Append(Continent).Append("\n");
|
||||
sb.Append(" Country: ").Append(Country).Append("\n");
|
||||
sb.Append(" Region: ").Append(Region).Append("\n");
|
||||
sb.Append(" City: ").Append(City).Append("\n");
|
||||
sb.Append(" PostalCode: ").Append(PostalCode).Append("\n");
|
||||
sb.Append(" CallingCode: ").Append(CallingCode).Append("\n");
|
||||
sb.Append(" Tld: ").Append(Tld).Append("\n");
|
||||
sb.Append(" Language: ").Append(Language).Append("\n");
|
||||
sb.Append(" Timezone: ").Append(Timezone).Append("\n");
|
||||
sb.Append(" Currency: ").Append(Currency).Append("\n");
|
||||
sb.Append(" Latitude: ").Append(Latitude).Append("\n");
|
||||
sb.Append(" Longitude: ").Append(Longitude).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
// Address (string) maxLength
|
||||
if (this.Address != null && this.Address.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Address, length must be less than 255.", new [] { "Address" });
|
||||
}
|
||||
|
||||
// Network (string) maxLength
|
||||
if (this.Network != null && this.Network.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Network, length must be less than 255.", new [] { "Network" });
|
||||
}
|
||||
|
||||
// Asn (string) maxLength
|
||||
if (this.Asn != null && this.Asn.Length > 10)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Asn, length must be less than 10.", new [] { "Asn" });
|
||||
}
|
||||
|
||||
// Isp (string) maxLength
|
||||
if (this.Isp != null && this.Isp.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Isp, length must be less than 255.", new [] { "Isp" });
|
||||
}
|
||||
|
||||
// Continent (string) maxLength
|
||||
if (this.Continent != null && this.Continent.Length > 2)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Continent, length must be less than 2.", new [] { "Continent" });
|
||||
}
|
||||
|
||||
// Country (string) maxLength
|
||||
if (this.Country != null && this.Country.Length > 2)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Country, length must be less than 2.", new [] { "Country" });
|
||||
}
|
||||
|
||||
// Region (string) maxLength
|
||||
if (this.Region != null && this.Region.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Region, length must be less than 255.", new [] { "Region" });
|
||||
}
|
||||
|
||||
// City (string) maxLength
|
||||
if (this.City != null && this.City.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for City, length must be less than 255.", new [] { "City" });
|
||||
}
|
||||
|
||||
// PostalCode (string) maxLength
|
||||
if (this.PostalCode != null && this.PostalCode.Length > 45)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for PostalCode, length must be less than 45.", new [] { "PostalCode" });
|
||||
}
|
||||
|
||||
// CallingCode (string) maxLength
|
||||
if (this.CallingCode != null && this.CallingCode.Length > 4)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for CallingCode, length must be less than 4.", new [] { "CallingCode" });
|
||||
}
|
||||
|
||||
// Tld (string) maxLength
|
||||
if (this.Tld != null && this.Tld.Length > 3)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Tld, length must be less than 3.", new [] { "Tld" });
|
||||
}
|
||||
|
||||
// Language (string) maxLength
|
||||
if (this.Language != null && this.Language.Length > 5)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Language, length must be less than 5.", new [] { "Language" });
|
||||
}
|
||||
|
||||
// Timezone (string) maxLength
|
||||
if (this.Timezone != null && this.Timezone.Length > 45)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Timezone, length must be less than 45.", new [] { "Timezone" });
|
||||
}
|
||||
|
||||
// Currency (string) maxLength
|
||||
if (this.Currency != null && this.Currency.Length > 3)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Currency, length must be less than 3.", new [] { "Currency" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
128
src/Tribufu.Generated/Model/LeaderboardItem.cs
Normal file
128
src/Tribufu.Generated/Model/LeaderboardItem.cs
Normal file
@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// LeaderboardItem
|
||||
/// </summary>
|
||||
[DataContract(Name = "LeaderboardItem")]
|
||||
public partial class LeaderboardItem : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="LeaderboardItem" /> class.
|
||||
/// </summary>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="displayName">displayName.</param>
|
||||
/// <param name="photoUrl">photoUrl.</param>
|
||||
/// <param name="level">level.</param>
|
||||
/// <param name="experience">experience.</param>
|
||||
/// <param name="points">points.</param>
|
||||
public LeaderboardItem(string name = default(string), string displayName = default(string), string photoUrl = default(string), int level = default(int), double experience = default(double), double points = default(double))
|
||||
{
|
||||
this.Name = name;
|
||||
this.DisplayName = displayName;
|
||||
this.PhotoUrl = photoUrl;
|
||||
this.Level = level;
|
||||
this.Experience = experience;
|
||||
this.Points = points;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DisplayName
|
||||
/// </summary>
|
||||
[DataMember(Name = "display_name", EmitDefaultValue = true)]
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PhotoUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "photo_url", EmitDefaultValue = true)]
|
||||
public string PhotoUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Level
|
||||
/// </summary>
|
||||
[DataMember(Name = "level", EmitDefaultValue = false)]
|
||||
public int Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Experience
|
||||
/// </summary>
|
||||
[DataMember(Name = "experience", EmitDefaultValue = false)]
|
||||
public double Experience { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Points
|
||||
/// </summary>
|
||||
[DataMember(Name = "points", EmitDefaultValue = false)]
|
||||
public double Points { 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 LeaderboardItem {\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" DisplayName: ").Append(DisplayName).Append("\n");
|
||||
sb.Append(" PhotoUrl: ").Append(PhotoUrl).Append("\n");
|
||||
sb.Append(" Level: ").Append(Level).Append("\n");
|
||||
sb.Append(" Experience: ").Append(Experience).Append("\n");
|
||||
sb.Append(" Points: ").Append(Points).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
48
src/Tribufu.Generated/Model/LeaderboardOrder.cs
Normal file
48
src/Tribufu.Generated/Model/LeaderboardOrder.cs
Normal file
@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines LeaderboardOrder
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum LeaderboardOrder
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum Level for value: level
|
||||
/// </summary>
|
||||
[EnumMember(Value = "level")]
|
||||
Level,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Points for value: points
|
||||
/// </summary>
|
||||
[EnumMember(Value = "points")]
|
||||
Points
|
||||
}
|
||||
|
||||
}
|
78
src/Tribufu.Generated/Model/LoginProvider.cs
Normal file
78
src/Tribufu.Generated/Model/LoginProvider.cs
Normal file
@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines LoginProvider
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum LoginProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum Steam for value: steam
|
||||
/// </summary>
|
||||
[EnumMember(Value = "steam")]
|
||||
Steam,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Epic for value: epic
|
||||
/// </summary>
|
||||
[EnumMember(Value = "epic")]
|
||||
Epic,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Discord for value: discord
|
||||
/// </summary>
|
||||
[EnumMember(Value = "discord")]
|
||||
Discord,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Microsoft for value: microsoft
|
||||
/// </summary>
|
||||
[EnumMember(Value = "microsoft")]
|
||||
Microsoft,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Playstation for value: playstation
|
||||
/// </summary>
|
||||
[EnumMember(Value = "playstation")]
|
||||
Playstation,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Google for value: google
|
||||
/// </summary>
|
||||
[EnumMember(Value = "google")]
|
||||
Google,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Apple for value: apple
|
||||
/// </summary>
|
||||
[EnumMember(Value = "apple")]
|
||||
Apple
|
||||
}
|
||||
|
||||
}
|
92
src/Tribufu.Generated/Model/LoginRequest.cs
Normal file
92
src/Tribufu.Generated/Model/LoginRequest.cs
Normal file
@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// LoginRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "LoginRequest")]
|
||||
public partial class LoginRequest : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="LoginRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="login">login.</param>
|
||||
/// <param name="password">password.</param>
|
||||
public LoginRequest(string login = default(string), string password = default(string))
|
||||
{
|
||||
this.Login = login;
|
||||
this.Password = password;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Login
|
||||
/// </summary>
|
||||
[DataMember(Name = "login", EmitDefaultValue = true)]
|
||||
public string Login { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Password
|
||||
/// </summary>
|
||||
[DataMember(Name = "password", EmitDefaultValue = true)]
|
||||
public string Password { 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 LoginRequest {\n");
|
||||
sb.Append(" Login: ").Append(Login).Append("\n");
|
||||
sb.Append(" Password: ").Append(Password).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
110
src/Tribufu.Generated/Model/LoginResponse.cs
Normal file
110
src/Tribufu.Generated/Model/LoginResponse.cs
Normal file
@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// LoginResponse
|
||||
/// </summary>
|
||||
[DataContract(Name = "LoginResponse")]
|
||||
public partial class LoginResponse : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="LoginResponse" /> class.
|
||||
/// </summary>
|
||||
/// <param name="user">user.</param>
|
||||
/// <param name="accessToken">accessToken.</param>
|
||||
/// <param name="refreshToken">refreshToken.</param>
|
||||
/// <param name="expiresIn">expiresIn.</param>
|
||||
public LoginResponse(UserInfo user = default(UserInfo), string accessToken = default(string), string refreshToken = default(string), long expiresIn = default(long))
|
||||
{
|
||||
this.User = user;
|
||||
this.AccessToken = accessToken;
|
||||
this.RefreshToken = refreshToken;
|
||||
this.ExpiresIn = expiresIn;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets User
|
||||
/// </summary>
|
||||
[DataMember(Name = "user", EmitDefaultValue = false)]
|
||||
public UserInfo User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AccessToken
|
||||
/// </summary>
|
||||
[DataMember(Name = "access_token", EmitDefaultValue = true)]
|
||||
public string AccessToken { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets RefreshToken
|
||||
/// </summary>
|
||||
[DataMember(Name = "refresh_token", EmitDefaultValue = true)]
|
||||
public string RefreshToken { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ExpiresIn
|
||||
/// </summary>
|
||||
[DataMember(Name = "expires_in", EmitDefaultValue = false)]
|
||||
public long ExpiresIn { 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 LoginResponse {\n");
|
||||
sb.Append(" User: ").Append(User).Append("\n");
|
||||
sb.Append(" AccessToken: ").Append(AccessToken).Append("\n");
|
||||
sb.Append(" RefreshToken: ").Append(RefreshToken).Append("\n");
|
||||
sb.Append(" ExpiresIn: ").Append(ExpiresIn).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
188
src/Tribufu.Generated/Model/Package.cs
Normal file
188
src/Tribufu.Generated/Model/Package.cs
Normal file
@ -0,0 +1,188 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Package
|
||||
/// </summary>
|
||||
[DataContract(Name = "Package")]
|
||||
public partial class Package : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Package" /> class.
|
||||
/// </summary>
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="description">description.</param>
|
||||
/// <param name="imageUrl">imageUrl.</param>
|
||||
/// <param name="authorId">authorId.</param>
|
||||
/// <param name="varVersion">varVersion.</param>
|
||||
/// <param name="fileUrl">fileUrl.</param>
|
||||
/// <param name="rawSize">rawSize.</param>
|
||||
/// <param name="downloadCount">downloadCount.</param>
|
||||
/// <param name="lastDownload">lastDownload.</param>
|
||||
/// <param name="created">created.</param>
|
||||
/// <param name="updated">updated.</param>
|
||||
public Package(string id = default(string), string name = default(string), string description = default(string), string imageUrl = default(string), string authorId = default(string), string varVersion = default(string), string fileUrl = default(string), double rawSize = default(double), int downloadCount = default(int), DateTime? lastDownload = default(DateTime?), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
|
||||
{
|
||||
this.Id = id;
|
||||
this.Name = name;
|
||||
this.Description = description;
|
||||
this.ImageUrl = imageUrl;
|
||||
this.AuthorId = authorId;
|
||||
this.VarVersion = varVersion;
|
||||
this.FileUrl = fileUrl;
|
||||
this.RawSize = rawSize;
|
||||
this.DownloadCount = downloadCount;
|
||||
this.LastDownload = lastDownload;
|
||||
this.Created = created;
|
||||
this.Updated = updated;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Description
|
||||
/// </summary>
|
||||
[DataMember(Name = "description", EmitDefaultValue = true)]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ImageUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "image_url", EmitDefaultValue = true)]
|
||||
public string ImageUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AuthorId
|
||||
/// </summary>
|
||||
[DataMember(Name = "author_id", EmitDefaultValue = false)]
|
||||
public string AuthorId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets VarVersion
|
||||
/// </summary>
|
||||
[DataMember(Name = "version", EmitDefaultValue = true)]
|
||||
public string VarVersion { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets FileUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "file_url", EmitDefaultValue = true)]
|
||||
public string FileUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets RawSize
|
||||
/// </summary>
|
||||
[DataMember(Name = "raw_size", EmitDefaultValue = false)]
|
||||
public double RawSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DownloadCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "download_count", EmitDefaultValue = false)]
|
||||
public int DownloadCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LastDownload
|
||||
/// </summary>
|
||||
[DataMember(Name = "last_download", EmitDefaultValue = true)]
|
||||
public DateTime? LastDownload { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Created
|
||||
/// </summary>
|
||||
[DataMember(Name = "created", EmitDefaultValue = false)]
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Updated
|
||||
/// </summary>
|
||||
[DataMember(Name = "updated", EmitDefaultValue = true)]
|
||||
public DateTime? Updated { 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 Package {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" Description: ").Append(Description).Append("\n");
|
||||
sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n");
|
||||
sb.Append(" AuthorId: ").Append(AuthorId).Append("\n");
|
||||
sb.Append(" VarVersion: ").Append(VarVersion).Append("\n");
|
||||
sb.Append(" FileUrl: ").Append(FileUrl).Append("\n");
|
||||
sb.Append(" RawSize: ").Append(RawSize).Append("\n");
|
||||
sb.Append(" DownloadCount: ").Append(DownloadCount).Append("\n");
|
||||
sb.Append(" LastDownload: ").Append(LastDownload).Append("\n");
|
||||
sb.Append(" Created: ").Append(Created).Append("\n");
|
||||
sb.Append(" Updated: ").Append(Updated).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
// Name (string) maxLength
|
||||
if (this.Name != null && this.Name.Length > 45)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Name, length must be less than 45.", new [] { "Name" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
236
src/Tribufu.Generated/Model/Profile.cs
Normal file
236
src/Tribufu.Generated/Model/Profile.cs
Normal file
@ -0,0 +1,236 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Profile
|
||||
/// </summary>
|
||||
[DataContract(Name = "Profile")]
|
||||
public partial class Profile : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Profile" /> class.
|
||||
/// </summary>
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="uuid">uuid.</param>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="displayName">displayName.</param>
|
||||
/// <param name="verified">verified.</param>
|
||||
/// <param name="level">level.</param>
|
||||
/// <param name="experience">experience.</param>
|
||||
/// <param name="publicBirthday">publicBirthday.</param>
|
||||
/// <param name="birthday">birthday.</param>
|
||||
/// <param name="points">points.</param>
|
||||
/// <param name="location">location.</param>
|
||||
/// <param name="photoUrl">photoUrl.</param>
|
||||
/// <param name="bannerUrl">bannerUrl.</param>
|
||||
/// <param name="lastOnline">lastOnline.</param>
|
||||
/// <param name="biography">biography.</param>
|
||||
/// <param name="viewCount">viewCount.</param>
|
||||
/// <param name="created">created.</param>
|
||||
/// <param name="updated">updated.</param>
|
||||
public Profile(string id = default(string), Guid uuid = default(Guid), string name = default(string), string displayName = default(string), bool verified = default(bool), int level = default(int), double experience = default(double), bool publicBirthday = default(bool), DateOnly? birthday = default(DateOnly?), double points = default(double), string location = default(string), string photoUrl = default(string), string bannerUrl = default(string), DateTime? lastOnline = default(DateTime?), string biography = default(string), int viewCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
|
||||
{
|
||||
this.Id = id;
|
||||
this.Uuid = uuid;
|
||||
this.Name = name;
|
||||
this.DisplayName = displayName;
|
||||
this.Verified = verified;
|
||||
this.Level = level;
|
||||
this.Experience = experience;
|
||||
this.PublicBirthday = publicBirthday;
|
||||
this.Birthday = birthday;
|
||||
this.Points = points;
|
||||
this.Location = location;
|
||||
this.PhotoUrl = photoUrl;
|
||||
this.BannerUrl = bannerUrl;
|
||||
this.LastOnline = lastOnline;
|
||||
this.Biography = biography;
|
||||
this.ViewCount = viewCount;
|
||||
this.Created = created;
|
||||
this.Updated = updated;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Uuid
|
||||
/// </summary>
|
||||
[DataMember(Name = "uuid", EmitDefaultValue = false)]
|
||||
public Guid Uuid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DisplayName
|
||||
/// </summary>
|
||||
[DataMember(Name = "display_name", EmitDefaultValue = true)]
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Verified
|
||||
/// </summary>
|
||||
[DataMember(Name = "verified", EmitDefaultValue = true)]
|
||||
public bool Verified { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Level
|
||||
/// </summary>
|
||||
[DataMember(Name = "level", EmitDefaultValue = false)]
|
||||
public int Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Experience
|
||||
/// </summary>
|
||||
[DataMember(Name = "experience", EmitDefaultValue = false)]
|
||||
public double Experience { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PublicBirthday
|
||||
/// </summary>
|
||||
[DataMember(Name = "public_birthday", EmitDefaultValue = true)]
|
||||
public bool PublicBirthday { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Birthday
|
||||
/// </summary>
|
||||
[DataMember(Name = "birthday", EmitDefaultValue = true)]
|
||||
public DateOnly? Birthday { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Points
|
||||
/// </summary>
|
||||
[DataMember(Name = "points", EmitDefaultValue = false)]
|
||||
public double Points { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Location
|
||||
/// </summary>
|
||||
[DataMember(Name = "location", EmitDefaultValue = true)]
|
||||
public string Location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PhotoUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "photo_url", EmitDefaultValue = true)]
|
||||
public string PhotoUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets BannerUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "banner_url", EmitDefaultValue = true)]
|
||||
public string BannerUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LastOnline
|
||||
/// </summary>
|
||||
[DataMember(Name = "last_online", EmitDefaultValue = true)]
|
||||
public DateTime? LastOnline { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Biography
|
||||
/// </summary>
|
||||
[DataMember(Name = "biography", EmitDefaultValue = true)]
|
||||
public string Biography { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ViewCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "view_count", EmitDefaultValue = false)]
|
||||
public int ViewCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Created
|
||||
/// </summary>
|
||||
[DataMember(Name = "created", EmitDefaultValue = false)]
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Updated
|
||||
/// </summary>
|
||||
[DataMember(Name = "updated", EmitDefaultValue = true)]
|
||||
public DateTime? Updated { 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 Profile {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" DisplayName: ").Append(DisplayName).Append("\n");
|
||||
sb.Append(" Verified: ").Append(Verified).Append("\n");
|
||||
sb.Append(" Level: ").Append(Level).Append("\n");
|
||||
sb.Append(" Experience: ").Append(Experience).Append("\n");
|
||||
sb.Append(" PublicBirthday: ").Append(PublicBirthday).Append("\n");
|
||||
sb.Append(" Birthday: ").Append(Birthday).Append("\n");
|
||||
sb.Append(" Points: ").Append(Points).Append("\n");
|
||||
sb.Append(" Location: ").Append(Location).Append("\n");
|
||||
sb.Append(" PhotoUrl: ").Append(PhotoUrl).Append("\n");
|
||||
sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n");
|
||||
sb.Append(" LastOnline: ").Append(LastOnline).Append("\n");
|
||||
sb.Append(" Biography: ").Append(Biography).Append("\n");
|
||||
sb.Append(" ViewCount: ").Append(ViewCount).Append("\n");
|
||||
sb.Append(" Created: ").Append(Created).Append("\n");
|
||||
sb.Append(" Updated: ").Append(Updated).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
173
src/Tribufu.Generated/Model/ProfileGame.cs
Normal file
173
src/Tribufu.Generated/Model/ProfileGame.cs
Normal file
@ -0,0 +1,173 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// ProfileGame
|
||||
/// </summary>
|
||||
[DataContract(Name = "ProfileGame")]
|
||||
public partial class ProfileGame : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ProfileGame" /> class.
|
||||
/// </summary>
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="capsuleImageUrl">capsuleImageUrl.</param>
|
||||
/// <param name="libraryImageUrl">libraryImageUrl.</param>
|
||||
/// <param name="slug">slug.</param>
|
||||
/// <param name="timeUsed">timeUsed.</param>
|
||||
/// <param name="unlockedAchievements">unlockedAchievements.</param>
|
||||
/// <param name="totalAchievements">totalAchievements.</param>
|
||||
/// <param name="stats">stats.</param>
|
||||
/// <param name="acquired">acquired.</param>
|
||||
/// <param name="lastUsed">lastUsed.</param>
|
||||
public ProfileGame(string id = default(string), string name = default(string), string capsuleImageUrl = default(string), string libraryImageUrl = default(string), string slug = default(string), double timeUsed = default(double), int unlockedAchievements = default(int), int totalAchievements = default(int), Object stats = default(Object), DateTime acquired = default(DateTime), DateTime? lastUsed = default(DateTime?))
|
||||
{
|
||||
this.Id = id;
|
||||
this.Name = name;
|
||||
this.CapsuleImageUrl = capsuleImageUrl;
|
||||
this.LibraryImageUrl = libraryImageUrl;
|
||||
this.Slug = slug;
|
||||
this.TimeUsed = timeUsed;
|
||||
this.UnlockedAchievements = unlockedAchievements;
|
||||
this.TotalAchievements = totalAchievements;
|
||||
this.Stats = stats;
|
||||
this.Acquired = acquired;
|
||||
this.LastUsed = lastUsed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets CapsuleImageUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "capsule_image_url", EmitDefaultValue = true)]
|
||||
public string CapsuleImageUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LibraryImageUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "library_image_url", EmitDefaultValue = true)]
|
||||
public string LibraryImageUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Slug
|
||||
/// </summary>
|
||||
[DataMember(Name = "slug", EmitDefaultValue = true)]
|
||||
public string Slug { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets TimeUsed
|
||||
/// </summary>
|
||||
[DataMember(Name = "time_used", EmitDefaultValue = false)]
|
||||
public double TimeUsed { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets UnlockedAchievements
|
||||
/// </summary>
|
||||
[DataMember(Name = "unlocked_achievements", EmitDefaultValue = false)]
|
||||
public int UnlockedAchievements { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets TotalAchievements
|
||||
/// </summary>
|
||||
[DataMember(Name = "total_achievements", EmitDefaultValue = false)]
|
||||
public int TotalAchievements { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Stats
|
||||
/// </summary>
|
||||
[DataMember(Name = "stats", EmitDefaultValue = true)]
|
||||
public Object Stats { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Acquired
|
||||
/// </summary>
|
||||
[DataMember(Name = "acquired", EmitDefaultValue = false)]
|
||||
public DateTime Acquired { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LastUsed
|
||||
/// </summary>
|
||||
[DataMember(Name = "last_used", EmitDefaultValue = true)]
|
||||
public DateTime? LastUsed { 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 ProfileGame {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" CapsuleImageUrl: ").Append(CapsuleImageUrl).Append("\n");
|
||||
sb.Append(" LibraryImageUrl: ").Append(LibraryImageUrl).Append("\n");
|
||||
sb.Append(" Slug: ").Append(Slug).Append("\n");
|
||||
sb.Append(" TimeUsed: ").Append(TimeUsed).Append("\n");
|
||||
sb.Append(" UnlockedAchievements: ").Append(UnlockedAchievements).Append("\n");
|
||||
sb.Append(" TotalAchievements: ").Append(TotalAchievements).Append("\n");
|
||||
sb.Append(" Stats: ").Append(Stats).Append("\n");
|
||||
sb.Append(" Acquired: ").Append(Acquired).Append("\n");
|
||||
sb.Append(" LastUsed: ").Append(LastUsed).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
164
src/Tribufu.Generated/Model/ProfileGroup.cs
Normal file
164
src/Tribufu.Generated/Model/ProfileGroup.cs
Normal file
@ -0,0 +1,164 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// ProfileGroup
|
||||
/// </summary>
|
||||
[DataContract(Name = "ProfileGroup")]
|
||||
public partial class ProfileGroup : IValidatableObject
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Rank
|
||||
/// </summary>
|
||||
[DataMember(Name = "rank", EmitDefaultValue = false)]
|
||||
public GroupRank? Rank { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ProfileGroup" /> class.
|
||||
/// </summary>
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="uuid">uuid.</param>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="tag">tag.</param>
|
||||
/// <param name="privacy">privacy.</param>
|
||||
/// <param name="verified">verified.</param>
|
||||
/// <param name="photoUrl">photoUrl.</param>
|
||||
/// <param name="memberCount">memberCount.</param>
|
||||
/// <param name="rank">rank.</param>
|
||||
/// <param name="since">since.</param>
|
||||
public ProfileGroup(string id = default(string), Guid uuid = default(Guid), string name = default(string), string tag = default(string), int privacy = default(int), bool verified = default(bool), string photoUrl = default(string), int memberCount = default(int), GroupRank? rank = default(GroupRank?), DateTime since = default(DateTime))
|
||||
{
|
||||
this.Id = id;
|
||||
this.Uuid = uuid;
|
||||
this.Name = name;
|
||||
this.Tag = tag;
|
||||
this.Privacy = privacy;
|
||||
this.Verified = verified;
|
||||
this.PhotoUrl = photoUrl;
|
||||
this.MemberCount = memberCount;
|
||||
this.Rank = rank;
|
||||
this.Since = since;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Uuid
|
||||
/// </summary>
|
||||
[DataMember(Name = "uuid", EmitDefaultValue = false)]
|
||||
public Guid Uuid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Tag
|
||||
/// </summary>
|
||||
[DataMember(Name = "tag", EmitDefaultValue = true)]
|
||||
public string Tag { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Privacy
|
||||
/// </summary>
|
||||
[DataMember(Name = "privacy", EmitDefaultValue = false)]
|
||||
public int Privacy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Verified
|
||||
/// </summary>
|
||||
[DataMember(Name = "verified", EmitDefaultValue = true)]
|
||||
public bool Verified { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PhotoUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "photo_url", EmitDefaultValue = true)]
|
||||
public string PhotoUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets MemberCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "member_count", EmitDefaultValue = false)]
|
||||
public int MemberCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Since
|
||||
/// </summary>
|
||||
[DataMember(Name = "since", EmitDefaultValue = false)]
|
||||
public DateTime Since { 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 ProfileGroup {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" Tag: ").Append(Tag).Append("\n");
|
||||
sb.Append(" Privacy: ").Append(Privacy).Append("\n");
|
||||
sb.Append(" Verified: ").Append(Verified).Append("\n");
|
||||
sb.Append(" PhotoUrl: ").Append(PhotoUrl).Append("\n");
|
||||
sb.Append(" MemberCount: ").Append(MemberCount).Append("\n");
|
||||
sb.Append(" Rank: ").Append(Rank).Append("\n");
|
||||
sb.Append(" Since: ").Append(Since).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
83
src/Tribufu.Generated/Model/RefreshRequest.cs
Normal file
83
src/Tribufu.Generated/Model/RefreshRequest.cs
Normal file
@ -0,0 +1,83 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// RefreshRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "RefreshRequest")]
|
||||
public partial class RefreshRequest : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="RefreshRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="refreshToken">refreshToken.</param>
|
||||
public RefreshRequest(string refreshToken = default(string))
|
||||
{
|
||||
this.RefreshToken = refreshToken;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets RefreshToken
|
||||
/// </summary>
|
||||
[DataMember(Name = "refresh_token", EmitDefaultValue = true)]
|
||||
public string RefreshToken { 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 RefreshRequest {\n");
|
||||
sb.Append(" RefreshToken: ").Append(RefreshToken).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
167
src/Tribufu.Generated/Model/RegisterRequest.cs
Normal file
167
src/Tribufu.Generated/Model/RegisterRequest.cs
Normal file
@ -0,0 +1,167 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// RegisterRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "RegisterRequest")]
|
||||
public partial class RegisterRequest : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="RegisterRequest" /> class.
|
||||
/// </summary>
|
||||
[JsonConstructorAttribute]
|
||||
protected RegisterRequest() { }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="RegisterRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="uuid">uuid.</param>
|
||||
/// <param name="name">name (required).</param>
|
||||
/// <param name="email">email.</param>
|
||||
/// <param name="password">password (required).</param>
|
||||
public RegisterRequest(Guid? uuid = default(Guid?), string name = default(string), string email = default(string), string password = default(string))
|
||||
{
|
||||
// to ensure "name" is required (not null)
|
||||
if (name == null)
|
||||
{
|
||||
throw new ArgumentNullException("name is a required property for RegisterRequest and cannot be null");
|
||||
}
|
||||
this.Name = name;
|
||||
// to ensure "password" is required (not null)
|
||||
if (password == null)
|
||||
{
|
||||
throw new ArgumentNullException("password is a required property for RegisterRequest and cannot be null");
|
||||
}
|
||||
this.Password = password;
|
||||
this.Uuid = uuid;
|
||||
this.Email = email;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Uuid
|
||||
/// </summary>
|
||||
[DataMember(Name = "uuid", EmitDefaultValue = true)]
|
||||
public Guid? Uuid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Email
|
||||
/// </summary>
|
||||
[DataMember(Name = "email", EmitDefaultValue = true)]
|
||||
public string Email { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Password
|
||||
/// </summary>
|
||||
[DataMember(Name = "password", IsRequired = true, EmitDefaultValue = true)]
|
||||
public string Password { 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 RegisterRequest {\n");
|
||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" Email: ").Append(Email).Append("\n");
|
||||
sb.Append(" Password: ").Append(Password).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
// Name (string) maxLength
|
||||
if (this.Name != null && this.Name.Length > 45)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Name, length must be less than 45.", new [] { "Name" });
|
||||
}
|
||||
|
||||
// Name (string) minLength
|
||||
if (this.Name != null && this.Name.Length < 3)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Name, length must be greater than 3.", new [] { "Name" });
|
||||
}
|
||||
|
||||
if (this.Name != null) {
|
||||
// Name (string) pattern
|
||||
Regex regexName = new Regex(@"^[a-zA-Z0-9-_]*$", RegexOptions.CultureInvariant);
|
||||
if (!regexName.Match(this.Name).Success)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, must match a pattern of " + regexName, new [] { "Name" });
|
||||
}
|
||||
}
|
||||
|
||||
// Email (string) maxLength
|
||||
if (this.Email != null && this.Email.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Email, length must be less than 255.", new [] { "Email" });
|
||||
}
|
||||
|
||||
if (this.Email != null) {
|
||||
// Email (string) pattern
|
||||
Regex regexEmail = new Regex(@"^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$", RegexOptions.CultureInvariant);
|
||||
if (!regexEmail.Match(this.Email).Success)
|
||||
{
|
||||
yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Email, must match a pattern of " + regexEmail, new [] { "Email" });
|
||||
}
|
||||
}
|
||||
|
||||
// Password (string) minLength
|
||||
if (this.Password != null && this.Password.Length < 1)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Password, length must be greater than 1.", new [] { "Password" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
48
src/Tribufu.Generated/Model/ResponseType.cs
Normal file
48
src/Tribufu.Generated/Model/ResponseType.cs
Normal file
@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines ResponseType
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum ResponseType
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum Code for value: code
|
||||
/// </summary>
|
||||
[EnumMember(Value = "code")]
|
||||
Code,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Token for value: token
|
||||
/// </summary>
|
||||
[EnumMember(Value = "token")]
|
||||
Token
|
||||
}
|
||||
|
||||
}
|
92
src/Tribufu.Generated/Model/RevokeRequest.cs
Normal file
92
src/Tribufu.Generated/Model/RevokeRequest.cs
Normal file
@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// RevokeRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "RevokeRequest")]
|
||||
public partial class RevokeRequest : IValidatableObject
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets TokenTypeHint
|
||||
/// </summary>
|
||||
[DataMember(Name = "token_type_hint", EmitDefaultValue = false)]
|
||||
public TokenHintType? TokenTypeHint { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="RevokeRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="token">token.</param>
|
||||
/// <param name="tokenTypeHint">tokenTypeHint.</param>
|
||||
public RevokeRequest(string token = default(string), TokenHintType? tokenTypeHint = default(TokenHintType?))
|
||||
{
|
||||
this.Token = token;
|
||||
this.TokenTypeHint = tokenTypeHint;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Token
|
||||
/// </summary>
|
||||
[DataMember(Name = "token", EmitDefaultValue = true)]
|
||||
public string Token { 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 RevokeRequest {\n");
|
||||
sb.Append(" Token: ").Append(Token).Append("\n");
|
||||
sb.Append(" TokenTypeHint: ").Append(TokenTypeHint).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
110
src/Tribufu.Generated/Model/SearchRequest.cs
Normal file
110
src/Tribufu.Generated/Model/SearchRequest.cs
Normal file
@ -0,0 +1,110 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// SearchRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "SearchRequest")]
|
||||
public partial class SearchRequest : IValidatableObject
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Type
|
||||
/// </summary>
|
||||
[DataMember(Name = "type", EmitDefaultValue = false)]
|
||||
public SearchType? Type { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="SearchRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="query">query.</param>
|
||||
/// <param name="page">page.</param>
|
||||
/// <param name="gameId">gameId.</param>
|
||||
public SearchRequest(SearchType? type = default(SearchType?), string query = default(string), int? page = default(int?), string gameId = default(string))
|
||||
{
|
||||
this.Type = type;
|
||||
this.Query = query;
|
||||
this.Page = page;
|
||||
this.GameId = gameId;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Query
|
||||
/// </summary>
|
||||
[DataMember(Name = "query", EmitDefaultValue = true)]
|
||||
public string Query { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Page
|
||||
/// </summary>
|
||||
[DataMember(Name = "page", EmitDefaultValue = true)]
|
||||
public int? Page { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets GameId
|
||||
/// </summary>
|
||||
[DataMember(Name = "game_id", EmitDefaultValue = true)]
|
||||
public string GameId { 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 SearchRequest {\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" Query: ").Append(Query).Append("\n");
|
||||
sb.Append(" Page: ").Append(Page).Append("\n");
|
||||
sb.Append(" GameId: ").Append(GameId).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
60
src/Tribufu.Generated/Model/SearchType.cs
Normal file
60
src/Tribufu.Generated/Model/SearchType.cs
Normal file
@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines SearchType
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum SearchType
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum User for value: user
|
||||
/// </summary>
|
||||
[EnumMember(Value = "user")]
|
||||
User,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Group for value: group
|
||||
/// </summary>
|
||||
[EnumMember(Value = "group")]
|
||||
Group,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Server for value: server
|
||||
/// </summary>
|
||||
[EnumMember(Value = "server")]
|
||||
Server,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Cluster for value: cluster
|
||||
/// </summary>
|
||||
[EnumMember(Value = "cluster")]
|
||||
Cluster
|
||||
}
|
||||
|
||||
}
|
101
src/Tribufu.Generated/Model/ServerMetrics.cs
Normal file
101
src/Tribufu.Generated/Model/ServerMetrics.cs
Normal file
@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// ServerMetrics
|
||||
/// </summary>
|
||||
[DataContract(Name = "ServerMetrics")]
|
||||
public partial class ServerMetrics : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="ServerMetrics" /> class.
|
||||
/// </summary>
|
||||
/// <param name="serverCount">serverCount.</param>
|
||||
/// <param name="packageCount">packageCount.</param>
|
||||
/// <param name="countryCount">countryCount.</param>
|
||||
public ServerMetrics(int serverCount = default(int), int packageCount = default(int), int countryCount = default(int))
|
||||
{
|
||||
this.ServerCount = serverCount;
|
||||
this.PackageCount = packageCount;
|
||||
this.CountryCount = countryCount;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ServerCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "server_count", EmitDefaultValue = false)]
|
||||
public int ServerCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PackageCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "package_count", EmitDefaultValue = false)]
|
||||
public int PackageCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets CountryCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "country_count", EmitDefaultValue = false)]
|
||||
public int CountryCount { 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 ServerMetrics {\n");
|
||||
sb.Append(" ServerCount: ").Append(ServerCount).Append("\n");
|
||||
sb.Append(" PackageCount: ").Append(PackageCount).Append("\n");
|
||||
sb.Append(" CountryCount: ").Append(CountryCount).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
54
src/Tribufu.Generated/Model/ServerStatus.cs
Normal file
54
src/Tribufu.Generated/Model/ServerStatus.cs
Normal file
@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines ServerStatus
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum ServerStatus
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum Unknown for value: unknown
|
||||
/// </summary>
|
||||
[EnumMember(Value = "unknown")]
|
||||
Unknown,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Offline for value: offline
|
||||
/// </summary>
|
||||
[EnumMember(Value = "offline")]
|
||||
Offline,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Online for value: online
|
||||
/// </summary>
|
||||
[EnumMember(Value = "online")]
|
||||
Online
|
||||
}
|
||||
|
||||
}
|
155
src/Tribufu.Generated/Model/Subscription.cs
Normal file
155
src/Tribufu.Generated/Model/Subscription.cs
Normal file
@ -0,0 +1,155 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Subscription
|
||||
/// </summary>
|
||||
[DataContract(Name = "Subscription")]
|
||||
public partial class Subscription : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Subscription" /> class.
|
||||
/// </summary>
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="description">description.</param>
|
||||
/// <param name="imageUrl">imageUrl.</param>
|
||||
/// <param name="created">created.</param>
|
||||
/// <param name="updated">updated.</param>
|
||||
public Subscription(string id = default(string), string name = default(string), string description = default(string), string imageUrl = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
|
||||
{
|
||||
this.Id = id;
|
||||
this.Name = name;
|
||||
this.Description = description;
|
||||
this.ImageUrl = imageUrl;
|
||||
this.Created = created;
|
||||
this.Updated = updated;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Description
|
||||
/// </summary>
|
||||
[DataMember(Name = "description", EmitDefaultValue = true)]
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ImageUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "image_url", EmitDefaultValue = true)]
|
||||
public string ImageUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Prices
|
||||
/// </summary>
|
||||
[DataMember(Name = "prices", EmitDefaultValue = true)]
|
||||
public Dictionary<string, double> Prices { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Returns false as Prices should not be serialized given that it's read-only.
|
||||
/// </summary>
|
||||
/// <returns>false (boolean)</returns>
|
||||
public bool ShouldSerializePrices()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets or Sets Created
|
||||
/// </summary>
|
||||
[DataMember(Name = "created", EmitDefaultValue = false)]
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Updated
|
||||
/// </summary>
|
||||
[DataMember(Name = "updated", EmitDefaultValue = true)]
|
||||
public DateTime? Updated { 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 Subscription {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" Description: ").Append(Description).Append("\n");
|
||||
sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n");
|
||||
sb.Append(" Prices: ").Append(Prices).Append("\n");
|
||||
sb.Append(" Created: ").Append(Created).Append("\n");
|
||||
sb.Append(" Updated: ").Append(Updated).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
// Name (string) maxLength
|
||||
if (this.Name != null && this.Name.Length > 75)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for Name, length must be less than 75.", new [] { "Name" });
|
||||
}
|
||||
|
||||
// ImageUrl (string) maxLength
|
||||
if (this.ImageUrl != null && this.ImageUrl.Length > 255)
|
||||
{
|
||||
yield return new ValidationResult("Invalid value for ImageUrl, length must be less than 255.", new [] { "ImageUrl" });
|
||||
}
|
||||
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
48
src/Tribufu.Generated/Model/TokenHintType.cs
Normal file
48
src/Tribufu.Generated/Model/TokenHintType.cs
Normal file
@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines TokenHintType
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum TokenHintType
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum AccessToken for value: access_token
|
||||
/// </summary>
|
||||
[EnumMember(Value = "access_token")]
|
||||
AccessToken,
|
||||
|
||||
/// <summary>
|
||||
/// Enum RefreshToken for value: refresh_token
|
||||
/// </summary>
|
||||
[EnumMember(Value = "refresh_token")]
|
||||
RefreshToken
|
||||
}
|
||||
|
||||
}
|
146
src/Tribufu.Generated/Model/TokenRequest.cs
Normal file
146
src/Tribufu.Generated/Model/TokenRequest.cs
Normal file
@ -0,0 +1,146 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// TokenRequest
|
||||
/// </summary>
|
||||
[DataContract(Name = "TokenRequest")]
|
||||
public partial class TokenRequest : IValidatableObject
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets GrantType
|
||||
/// </summary>
|
||||
[DataMember(Name = "grant_type", EmitDefaultValue = false)]
|
||||
public GrantType? GrantType { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TokenRequest" /> class.
|
||||
/// </summary>
|
||||
/// <param name="grantType">grantType.</param>
|
||||
/// <param name="code">code.</param>
|
||||
/// <param name="username">username.</param>
|
||||
/// <param name="password">password.</param>
|
||||
/// <param name="refreshToken">refreshToken.</param>
|
||||
/// <param name="clientId">clientId.</param>
|
||||
/// <param name="redirectUri">redirectUri.</param>
|
||||
/// <param name="codeVerifier">codeVerifier.</param>
|
||||
public TokenRequest(GrantType? grantType = default(GrantType?), string code = default(string), string username = default(string), string password = default(string), string refreshToken = default(string), string clientId = default(string), string redirectUri = default(string), string codeVerifier = default(string))
|
||||
{
|
||||
this.GrantType = grantType;
|
||||
this.Code = code;
|
||||
this.Username = username;
|
||||
this.Password = password;
|
||||
this.RefreshToken = refreshToken;
|
||||
this.ClientId = clientId;
|
||||
this.RedirectUri = redirectUri;
|
||||
this.CodeVerifier = codeVerifier;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Code
|
||||
/// </summary>
|
||||
[DataMember(Name = "code", EmitDefaultValue = true)]
|
||||
public string Code { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Username
|
||||
/// </summary>
|
||||
[DataMember(Name = "username", EmitDefaultValue = true)]
|
||||
public string Username { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Password
|
||||
/// </summary>
|
||||
[DataMember(Name = "password", EmitDefaultValue = true)]
|
||||
public string Password { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets RefreshToken
|
||||
/// </summary>
|
||||
[DataMember(Name = "refresh_token", EmitDefaultValue = true)]
|
||||
public string RefreshToken { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ClientId
|
||||
/// </summary>
|
||||
[DataMember(Name = "client_id", EmitDefaultValue = true)]
|
||||
public string ClientId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets RedirectUri
|
||||
/// </summary>
|
||||
[DataMember(Name = "redirect_uri", EmitDefaultValue = true)]
|
||||
public string RedirectUri { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets CodeVerifier
|
||||
/// </summary>
|
||||
[DataMember(Name = "code_verifier", EmitDefaultValue = true)]
|
||||
public string CodeVerifier { 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 TokenRequest {\n");
|
||||
sb.Append(" GrantType: ").Append(GrantType).Append("\n");
|
||||
sb.Append(" Code: ").Append(Code).Append("\n");
|
||||
sb.Append(" Username: ").Append(Username).Append("\n");
|
||||
sb.Append(" Password: ").Append(Password).Append("\n");
|
||||
sb.Append(" RefreshToken: ").Append(RefreshToken).Append("\n");
|
||||
sb.Append(" ClientId: ").Append(ClientId).Append("\n");
|
||||
sb.Append(" RedirectUri: ").Append(RedirectUri).Append("\n");
|
||||
sb.Append(" CodeVerifier: ").Append(CodeVerifier).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
128
src/Tribufu.Generated/Model/TokenResponse.cs
Normal file
128
src/Tribufu.Generated/Model/TokenResponse.cs
Normal file
@ -0,0 +1,128 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// TokenResponse
|
||||
/// </summary>
|
||||
[DataContract(Name = "TokenResponse")]
|
||||
public partial class TokenResponse : IValidatableObject
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets TokenType
|
||||
/// </summary>
|
||||
[DataMember(Name = "token_type", EmitDefaultValue = false)]
|
||||
public TokenType? TokenType { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="TokenResponse" /> class.
|
||||
/// </summary>
|
||||
/// <param name="tokenType">tokenType.</param>
|
||||
/// <param name="accessToken">accessToken.</param>
|
||||
/// <param name="refreshToken">refreshToken.</param>
|
||||
/// <param name="scope">scope.</param>
|
||||
/// <param name="state">state.</param>
|
||||
/// <param name="expiresIn">expiresIn.</param>
|
||||
public TokenResponse(TokenType? tokenType = default(TokenType?), string accessToken = default(string), string refreshToken = default(string), string scope = default(string), string state = default(string), long expiresIn = default(long))
|
||||
{
|
||||
this.TokenType = tokenType;
|
||||
this.AccessToken = accessToken;
|
||||
this.RefreshToken = refreshToken;
|
||||
this.Scope = scope;
|
||||
this.State = state;
|
||||
this.ExpiresIn = expiresIn;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets AccessToken
|
||||
/// </summary>
|
||||
[DataMember(Name = "access_token", EmitDefaultValue = true)]
|
||||
public string AccessToken { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets RefreshToken
|
||||
/// </summary>
|
||||
[DataMember(Name = "refresh_token", EmitDefaultValue = true)]
|
||||
public string RefreshToken { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Scope
|
||||
/// </summary>
|
||||
[DataMember(Name = "scope", EmitDefaultValue = true)]
|
||||
public string Scope { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets State
|
||||
/// </summary>
|
||||
[DataMember(Name = "state", EmitDefaultValue = true)]
|
||||
public string State { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ExpiresIn
|
||||
/// </summary>
|
||||
[DataMember(Name = "expires_in", EmitDefaultValue = false)]
|
||||
public long ExpiresIn { 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 TokenResponse {\n");
|
||||
sb.Append(" TokenType: ").Append(TokenType).Append("\n");
|
||||
sb.Append(" AccessToken: ").Append(AccessToken).Append("\n");
|
||||
sb.Append(" RefreshToken: ").Append(RefreshToken).Append("\n");
|
||||
sb.Append(" Scope: ").Append(Scope).Append("\n");
|
||||
sb.Append(" State: ").Append(State).Append("\n");
|
||||
sb.Append(" ExpiresIn: ").Append(ExpiresIn).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
42
src/Tribufu.Generated/Model/TokenType.cs
Normal file
42
src/Tribufu.Generated/Model/TokenType.cs
Normal file
@ -0,0 +1,42 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines TokenType
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum TokenType
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum Bearer for value: bearer
|
||||
/// </summary>
|
||||
[EnumMember(Value = "bearer")]
|
||||
Bearer
|
||||
}
|
||||
|
||||
}
|
92
src/Tribufu.Generated/Model/UpdateProfile.cs
Normal file
92
src/Tribufu.Generated/Model/UpdateProfile.cs
Normal file
@ -0,0 +1,92 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// UpdateProfile
|
||||
/// </summary>
|
||||
[DataContract(Name = "UpdateProfile")]
|
||||
public partial class UpdateProfile : IValidatableObject
|
||||
{
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UpdateProfile" /> class.
|
||||
/// </summary>
|
||||
/// <param name="displayName">displayName.</param>
|
||||
/// <param name="biography">biography.</param>
|
||||
public UpdateProfile(string displayName = default(string), string biography = default(string))
|
||||
{
|
||||
this.DisplayName = displayName;
|
||||
this.Biography = biography;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DisplayName
|
||||
/// </summary>
|
||||
[DataMember(Name = "display_name", EmitDefaultValue = true)]
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Biography
|
||||
/// </summary>
|
||||
[DataMember(Name = "biography", EmitDefaultValue = true)]
|
||||
public string Biography { 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 UpdateProfile {\n");
|
||||
sb.Append(" DisplayName: ").Append(DisplayName).Append("\n");
|
||||
sb.Append(" Biography: ").Append(Biography).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
299
src/Tribufu.Generated/Model/UserInfo.cs
Normal file
299
src/Tribufu.Generated/Model/UserInfo.cs
Normal file
@ -0,0 +1,299 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// UserInfo
|
||||
/// </summary>
|
||||
[DataContract(Name = "UserInfo")]
|
||||
public partial class UserInfo : IValidatableObject
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Type
|
||||
/// </summary>
|
||||
[DataMember(Name = "type", EmitDefaultValue = false)]
|
||||
public UserType? Type { get; set; }
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UserInfo" /> class.
|
||||
/// </summary>
|
||||
/// <param name="id">id.</param>
|
||||
/// <param name="uuid">uuid.</param>
|
||||
/// <param name="name">name.</param>
|
||||
/// <param name="displayName">displayName.</param>
|
||||
/// <param name="email">email.</param>
|
||||
/// <param name="type">type.</param>
|
||||
/// <param name="flags">flags.</param>
|
||||
/// <param name="permissions">permissions.</param>
|
||||
/// <param name="verified">verified.</param>
|
||||
/// <param name="level">level.</param>
|
||||
/// <param name="experience">experience.</param>
|
||||
/// <param name="publicBirthday">publicBirthday.</param>
|
||||
/// <param name="birthday">birthday.</param>
|
||||
/// <param name="points">points.</param>
|
||||
/// <param name="location">location.</param>
|
||||
/// <param name="language">language.</param>
|
||||
/// <param name="timezone">timezone.</param>
|
||||
/// <param name="currency">currency.</param>
|
||||
/// <param name="photoUrl">photoUrl.</param>
|
||||
/// <param name="bannerUrl">bannerUrl.</param>
|
||||
/// <param name="lastOnline">lastOnline.</param>
|
||||
/// <param name="biography">biography.</param>
|
||||
/// <param name="viewCount">viewCount.</param>
|
||||
/// <param name="created">created.</param>
|
||||
/// <param name="updated">updated.</param>
|
||||
public UserInfo(string id = default(string), Guid uuid = default(Guid), string name = default(string), string displayName = default(string), string email = default(string), UserType? type = default(UserType?), string flags = default(string), string permissions = default(string), bool verified = default(bool), int level = default(int), double experience = default(double), bool publicBirthday = default(bool), DateOnly? birthday = default(DateOnly?), double points = default(double), string location = default(string), string language = default(string), string timezone = default(string), string currency = default(string), string photoUrl = default(string), string bannerUrl = default(string), DateTime? lastOnline = default(DateTime?), string biography = default(string), int viewCount = default(int), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
|
||||
{
|
||||
this.Id = id;
|
||||
this.Uuid = uuid;
|
||||
this.Name = name;
|
||||
this.DisplayName = displayName;
|
||||
this.Email = email;
|
||||
this.Type = type;
|
||||
this.Flags = flags;
|
||||
this.Permissions = permissions;
|
||||
this.Verified = verified;
|
||||
this.Level = level;
|
||||
this.Experience = experience;
|
||||
this.PublicBirthday = publicBirthday;
|
||||
this.Birthday = birthday;
|
||||
this.Points = points;
|
||||
this.Location = location;
|
||||
this.Language = language;
|
||||
this.Timezone = timezone;
|
||||
this.Currency = currency;
|
||||
this.PhotoUrl = photoUrl;
|
||||
this.BannerUrl = bannerUrl;
|
||||
this.LastOnline = lastOnline;
|
||||
this.Biography = biography;
|
||||
this.ViewCount = viewCount;
|
||||
this.Created = created;
|
||||
this.Updated = updated;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Id
|
||||
/// </summary>
|
||||
[DataMember(Name = "id", EmitDefaultValue = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Uuid
|
||||
/// </summary>
|
||||
[DataMember(Name = "uuid", EmitDefaultValue = false)]
|
||||
public Guid Uuid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Name
|
||||
/// </summary>
|
||||
[DataMember(Name = "name", EmitDefaultValue = true)]
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets DisplayName
|
||||
/// </summary>
|
||||
[DataMember(Name = "display_name", EmitDefaultValue = true)]
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Email
|
||||
/// </summary>
|
||||
[DataMember(Name = "email", EmitDefaultValue = true)]
|
||||
public string Email { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Flags
|
||||
/// </summary>
|
||||
[DataMember(Name = "flags", EmitDefaultValue = false)]
|
||||
public string Flags { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Permissions
|
||||
/// </summary>
|
||||
[DataMember(Name = "permissions", EmitDefaultValue = false)]
|
||||
public string Permissions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Verified
|
||||
/// </summary>
|
||||
[DataMember(Name = "verified", EmitDefaultValue = true)]
|
||||
public bool Verified { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Level
|
||||
/// </summary>
|
||||
[DataMember(Name = "level", EmitDefaultValue = false)]
|
||||
public int Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Experience
|
||||
/// </summary>
|
||||
[DataMember(Name = "experience", EmitDefaultValue = false)]
|
||||
public double Experience { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PublicBirthday
|
||||
/// </summary>
|
||||
[DataMember(Name = "public_birthday", EmitDefaultValue = true)]
|
||||
public bool PublicBirthday { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Birthday
|
||||
/// </summary>
|
||||
[DataMember(Name = "birthday", EmitDefaultValue = true)]
|
||||
public DateOnly? Birthday { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Points
|
||||
/// </summary>
|
||||
[DataMember(Name = "points", EmitDefaultValue = false)]
|
||||
public double Points { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Location
|
||||
/// </summary>
|
||||
[DataMember(Name = "location", EmitDefaultValue = true)]
|
||||
public string Location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Language
|
||||
/// </summary>
|
||||
[DataMember(Name = "language", EmitDefaultValue = true)]
|
||||
public string Language { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Timezone
|
||||
/// </summary>
|
||||
[DataMember(Name = "timezone", EmitDefaultValue = true)]
|
||||
public string Timezone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Currency
|
||||
/// </summary>
|
||||
[DataMember(Name = "currency", EmitDefaultValue = true)]
|
||||
public string Currency { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets PhotoUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "photo_url", EmitDefaultValue = true)]
|
||||
public string PhotoUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets BannerUrl
|
||||
/// </summary>
|
||||
[DataMember(Name = "banner_url", EmitDefaultValue = true)]
|
||||
public string BannerUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets LastOnline
|
||||
/// </summary>
|
||||
[DataMember(Name = "last_online", EmitDefaultValue = true)]
|
||||
public DateTime? LastOnline { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Biography
|
||||
/// </summary>
|
||||
[DataMember(Name = "biography", EmitDefaultValue = true)]
|
||||
public string Biography { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets ViewCount
|
||||
/// </summary>
|
||||
[DataMember(Name = "view_count", EmitDefaultValue = false)]
|
||||
public int ViewCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Created
|
||||
/// </summary>
|
||||
[DataMember(Name = "created", EmitDefaultValue = false)]
|
||||
public DateTime Created { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or Sets Updated
|
||||
/// </summary>
|
||||
[DataMember(Name = "updated", EmitDefaultValue = true)]
|
||||
public DateTime? Updated { 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 UserInfo {\n");
|
||||
sb.Append(" Id: ").Append(Id).Append("\n");
|
||||
sb.Append(" Uuid: ").Append(Uuid).Append("\n");
|
||||
sb.Append(" Name: ").Append(Name).Append("\n");
|
||||
sb.Append(" DisplayName: ").Append(DisplayName).Append("\n");
|
||||
sb.Append(" Email: ").Append(Email).Append("\n");
|
||||
sb.Append(" Type: ").Append(Type).Append("\n");
|
||||
sb.Append(" Flags: ").Append(Flags).Append("\n");
|
||||
sb.Append(" Permissions: ").Append(Permissions).Append("\n");
|
||||
sb.Append(" Verified: ").Append(Verified).Append("\n");
|
||||
sb.Append(" Level: ").Append(Level).Append("\n");
|
||||
sb.Append(" Experience: ").Append(Experience).Append("\n");
|
||||
sb.Append(" PublicBirthday: ").Append(PublicBirthday).Append("\n");
|
||||
sb.Append(" Birthday: ").Append(Birthday).Append("\n");
|
||||
sb.Append(" Points: ").Append(Points).Append("\n");
|
||||
sb.Append(" Location: ").Append(Location).Append("\n");
|
||||
sb.Append(" Language: ").Append(Language).Append("\n");
|
||||
sb.Append(" Timezone: ").Append(Timezone).Append("\n");
|
||||
sb.Append(" Currency: ").Append(Currency).Append("\n");
|
||||
sb.Append(" PhotoUrl: ").Append(PhotoUrl).Append("\n");
|
||||
sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n");
|
||||
sb.Append(" LastOnline: ").Append(LastOnline).Append("\n");
|
||||
sb.Append(" Biography: ").Append(Biography).Append("\n");
|
||||
sb.Append(" ViewCount: ").Append(ViewCount).Append("\n");
|
||||
sb.Append(" Created: ").Append(Created).Append("\n");
|
||||
sb.Append(" Updated: ").Append(Updated).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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// To validate all properties of the instance
|
||||
/// </summary>
|
||||
/// <param name="validationContext">Validation context</param>
|
||||
/// <returns>Validation Result</returns>
|
||||
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
|
||||
{
|
||||
yield break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
48
src/Tribufu.Generated/Model/UserType.cs
Normal file
48
src/Tribufu.Generated/Model/UserType.cs
Normal file
@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Tribufu API
|
||||
*
|
||||
* REST API to access Tribufu services.
|
||||
*
|
||||
* The version of the OpenAPI document: 1.1.0
|
||||
* Contact: contact@tribufu.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 System.ComponentModel.DataAnnotations;
|
||||
using OpenAPIDateConverter = Tribufu.Generated.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.Generated.Model
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines UserType
|
||||
/// </summary>
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
public enum UserType
|
||||
{
|
||||
/// <summary>
|
||||
/// Enum User for value: user
|
||||
/// </summary>
|
||||
[EnumMember(Value = "user")]
|
||||
User,
|
||||
|
||||
/// <summary>
|
||||
/// Enum Bot for value: bot
|
||||
/// </summary>
|
||||
[EnumMember(Value = "bot")]
|
||||
Bot
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user