mirror of
https://github.com/Tribufu/TribufuDotNet
synced 2026-08-16 16:11:08 +00:00
Update projects
This commit is contained in:
parent
44dc36430a
commit
93301110b7
101 changed files with 23635 additions and 16252 deletions
|
|
@ -1,401 +0,0 @@
|
|||
/*
|
||||
* 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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue