diff --git a/.gitignore b/.gitignore index 867bfbd..114d915 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,11 @@ +.agents/ +.codex/ .vs/ bin/ -intermediate/ +Binaries +Intermediate/ obj/ -releases/* -!releases/.gitkeep .DS_Store .env *.filters diff --git a/Directory.Build.props b/Directory.Build.props index 9426f7c..afa9c8b 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -11,10 +11,11 @@ $(NoWarn);0618;1591;1998;2002;8767 - $([System.String]::Copy('$(Configuration)').ToLower()) - $(SolutionDir)intermediate\$(MSBuildProjectName)\$(ConfigLower)\ - $(SolutionDir)intermediate\$(MSBuildProjectName)\ - $(SolutionDir)bin\$(ConfigLower)\ - $(SolutionDir)intermediate\ + $(SolutionDir)Intermediate\DotNet\$(MSBuildProjectName)\ + $(BaseIntermediateOutputPath)$(Configuration)\ + $(BaseIntermediateOutputPath) + $(IntermediateOutputPath) + $(SolutionDir)Binaries\$(Configuration)\DotNet\ + $(SolutionDir)Intermediate\ diff --git a/scripts/generate.ps1 b/Scripts/Generate.ps1 similarity index 63% rename from scripts/generate.ps1 rename to Scripts/Generate.ps1 index 408e2e0..abb11fc 100644 --- a/scripts/generate.ps1 +++ b/Scripts/Generate.ps1 @@ -1,5 +1,7 @@ #!/usr/bin/env pwsh +$ErrorActionPreference = "Stop" + $env:CSHARP_POST_PROCESS_FILE = "" java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate ` @@ -10,3 +12,12 @@ java -jar ./vendor/openapi-generator/openapi-generator-cli.jar generate ` --additional-properties=packageName=Tribufu,library=restsharp,targetFramework=net47,zeroBasedEnums=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 +} diff --git a/Scripts/Package.ps1 b/Scripts/Package.ps1 new file mode 100644 index 0000000..658179e --- /dev/null +++ b/Scripts/Package.ps1 @@ -0,0 +1,7 @@ +#!/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 diff --git a/src/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs b/Source/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs similarity index 100% rename from src/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs rename to Source/Tribufu.AspNetCore/Extensions/HttpContextExtensions.cs diff --git a/src/Tribufu.AspNetCore/README.md b/Source/Tribufu.AspNetCore/README.md similarity index 100% rename from src/Tribufu.AspNetCore/README.md rename to Source/Tribufu.AspNetCore/README.md diff --git a/src/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj b/Source/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj similarity index 100% rename from src/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj rename to Source/Tribufu.AspNetCore/Tribufu.AspNetCore.csproj diff --git a/src/Tribufu.ComponentModel/EnumMemberConverter.cs b/Source/Tribufu.ComponentModel/EnumMemberConverter.cs similarity index 100% rename from src/Tribufu.ComponentModel/EnumMemberConverter.cs rename to Source/Tribufu.ComponentModel/EnumMemberConverter.cs diff --git a/src/Tribufu.ComponentModel/README.md b/Source/Tribufu.ComponentModel/README.md similarity index 100% rename from src/Tribufu.ComponentModel/README.md rename to Source/Tribufu.ComponentModel/README.md diff --git a/src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj b/Source/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj similarity index 100% rename from src/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj rename to Source/Tribufu.ComponentModel/Tribufu.ComponentModel.csproj diff --git a/src/Tribufu.Configuration/ConfigurationLoader.cs b/Source/Tribufu.Configuration/ConfigurationLoader.cs similarity index 100% rename from src/Tribufu.Configuration/ConfigurationLoader.cs rename to Source/Tribufu.Configuration/ConfigurationLoader.cs diff --git a/src/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs b/Source/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs similarity index 100% rename from src/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs rename to Source/Tribufu.Configuration/Extensions/IConfigurationExtensions.cs diff --git a/src/Tribufu.Configuration/README.md b/Source/Tribufu.Configuration/README.md similarity index 100% rename from src/Tribufu.Configuration/README.md rename to Source/Tribufu.Configuration/README.md diff --git a/src/Tribufu.Configuration/Tribufu.Configuration.csproj b/Source/Tribufu.Configuration/Tribufu.Configuration.csproj similarity index 100% rename from src/Tribufu.Configuration/Tribufu.Configuration.csproj rename to Source/Tribufu.Configuration/Tribufu.Configuration.csproj diff --git a/src/Tribufu.EntityFrameworkCore/IRepository.cs b/Source/Tribufu.EntityFrameworkCore/IRepository.cs similarity index 100% rename from src/Tribufu.EntityFrameworkCore/IRepository.cs rename to Source/Tribufu.EntityFrameworkCore/IRepository.cs diff --git a/src/Tribufu.EntityFrameworkCore/README.md b/Source/Tribufu.EntityFrameworkCore/README.md similarity index 100% rename from src/Tribufu.EntityFrameworkCore/README.md rename to Source/Tribufu.EntityFrameworkCore/README.md diff --git a/src/Tribufu.EntityFrameworkCore/Repository.cs b/Source/Tribufu.EntityFrameworkCore/Repository.cs similarity index 100% rename from src/Tribufu.EntityFrameworkCore/Repository.cs rename to Source/Tribufu.EntityFrameworkCore/Repository.cs diff --git a/src/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj b/Source/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj similarity index 100% rename from src/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj rename to Source/Tribufu.EntityFrameworkCore/Tribufu.EntityFrameworkCore.csproj diff --git a/src/Tribufu.Example/Program.cs b/Source/Tribufu.Example/Program.cs similarity index 100% rename from src/Tribufu.Example/Program.cs rename to Source/Tribufu.Example/Program.cs diff --git a/src/Tribufu.Example/Tribufu.Example.csproj b/Source/Tribufu.Example/Tribufu.Example.csproj similarity index 100% rename from src/Tribufu.Example/Tribufu.Example.csproj rename to Source/Tribufu.Example/Tribufu.Example.csproj diff --git a/src/Tribufu.Logging/LogLevel.cs b/Source/Tribufu.Logging/LogLevel.cs similarity index 100% rename from src/Tribufu.Logging/LogLevel.cs rename to Source/Tribufu.Logging/LogLevel.cs diff --git a/src/Tribufu.Logging/Logger.cs b/Source/Tribufu.Logging/Logger.cs similarity index 100% rename from src/Tribufu.Logging/Logger.cs rename to Source/Tribufu.Logging/Logger.cs diff --git a/src/Tribufu.Logging/README.md b/Source/Tribufu.Logging/README.md similarity index 100% rename from src/Tribufu.Logging/README.md rename to Source/Tribufu.Logging/README.md diff --git a/src/Tribufu.Logging/Tribufu.Logging.csproj b/Source/Tribufu.Logging/Tribufu.Logging.csproj similarity index 100% rename from src/Tribufu.Logging/Tribufu.Logging.csproj rename to Source/Tribufu.Logging/Tribufu.Logging.csproj diff --git a/src/Tribufu.Platform/FlakeGenerator.cs b/Source/Tribufu.Platform/FlakeGenerator.cs similarity index 100% rename from src/Tribufu.Platform/FlakeGenerator.cs rename to Source/Tribufu.Platform/FlakeGenerator.cs diff --git a/src/Tribufu.Platform/Paths.cs b/Source/Tribufu.Platform/Paths.cs similarity index 100% rename from src/Tribufu.Platform/Paths.cs rename to Source/Tribufu.Platform/Paths.cs diff --git a/src/Tribufu.Platform/README.md b/Source/Tribufu.Platform/README.md similarity index 100% rename from src/Tribufu.Platform/README.md rename to Source/Tribufu.Platform/README.md diff --git a/src/Tribufu.Platform/Tribufu.Platform.csproj b/Source/Tribufu.Platform/Tribufu.Platform.csproj similarity index 100% rename from src/Tribufu.Platform/Tribufu.Platform.csproj rename to Source/Tribufu.Platform/Tribufu.Platform.csproj diff --git a/src/Tribufu.Serialization/BaseClassFirstContractResolver.cs b/Source/Tribufu.Serialization/BaseClassFirstContractResolver.cs similarity index 100% rename from src/Tribufu.Serialization/BaseClassFirstContractResolver.cs rename to Source/Tribufu.Serialization/BaseClassFirstContractResolver.cs diff --git a/src/Tribufu.Serialization/CustomSerializerSettings.cs b/Source/Tribufu.Serialization/CustomSerializerSettings.cs similarity index 100% rename from src/Tribufu.Serialization/CustomSerializerSettings.cs rename to Source/Tribufu.Serialization/CustomSerializerSettings.cs diff --git a/src/Tribufu.Serialization/DecimalNullableStringConverter.cs b/Source/Tribufu.Serialization/DecimalNullableStringConverter.cs similarity index 100% rename from src/Tribufu.Serialization/DecimalNullableStringConverter.cs rename to Source/Tribufu.Serialization/DecimalNullableStringConverter.cs diff --git a/src/Tribufu.Serialization/DecimalStringConverter.cs b/Source/Tribufu.Serialization/DecimalStringConverter.cs similarity index 100% rename from src/Tribufu.Serialization/DecimalStringConverter.cs rename to Source/Tribufu.Serialization/DecimalStringConverter.cs diff --git a/src/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs b/Source/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs similarity index 100% rename from src/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs rename to Source/Tribufu.Serialization/NetworkAwareSnakeCaseNamingStrategy.cs diff --git a/src/Tribufu.Serialization/README.md b/Source/Tribufu.Serialization/README.md similarity index 100% rename from src/Tribufu.Serialization/README.md rename to Source/Tribufu.Serialization/README.md diff --git a/src/Tribufu.Serialization/Tribufu.Serialization.csproj b/Source/Tribufu.Serialization/Tribufu.Serialization.csproj similarity index 100% rename from src/Tribufu.Serialization/Tribufu.Serialization.csproj rename to Source/Tribufu.Serialization/Tribufu.Serialization.csproj diff --git a/src/Tribufu.Serialization/ULongNullableStringConverter.cs b/Source/Tribufu.Serialization/ULongNullableStringConverter.cs similarity index 100% rename from src/Tribufu.Serialization/ULongNullableStringConverter.cs rename to Source/Tribufu.Serialization/ULongNullableStringConverter.cs diff --git a/src/Tribufu.Serialization/ULongStringConverter.cs b/Source/Tribufu.Serialization/ULongStringConverter.cs similarity index 100% rename from src/Tribufu.Serialization/ULongStringConverter.cs rename to Source/Tribufu.Serialization/ULongStringConverter.cs diff --git a/src/Tribufu/Api/TribufuGeneratedApi.cs b/Source/Tribufu/Api/TribufuGeneratedApi.cs similarity index 100% rename from src/Tribufu/Api/TribufuGeneratedApi.cs rename to Source/Tribufu/Api/TribufuGeneratedApi.cs diff --git a/src/Tribufu/Client/ApiClient.cs b/Source/Tribufu/Client/ApiClient.cs similarity index 100% rename from src/Tribufu/Client/ApiClient.cs rename to Source/Tribufu/Client/ApiClient.cs diff --git a/src/Tribufu/Client/ApiException.cs b/Source/Tribufu/Client/ApiException.cs similarity index 100% rename from src/Tribufu/Client/ApiException.cs rename to Source/Tribufu/Client/ApiException.cs diff --git a/src/Tribufu/Client/ApiResponse.cs b/Source/Tribufu/Client/ApiResponse.cs similarity index 100% rename from src/Tribufu/Client/ApiResponse.cs rename to Source/Tribufu/Client/ApiResponse.cs diff --git a/src/Tribufu/Client/ClientUtils.cs b/Source/Tribufu/Client/ClientUtils.cs similarity index 100% rename from src/Tribufu/Client/ClientUtils.cs rename to Source/Tribufu/Client/ClientUtils.cs diff --git a/src/Tribufu/Client/Configuration.cs b/Source/Tribufu/Client/Configuration.cs similarity index 100% rename from src/Tribufu/Client/Configuration.cs rename to Source/Tribufu/Client/Configuration.cs diff --git a/src/Tribufu/Client/ExceptionFactory.cs b/Source/Tribufu/Client/ExceptionFactory.cs similarity index 100% rename from src/Tribufu/Client/ExceptionFactory.cs rename to Source/Tribufu/Client/ExceptionFactory.cs diff --git a/src/Tribufu/Client/GlobalConfiguration.cs b/Source/Tribufu/Client/GlobalConfiguration.cs similarity index 100% rename from src/Tribufu/Client/GlobalConfiguration.cs rename to Source/Tribufu/Client/GlobalConfiguration.cs diff --git a/src/Tribufu/Client/HttpMethod.cs b/Source/Tribufu/Client/HttpMethod.cs similarity index 100% rename from src/Tribufu/Client/HttpMethod.cs rename to Source/Tribufu/Client/HttpMethod.cs diff --git a/src/Tribufu/Client/IApiAccessor.cs b/Source/Tribufu/Client/IApiAccessor.cs similarity index 100% rename from src/Tribufu/Client/IApiAccessor.cs rename to Source/Tribufu/Client/IApiAccessor.cs diff --git a/src/Tribufu/Client/IAsynchronousClient.cs b/Source/Tribufu/Client/IAsynchronousClient.cs similarity index 100% rename from src/Tribufu/Client/IAsynchronousClient.cs rename to Source/Tribufu/Client/IAsynchronousClient.cs diff --git a/src/Tribufu/Client/IReadableConfiguration.cs b/Source/Tribufu/Client/IReadableConfiguration.cs similarity index 100% rename from src/Tribufu/Client/IReadableConfiguration.cs rename to Source/Tribufu/Client/IReadableConfiguration.cs diff --git a/src/Tribufu/Client/ISynchronousClient.cs b/Source/Tribufu/Client/ISynchronousClient.cs similarity index 100% rename from src/Tribufu/Client/ISynchronousClient.cs rename to Source/Tribufu/Client/ISynchronousClient.cs diff --git a/src/Tribufu/Client/Multimap.cs b/Source/Tribufu/Client/Multimap.cs similarity index 100% rename from src/Tribufu/Client/Multimap.cs rename to Source/Tribufu/Client/Multimap.cs diff --git a/src/Tribufu/Client/OpenAPIDateConverter.cs b/Source/Tribufu/Client/OpenAPIDateConverter.cs similarity index 100% rename from src/Tribufu/Client/OpenAPIDateConverter.cs rename to Source/Tribufu/Client/OpenAPIDateConverter.cs diff --git a/src/Tribufu/Client/RequestOptions.cs b/Source/Tribufu/Client/RequestOptions.cs similarity index 100% rename from src/Tribufu/Client/RequestOptions.cs rename to Source/Tribufu/Client/RequestOptions.cs diff --git a/src/Tribufu/Client/RetryConfiguration.cs b/Source/Tribufu/Client/RetryConfiguration.cs similarity index 100% rename from src/Tribufu/Client/RetryConfiguration.cs rename to Source/Tribufu/Client/RetryConfiguration.cs diff --git a/src/Tribufu/Model/AbstractOpenAPISchema.cs b/Source/Tribufu/Model/AbstractOpenAPISchema.cs similarity index 100% rename from src/Tribufu/Model/AbstractOpenAPISchema.cs rename to Source/Tribufu/Model/AbstractOpenAPISchema.cs diff --git a/src/Tribufu/Model/Application.cs b/Source/Tribufu/Model/Application.cs similarity index 100% rename from src/Tribufu/Model/Application.cs rename to Source/Tribufu/Model/Application.cs diff --git a/src/Tribufu/Model/ApplicationType.cs b/Source/Tribufu/Model/ApplicationType.cs similarity index 100% rename from src/Tribufu/Model/ApplicationType.cs rename to Source/Tribufu/Model/ApplicationType.cs diff --git a/src/Tribufu/Model/AuthorizeRequest.cs b/Source/Tribufu/Model/AuthorizeRequest.cs similarity index 100% rename from src/Tribufu/Model/AuthorizeRequest.cs rename to Source/Tribufu/Model/AuthorizeRequest.cs diff --git a/src/Tribufu/Model/ClientInfo.cs b/Source/Tribufu/Model/ClientInfo.cs similarity index 100% rename from src/Tribufu/Model/ClientInfo.cs rename to Source/Tribufu/Model/ClientInfo.cs diff --git a/src/Tribufu/Model/ClientType.cs b/Source/Tribufu/Model/ClientType.cs similarity index 100% rename from src/Tribufu/Model/ClientType.cs rename to Source/Tribufu/Model/ClientType.cs diff --git a/src/Tribufu/Model/CodeChallengeMethod.cs b/Source/Tribufu/Model/CodeChallengeMethod.cs similarity index 100% rename from src/Tribufu/Model/CodeChallengeMethod.cs rename to Source/Tribufu/Model/CodeChallengeMethod.cs diff --git a/src/Tribufu/Model/CodeResponse.cs b/Source/Tribufu/Model/CodeResponse.cs similarity index 100% rename from src/Tribufu/Model/CodeResponse.cs rename to Source/Tribufu/Model/CodeResponse.cs diff --git a/src/Tribufu/Model/CreateUser.cs b/Source/Tribufu/Model/CreateUser.cs similarity index 100% rename from src/Tribufu/Model/CreateUser.cs rename to Source/Tribufu/Model/CreateUser.cs diff --git a/src/Tribufu/Model/CryptoViewModel.cs b/Source/Tribufu/Model/CryptoViewModel.cs similarity index 100% rename from src/Tribufu/Model/CryptoViewModel.cs rename to Source/Tribufu/Model/CryptoViewModel.cs diff --git a/src/Tribufu/Model/ExternalAccount.cs b/Source/Tribufu/Model/ExternalAccount.cs similarity index 100% rename from src/Tribufu/Model/ExternalAccount.cs rename to Source/Tribufu/Model/ExternalAccount.cs diff --git a/src/Tribufu/Model/Game.cs b/Source/Tribufu/Model/Game.cs similarity index 100% rename from src/Tribufu/Model/Game.cs rename to Source/Tribufu/Model/Game.cs diff --git a/src/Tribufu/Model/GameServer.cs b/Source/Tribufu/Model/GameServer.cs similarity index 100% rename from src/Tribufu/Model/GameServer.cs rename to Source/Tribufu/Model/GameServer.cs diff --git a/src/Tribufu/Model/GameServerCluster.cs b/Source/Tribufu/Model/GameServerCluster.cs similarity index 100% rename from src/Tribufu/Model/GameServerCluster.cs rename to Source/Tribufu/Model/GameServerCluster.cs diff --git a/src/Tribufu/Model/GameServerQuery.cs b/Source/Tribufu/Model/GameServerQuery.cs similarity index 100% rename from src/Tribufu/Model/GameServerQuery.cs rename to Source/Tribufu/Model/GameServerQuery.cs diff --git a/src/Tribufu/Model/GameServerStatus.cs b/Source/Tribufu/Model/GameServerStatus.cs similarity index 100% rename from src/Tribufu/Model/GameServerStatus.cs rename to Source/Tribufu/Model/GameServerStatus.cs diff --git a/src/Tribufu/Model/GrantType.cs b/Source/Tribufu/Model/GrantType.cs similarity index 100% rename from src/Tribufu/Model/GrantType.cs rename to Source/Tribufu/Model/GrantType.cs diff --git a/src/Tribufu/Model/Group.cs b/Source/Tribufu/Model/Group.cs similarity index 100% rename from src/Tribufu/Model/Group.cs rename to Source/Tribufu/Model/Group.cs diff --git a/src/Tribufu/Model/GroupApplication.cs b/Source/Tribufu/Model/GroupApplication.cs similarity index 100% rename from src/Tribufu/Model/GroupApplication.cs rename to Source/Tribufu/Model/GroupApplication.cs diff --git a/src/Tribufu/Model/GroupMember.cs b/Source/Tribufu/Model/GroupMember.cs similarity index 100% rename from src/Tribufu/Model/GroupMember.cs rename to Source/Tribufu/Model/GroupMember.cs diff --git a/src/Tribufu/Model/GroupRank.cs b/Source/Tribufu/Model/GroupRank.cs similarity index 100% rename from src/Tribufu/Model/GroupRank.cs rename to Source/Tribufu/Model/GroupRank.cs diff --git a/src/Tribufu/Model/HashViewModel.cs b/Source/Tribufu/Model/HashViewModel.cs similarity index 100% rename from src/Tribufu/Model/HashViewModel.cs rename to Source/Tribufu/Model/HashViewModel.cs diff --git a/src/Tribufu/Model/IdentityProviderType.cs b/Source/Tribufu/Model/IdentityProviderType.cs similarity index 100% rename from src/Tribufu/Model/IdentityProviderType.cs rename to Source/Tribufu/Model/IdentityProviderType.cs diff --git a/src/Tribufu/Model/IntrospectRequest.cs b/Source/Tribufu/Model/IntrospectRequest.cs similarity index 100% rename from src/Tribufu/Model/IntrospectRequest.cs rename to Source/Tribufu/Model/IntrospectRequest.cs diff --git a/src/Tribufu/Model/IntrospectResponse.cs b/Source/Tribufu/Model/IntrospectResponse.cs similarity index 100% rename from src/Tribufu/Model/IntrospectResponse.cs rename to Source/Tribufu/Model/IntrospectResponse.cs diff --git a/src/Tribufu/Model/IpAddress.cs b/Source/Tribufu/Model/IpAddress.cs similarity index 100% rename from src/Tribufu/Model/IpAddress.cs rename to Source/Tribufu/Model/IpAddress.cs diff --git a/src/Tribufu/Model/LeaderboardItem.cs b/Source/Tribufu/Model/LeaderboardItem.cs similarity index 100% rename from src/Tribufu/Model/LeaderboardItem.cs rename to Source/Tribufu/Model/LeaderboardItem.cs diff --git a/src/Tribufu/Model/LeaderboardOrder.cs b/Source/Tribufu/Model/LeaderboardOrder.cs similarity index 100% rename from src/Tribufu/Model/LeaderboardOrder.cs rename to Source/Tribufu/Model/LeaderboardOrder.cs diff --git a/src/Tribufu/Model/ModelClient.cs b/Source/Tribufu/Model/ModelClient.cs similarity index 100% rename from src/Tribufu/Model/ModelClient.cs rename to Source/Tribufu/Model/ModelClient.cs diff --git a/src/Tribufu/Model/Package.cs b/Source/Tribufu/Model/Package.cs similarity index 100% rename from src/Tribufu/Model/Package.cs rename to Source/Tribufu/Model/Package.cs diff --git a/src/Tribufu/Model/PackageRelease.cs b/Source/Tribufu/Model/PackageRelease.cs similarity index 100% rename from src/Tribufu/Model/PackageRelease.cs rename to Source/Tribufu/Model/PackageRelease.cs diff --git a/src/Tribufu/Model/Product.cs b/Source/Tribufu/Model/Product.cs similarity index 100% rename from src/Tribufu/Model/Product.cs rename to Source/Tribufu/Model/Product.cs diff --git a/src/Tribufu/Model/ProductPrice.cs b/Source/Tribufu/Model/ProductPrice.cs similarity index 100% rename from src/Tribufu/Model/ProductPrice.cs rename to Source/Tribufu/Model/ProductPrice.cs diff --git a/src/Tribufu/Model/ProductType.cs b/Source/Tribufu/Model/ProductType.cs similarity index 100% rename from src/Tribufu/Model/ProductType.cs rename to Source/Tribufu/Model/ProductType.cs diff --git a/src/Tribufu/Model/Profile.cs b/Source/Tribufu/Model/Profile.cs similarity index 100% rename from src/Tribufu/Model/Profile.cs rename to Source/Tribufu/Model/Profile.cs diff --git a/src/Tribufu/Model/ProfileGame.cs b/Source/Tribufu/Model/ProfileGame.cs similarity index 100% rename from src/Tribufu/Model/ProfileGame.cs rename to Source/Tribufu/Model/ProfileGame.cs diff --git a/src/Tribufu/Model/ProfileGroup.cs b/Source/Tribufu/Model/ProfileGroup.cs similarity index 100% rename from src/Tribufu/Model/ProfileGroup.cs rename to Source/Tribufu/Model/ProfileGroup.cs diff --git a/src/Tribufu/Model/ResponseType.cs b/Source/Tribufu/Model/ResponseType.cs similarity index 100% rename from src/Tribufu/Model/ResponseType.cs rename to Source/Tribufu/Model/ResponseType.cs diff --git a/src/Tribufu/Model/RevokeRequest.cs b/Source/Tribufu/Model/RevokeRequest.cs similarity index 100% rename from src/Tribufu/Model/RevokeRequest.cs rename to Source/Tribufu/Model/RevokeRequest.cs diff --git a/src/Tribufu/Model/Search.cs b/Source/Tribufu/Model/Search.cs similarity index 100% rename from src/Tribufu/Model/Search.cs rename to Source/Tribufu/Model/Search.cs diff --git a/src/Tribufu/Model/SearchType.cs b/Source/Tribufu/Model/SearchType.cs similarity index 100% rename from src/Tribufu/Model/SearchType.cs rename to Source/Tribufu/Model/SearchType.cs diff --git a/src/Tribufu/Model/ServerMetrics.cs b/Source/Tribufu/Model/ServerMetrics.cs similarity index 100% rename from src/Tribufu/Model/ServerMetrics.cs rename to Source/Tribufu/Model/ServerMetrics.cs diff --git a/src/Tribufu/Model/StorageFile.cs b/Source/Tribufu/Model/StorageFile.cs similarity index 100% rename from src/Tribufu/Model/StorageFile.cs rename to Source/Tribufu/Model/StorageFile.cs diff --git a/src/Tribufu/Model/TokenHintType.cs b/Source/Tribufu/Model/TokenHintType.cs similarity index 100% rename from src/Tribufu/Model/TokenHintType.cs rename to Source/Tribufu/Model/TokenHintType.cs diff --git a/src/Tribufu/Model/TokenRequest.cs b/Source/Tribufu/Model/TokenRequest.cs similarity index 100% rename from src/Tribufu/Model/TokenRequest.cs rename to Source/Tribufu/Model/TokenRequest.cs diff --git a/src/Tribufu/Model/TokenResponse.cs b/Source/Tribufu/Model/TokenResponse.cs similarity index 100% rename from src/Tribufu/Model/TokenResponse.cs rename to Source/Tribufu/Model/TokenResponse.cs diff --git a/src/Tribufu/Model/TokenType.cs b/Source/Tribufu/Model/TokenType.cs similarity index 100% rename from src/Tribufu/Model/TokenType.cs rename to Source/Tribufu/Model/TokenType.cs diff --git a/src/Tribufu/Model/UpdateProfile.cs b/Source/Tribufu/Model/UpdateProfile.cs similarity index 100% rename from src/Tribufu/Model/UpdateProfile.cs rename to Source/Tribufu/Model/UpdateProfile.cs diff --git a/src/Tribufu/Model/UserInfo.cs b/Source/Tribufu/Model/UserInfo.cs similarity index 100% rename from src/Tribufu/Model/UserInfo.cs rename to Source/Tribufu/Model/UserInfo.cs diff --git a/src/Tribufu/Model/UserType.cs b/Source/Tribufu/Model/UserType.cs similarity index 100% rename from src/Tribufu/Model/UserType.cs rename to Source/Tribufu/Model/UserType.cs diff --git a/src/Tribufu/Tribufu.csproj b/Source/Tribufu/Tribufu.csproj similarity index 100% rename from src/Tribufu/Tribufu.csproj rename to Source/Tribufu/Tribufu.csproj diff --git a/src/Tribufu/TribufuApi.cs b/Source/Tribufu/TribufuApi.cs similarity index 100% rename from src/Tribufu/TribufuApi.cs rename to Source/Tribufu/TribufuApi.cs diff --git a/src/Tribufu/TribufuApiSingleton.cs b/Source/Tribufu/TribufuApiSingleton.cs similarity index 100% rename from src/Tribufu/TribufuApiSingleton.cs rename to Source/Tribufu/TribufuApiSingleton.cs diff --git a/Tribufu.slnx b/Tribufu.slnx deleted file mode 100644 index c96674e..0000000 --- a/Tribufu.slnx +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/TribufuDotNet.slnx b/TribufuDotNet.slnx new file mode 100644 index 0000000..cb7cb6c --- /dev/null +++ b/TribufuDotNet.slnx @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/vendor/openapi-generator/LICENSE b/Vendor/openapi-generator/LICENSE similarity index 100% rename from vendor/openapi-generator/LICENSE rename to Vendor/openapi-generator/LICENSE diff --git a/vendor/openapi-generator/openapi-generator-cli.jar b/Vendor/openapi-generator/openapi-generator-cli.jar similarity index 100% rename from vendor/openapi-generator/openapi-generator-cli.jar rename to Vendor/openapi-generator/openapi-generator-cli.jar diff --git a/releases/.gitkeep b/releases/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/scripts/package.ps1 b/scripts/package.ps1 deleted file mode 100644 index b496845..0000000 --- a/scripts/package.ps1 +++ /dev/null @@ -1,7 +0,0 @@ -#!/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 diff --git a/src/Tribufu/Model/Account.cs b/src/Tribufu/Model/Account.cs deleted file mode 100644 index 91b4c34..0000000 --- a/src/Tribufu/Model/Account.cs +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Tribufu API - * - * API to access Tribufu services. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: contact@tribufu.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; - -namespace Tribufu.Model -{ - /// - /// Account - /// - [DataContract(Name = "Account")] - public partial class Account : IValidatableObject - { - - /// - /// Gets or Sets Provider - /// - [DataMember(Name = "provider", IsRequired = true, EmitDefaultValue = true)] - public LoginProvider Provider { get; set; } - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected Account() { } - /// - /// Initializes a new instance of the class. - /// - /// id (required). - /// name. - /// provider (required). - /// userId. - /// authorized. - /// fields. - /// created. - /// updated. - 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?)) - { - // to ensure "id" is required (not null) - if (id == null) - { - throw new ArgumentNullException("id is a required property for Account and cannot be null"); - } - this.Id = id; - this.Provider = provider; - this.Name = name; - this.UserId = userId; - this.Authorized = authorized; - this.Fields = fields; - this.Created = created; - this.Updated = updated; - } - - /// - /// Gets or Sets Id - /// - [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] - public string Id { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name = "name", EmitDefaultValue = true)] - public string Name { get; set; } - - /// - /// Gets or Sets UserId - /// - [DataMember(Name = "user_id", EmitDefaultValue = false)] - public string UserId { get; set; } - - /// - /// Gets or Sets Authorized - /// - [DataMember(Name = "authorized", EmitDefaultValue = true)] - public bool Authorized { get; set; } - - /// - /// Gets or Sets Fields - /// - [DataMember(Name = "fields", EmitDefaultValue = true)] - public Object Fields { get; set; } - - /// - /// Gets or Sets Created - /// - [DataMember(Name = "created", EmitDefaultValue = false)] - public DateTime Created { get; set; } - - /// - /// Gets or Sets Updated - /// - [DataMember(Name = "updated", EmitDefaultValue = true)] - public DateTime? Updated { get; set; } - - /// - /// Returns the string presentation of the object - /// - /// String presentation of the object - public override string ToString() - { - StringBuilder sb = new StringBuilder(); - sb.Append("class Account {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Provider: ").Append(Provider).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" Authorized: ").Append(Authorized).Append("\n"); - sb.Append(" Fields: ").Append(Fields).Append("\n"); - sb.Append(" Created: ").Append(Created).Append("\n"); - sb.Append(" Updated: ").Append(Updated).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Returns the JSON string presentation of the object - /// - /// JSON string presentation of the object - public virtual string ToJson() - { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/src/Tribufu/Model/LoginProvider.cs b/src/Tribufu/Model/LoginProvider.cs deleted file mode 100644 index 1180247..0000000 --- a/src/Tribufu/Model/LoginProvider.cs +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Tribufu API - * - * API to access Tribufu services. - * - * The version of the OpenAPI document: 1.3.0 - * Contact: contact@tribufu.com - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Tribufu.Client.OpenAPIDateConverter; - -namespace Tribufu.Model -{ - /// - /// Defines LoginProvider - /// - [JsonConverter(typeof(StringEnumConverter))] - public enum LoginProvider - { - /// - /// Enum Steam for value: steam - /// - [EnumMember(Value = "steam")] - Steam, - - /// - /// Enum Epic for value: epic - /// - [EnumMember(Value = "epic")] - Epic, - - /// - /// Enum Discord for value: discord - /// - [EnumMember(Value = "discord")] - Discord, - - /// - /// Enum Microsoft for value: microsoft - /// - [EnumMember(Value = "microsoft")] - Microsoft, - - /// - /// Enum Playstation for value: playstation - /// - [EnumMember(Value = "playstation")] - Playstation, - - /// - /// Enum Google for value: google - /// - [EnumMember(Value = "google")] - Google, - - /// - /// Enum Apple for value: apple - /// - [EnumMember(Value = "apple")] - Apple - } - -}