mirror of
https://github.com/tribufu/tribufu-dotnet
synced 2025-06-21 20:24:37 +00:00
Generate project with open-api-generator
This commit is contained in:
.gitignore.openapi-generator-ignore
.openapi-generator
Directory.Build.propsDirectory.Packages.propsREADME.mdTribufu.Sdk.slnTribufu.slnscripts
src
Tribufu.Native
Tribufu
Api
Client
ApiClient.csApiException.csApiResponse.csClientUtils.csConfiguration.csExceptionFactory.csGlobalConfiguration.csHttpMethod.csIApiAccessor.csIAsynchronousClient.csIReadableConfiguration.csISynchronousClient.csMultimap.csOpenAPIDateConverter.csRequestOptions.csRetryConfiguration.cs
Model
AbstractOpenAPISchema.csAccount.csApplication.csApplicationType.csAttachment.csAuthorizeRequest.csClientInfo.csClientType.csCodeChallengeMethod.csCodeResponse.csCreateUser.csCryptoViewModel.csGame.csGameServer.csGameServerCluster.csGameServerQuery.csGameServerStatus.csGrantType.csGroup.csGroupGame.csGroupMember.csGroupRank.csHashViewModel.csIntrospectRequest.csIntrospectResponse.csIpAddress.csLeaderboardItem.csLeaderboardOrder.csLoginProvider.csLoginRequest.csLoginResponse.csModelClient.csPackage.csPackageRelease.csProfile.csProfileGame.csProfileGroup.csRefreshRequest.csRegisterRequest.csResponseType.csRevokeRequest.csSearch.csSearchRequest.csSearchType.csServerMetrics.csServerStatus.csSubscription.csSubscriptionPrice.csTokenHintType.csTokenRequest.csTokenResponse.csTokenType.csUpdateProfile.csUserInfo.csUserType.cs
Tribufu.csprojTribufuApi.csTribufuApi.generated.csTribufuApiOptions.csapi.nswagvendor/openapi-generator
155
src/Tribufu/Model/GroupMember.cs
Normal file
155
src/Tribufu/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.Client.OpenAPIDateConverter;
|
||||
|
||||
namespace Tribufu.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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user