Compare commits

..

No commits in common. "main" and "1.2.0" have entirely different histories.
main ... 1.2.0

120 changed files with 3080 additions and 1783 deletions

7
.gitignore vendored
View file

@ -1,14 +1,11 @@
.agents/
.codex/
.vs/
bin/
Binaries
Intermediate/
obj/
releases/*
!releases/.gitkeep
.DS_Store
.env
*.filters
*.user
*.lscache
desktop.ini

View file

@ -16,6 +16,7 @@ src/Tribufu/Client/OpenAPIDateConverter.cs
src/Tribufu/Client/RequestOptions.cs
src/Tribufu/Client/RetryConfiguration.cs
src/Tribufu/Model/AbstractOpenAPISchema.cs
src/Tribufu/Model/Account.cs
src/Tribufu/Model/Application.cs
src/Tribufu/Model/ApplicationType.cs
src/Tribufu/Model/AuthorizeRequest.cs
@ -25,7 +26,7 @@ src/Tribufu/Model/CodeChallengeMethod.cs
src/Tribufu/Model/CodeResponse.cs
src/Tribufu/Model/CreateUser.cs
src/Tribufu/Model/CryptoViewModel.cs
src/Tribufu/Model/ExternalAccount.cs
src/Tribufu/Model/File.cs
src/Tribufu/Model/Game.cs
src/Tribufu/Model/GameServer.cs
src/Tribufu/Model/GameServerCluster.cs
@ -33,22 +34,19 @@ src/Tribufu/Model/GameServerQuery.cs
src/Tribufu/Model/GameServerStatus.cs
src/Tribufu/Model/GrantType.cs
src/Tribufu/Model/Group.cs
src/Tribufu/Model/GroupApplication.cs
src/Tribufu/Model/GroupGame.cs
src/Tribufu/Model/GroupMember.cs
src/Tribufu/Model/GroupRank.cs
src/Tribufu/Model/HashViewModel.cs
src/Tribufu/Model/IdentityProviderType.cs
src/Tribufu/Model/IntrospectRequest.cs
src/Tribufu/Model/IntrospectResponse.cs
src/Tribufu/Model/IpAddress.cs
src/Tribufu/Model/LeaderboardItem.cs
src/Tribufu/Model/LeaderboardOrder.cs
src/Tribufu/Model/LoginProvider.cs
src/Tribufu/Model/ModelClient.cs
src/Tribufu/Model/Package.cs
src/Tribufu/Model/PackageRelease.cs
src/Tribufu/Model/Product.cs
src/Tribufu/Model/ProductPrice.cs
src/Tribufu/Model/ProductType.cs
src/Tribufu/Model/Profile.cs
src/Tribufu/Model/ProfileGame.cs
src/Tribufu/Model/ProfileGroup.cs
@ -57,7 +55,8 @@ src/Tribufu/Model/RevokeRequest.cs
src/Tribufu/Model/Search.cs
src/Tribufu/Model/SearchType.cs
src/Tribufu/Model/ServerMetrics.cs
src/Tribufu/Model/StorageFile.cs
src/Tribufu/Model/Subscription.cs
src/Tribufu/Model/SubscriptionPrice.cs
src/Tribufu/Model/TokenHintType.cs
src/Tribufu/Model/TokenRequest.cs
src/Tribufu/Model/TokenResponse.cs

View file

@ -5,17 +5,9 @@
<Copyright>Copyright (c) Tribufu. All Rights Reserved.</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/Tribufu/TribufuDotNet</RepositoryUrl>
<Version>1.3.0</Version>
<RepositoryUrl>https://github.com/tribufu/tribufu-dotnet</RepositoryUrl>
<Version>1.2.0</Version>
<AssemblyVersion>$(Version).0</AssemblyVersion>
<NoWarn>$(NoWarn);0618;1591;1998;2002;8767</NoWarn>
</PropertyGroup>
<PropertyGroup>
<BaseIntermediateOutputPath>$(SolutionDir)Intermediate\DotNet\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath>
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath>
<NuspecOutputPath>$(IntermediateOutputPath)</NuspecOutputPath>
<OutputPath>$(SolutionDir)Binaries\$(Configuration)\DotNet\</OutputPath>
<PackageOutputPath>$(SolutionDir)Intermediate\</PackageOutputPath>
</PropertyGroup>
</Project>

View file

@ -6,10 +6,10 @@
[![MIT License][mit-badge]][mit-url]
[![Discord Chat][discord-badge]][discord-url]
[nuget-badge]: https://img.shields.io/nuget/v/Tribufu.svg
[nuget-badge]: https://img.shields.io/nuget/v/tribufu.svg
[nuget-url]: https://www.nuget.org/packages/Tribufu
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
[mit-url]: https://github.com/Tribufu/TribufuDotNet/blob/main/LICENSE.txt
[mit-url]: https://github.com/tribufu/tribufu-dotnet/blob/main/LICENSE.txt
[discord-badge]: https://img.shields.io/discord/276504514616623104.svg?logo=discord&style=flat-square
[discord-url]: https://www.tribufu.com/discord
@ -20,4 +20,4 @@
This project is licensed under the [MIT License].
[MIT License]: https://github.com/Tribufu/TribufuDotNet/blob/main/LICENSE.txt
[MIT License]: https://github.com/tribufu/tribufu-dotnet/blob/main/LICENSE.txt

View file

@ -1,7 +0,0 @@
#!/usr/bin/env pwsh
Get-ChildItem ./Intermediate -Filter *.nupkg -Recurse -Force | Remove-Item -Force
dotnet clean
dotnet build -c Release
dotnet pack -c Release -o ./Intermediate

View file

@ -1,48 +0,0 @@
/*
* Tribufu API
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* 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>
/// Defines ProductType
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum ProductType
{
/// <summary>
/// Enum Product for value: product
/// </summary>
[EnumMember(Value = "product")]
Product,
/// <summary>
/// Enum Subscription for value: subscription
/// </summary>
[EnumMember(Value = "subscription")]
Subscription
}
}

View file

@ -1,283 +0,0 @@
/*
* Tribufu API
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* 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>
/// Profile
/// </summary>
[DataContract(Name = "Profile")]
public partial class Profile : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="Profile" /> class.
/// </summary>
[JsonConstructorAttribute]
public Profile()
{
}
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name = "id", EmitDefaultValue = false)]
public string Id { get; private set; }
/// <summary>
/// Returns false as Id should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeId()
{
return false;
}
/// <summary>
/// Gets or Sets Name
/// </summary>
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; private set; }
/// <summary>
/// Returns false as Name should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeName()
{
return false;
}
/// <summary>
/// Gets or Sets DisplayName
/// </summary>
[DataMember(Name = "display_name", EmitDefaultValue = true)]
public string DisplayName { get; private set; }
/// <summary>
/// Returns false as DisplayName should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeDisplayName()
{
return false;
}
/// <summary>
/// Gets or Sets Level
/// </summary>
[DataMember(Name = "level", EmitDefaultValue = false)]
public int Level { get; private set; }
/// <summary>
/// Returns false as Level should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeLevel()
{
return false;
}
/// <summary>
/// Gets or Sets Experience
/// </summary>
[DataMember(Name = "experience", EmitDefaultValue = false)]
public double Experience { get; private set; }
/// <summary>
/// Returns false as Experience should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeExperience()
{
return false;
}
/// <summary>
/// Gets or Sets Birthday
/// </summary>
[DataMember(Name = "birthday", EmitDefaultValue = true)]
[JsonConverter(typeof(OpenAPIDateConverter))]
public DateTime? Birthday { get; private set; }
/// <summary>
/// Returns false as Birthday should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeBirthday()
{
return false;
}
/// <summary>
/// Gets or Sets Points
/// </summary>
[DataMember(Name = "points", EmitDefaultValue = false)]
public double Points { get; private set; }
/// <summary>
/// Returns false as Points should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializePoints()
{
return false;
}
/// <summary>
/// Gets or Sets PhotoUrl
/// </summary>
[DataMember(Name = "photo_url", EmitDefaultValue = true)]
public string PhotoUrl { get; private set; }
/// <summary>
/// Returns false as PhotoUrl should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializePhotoUrl()
{
return false;
}
/// <summary>
/// Gets or Sets BannerUrl
/// </summary>
[DataMember(Name = "banner_url", EmitDefaultValue = true)]
public string BannerUrl { get; private set; }
/// <summary>
/// Returns false as BannerUrl should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeBannerUrl()
{
return false;
}
/// <summary>
/// Gets or Sets LastOnline
/// </summary>
[DataMember(Name = "last_online", EmitDefaultValue = true)]
public DateTime? LastOnline { get; private set; }
/// <summary>
/// Returns false as LastOnline should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeLastOnline()
{
return false;
}
/// <summary>
/// Gets or Sets Biography
/// </summary>
[DataMember(Name = "biography", EmitDefaultValue = true)]
public string Biography { get; private set; }
/// <summary>
/// Returns false as Biography should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeBiography()
{
return false;
}
/// <summary>
/// Gets or Sets CreatedAt
/// </summary>
[DataMember(Name = "created_at", EmitDefaultValue = false)]
public DateTime CreatedAt { get; private set; }
/// <summary>
/// Returns false as CreatedAt should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeCreatedAt()
{
return false;
}
/// <summary>
/// Gets or Sets UpdatedAt
/// </summary>
[DataMember(Name = "updated_at", EmitDefaultValue = true)]
public DateTime? UpdatedAt { get; private set; }
/// <summary>
/// Returns false as UpdatedAt should not be serialized given that it's read-only.
/// </summary>
/// <returns>false (boolean)</returns>
public bool ShouldSerializeUpdatedAt()
{
return false;
}
/// <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(" Name: ").Append(Name).Append("\n");
sb.Append(" DisplayName: ").Append(DisplayName).Append("\n");
sb.Append(" Level: ").Append(Level).Append("\n");
sb.Append(" Experience: ").Append(Experience).Append("\n");
sb.Append(" Birthday: ").Append(Birthday).Append("\n");
sb.Append(" Points: ").Append(Points).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(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append(" UpdatedAt: ").Append(UpdatedAt).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)
{
// DisplayName (string) maxLength
if (this.DisplayName != null && this.DisplayName.Length > 45)
{
yield return new ValidationResult("Invalid value for DisplayName, length must be less than 45.", new [] { "DisplayName" });
}
// 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" });
}
yield break;
}
}
}

144
Tribufu.sln Normal file
View file

@ -0,0 +1,144 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu", "src\Tribufu\Tribufu.csproj", "{7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Example", "src\Tribufu.Example\Tribufu.Example.csproj", "{D6392A29-E2DC-4050-B4C1-B279DD2D226D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Logging", "src\Tribufu.Logging\Tribufu.Logging.csproj", "{CFD80847-9B98-4991-BADF-8714E7D8D81C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Configuration", "src\Tribufu.Configuration\Tribufu.Configuration.csproj", "{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Platform", "src\Tribufu.Platform\Tribufu.Platform.csproj", "{26EEB407-733C-4383-9211-B083CD5F593B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.EntityFrameworkCore", "src\Tribufu.EntityFrameworkCore\Tribufu.EntityFrameworkCore.csproj", "{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.Serialization", "src\Tribufu.Serialization\Tribufu.Serialization.csproj", "{D6DAE078-2F80-49DD-97A3-B1223FE04F91}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.ComponentModel", "src\Tribufu.ComponentModel\Tribufu.ComponentModel.csproj", "{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tribufu.AspNetCore", "src\Tribufu.AspNetCore\Tribufu.AspNetCore.csproj", "{B6C47A6C-E389-4132-8E1C-0CBB6C96C205}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Debug|x64.ActiveCfg = Debug|Any CPU
{7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Debug|x64.Build.0 = Debug|Any CPU
{7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Debug|x86.ActiveCfg = Debug|Any CPU
{7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Debug|x86.Build.0 = Debug|Any CPU
{7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Release|Any CPU.Build.0 = Release|Any CPU
{7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Release|x64.ActiveCfg = Release|Any CPU
{7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Release|x64.Build.0 = Release|Any CPU
{7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Release|x86.ActiveCfg = Release|Any CPU
{7B7890D8-863A-4F1D-98C0-4B7D8C46CB52}.Release|x86.Build.0 = Release|Any CPU
{D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Debug|x64.ActiveCfg = Debug|Any CPU
{D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Debug|x64.Build.0 = Debug|Any CPU
{D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Debug|x86.ActiveCfg = Debug|Any CPU
{D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Debug|x86.Build.0 = Debug|Any CPU
{D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Release|Any CPU.Build.0 = Release|Any CPU
{D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Release|x64.ActiveCfg = Release|Any CPU
{D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Release|x64.Build.0 = Release|Any CPU
{D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Release|x86.ActiveCfg = Release|Any CPU
{D6392A29-E2DC-4050-B4C1-B279DD2D226D}.Release|x86.Build.0 = Release|Any CPU
{CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|x64.ActiveCfg = Debug|Any CPU
{CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|x64.Build.0 = Debug|Any CPU
{CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|x86.ActiveCfg = Debug|Any CPU
{CFD80847-9B98-4991-BADF-8714E7D8D81C}.Debug|x86.Build.0 = Debug|Any CPU
{CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|Any CPU.Build.0 = Release|Any CPU
{CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|x64.ActiveCfg = Release|Any CPU
{CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|x64.Build.0 = Release|Any CPU
{CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|x86.ActiveCfg = Release|Any CPU
{CFD80847-9B98-4991-BADF-8714E7D8D81C}.Release|x86.Build.0 = Release|Any CPU
{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|x64.ActiveCfg = Debug|Any CPU
{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|x64.Build.0 = Debug|Any CPU
{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|x86.ActiveCfg = Debug|Any CPU
{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Debug|x86.Build.0 = Debug|Any CPU
{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|Any CPU.Build.0 = Release|Any CPU
{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|x64.ActiveCfg = Release|Any CPU
{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|x64.Build.0 = Release|Any CPU
{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|x86.ActiveCfg = Release|Any CPU
{C0A841C8-9FC5-4AC0-B9AD-6BBFCEDCBE5F}.Release|x86.Build.0 = Release|Any CPU
{26EEB407-733C-4383-9211-B083CD5F593B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{26EEB407-733C-4383-9211-B083CD5F593B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{26EEB407-733C-4383-9211-B083CD5F593B}.Debug|x64.ActiveCfg = Debug|Any CPU
{26EEB407-733C-4383-9211-B083CD5F593B}.Debug|x64.Build.0 = Debug|Any CPU
{26EEB407-733C-4383-9211-B083CD5F593B}.Debug|x86.ActiveCfg = Debug|Any CPU
{26EEB407-733C-4383-9211-B083CD5F593B}.Debug|x86.Build.0 = Debug|Any CPU
{26EEB407-733C-4383-9211-B083CD5F593B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{26EEB407-733C-4383-9211-B083CD5F593B}.Release|Any CPU.Build.0 = Release|Any CPU
{26EEB407-733C-4383-9211-B083CD5F593B}.Release|x64.ActiveCfg = Release|Any CPU
{26EEB407-733C-4383-9211-B083CD5F593B}.Release|x64.Build.0 = Release|Any CPU
{26EEB407-733C-4383-9211-B083CD5F593B}.Release|x86.ActiveCfg = Release|Any CPU
{26EEB407-733C-4383-9211-B083CD5F593B}.Release|x86.Build.0 = Release|Any CPU
{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|x64.ActiveCfg = Debug|Any CPU
{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|x64.Build.0 = Debug|Any CPU
{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|x86.ActiveCfg = Debug|Any CPU
{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Debug|x86.Build.0 = Debug|Any CPU
{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|Any CPU.Build.0 = Release|Any CPU
{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|x64.ActiveCfg = Release|Any CPU
{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|x64.Build.0 = Release|Any CPU
{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|x86.ActiveCfg = Release|Any CPU
{E7F9A76F-C087-410B-B4B5-A928A6CDC2BA}.Release|x86.Build.0 = Release|Any CPU
{D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|x64.ActiveCfg = Debug|Any CPU
{D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|x64.Build.0 = Debug|Any CPU
{D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|x86.ActiveCfg = Debug|Any CPU
{D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Debug|x86.Build.0 = Debug|Any CPU
{D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|Any CPU.Build.0 = Release|Any CPU
{D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|x64.ActiveCfg = Release|Any CPU
{D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|x64.Build.0 = Release|Any CPU
{D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|x86.ActiveCfg = Release|Any CPU
{D6DAE078-2F80-49DD-97A3-B1223FE04F91}.Release|x86.Build.0 = Release|Any CPU
{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|x64.ActiveCfg = Debug|Any CPU
{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|x64.Build.0 = Debug|Any CPU
{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|x86.ActiveCfg = Debug|Any CPU
{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Debug|x86.Build.0 = Debug|Any CPU
{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|Any CPU.Build.0 = Release|Any CPU
{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|x64.ActiveCfg = Release|Any CPU
{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|x64.Build.0 = Release|Any CPU
{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|x86.ActiveCfg = Release|Any CPU
{7CB04FFD-8F4B-4B40-BB4B-2BAA19D783E1}.Release|x86.Build.0 = Release|Any CPU
{B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|x64.ActiveCfg = Debug|Any CPU
{B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|x64.Build.0 = Debug|Any CPU
{B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|x86.ActiveCfg = Debug|Any CPU
{B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Debug|x86.Build.0 = Debug|Any CPU
{B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|Any CPU.Build.0 = Release|Any CPU
{B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|x64.ActiveCfg = Release|Any CPU
{B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|x64.Build.0 = Release|Any CPU
{B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|x86.ActiveCfg = Release|Any CPU
{B6C47A6C-E389-4132-8E1C-0CBB6C96C205}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View file

@ -1,13 +0,0 @@
<Solution>
<Folder Name="/Source/">
<Project Path="Source/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj" />
<Project Path="Source/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj" />
<Project Path="Source/Tribufu.Configuration/Tribufu.Configuration.csproj" />
<Project Path="Source/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj" />
<Project Path="Source/Tribufu.Example/Tribufu.Example.csproj" />
<Project Path="Source/Tribufu.Logging/Tribufu.Logging.csproj" />
<Project Path="Source/Tribufu.Platform/Tribufu.Platform.csproj" />
<Project Path="Source/Tribufu.Serialization/Tribufu.Serialization.csproj" />
<Project Path="Source/Tribufu/Tribufu.csproj" />
</Folder>
</Solution>

0
releases/.gitkeep Normal file
View file

View file

@ -1,7 +1,5 @@
#!/usr/bin/env pwsh
$ErrorActionPreference = "Stop"
$env:CSHARP_POST_PROCESS_FILE = ""
java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate `
@ -9,15 +7,6 @@ java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate `
-g csharp `
-o . `
--global-property apis,models,supportingFiles,apiDocs=false,modelDocs=false,apiTests=false,modelTests=false `
--additional-properties=packageName=Tribufu,library=restsharp,targetFramework=net47,zeroBasedEnums=true `
--additional-properties=packageName=Tribufu,library=restsharp,zeroBasedEnums=true,nullableReferenceTypes=true `
--openapi-normalizer SET_TAGS_FOR_ALL_OPERATIONS=TribufuGenerated `
--skip-validate-spec
$srcDir = "./src"
$sourceDir = "./Source"
if (Test-Path $srcDir) {
New-Item -ItemType Directory -Force -Path $sourceDir | Out-Null
Copy-Item -Path (Join-Path $srcDir "*") -Destination $sourceDir -Recurse -Force
Remove-Item $srcDir -Recurse -Force
}

7
scripts/package.ps1 Normal file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env pwsh
Get-ChildItem ./releases -Filter *.nupkg -Recurse -Force | Remove-Item -Force
dotnet clean
dotnet build -c Release
dotnet pack -c Release -o ./releases

View file

@ -0,0 +1,105 @@
// Copyright (c) Tribufu. All Rights Reserved.
// SPDX-License-Identifier: MIT
using Microsoft.Extensions.Configuration;
using System;
namespace Tribufu.EntityFrameworkCore
{
public class DatabaseConfiguration
{
public DatabaseDriver Driver { get; set; }
public string? Version { get; set; }
public string? Host { get; set; }
public string? Port { get; set; }
public string? User { get; set; }
public string? Password { get; set; }
public string? Schema { get; set; }
/// <summary>
/// Loads the <see cref="DatabaseConfiguration"/> from the "database" section or from root-level keys prefixed with "database_".
/// </summary>
/// <param name="configuration">The configuration source.</param>
/// <returns>The populated <see cref="DatabaseConfiguration"/> instance.</returns>
public static DatabaseConfiguration Load(IConfiguration configuration)
{
var section = configuration.GetSection("database");
var useRootFallback = !section.Exists();
string? GetConfig(string key) => useRootFallback ? configuration[$"database_{key}"] : section[key];
var driverString = GetConfig("driver") ?? throw new Exception("Missing database driver");
if (!Enum.TryParse<DatabaseDriver>(driverString, true, out var driver))
{
throw new Exception($"Unsupported database driver: {driverString}");
}
return new DatabaseConfiguration
{
Driver = driver,
Version = GetConfig("version"),
Host = GetConfig("host"),
Port = GetConfig("port"),
User = GetConfig("user"),
Password = GetConfig("password"),
Schema = GetConfig("schema")
};
}
/*
services.AddDbContext<DbContext>(options =>
{
switch (dbConfig.Driver)
{
case DatabaseDriver.MySql:
var mysqlConnection = $"Server={dbConfig.Host};Port={dbConfig.Port};Uid={dbConfig.User};Pwd={dbConfig.Password};Database={dbConfig.Schema};ConvertZeroDateTime=True;";
options.UseMySql(mysqlConnection, ServerVersion.Parse(dbConfig.Version ?? "8.0"), mySqlOptions => { });
break;
case DatabaseDriver.Postgres:
var pgsqlConnection = $"Host={dbConfig.Host};Port={dbConfig.Port};Database={dbConfig.Schema};Username={dbConfig.User};Password={dbConfig.Password};";
options.UseNpgsql(pgsqlConnection, npgsqlOptions => { });
break;
case DatabaseDriver.SqlServer:
var sqlServerConnection = $"Server={dbConfig.Host},{dbConfig.Port};Database={dbConfig.Schema};User Id={dbConfig.User};Password={dbConfig.Password};Encrypt=True;TrustServerCertificate=True;";
options.UseSqlServer(sqlServerConnection, sqlOptions => { });
break;
case DatabaseDriver.Oracle:
var oracleConnection = $"User Id={dbConfig.User};Password={dbConfig.Password};Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST={dbConfig.Host})(PORT={dbConfig.Port})))(CONNECT_DATA=(SERVICE_NAME={dbConfig.Schema})));";
options.UseOracle(oracleConnection, oracleOptions => { });
break;
case DatabaseDriver.Firebird:
var firebirdConnection = $"User={dbConfig.User};Password={dbConfig.Password};Database={dbConfig.Host}:{dbConfig.Port}/{dbConfig.Schema};Dialect=3;";
options.UseFirebird(firebirdConnection, firebirdOptions => { });
break;
case DatabaseDriver.Sqlite:
var savedDirectory = Paths.GetApplicationSavedDirectory();
if (!Directory.Exists(savedDirectory)) Directory.CreateDirectory(savedDirectory);
var sqliteDatabaseFile = string.IsNullOrEmpty(dbConfig.Schema) ? "default.db" : $"{dbConfig.Schema}.db";
var sqliteDatabasePath = Path.Combine(savedDirectory, sqliteDatabaseFile);
options.UseSqlite($"Data Source={sqliteDatabasePath}", sqliteOptions => { });
break;
case DatabaseDriver.MongoDb:
var mongoUriBuilder = new MongoUrlBuilder
{
Server = new MongoServerAddress(dbConfig.Host, int.Parse(dbConfig.Port ?? "27017")),
Username = dbConfig.User,
Password = dbConfig.Password,
DatabaseName = dbConfig.Schema
};
var mongoClient = new MongoClient(mongoUriBuilder.ToMongoUrl());
var mongoDatabase = mongoClient.GetDatabase(dbConfig.Schema ?? "default");
options.UseMongoDB(mongoDatabase.Client, mongoDatabase.DatabaseNamespace.DatabaseName);
break;
default:
throw new NotSupportedException($"Unsupported database driver: {dbConfig.Driver}");
}
});
*/
}
}

View file

@ -0,0 +1,12 @@
// Copyright (c) Tribufu. All Rights Reserved.
// SPDX-License-Identifier: MIT
namespace Tribufu.EntityFrameworkCore
{
public static class DatabaseConstants
{
public const uint DEFAULT_PAGINATION = 20;
public const uint MAX_PAGINATION = 100;
}
}

View file

@ -0,0 +1,22 @@
// Copyright (c) Tribufu. All Rights Reserved.
// SPDX-License-Identifier: MIT
namespace Tribufu.EntityFrameworkCore
{
public enum DatabaseDriver : byte
{
MySql = 0,
Postgres = 1,
SqlServer = 2,
Oracle = 3,
Firebird = 4,
Sqlite = 5,
MongoDb = 6,
}
}

View file

@ -4,25 +4,23 @@
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Tribufu.EntityFrameworkCore
namespace Tribufu.EntityFrameworkCore.Repositories
{
public interface IRepository<T, K> where T : class
{
void Seed();
Task SeedAsync();
IList<T> List();
IList<T> GetAll();
Task<IList<T>> ListAsync();
Task<IList<T>> GetAllAsync();
IList<T> List(uint page, uint limit);
IList<T> GetPage(uint page, uint limit);
Task<IList<T>> ListAsync(uint page, uint limit);
Task<IList<T>> GetPageAsync(uint page, uint limit);
T? Find(K key);
T? GetOne(K key);
Task<T?> FindAsync(K key);
Task<T?> GetOneAsync(K key);
T? Create(T entity);

View file

@ -7,54 +7,50 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace Tribufu.EntityFrameworkCore
namespace Tribufu.EntityFrameworkCore.Repositories
{
public class Repository<C, T, K> : IRepository<T, K> where C : DbContext where T : class
{
protected readonly C _dbContext;
protected readonly C _context;
protected readonly DbSet<T> _dbSet;
public Repository(C dbContext)
{
_dbContext = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
_dbSet = dbContext.Set<T>();
}
public virtual void Seed()
public Repository(C context)
{
_context = context ?? throw new ArgumentNullException(nameof(context));
_dbSet = context.Set<T>();
}
public virtual async Task SeedAsync()
{
}
public virtual IList<T> List()
public virtual IList<T> GetAll()
{
return [.. _dbSet];
}
public virtual async Task<IList<T>> ListAsync()
public virtual async Task<IList<T>> GetAllAsync()
{
return await _dbSet.ToListAsync();
}
public virtual IList<T> List(uint page, uint limit)
public virtual IList<T> GetPage(uint page, uint limit)
{
return _dbSet.Skip((int)((page < 1 ? 0 : page - 1) * limit)).Take((int)limit).ToList();
}
public virtual async Task<IList<T>> ListAsync(uint page, uint limit)
public virtual async Task<IList<T>> GetPageAsync(uint page, uint limit)
{
return await _dbSet.Skip((int)((page < 1 ? 0 : page - 1) * limit)).Take((int)limit).ToListAsync();
}
public virtual T? Find(K key)
public virtual T? GetOne(K key)
{
return _dbSet.Find(key);
}
public virtual async Task<T?> FindAsync(K key)
public virtual async Task<T?> GetOneAsync(K key)
{
return await _dbSet.FindAsync(key);
}
@ -62,28 +58,29 @@ namespace Tribufu.EntityFrameworkCore
public virtual T? Create(T entity)
{
_dbSet.Add(entity);
var result = _dbContext.SaveChanges();
var result = _context.SaveChanges();
return result > 0 ? entity : null;
}
public virtual async Task<T?> CreateAsync(T entity)
{
await _dbSet.AddAsync(entity);
var result = await _dbContext.SaveChangesAsync();
var result = await _context.SaveChangesAsync();
return result > 0 ? entity : null;
}
public virtual T? Update(T entity)
{
_dbSet.Update(entity);
var result = _dbContext.SaveChanges();
var result = _context.SaveChanges();
return result > 0 ? entity : null;
}
public virtual async Task<T?> UpdateAsync(T entity)
{
_dbSet.Update(entity);
var result = await _dbContext.SaveChangesAsync();
var result = await _context.SaveChangesAsync();
return result > 0 ? entity : null;
}
@ -108,13 +105,13 @@ namespace Tribufu.EntityFrameworkCore
public virtual void Delete(T entity)
{
_dbSet.Remove(entity);
_dbContext.SaveChanges();
_context.SaveChanges();
}
public virtual async Task DeleteAsync(T entity)
{
_dbSet.Remove(entity);
await _dbContext.SaveChangesAsync();
await _context.SaveChangesAsync();
}
}
}

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -23,7 +23,6 @@ using System.Text;
using System.Threading;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Web;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using RestSharp;

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -101,6 +101,12 @@ namespace Tribufu.Client
// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8
// For example: 2009-06-15T13:45:30.0000000
return dateTimeOffset.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat);
if (obj is DateOnly dateOnly)
// Return a formatted date string - Can be customized with Configuration.DateTimeFormat
// Defaults to an ISO 8601, using the known as a Round-trip date/time pattern ("o")
// https://msdn.microsoft.com/en-us/library/az4se3k1(v=vs.110).aspx#Anchor_8
// For example: 2009-06-15
return dateOnly.ToString((configuration ?? GlobalConfiguration.Instance).DateTimeFormat);
if (obj is bool boolean)
return boolean ? "true" : "false";
if (obj is ICollection collection) {

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -540,7 +540,7 @@ namespace Tribufu.Client
string report = "C# SDK (Tribufu) Debug Report:\n";
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: 1.4.3\n";
report += " Version of the API: 1.2.6\n";
report += " SDK Package Version: 1.0.0\n";
return report;

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,63 +27,55 @@ using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter;
namespace Tribufu.Model
{
/// <summary>
/// ExternalAccount
/// Account
/// </summary>
[DataContract(Name = "ExternalAccount")]
public partial class ExternalAccount : IValidatableObject
[DataContract(Name = "Account")]
public partial class Account : IValidatableObject
{
/// <summary>
/// Gets or Sets Provider
/// </summary>
[DataMember(Name = "provider", IsRequired = true, EmitDefaultValue = true)]
public IdentityProviderType Provider { get; set; }
public LoginProvider Provider { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ExternalAccount" /> class.
/// Initializes a new instance of the <see cref="Account" /> class.
/// </summary>
[JsonConstructorAttribute]
protected ExternalAccount() { }
protected Account() { }
/// <summary>
/// Initializes a new instance of the <see cref="ExternalAccount" /> class.
/// Initializes a new instance of the <see cref="Account" /> class.
/// </summary>
/// <param name="userId">userId.</param>
/// <param name="provider">provider (required).</param>
/// <param name="externalId">externalId (required).</param>
/// <param name="id">id (required).</param>
/// <param name="name">name.</param>
/// <param name="provider">provider (required).</param>
/// <param name="userId">userId.</param>
/// <param name="authorized">authorized.</param>
/// <param name="fields">fields.</param>
/// <param name="createdAt">createdAt.</param>
/// <param name="updatedAt">updatedAt.</param>
/// <param name="deletedAt">deletedAt.</param>
public ExternalAccount(string userId = default(string), IdentityProviderType provider = default(IdentityProviderType), string externalId = default(string), string name = default(string), bool authorized = default(bool), Dictionary<string, Object> fields = default(Dictionary<string, Object>), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?))
/// <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.Provider = provider;
// to ensure "externalId" is required (not null)
if (externalId == null)
// to ensure "id" is required (not null)
if (id == null)
{
throw new ArgumentNullException("externalId is a required property for ExternalAccount and cannot be null");
throw new ArgumentNullException("id is a required property for Account and cannot be null");
}
this.ExternalId = externalId;
this.UserId = userId;
this.Id = id;
this.Provider = provider;
this.Name = name;
this.UserId = userId;
this.Authorized = authorized;
this.Fields = fields;
this.CreatedAt = createdAt;
this.UpdatedAt = updatedAt;
this.DeletedAt = deletedAt;
this.Created = created;
this.Updated = updated;
}
/// <summary>
/// Gets or Sets UserId
/// Gets or Sets Id
/// </summary>
[DataMember(Name = "user_id", EmitDefaultValue = false)]
public string UserId { get; set; }
/// <summary>
/// Gets or Sets ExternalId
/// </summary>
[DataMember(Name = "external_id", IsRequired = true, EmitDefaultValue = true)]
public string ExternalId { get; set; }
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public string Id { get; set; }
/// <summary>
/// Gets or Sets Name
@ -91,6 +83,12 @@ namespace Tribufu.Model
[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>
@ -101,25 +99,19 @@ namespace Tribufu.Model
/// Gets or Sets Fields
/// </summary>
[DataMember(Name = "fields", EmitDefaultValue = true)]
public Dictionary<string, Object> Fields { get; set; }
public Object Fields { get; set; }
/// <summary>
/// Gets or Sets CreatedAt
/// Gets or Sets Created
/// </summary>
[DataMember(Name = "created_at", EmitDefaultValue = false)]
public DateTime CreatedAt { get; set; }
[DataMember(Name = "created", EmitDefaultValue = false)]
public DateTime Created { get; set; }
/// <summary>
/// Gets or Sets UpdatedAt
/// Gets or Sets Updated
/// </summary>
[DataMember(Name = "updated_at", EmitDefaultValue = true)]
public DateTime? UpdatedAt { get; set; }
/// <summary>
/// Gets or Sets DeletedAt
/// </summary>
[DataMember(Name = "deleted_at", EmitDefaultValue = true)]
public DateTime? DeletedAt { get; set; }
[DataMember(Name = "updated", EmitDefaultValue = true)]
public DateTime? Updated { get; set; }
/// <summary>
/// Returns the string presentation of the object
@ -128,16 +120,15 @@ namespace Tribufu.Model
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class ExternalAccount {\n");
sb.Append(" UserId: ").Append(UserId).Append("\n");
sb.Append(" Provider: ").Append(Provider).Append("\n");
sb.Append(" ExternalId: ").Append(ExternalId).Append("\n");
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(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n");
sb.Append(" Created: ").Append(Created).Append("\n");
sb.Append(" Updated: ").Append(Updated).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@ -158,18 +149,6 @@ namespace Tribufu.Model
/// <returns>Validation Result</returns>
IEnumerable<ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
// ExternalId (string) maxLength
if (this.ExternalId != null && this.ExternalId.Length > 45)
{
yield return new ValidationResult("Invalid value for ExternalId, length must be less than 45.", new [] { "ExternalId" });
}
// 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" });
}
yield break;
}
}

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -56,10 +56,9 @@ namespace Tribufu.Model
/// <param name="capsuleImageUrl">capsuleImageUrl.</param>
/// <param name="libraryImageUrl">libraryImageUrl.</param>
/// <param name="slug">slug.</param>
/// <param name="createdAt">createdAt.</param>
/// <param name="updatedAt">updatedAt.</param>
/// <param name="deletedAt">deletedAt.</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 slug = default(string), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?))
/// <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 slug = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
{
// to ensure "name" is required (not null)
if (name == null)
@ -76,9 +75,8 @@ namespace Tribufu.Model
this.CapsuleImageUrl = capsuleImageUrl;
this.LibraryImageUrl = libraryImageUrl;
this.Slug = slug;
this.CreatedAt = createdAt;
this.UpdatedAt = updatedAt;
this.DeletedAt = deletedAt;
this.Created = created;
this.Updated = updated;
}
/// <summary>
@ -102,7 +100,7 @@ namespace Tribufu.Model
/// <summary>
/// Gets or Sets OrganizationId
/// </summary>
[DataMember(Name = "organization_id", EmitDefaultValue = false)]
[DataMember(Name = "organization_id", EmitDefaultValue = true)]
public string OrganizationId { get; set; }
/// <summary>
@ -136,22 +134,16 @@ namespace Tribufu.Model
public string Slug { get; set; }
/// <summary>
/// Gets or Sets CreatedAt
/// Gets or Sets Created
/// </summary>
[DataMember(Name = "created_at", EmitDefaultValue = false)]
public DateTime CreatedAt { get; set; }
[DataMember(Name = "created", EmitDefaultValue = false)]
public DateTime Created { get; set; }
/// <summary>
/// Gets or Sets UpdatedAt
/// Gets or Sets Updated
/// </summary>
[DataMember(Name = "updated_at", EmitDefaultValue = true)]
public DateTime? UpdatedAt { get; set; }
/// <summary>
/// Gets or Sets DeletedAt
/// </summary>
[DataMember(Name = "deleted_at", EmitDefaultValue = true)]
public DateTime? DeletedAt { get; set; }
[DataMember(Name = "updated", EmitDefaultValue = true)]
public DateTime? Updated { get; set; }
/// <summary>
/// Returns the string presentation of the object
@ -171,9 +163,8 @@ namespace Tribufu.Model
sb.Append(" CapsuleImageUrl: ").Append(CapsuleImageUrl).Append("\n");
sb.Append(" LibraryImageUrl: ").Append(LibraryImageUrl).Append("\n");
sb.Append(" Slug: ").Append(Slug).Append("\n");
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n");
sb.Append(" Created: ").Append(Created).Append("\n");
sb.Append(" Updated: ").Append(Updated).Append("\n");
sb.Append("}\n");
return sb.ToString();
}

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -33,10 +33,10 @@ namespace Tribufu.Model
public enum ApplicationType
{
/// <summary>
/// Enum Software for value: software
/// Enum Application for value: application
/// </summary>
[EnumMember(Value = "software")]
Software,
[EnumMember(Value = "application")]
Application,
/// <summary>
/// Enum Game for value: game

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -49,7 +49,7 @@ namespace Tribufu.Model
/// <param name="timezone">timezone.</param>
/// <param name="currency">currency.</param>
/// <param name="ipAddress">ipAddress.</param>
public CreateUser(string uuid = default(string), string name = default(string), string displayName = default(string), string email = default(string), string password = default(string), string language = default(string), string timezone = default(string), string currency = default(string), string ipAddress = default(string))
public CreateUser(Guid? uuid = default(Guid?), string name = default(string), string displayName = default(string), string email = default(string), string password = default(string), string language = default(string), string timezone = default(string), string currency = default(string), string ipAddress = default(string))
{
// to ensure "name" is required (not null)
if (name == null)
@ -70,8 +70,8 @@ namespace Tribufu.Model
/// <summary>
/// Gets or Sets Uuid
/// </summary>
[DataMember(Name = "uuid", EmitDefaultValue = false)]
public string Uuid { get; set; }
[DataMember(Name = "uuid", EmitDefaultValue = true)]
public Guid? Uuid { get; set; }
/// <summary>
/// Gets or Sets Name

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,56 +27,54 @@ using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter;
namespace Tribufu.Model
{
/// <summary>
/// StorageFile
/// File
/// </summary>
[DataContract(Name = "StorageFile")]
public partial class StorageFile : IValidatableObject
[DataContract(Name = "File")]
public partial class File : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="StorageFile" /> class.
/// Initializes a new instance of the <see cref="File" /> class.
/// </summary>
[JsonConstructorAttribute]
protected StorageFile() { }
protected File() { }
/// <summary>
/// Initializes a new instance of the <see cref="StorageFile" /> class.
/// Initializes a new instance of the <see cref="File" /> class.
/// </summary>
/// <param name="id">id.</param>
/// <param name="name">name (required).</param>
/// <param name="contentType">contentType (required).</param>
/// <param name="url">url (required).</param>
/// <param name="size">size.</param>
/// <param name="hash">hash.</param>
/// <param name="etag">etag.</param>
/// <param name="createdAt">createdAt.</param>
/// <param name="updatedAt">updatedAt.</param>
/// <param name="deletedAt">deletedAt.</param>
public StorageFile(string id = default(string), string name = default(string), string contentType = default(string), string url = default(string), long size = default(long), string hash = default(string), string etag = default(string), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?))
/// <param name="size">size.</param>
/// <param name="created">created.</param>
/// <param name="updated">updated.</param>
public File(string id = default(string), string name = default(string), string contentType = default(string), string url = default(string), string hash = default(string), string etag = default(string), long size = default(long), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
{
// to ensure "name" is required (not null)
if (name == null)
{
throw new ArgumentNullException("name is a required property for StorageFile and cannot be null");
throw new ArgumentNullException("name is a required property for File and cannot be null");
}
this.Name = name;
// to ensure "contentType" is required (not null)
if (contentType == null)
{
throw new ArgumentNullException("contentType is a required property for StorageFile and cannot be null");
throw new ArgumentNullException("contentType is a required property for File and cannot be null");
}
this.ContentType = contentType;
// to ensure "url" is required (not null)
if (url == null)
{
throw new ArgumentNullException("url is a required property for StorageFile and cannot be null");
throw new ArgumentNullException("url is a required property for File and cannot be null");
}
this.Url = url;
this.Id = id;
this.Size = size;
this.Hash = hash;
this.Etag = etag;
this.CreatedAt = createdAt;
this.UpdatedAt = updatedAt;
this.DeletedAt = deletedAt;
this.Size = size;
this.Created = created;
this.Updated = updated;
}
/// <summary>
@ -103,12 +101,6 @@ namespace Tribufu.Model
[DataMember(Name = "url", IsRequired = true, EmitDefaultValue = true)]
public string Url { get; set; }
/// <summary>
/// Gets or Sets Size
/// </summary>
[DataMember(Name = "size", EmitDefaultValue = false)]
public long Size { get; set; }
/// <summary>
/// Gets or Sets Hash
/// </summary>
@ -122,22 +114,22 @@ namespace Tribufu.Model
public string Etag { get; set; }
/// <summary>
/// Gets or Sets CreatedAt
/// Gets or Sets Size
/// </summary>
[DataMember(Name = "created_at", EmitDefaultValue = false)]
public DateTime CreatedAt { get; set; }
[DataMember(Name = "size", EmitDefaultValue = false)]
public long Size { get; set; }
/// <summary>
/// Gets or Sets UpdatedAt
/// Gets or Sets Created
/// </summary>
[DataMember(Name = "updated_at", EmitDefaultValue = true)]
public DateTime? UpdatedAt { get; set; }
[DataMember(Name = "created", EmitDefaultValue = false)]
public DateTime Created { get; set; }
/// <summary>
/// Gets or Sets DeletedAt
/// Gets or Sets Updated
/// </summary>
[DataMember(Name = "deleted_at", EmitDefaultValue = true)]
public DateTime? DeletedAt { get; set; }
[DataMember(Name = "updated", EmitDefaultValue = true)]
public DateTime? Updated { get; set; }
/// <summary>
/// Returns the string presentation of the object
@ -146,17 +138,16 @@ namespace Tribufu.Model
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class StorageFile {\n");
sb.Append("class File {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Name: ").Append(Name).Append("\n");
sb.Append(" ContentType: ").Append(ContentType).Append("\n");
sb.Append(" Url: ").Append(Url).Append("\n");
sb.Append(" Size: ").Append(Size).Append("\n");
sb.Append(" Hash: ").Append(Hash).Append("\n");
sb.Append(" Etag: ").Append(Etag).Append("\n");
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n");
sb.Append(" Size: ").Append(Size).Append("\n");
sb.Append(" Created: ").Append(Created).Append("\n");
sb.Append(" Updated: ").Append(Updated).Append("\n");
sb.Append("}\n");
return sb.ToString();
}

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -56,9 +56,8 @@ namespace Tribufu.Model
/// <param name="capsuleImageUrl">capsuleImageUrl.</param>
/// <param name="libraryImageUrl">libraryImageUrl.</param>
/// <param name="slug">slug.</param>
/// <param name="createdAt">createdAt.</param>
/// <param name="updatedAt">updatedAt.</param>
/// <param name="deletedAt">deletedAt.</param>
/// <param name="created">created.</param>
/// <param name="updated">updated.</param>
/// <param name="enableServers">enableServers.</param>
/// <param name="gamePort">gamePort.</param>
/// <param name="queryPort">queryPort.</param>
@ -66,7 +65,7 @@ namespace Tribufu.Model
/// <param name="gamedigId">gamedigId.</param>
/// <param name="steamAppId">steamAppId.</param>
/// <param name="steamServerAppId">steamServerAppId.</param>
public Game(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 slug = default(string), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?), bool enableServers = default(bool), int? gamePort = default(int?), int? queryPort = default(int?), int? rconPort = default(int?), string gamedigId = default(string), int? steamAppId = default(int?), int? steamServerAppId = default(int?))
public Game(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 slug = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?), bool enableServers = default(bool), int? gamePort = default(int?), int? queryPort = default(int?), int? rconPort = default(int?), string gamedigId = default(string), int? steamAppId = default(int?), int? steamServerAppId = default(int?))
{
// to ensure "name" is required (not null)
if (name == null)
@ -83,9 +82,8 @@ namespace Tribufu.Model
this.CapsuleImageUrl = capsuleImageUrl;
this.LibraryImageUrl = libraryImageUrl;
this.Slug = slug;
this.CreatedAt = createdAt;
this.UpdatedAt = updatedAt;
this.DeletedAt = deletedAt;
this.Created = created;
this.Updated = updated;
this.EnableServers = enableServers;
this.GamePort = gamePort;
this.QueryPort = queryPort;
@ -116,7 +114,7 @@ namespace Tribufu.Model
/// <summary>
/// Gets or Sets OrganizationId
/// </summary>
[DataMember(Name = "organization_id", EmitDefaultValue = false)]
[DataMember(Name = "organization_id", EmitDefaultValue = true)]
public string OrganizationId { get; set; }
/// <summary>
@ -150,22 +148,16 @@ namespace Tribufu.Model
public string Slug { get; set; }
/// <summary>
/// Gets or Sets CreatedAt
/// Gets or Sets Created
/// </summary>
[DataMember(Name = "created_at", EmitDefaultValue = false)]
public DateTime CreatedAt { get; set; }
[DataMember(Name = "created", EmitDefaultValue = false)]
public DateTime Created { get; set; }
/// <summary>
/// Gets or Sets UpdatedAt
/// Gets or Sets Updated
/// </summary>
[DataMember(Name = "updated_at", EmitDefaultValue = true)]
public DateTime? UpdatedAt { get; set; }
/// <summary>
/// Gets or Sets DeletedAt
/// </summary>
[DataMember(Name = "deleted_at", EmitDefaultValue = true)]
public DateTime? DeletedAt { get; set; }
[DataMember(Name = "updated", EmitDefaultValue = true)]
public DateTime? Updated { get; set; }
/// <summary>
/// Gets or Sets EnableServers
@ -227,9 +219,8 @@ namespace Tribufu.Model
sb.Append(" CapsuleImageUrl: ").Append(CapsuleImageUrl).Append("\n");
sb.Append(" LibraryImageUrl: ").Append(LibraryImageUrl).Append("\n");
sb.Append(" Slug: ").Append(Slug).Append("\n");
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n");
sb.Append(" Created: ").Append(Created).Append("\n");
sb.Append(" Updated: ").Append(Updated).Append("\n");
sb.Append(" EnableServers: ").Append(EnableServers).Append("\n");
sb.Append(" GamePort: ").Append(GamePort).Append("\n");
sb.Append(" QueryPort: ").Append(QueryPort).Append("\n");

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -59,10 +59,9 @@ namespace Tribufu.Model
/// <param name="steam">steam.</param>
/// <param name="discordServerId">discordServerId.</param>
/// <param name="youtubeVideoUrl">youtubeVideoUrl.</param>
/// <param name="createdAt">createdAt.</param>
/// <param name="updatedAt">updatedAt.</param>
/// <param name="deletedAt">deletedAt.</param>
public GameServer(string id = default(string), string name = default(string), string description = default(string), string ownerId = default(string), string address = default(string), int queryPort = default(int), int? gamePort = default(int?), string map = default(string), string varVersion = default(string), string gameId = default(string), string gameIconUrl = default(string), string clusterId = default(string), string websiteUrl = default(string), string bannerUrl = default(string), double uptime = default(double), string country = default(string), bool steam = default(bool), long? discordServerId = default(long?), string youtubeVideoUrl = default(string), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?))
/// <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 ownerId = default(string), string address = default(string), int queryPort = default(int), int? gamePort = default(int?), string map = default(string), string varVersion = default(string), string gameId = default(string), string gameIconUrl = default(string), string clusterId = default(string), string websiteUrl = default(string), string bannerUrl = default(string), double uptime = default(double), string country = default(string), bool steam = default(bool), string discordServerId = default(string), string youtubeVideoUrl = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
{
// to ensure "name" is required (not null)
if (name == null)
@ -93,9 +92,8 @@ namespace Tribufu.Model
this.Steam = steam;
this.DiscordServerId = discordServerId;
this.YoutubeVideoUrl = youtubeVideoUrl;
this.CreatedAt = createdAt;
this.UpdatedAt = updatedAt;
this.DeletedAt = deletedAt;
this.Created = created;
this.Updated = updated;
}
/// <summary>
@ -119,7 +117,7 @@ namespace Tribufu.Model
/// <summary>
/// Gets or Sets OwnerId
/// </summary>
[DataMember(Name = "owner_id", EmitDefaultValue = false)]
[DataMember(Name = "owner_id", EmitDefaultValue = true)]
public string OwnerId { get; set; }
/// <summary>
@ -167,7 +165,7 @@ namespace Tribufu.Model
/// <summary>
/// Gets or Sets ClusterId
/// </summary>
[DataMember(Name = "cluster_id", EmitDefaultValue = false)]
[DataMember(Name = "cluster_id", EmitDefaultValue = true)]
public string ClusterId { get; set; }
/// <summary>
@ -204,7 +202,7 @@ namespace Tribufu.Model
/// Gets or Sets DiscordServerId
/// </summary>
[DataMember(Name = "discord_server_id", EmitDefaultValue = true)]
public long? DiscordServerId { get; set; }
public string DiscordServerId { get; set; }
/// <summary>
/// Gets or Sets YoutubeVideoUrl
@ -213,22 +211,16 @@ namespace Tribufu.Model
public string YoutubeVideoUrl { get; set; }
/// <summary>
/// Gets or Sets CreatedAt
/// Gets or Sets Created
/// </summary>
[DataMember(Name = "created_at", EmitDefaultValue = false)]
public DateTime CreatedAt { get; set; }
[DataMember(Name = "created", EmitDefaultValue = false)]
public DateTime Created { get; set; }
/// <summary>
/// Gets or Sets UpdatedAt
/// Gets or Sets Updated
/// </summary>
[DataMember(Name = "updated_at", EmitDefaultValue = true)]
public DateTime? UpdatedAt { get; set; }
/// <summary>
/// Gets or Sets DeletedAt
/// </summary>
[DataMember(Name = "deleted_at", EmitDefaultValue = true)]
public DateTime? DeletedAt { get; set; }
[DataMember(Name = "updated", EmitDefaultValue = true)]
public DateTime? Updated { get; set; }
/// <summary>
/// Returns the string presentation of the object
@ -257,9 +249,8 @@ namespace Tribufu.Model
sb.Append(" Steam: ").Append(Steam).Append("\n");
sb.Append(" DiscordServerId: ").Append(DiscordServerId).Append("\n");
sb.Append(" YoutubeVideoUrl: ").Append(YoutubeVideoUrl).Append("\n");
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n");
sb.Append(" Created: ").Append(Created).Append("\n");
sb.Append(" Updated: ").Append(Updated).Append("\n");
sb.Append("}\n");
return sb.ToString();
}

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -52,10 +52,9 @@ namespace Tribufu.Model
/// <param name="tags">tags.</param>
/// <param name="commentCount">commentCount.</param>
/// <param name="serverCount">serverCount.</param>
/// <param name="createdAt">createdAt.</param>
/// <param name="updatedAt">updatedAt.</param>
/// <param name="deletedAt">deletedAt.</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), long? discordServerId = default(long?), string youtubeVideoUrl = default(string), string tags = default(string), int commentCount = default(int), int serverCount = default(int), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?))
/// <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?))
{
// to ensure "name" is required (not null)
if (name == null)
@ -74,9 +73,8 @@ namespace Tribufu.Model
this.Tags = tags;
this.CommentCount = commentCount;
this.ServerCount = serverCount;
this.CreatedAt = createdAt;
this.UpdatedAt = updatedAt;
this.DeletedAt = deletedAt;
this.Created = created;
this.Updated = updated;
}
/// <summary>
@ -125,7 +123,7 @@ namespace Tribufu.Model
/// Gets or Sets DiscordServerId
/// </summary>
[DataMember(Name = "discord_server_id", EmitDefaultValue = true)]
public long? DiscordServerId { get; set; }
public string DiscordServerId { get; set; }
/// <summary>
/// Gets or Sets YoutubeVideoUrl
@ -152,22 +150,16 @@ namespace Tribufu.Model
public int ServerCount { get; set; }
/// <summary>
/// Gets or Sets CreatedAt
/// Gets or Sets Created
/// </summary>
[DataMember(Name = "created_at", EmitDefaultValue = false)]
public DateTime CreatedAt { get; set; }
[DataMember(Name = "created", EmitDefaultValue = false)]
public DateTime Created { get; set; }
/// <summary>
/// Gets or Sets UpdatedAt
/// Gets or Sets Updated
/// </summary>
[DataMember(Name = "updated_at", EmitDefaultValue = true)]
public DateTime? UpdatedAt { get; set; }
/// <summary>
/// Gets or Sets DeletedAt
/// </summary>
[DataMember(Name = "deleted_at", EmitDefaultValue = true)]
public DateTime? DeletedAt { get; set; }
[DataMember(Name = "updated", EmitDefaultValue = true)]
public DateTime? Updated { get; set; }
/// <summary>
/// Returns the string presentation of the object
@ -189,9 +181,8 @@ namespace Tribufu.Model
sb.Append(" Tags: ").Append(Tags).Append("\n");
sb.Append(" CommentCount: ").Append(CommentCount).Append("\n");
sb.Append(" ServerCount: ").Append(ServerCount).Append("\n");
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n");
sb.Append(" Created: ").Append(Created).Append("\n");
sb.Append(" Updated: ").Append(Updated).Append("\n");
sb.Append("}\n");
return sb.ToString();
}

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -48,8 +48,8 @@ namespace Tribufu.Model
/// <param name="currentPlayers">currentPlayers.</param>
/// <param name="maxPlayers">maxPlayers.</param>
/// <param name="motd">motd.</param>
/// <param name="createdAt">createdAt.</param>
public GameServerQuery(string id = default(string), string serverId = default(string), GameServerStatus? status = default(GameServerStatus?), int ping = default(int), int currentPlayers = default(int), int maxPlayers = default(int), string motd = default(string), DateTime createdAt = default(DateTime))
/// <param name="created">created.</param>
public GameServerQuery(string id = default(string), string serverId = default(string), GameServerStatus? status = default(GameServerStatus?), int ping = default(int), int currentPlayers = default(int), int maxPlayers = default(int), string motd = default(string), DateTime created = default(DateTime))
{
this.Id = id;
this.ServerId = serverId;
@ -58,7 +58,7 @@ namespace Tribufu.Model
this.CurrentPlayers = currentPlayers;
this.MaxPlayers = maxPlayers;
this.Motd = motd;
this.CreatedAt = createdAt;
this.Created = created;
}
/// <summary>
@ -98,10 +98,10 @@ namespace Tribufu.Model
public string Motd { get; set; }
/// <summary>
/// Gets or Sets CreatedAt
/// Gets or Sets Created
/// </summary>
[DataMember(Name = "created_at", EmitDefaultValue = false)]
public DateTime CreatedAt { get; set; }
[DataMember(Name = "created", EmitDefaultValue = false)]
public DateTime Created { get; set; }
/// <summary>
/// Returns the string presentation of the object
@ -118,7 +118,7 @@ namespace Tribufu.Model
sb.Append(" CurrentPlayers: ").Append(CurrentPlayers).Append("\n");
sb.Append(" MaxPlayers: ").Append(MaxPlayers).Append("\n");
sb.Append(" Motd: ").Append(Motd).Append("\n");
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append(" Created: ").Append(Created).Append("\n");
sb.Append("}\n");
return sb.ToString();
}

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -54,10 +54,9 @@ namespace Tribufu.Model
/// <param name="memberCount">memberCount.</param>
/// <param name="followerCount">followerCount.</param>
/// <param name="viewCount">viewCount.</param>
/// <param name="createdAt">createdAt.</param>
/// <param name="updatedAt">updatedAt.</param>
/// <param name="deletedAt">deletedAt.</param>
public Group(string id = default(string), string uuid = default(string), 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 createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?))
/// <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?))
{
// to ensure "name" is required (not null)
if (name == null)
@ -78,9 +77,8 @@ namespace Tribufu.Model
this.MemberCount = memberCount;
this.FollowerCount = followerCount;
this.ViewCount = viewCount;
this.CreatedAt = createdAt;
this.UpdatedAt = updatedAt;
this.DeletedAt = deletedAt;
this.Created = created;
this.Updated = updated;
}
/// <summary>
@ -93,7 +91,7 @@ namespace Tribufu.Model
/// Gets or Sets Uuid
/// </summary>
[DataMember(Name = "uuid", EmitDefaultValue = false)]
public string Uuid { get; set; }
public Guid Uuid { get; set; }
/// <summary>
/// Gets or Sets Name
@ -168,22 +166,16 @@ namespace Tribufu.Model
public int ViewCount { get; set; }
/// <summary>
/// Gets or Sets CreatedAt
/// Gets or Sets Created
/// </summary>
[DataMember(Name = "created_at", EmitDefaultValue = false)]
public DateTime CreatedAt { get; set; }
[DataMember(Name = "created", EmitDefaultValue = false)]
public DateTime Created { get; set; }
/// <summary>
/// Gets or Sets UpdatedAt
/// Gets or Sets Updated
/// </summary>
[DataMember(Name = "updated_at", EmitDefaultValue = true)]
public DateTime? UpdatedAt { get; set; }
/// <summary>
/// Gets or Sets DeletedAt
/// </summary>
[DataMember(Name = "deleted_at", EmitDefaultValue = true)]
public DateTime? DeletedAt { get; set; }
[DataMember(Name = "updated", EmitDefaultValue = true)]
public DateTime? Updated { get; set; }
/// <summary>
/// Returns the string presentation of the object
@ -207,9 +199,8 @@ namespace Tribufu.Model
sb.Append(" MemberCount: ").Append(MemberCount).Append("\n");
sb.Append(" FollowerCount: ").Append(FollowerCount).Append("\n");
sb.Append(" ViewCount: ").Append(ViewCount).Append("\n");
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n");
sb.Append(" Created: ").Append(Created).Append("\n");
sb.Append(" Updated: ").Append(Updated).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
@ -230,12 +221,6 @@ namespace Tribufu.Model
/// <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" });
}
yield break;
}
}

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,18 +27,18 @@ using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter;
namespace Tribufu.Model
{
/// <summary>
/// GroupApplication
/// GroupGame
/// </summary>
[DataContract(Name = "GroupApplication")]
public partial class GroupApplication : IValidatableObject
[DataContract(Name = "GroupGame")]
public partial class GroupGame : IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="GroupApplication" /> class.
/// Initializes a new instance of the <see cref="GroupGame" /> class.
/// </summary>
[JsonConstructorAttribute]
protected GroupApplication() { }
protected GroupGame() { }
/// <summary>
/// Initializes a new instance of the <see cref="GroupApplication" /> class.
/// Initializes a new instance of the <see cref="GroupGame" /> class.
/// </summary>
/// <param name="groupId">groupId (required).</param>
/// <param name="group">group.</param>
@ -47,12 +47,12 @@ namespace Tribufu.Model
/// <param name="stats">stats.</param>
/// <param name="acquired">acquired.</param>
/// <param name="lastUsed">lastUsed.</param>
public GroupApplication(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?))
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?))
{
// to ensure "groupId" is required (not null)
if (groupId == null)
{
throw new ArgumentNullException("groupId is a required property for GroupApplication and cannot be null");
throw new ArgumentNullException("groupId is a required property for GroupGame and cannot be null");
}
this.GroupId = groupId;
this.Group = group;
@ -112,7 +112,7 @@ namespace Tribufu.Model
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class GroupApplication {\n");
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");

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -42,17 +42,23 @@ namespace Tribufu.Model
/// 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), string name = default(string), string displayName = default(string), string photoUrl = default(string), GroupRank? rank = default(GroupRank?), DateTime since = default(DateTime))
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;
}
@ -63,6 +69,12 @@ namespace Tribufu.Model
[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>
@ -75,12 +87,24 @@ namespace Tribufu.Model
[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>
@ -96,9 +120,12 @@ namespace Tribufu.Model
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");

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -39,12 +39,11 @@ namespace Tribufu.Model
/// <param name="varVersion">varVersion.</param>
/// <param name="network">network.</param>
/// <param name="reserved">reserved.</param>
/// <param name="banned">banned.</param>
/// <param name="asn">asn.</param>
/// <param name="isp">isp.</param>
/// <param name="continent">continent.</param>
/// <param name="country">country.</param>
/// <param name="province">province.</param>
/// <param name="region">region.</param>
/// <param name="city">city.</param>
/// <param name="postalCode">postalCode.</param>
/// <param name="callingCode">callingCode.</param>
@ -54,18 +53,17 @@ namespace Tribufu.Model
/// <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), bool banned = default(bool), string asn = default(string), string isp = default(string), string continent = default(string), string country = default(string), string province = 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?))
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.Banned = banned;
this.Asn = asn;
this.Isp = isp;
this.Continent = continent;
this.Country = country;
this.Province = province;
this.Region = region;
this.City = city;
this.PostalCode = postalCode;
this.CallingCode = callingCode;
@ -101,12 +99,6 @@ namespace Tribufu.Model
[DataMember(Name = "reserved", EmitDefaultValue = true)]
public bool Reserved { get; set; }
/// <summary>
/// Gets or Sets Banned
/// </summary>
[DataMember(Name = "banned", EmitDefaultValue = true)]
public bool Banned { get; set; }
/// <summary>
/// Gets or Sets Asn
/// </summary>
@ -132,10 +124,10 @@ namespace Tribufu.Model
public string Country { get; set; }
/// <summary>
/// Gets or Sets Province
/// Gets or Sets Region
/// </summary>
[DataMember(Name = "province", EmitDefaultValue = true)]
public string Province { get; set; }
[DataMember(Name = "region", EmitDefaultValue = true)]
public string Region { get; set; }
/// <summary>
/// Gets or Sets City
@ -203,12 +195,11 @@ namespace Tribufu.Model
sb.Append(" VarVersion: ").Append(VarVersion).Append("\n");
sb.Append(" Network: ").Append(Network).Append("\n");
sb.Append(" Reserved: ").Append(Reserved).Append("\n");
sb.Append(" Banned: ").Append(Banned).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(" Province: ").Append(Province).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");
@ -274,10 +265,10 @@ namespace Tribufu.Model
yield return new ValidationResult("Invalid value for Country, length must be less than 2.", new [] { "Country" });
}
// Province (string) maxLength
if (this.Province != null && this.Province.Length > 255)
// Region (string) maxLength
if (this.Region != null && this.Region.Length > 255)
{
yield return new ValidationResult("Invalid value for Province, length must be less than 255.", new [] { "Province" });
yield return new ValidationResult("Invalid value for Region, length must be less than 255.", new [] { "Region" });
}
// City (string) maxLength

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -27,10 +27,10 @@ using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter;
namespace Tribufu.Model
{
/// <summary>
/// Defines IdentityProviderType
/// Defines LoginProvider
/// </summary>
[JsonConverter(typeof(StringEnumConverter))]
public enum IdentityProviderType
public enum LoginProvider
{
/// <summary>
/// Enum Steam for value: steam

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -56,10 +56,9 @@ namespace Tribufu.Model
/// <param name="backgroundUrl">backgroundUrl.</param>
/// <param name="redirects">redirects.</param>
/// <param name="scopes">scopes.</param>
/// <param name="createdAt">createdAt.</param>
/// <param name="updatedAt">updatedAt.</param>
/// <param name="deletedAt">deletedAt.</param>
public ModelClient(string id = default(string), string name = default(string), ClientType? type = default(ClientType?), string organizationId = default(string), bool trusted = default(bool), string websiteUrl = default(string), string photoUrl = default(string), string backgroundUrl = default(string), string redirects = default(string), string scopes = default(string), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?))
/// <param name="created">created.</param>
/// <param name="updated">updated.</param>
public ModelClient(string id = default(string), string name = default(string), ClientType? type = default(ClientType?), string organizationId = default(string), bool trusted = default(bool), string websiteUrl = default(string), string photoUrl = default(string), string backgroundUrl = default(string), string redirects = default(string), string scopes = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
{
// to ensure "name" is required (not null)
if (name == null)
@ -76,9 +75,8 @@ namespace Tribufu.Model
this.BackgroundUrl = backgroundUrl;
this.Redirects = redirects;
this.Scopes = scopes;
this.CreatedAt = createdAt;
this.UpdatedAt = updatedAt;
this.DeletedAt = deletedAt;
this.Created = created;
this.Updated = updated;
}
/// <summary>
@ -150,22 +148,16 @@ namespace Tribufu.Model
return false;
}
/// <summary>
/// Gets or Sets CreatedAt
/// Gets or Sets Created
/// </summary>
[DataMember(Name = "created_at", EmitDefaultValue = false)]
public DateTime CreatedAt { get; set; }
[DataMember(Name = "created", EmitDefaultValue = false)]
public DateTime Created { get; set; }
/// <summary>
/// Gets or Sets UpdatedAt
/// Gets or Sets Updated
/// </summary>
[DataMember(Name = "updated_at", EmitDefaultValue = true)]
public DateTime? UpdatedAt { get; set; }
/// <summary>
/// Gets or Sets DeletedAt
/// </summary>
[DataMember(Name = "deleted_at", EmitDefaultValue = true)]
public DateTime? DeletedAt { get; set; }
[DataMember(Name = "updated", EmitDefaultValue = true)]
public DateTime? Updated { get; set; }
/// <summary>
/// Returns the string presentation of the object
@ -186,9 +178,8 @@ namespace Tribufu.Model
sb.Append(" Redirects: ").Append(Redirects).Append("\n");
sb.Append(" Scopes: ").Append(Scopes).Append("\n");
sb.Append(" Permissions: ").Append(Permissions).Append("\n");
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n");
sb.Append(" Created: ").Append(Created).Append("\n");
sb.Append(" Updated: ").Append(Updated).Append("\n");
sb.Append("}\n");
return sb.ToString();
}

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -50,10 +50,9 @@ namespace Tribufu.Model
/// <param name="downloadCount">downloadCount.</param>
/// <param name="lastDownload">lastDownload.</param>
/// <param name="releases">releases.</param>
/// <param name="createdAt">createdAt.</param>
/// <param name="updatedAt">updatedAt.</param>
/// <param name="deletedAt">deletedAt.</param>
public Package(string id = default(string), string name = default(string), string description = default(string), string authorId = default(string), string imageUrl = default(string), string applicationId = default(string), string categoryId = default(string), int downloadCount = default(int), DateTime? lastDownload = default(DateTime?), List<PackageRelease> releases = default(List<PackageRelease>), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?))
/// <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 authorId = default(string), string imageUrl = default(string), string applicationId = default(string), string categoryId = default(string), int downloadCount = default(int), DateTime? lastDownload = default(DateTime?), List<PackageRelease> releases = default(List<PackageRelease>), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
{
// to ensure "name" is required (not null)
if (name == null)
@ -75,9 +74,8 @@ namespace Tribufu.Model
this.DownloadCount = downloadCount;
this.LastDownload = lastDownload;
this.Releases = releases;
this.CreatedAt = createdAt;
this.UpdatedAt = updatedAt;
this.DeletedAt = deletedAt;
this.Created = created;
this.Updated = updated;
}
/// <summary>
@ -113,13 +111,13 @@ namespace Tribufu.Model
/// <summary>
/// Gets or Sets ApplicationId
/// </summary>
[DataMember(Name = "application_id", EmitDefaultValue = false)]
[DataMember(Name = "application_id", EmitDefaultValue = true)]
public string ApplicationId { get; set; }
/// <summary>
/// Gets or Sets CategoryId
/// </summary>
[DataMember(Name = "category_id", EmitDefaultValue = false)]
[DataMember(Name = "category_id", EmitDefaultValue = true)]
public string CategoryId { get; set; }
/// <summary>
@ -141,22 +139,16 @@ namespace Tribufu.Model
public List<PackageRelease> Releases { get; set; }
/// <summary>
/// Gets or Sets CreatedAt
/// Gets or Sets Created
/// </summary>
[DataMember(Name = "created_at", EmitDefaultValue = false)]
public DateTime CreatedAt { get; set; }
[DataMember(Name = "created", EmitDefaultValue = false)]
public DateTime Created { get; set; }
/// <summary>
/// Gets or Sets UpdatedAt
/// Gets or Sets Updated
/// </summary>
[DataMember(Name = "updated_at", EmitDefaultValue = true)]
public DateTime? UpdatedAt { get; set; }
/// <summary>
/// Gets or Sets DeletedAt
/// </summary>
[DataMember(Name = "deleted_at", EmitDefaultValue = true)]
public DateTime? DeletedAt { get; set; }
[DataMember(Name = "updated", EmitDefaultValue = true)]
public DateTime? Updated { get; set; }
/// <summary>
/// Returns the string presentation of the object
@ -176,9 +168,8 @@ namespace Tribufu.Model
sb.Append(" DownloadCount: ").Append(DownloadCount).Append("\n");
sb.Append(" LastDownload: ").Append(LastDownload).Append("\n");
sb.Append(" Releases: ").Append(Releases).Append("\n");
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n");
sb.Append(" Created: ").Append(Created).Append("\n");
sb.Append(" Updated: ").Append(Updated).Append("\n");
sb.Append("}\n");
return sb.ToString();
}

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -44,10 +44,9 @@ namespace Tribufu.Model
/// <param name="varVersion">varVersion (required).</param>
/// <param name="packageId">packageId.</param>
/// <param name="notes">notes.</param>
/// <param name="createdAt">createdAt.</param>
/// <param name="updatedAt">updatedAt.</param>
/// <param name="deletedAt">deletedAt.</param>
public PackageRelease(string id = default(string), string varVersion = default(string), string packageId = default(string), string notes = default(string), DateTime createdAt = default(DateTime), DateTime? updatedAt = default(DateTime?), DateTime? deletedAt = default(DateTime?))
/// <param name="created">created.</param>
/// <param name="updated">updated.</param>
public PackageRelease(string id = default(string), string varVersion = default(string), string packageId = default(string), string notes = default(string), DateTime created = default(DateTime), DateTime? updated = default(DateTime?))
{
// to ensure "varVersion" is required (not null)
if (varVersion == null)
@ -58,9 +57,8 @@ namespace Tribufu.Model
this.Id = id;
this.PackageId = packageId;
this.Notes = notes;
this.CreatedAt = createdAt;
this.UpdatedAt = updatedAt;
this.DeletedAt = deletedAt;
this.Created = created;
this.Updated = updated;
}
/// <summary>
@ -91,7 +89,7 @@ namespace Tribufu.Model
/// Gets or Sets Files
/// </summary>
[DataMember(Name = "files", EmitDefaultValue = true)]
public List<StorageFile> Files { get; private set; }
public List<File> Files { get; private set; }
/// <summary>
/// Returns false as Files should not be serialized given that it's read-only.
@ -102,22 +100,16 @@ namespace Tribufu.Model
return false;
}
/// <summary>
/// Gets or Sets CreatedAt
/// Gets or Sets Created
/// </summary>
[DataMember(Name = "created_at", EmitDefaultValue = false)]
public DateTime CreatedAt { get; set; }
[DataMember(Name = "created", EmitDefaultValue = false)]
public DateTime Created { get; set; }
/// <summary>
/// Gets or Sets UpdatedAt
/// Gets or Sets Updated
/// </summary>
[DataMember(Name = "updated_at", EmitDefaultValue = true)]
public DateTime? UpdatedAt { get; set; }
/// <summary>
/// Gets or Sets DeletedAt
/// </summary>
[DataMember(Name = "deleted_at", EmitDefaultValue = true)]
public DateTime? DeletedAt { get; set; }
[DataMember(Name = "updated", EmitDefaultValue = true)]
public DateTime? Updated { get; set; }
/// <summary>
/// Returns the string presentation of the object
@ -132,9 +124,8 @@ namespace Tribufu.Model
sb.Append(" PackageId: ").Append(PackageId).Append("\n");
sb.Append(" Notes: ").Append(Notes).Append("\n");
sb.Append(" Files: ").Append(Files).Append("\n");
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n");
sb.Append(" DeletedAt: ").Append(DeletedAt).Append("\n");
sb.Append(" Created: ").Append(Created).Append("\n");
sb.Append(" Updated: ").Append(Updated).Append("\n");
sb.Append("}\n");
return sb.ToString();
}

View file

@ -0,0 +1,236 @@
/*
* Tribufu API
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.2.6
* 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>
/// 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;
}
}
}

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

View file

@ -3,7 +3,7 @@
*
* API to access Tribufu services.
*
* The version of the OpenAPI document: 1.4.3
* The version of the OpenAPI document: 1.2.6
* Contact: contact@tribufu.com
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
@ -51,7 +51,7 @@ namespace Tribufu.Model
/// <param name="memberCount">memberCount.</param>
/// <param name="rank">rank.</param>
/// <param name="since">since.</param>
public ProfileGroup(string id = default(string), string uuid = default(string), 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))
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;
@ -75,7 +75,7 @@ namespace Tribufu.Model
/// Gets or Sets Uuid
/// </summary>
[DataMember(Name = "uuid", EmitDefaultValue = false)]
public string Uuid { get; set; }
public Guid Uuid { get; set; }
/// <summary>
/// Gets or Sets Name

Some files were not shown because too many files have changed in this diff Show more