diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e3f06b6d..a8753723 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,9 +1,17 @@ on: repository_dispatch: - types: [spec_release] + types: [release] workflow_dispatch: - -#on: push + inputs: + json: + description: 'Passed json from repository_dispatch' + required: true + type: string + version_postfix: + description: 'Additional string to concatenate onto the existing version before release' + required: false + type: string + default: '' name: Generate VRChat API SDK @@ -11,22 +19,25 @@ jobs: generate: runs-on: ubuntu-latest name: Generate VRChat API SDK + env: + ARTIFACT_NAME: "openapi.yaml" + INPUT: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload || inputs.json }} + SPEC_URL: ${{ fromJSON(github.event_name == 'repository_dispatch' && github.event.client_payload || inputs.json)['artifacts']['openapi.yaml'] }} + PASSED_VERSION: ${{ fromJSON(github.event_name == 'repository_dispatch' && github.event.client_payload || inputs.json)['version'] }} + VERSION_POSTPEND: ${{ github.event_name == 'workflow_dispatch' && inputs.version_postfix || '' }} steps: - - name: Install yq via apt - run: sudo apt install -y yq - - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: - node-version: 18 + node-version: 22 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: 'Cache node_modules' - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: node_modules - key: ${{ runner.os }}-node-v18-${{ hashFiles('**/generate.sh') }} + key: ${{ runner.os }}-node-v22-${{ hashFiles('**/generate.sh') }} restore-keys: | - ${{ runner.os }}-node-v18 + ${{ runner.os }}-node-v22 - name: Install OpenAPI Generator CLI run: npm install @openapitools/openapi-generator-cli @@ -37,32 +48,27 @@ jobs: - name: Setup NuGet uses: NuGet/setup-nuget@v1.1.1 - - uses: actions/setup-dotnet@v3 + - uses: actions/setup-dotnet@v5 with: dotnet-version: '8.0.x' - - name: Generate SDK Client - run: bash ./generate.sh - - - name: Copy README.md into src/ - run: cp README.md src/ + - name: Download Specification + run: wget "${SPEC_URL}" '--output-document' "${ARTIFACT_NAME}" - name: Check version number run: | - vrchat_sdk_version=$(yq '.info.version' openapi.yaml | tr -d '"') - - major=$(echo $vrchat_sdk_version | cut -d. -f1) - minor=$(echo $vrchat_sdk_version | cut -d. -f2) - patch=$(echo $vrchat_sdk_version | cut -d. -f3) - - vrchat_sdk_version="$((major+1)).$minor.$patch" + vrchat_sdk_version=$(( ${PASSED_VERSION%%.*} + 1)).${PASSED_VERSION#*.}${VERSION_POSTPEND} + echo "Version is: ${vrchat_sdk_version}" echo "vrchat_sdk_version=$vrchat_sdk_version" >> $GITHUB_ENV - - name: Print version number - run: echo ${{ env.vrchat_sdk_version }} + - name: Generate SDK Client + run: bash ./generate.sh "${ARTIFACT_NAME}" "${vrchat_sdk_version}" + + - name: Copy README.md into src/ + run: cp README.md src/ - - name: Delete openapi.yaml file - run: rm openapi.yaml + - name: Delete openapi.json file + run: unlink ${ARTIFACT_NAME} - name: Deploy SDK back into main branch uses: JamesIves/github-pages-deploy-action@v4 @@ -72,7 +78,7 @@ jobs: commit-message: "Upgrade .NET SDK to spec ${{ env.vrchat_sdk_version }}" - name: Publish to VRChat.API to NuGet - if: github.event_name != 'workflow_dispatch' + if: github.event_name == 'repository_dispatch' uses: pairbit/publish-nuget@v2.5.8 with: # Filepath of the project to be packaged, relative to root of repository @@ -87,7 +93,7 @@ jobs: INCLUDE_SYMBOLS: true - name: Publish to VRChat.API.Extensions.Hosting to NuGet - if: github.event_name != 'workflow_dispatch' + if: github.event_name == 'repository_dispatch' uses: pairbit/publish-nuget@v2.5.8 with: # Filepath of the project to be packaged, relative to root of repository diff --git a/.github/workflows/realtime-ci.yml b/.github/workflows/realtime-ci.yml new file mode 100644 index 00000000..8beb0631 --- /dev/null +++ b/.github/workflows/realtime-ci.yml @@ -0,0 +1,75 @@ +name: Build and Publish VRChat Realtime SDK + +on: + push: + branches: + - main + paths: + - 'wrapper/VRChat.API.Realtime/**' + - '.github/workflows/realtime-ci.yml' + workflow_dispatch: + +jobs: + build-and-publish: + runs-on: ubuntu-latest + name: Build and Publish VRChat Realtime SDK + steps: + - name: Checkout current commit + uses: actions/checkout@v4 + with: + fetch-depth: 0 # Fetch all history to compare versions + + - name: Setup .NET + uses: actions/setup-dotnet@v5 + with: + dotnet-version: '8.0.x' + + - name: Setup NuGet + uses: NuGet/setup-nuget@v1.1.1 + + - name: Get current version from csproj + id: current_version + run: | + VERSION=$(grep -oP '(?<=)[^<]+' wrapper/VRChat.API.Realtime/VRChat.API.Realtime.csproj) + echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "Current version: $VERSION" + + - name: Get previous version from NuGet + id: nuget_version + run: | + # Try to get the latest version from NuGet + NUGET_VERSION=$(curl -s "https://api.nuget.org/v3-flatcontainer/vrchat.api.realtime/index.json" | jq -r '.versions[-1]' 2>/dev/null || echo "0.0.0") + if [ "$NUGET_VERSION" = "null" ] || [ -z "$NUGET_VERSION" ]; then + NUGET_VERSION="0.0.0" + fi + echo "version=$NUGET_VERSION" >> $GITHUB_OUTPUT + echo "Latest NuGet version: $NUGET_VERSION" + + - name: Check if version changed + id: version_check + run: | + CURRENT="${{ steps.current_version.outputs.version }}" + NUGET="${{ steps.nuget_version.outputs.version }}" + + echo "Current version: $CURRENT" + echo "NuGet version: $NUGET" + + if [ "$CURRENT" != "$NUGET" ]; then + echo "Version changed from $NUGET to $CURRENT" + echo "changed=true" >> $GITHUB_OUTPUT + else + echo "Version unchanged ($CURRENT)" + echo "changed=false" >> $GITHUB_OUTPUT + fi + + - name: Build project + run: dotnet build wrapper/VRChat.API.Realtime/VRChat.API.Realtime.csproj --configuration Release + + - name: Publish to NuGet + if: steps.version_check.outputs.changed == 'true' + uses: pairbit/publish-nuget@v2.5.8 + with: + PROJECT_FILE_PATH: wrapper/VRChat.API.Realtime/VRChat.API.Realtime.csproj + PACKAGE_NAME: VRChat.API.Realtime + NUGET_KEY: ${{ secrets.NUGET_KEY }} + INCLUDE_SYMBOLS: true \ No newline at end of file diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 7e58df1c..14e768f2 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -45,8 +45,12 @@ docs/AvatarsApi.md docs/Badge.md docs/Balance.md docs/BanGroupMemberRequest.md +docs/BoopRequest.md docs/CalendarApi.md docs/CalendarEvent.md +docs/CalendarEventDiscovery.md +docs/CalendarEventDiscoveryInclusion.md +docs/CalendarEventDiscoveryScope.md docs/CalendarEventUserInterest.md docs/ChangeUserTagsRequest.md docs/CreateAvatarModerationRequest.md @@ -61,7 +65,6 @@ docs/CreateGroupPostRequest.md docs/CreateGroupRequest.md docs/CreateGroupRoleRequest.md docs/CreateInstanceRequest.md -docs/CreatePermissionRequest.md docs/CreateWorldRequest.md docs/CurrentUser.md docs/CurrentUserPlatformHistoryInner.md @@ -72,6 +75,7 @@ docs/DiscordDetails.md docs/DynamicContentRow.md docs/EconomyAccount.md docs/EconomyApi.md +docs/EquipInventoryItemRequest.md docs/Error.md docs/Favorite.md docs/FavoriteGroup.md @@ -137,6 +141,7 @@ docs/InstanceType.md docs/InstancesApi.md docs/Inventory.md docs/InventoryApi.md +docs/InventoryConsumptionResults.md docs/InventoryDefaultAttributesValue.md docs/InventoryDefaultAttributesValueValidator.md docs/InventoryDrop.md @@ -171,6 +176,8 @@ docs/LimitedWorld.md docs/MIMEType.md docs/MiscellaneousApi.md docs/ModerateUserRequest.md +docs/MutualFriend.md +docs/Mutuals.md docs/Notification.md docs/NotificationDetailInvite.md docs/NotificationDetailInviteResponse.md @@ -182,6 +189,7 @@ docs/NotificationsApi.md docs/OkStatus.md docs/OkStatus2.md docs/OrderOption.md +docs/OrderOptionShort.md docs/PaginatedCalendarEventList.md docs/PaginatedGroupAuditLogEntryList.md docs/PastDisplayName.md @@ -200,10 +208,13 @@ docs/Product.md docs/ProductListing.md docs/ProductListingType.md docs/ProductListingVariant.md +docs/ProductPurchase.md +docs/ProductPurchasePurchaseContext.md docs/ProductType.md docs/Prop.md docs/PropUnityPackage.md docs/PropsApi.md +docs/PurchaseProductListingRequest.md docs/Region.md docs/RegisterUserAccountRequest.md docs/ReleaseStatus.md @@ -218,6 +229,7 @@ docs/ServiceQueueStats.md docs/ServiceStatus.md docs/ShareInventoryItemDirectRequest.md docs/SortOption.md +docs/SortOptionProductPurchase.md docs/Store.md docs/StoreShelf.md docs/StoreType.md @@ -250,7 +262,6 @@ docs/UpdateGroupRequest.md docs/UpdateGroupRoleRequest.md docs/UpdateInventoryItemRequest.md docs/UpdateInviteMessageRequest.md -docs/UpdatePermissionRequest.md docs/UpdateTiliaTOSRequest.md docs/UpdateUserBadgeRequest.md docs/UpdateUserNoteRequest.md @@ -353,7 +364,11 @@ src/VRChat.API/Model/AvatarUnityPackageUrlObject.cs src/VRChat.API/Model/Badge.cs src/VRChat.API/Model/Balance.cs src/VRChat.API/Model/BanGroupMemberRequest.cs +src/VRChat.API/Model/BoopRequest.cs src/VRChat.API/Model/CalendarEvent.cs +src/VRChat.API/Model/CalendarEventDiscovery.cs +src/VRChat.API/Model/CalendarEventDiscoveryInclusion.cs +src/VRChat.API/Model/CalendarEventDiscoveryScope.cs src/VRChat.API/Model/CalendarEventUserInterest.cs src/VRChat.API/Model/ChangeUserTagsRequest.cs src/VRChat.API/Model/CreateAvatarModerationRequest.cs @@ -368,7 +383,6 @@ src/VRChat.API/Model/CreateGroupPostRequest.cs src/VRChat.API/Model/CreateGroupRequest.cs src/VRChat.API/Model/CreateGroupRoleRequest.cs src/VRChat.API/Model/CreateInstanceRequest.cs -src/VRChat.API/Model/CreatePermissionRequest.cs src/VRChat.API/Model/CreateWorldRequest.cs src/VRChat.API/Model/CurrentUser.cs src/VRChat.API/Model/CurrentUserPlatformHistoryInner.cs @@ -378,6 +392,7 @@ src/VRChat.API/Model/Disable2FAResult.cs src/VRChat.API/Model/DiscordDetails.cs src/VRChat.API/Model/DynamicContentRow.cs src/VRChat.API/Model/EconomyAccount.cs +src/VRChat.API/Model/EquipInventoryItemRequest.cs src/VRChat.API/Model/Error.cs src/VRChat.API/Model/Favorite.cs src/VRChat.API/Model/FavoriteGroup.cs @@ -437,6 +452,7 @@ src/VRChat.API/Model/InstanceRegion.cs src/VRChat.API/Model/InstanceShortNameResponse.cs src/VRChat.API/Model/InstanceType.cs src/VRChat.API/Model/Inventory.cs +src/VRChat.API/Model/InventoryConsumptionResults.cs src/VRChat.API/Model/InventoryDefaultAttributesValue.cs src/VRChat.API/Model/InventoryDefaultAttributesValueValidator.cs src/VRChat.API/Model/InventoryDrop.cs @@ -468,6 +484,8 @@ src/VRChat.API/Model/LimitedUserSearch.cs src/VRChat.API/Model/LimitedWorld.cs src/VRChat.API/Model/MIMEType.cs src/VRChat.API/Model/ModerateUserRequest.cs +src/VRChat.API/Model/MutualFriend.cs +src/VRChat.API/Model/Mutuals.cs src/VRChat.API/Model/Notification.cs src/VRChat.API/Model/NotificationDetailInvite.cs src/VRChat.API/Model/NotificationDetailInviteResponse.cs @@ -478,6 +496,7 @@ src/VRChat.API/Model/NotificationType.cs src/VRChat.API/Model/OkStatus.cs src/VRChat.API/Model/OkStatus2.cs src/VRChat.API/Model/OrderOption.cs +src/VRChat.API/Model/OrderOptionShort.cs src/VRChat.API/Model/PaginatedCalendarEventList.cs src/VRChat.API/Model/PaginatedGroupAuditLogEntryList.cs src/VRChat.API/Model/PastDisplayName.cs @@ -494,9 +513,12 @@ src/VRChat.API/Model/Product.cs src/VRChat.API/Model/ProductListing.cs src/VRChat.API/Model/ProductListingType.cs src/VRChat.API/Model/ProductListingVariant.cs +src/VRChat.API/Model/ProductPurchase.cs +src/VRChat.API/Model/ProductPurchasePurchaseContext.cs src/VRChat.API/Model/ProductType.cs src/VRChat.API/Model/Prop.cs src/VRChat.API/Model/PropUnityPackage.cs +src/VRChat.API/Model/PurchaseProductListingRequest.cs src/VRChat.API/Model/Region.cs src/VRChat.API/Model/RegisterUserAccountRequest.cs src/VRChat.API/Model/ReleaseStatus.cs @@ -511,6 +533,7 @@ src/VRChat.API/Model/ServiceQueueStats.cs src/VRChat.API/Model/ServiceStatus.cs src/VRChat.API/Model/ShareInventoryItemDirectRequest.cs src/VRChat.API/Model/SortOption.cs +src/VRChat.API/Model/SortOptionProductPurchase.cs src/VRChat.API/Model/Store.cs src/VRChat.API/Model/StoreShelf.cs src/VRChat.API/Model/StoreType.cs @@ -543,7 +566,6 @@ src/VRChat.API/Model/UpdateGroupRequest.cs src/VRChat.API/Model/UpdateGroupRoleRequest.cs src/VRChat.API/Model/UpdateInventoryItemRequest.cs src/VRChat.API/Model/UpdateInviteMessageRequest.cs -src/VRChat.API/Model/UpdatePermissionRequest.cs src/VRChat.API/Model/UpdateTiliaTOSRequest.cs src/VRChat.API/Model/UpdateUserBadgeRequest.cs src/VRChat.API/Model/UpdateUserNoteRequest.cs diff --git a/README.md b/README.md index 9e22bca6..2e8c7b7e 100644 --- a/README.md +++ b/README.md @@ -133,8 +133,16 @@ public class MyController : Controller Console app (login): see [VRChat.API.Examples.Console](examples/VRChat.API.Examples.Console/) +Console app (WebSocket): see [VRChat.API.Examples.WebSocket](examples/VRChat.API.Examples.WebSocket/) + ASP.NET Core (depedency injection): see [VRChat.API.Examples.AspNetCore](examples/VRChat.API.Examples.AspNetCore/) +# WebSockets / VRChat Pipeline + +You can use the `VRChat.API.Realtime` library to connect to VRChat's WebSocket and listen to events. + +The documentation for it is available at [WEBSOCKET.md](WEBSOCKET.md). + # Manually authenticating Sometimes, we don't have two-factor authentication set up on our accounts. While it's **reccomended** for most bots or apps, your app may be a WPF/WinForms application that requires user credential input. In these cases, the `LoginAsync()` methods on `IVRChat` won't work, because they only support token-based two-factor authentication. diff --git a/VRChat.API.sln b/VRChat.API.sln index d9cba3bf..8dabd6cf 100644 --- a/VRChat.API.sln +++ b/VRChat.API.sln @@ -1,6 +1,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 18 -VisualStudioVersion = 18.0.11205.157 d18.0 +VisualStudioVersion = 18.0.11205.157 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VRChat.API", "src\VRChat.API\VRChat.API.csproj", "{CFFD58F6-C881-46CB-BD52-445A8A8A8710}" EndProject @@ -12,6 +12,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VRChat.API.Examples.AspNetC EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VRChat.API.Examples.Console", "examples\VRChat.API.Examples.Console\VRChat.API.Examples.Console.csproj", "{9C028F36-7CB0-82BD-A376-8EC6C8FE3AF0}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VRChat.API.Realtime", "wrapper\VRChat.API.Realtime\VRChat.API.Realtime.csproj", "{91F01661-9DA8-D3A5-FCC4-9D988B390EEA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VRChat.API.Examples.WebSocket", "examples\VRChat.API.Examples.WebSocket\VRChat.API.Examples.WebSocket.csproj", "{B64A5069-1CC9-3A01-58BE-C9DCE00F8D5F}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -38,6 +42,14 @@ Global {9C028F36-7CB0-82BD-A376-8EC6C8FE3AF0}.Debug|Any CPU.Build.0 = Debug|Any CPU {9C028F36-7CB0-82BD-A376-8EC6C8FE3AF0}.Release|Any CPU.ActiveCfg = Release|Any CPU {9C028F36-7CB0-82BD-A376-8EC6C8FE3AF0}.Release|Any CPU.Build.0 = Release|Any CPU + {91F01661-9DA8-D3A5-FCC4-9D988B390EEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {91F01661-9DA8-D3A5-FCC4-9D988B390EEA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {91F01661-9DA8-D3A5-FCC4-9D988B390EEA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {91F01661-9DA8-D3A5-FCC4-9D988B390EEA}.Release|Any CPU.Build.0 = Release|Any CPU + {B64A5069-1CC9-3A01-58BE-C9DCE00F8D5F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B64A5069-1CC9-3A01-58BE-C9DCE00F8D5F}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B64A5069-1CC9-3A01-58BE-C9DCE00F8D5F}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B64A5069-1CC9-3A01-58BE-C9DCE00F8D5F}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/WEBSOCKET.md b/WEBSOCKET.md new file mode 100644 index 00000000..7c2073ff --- /dev/null +++ b/WEBSOCKET.md @@ -0,0 +1,71 @@ +![](https://raw.githubusercontent.com/vrchatapi/vrchatapi.github.io/main/static/assets/img/lang/lang_csharp_banner_1500x300.png) + +# VRChat API Library for .NET + +A .NET client to interact with the unofficial VRChat API. Supports all REST calls specified in https://github.com/vrchatapi/specification. + +This documentation covers how to use the WebSocket (Pipeline) API with VRChat. + +## Installation + +Install with NuGet: + +```bash +# With .NET CLI +dotnet add package VRChat.API.Realtime + +# Or with Package Manager +Install-Package VRChat.API.Realtime +``` + +## Getting Started + +The following example code authenticates you with the API, and starts listenting to some events. + +```cs +using System; +using VRChat.API.Realtime; + +string authToken = Environment.GetEnvironmentVariable("VRCHAT_AUTH_TOKEN"); +// You can also use IVRChat.GetCookies() and grab the cookies from your IVRChat instance. +// Example: vrchat.GetCookies().FirstOrDefault(c => c.Name == "auth")?.Value; + +// WithApplication or WithUserAgent is required or VRChat will reject your requests +IVRChatRealtime realtime = new VRChatRealtimeClientBuilder() + .WithAuthToken(authToken) + .WithAutoReconnect(AutoReconnectMode.OnDisconnect) + .WithApplication(name: "Example", version: "1.0.0", contact: "youremail.com") + .Build(); + +realtime.OnConnected += (sender, e) => +{ + Console.WriteLine("Connected to VRChat Realtime WebSocket!"); +}; + +realtime.OnFriendOnline += (sender, e) => +{ + Console.WriteLine($"Friend {e.Message.User.DisplayName} is now online!"); +}; + +realtime.OnFriendOffline += (sender, e) => +{ + Console.WriteLine($"Friend {e.Message.UserId} is now offline!"); +}; + +realtime.OnFriendLocation += (sender, e) => +{ + Console.WriteLine($"Friend {e.Message.User.DisplayName} is now in {e.Message.Location}!"); +}; + +await realtime.ConnectAsync(); +``` + +# Example Projects + +Console app (login and listen to events): see [VRChat.API.Examples.WebSocket](examples/VRChat.API.Examples.WebSocket/) + +## Contributing + +Contributions are welcome, but do not add features that should be handled by the OpenAPI specification. + +Join the [Discord server](https://discord.gg/Ge2APMhPfD) to get in touch with us. diff --git a/examples/VRChat.API.Examples.WebSocket/Program.cs b/examples/VRChat.API.Examples.WebSocket/Program.cs new file mode 100644 index 00000000..baeaacda --- /dev/null +++ b/examples/VRChat.API.Examples.WebSocket/Program.cs @@ -0,0 +1,60 @@ +using VRChat.API.Client; +using VRChat.API.Model; +using VRChat.API.Realtime; + +namespace VRChat.API.Examples.WebSocket +{ + public class Program + { + public static async Task Main(string[] args) + { + string username = Environment.GetEnvironmentVariable("VRCHAT_USERNAME"); + string password = Environment.GetEnvironmentVariable("VRCHAT_PASSWORD"); + string twoFactorSecret = Environment.GetEnvironmentVariable("VRCHAT_TWO_FACTOR_SECRET"); + + IVRChat vrchat = new VRChatClientBuilder() + .WithUsername(username) + .WithPassword(password) + .WithTwoFactorSecret(twoFactorSecret) + .WithApplication(name: "Example", version: "1.0.0", contact: "youremail.com") + .Build(); + + var currentUser = await vrchat.LoginAsync(); + Console.WriteLine($"Logged in as {currentUser.DisplayName}!"); + + var authToken = vrchat.GetCookies().FirstOrDefault(c => c.Name == "auth")?.Value; + + IVRChatRealtime realtime = new VRChatRealtimeClientBuilder() + .WithAuthToken(authToken) + .WithApplication(name: "Example", version: "1.0.0", contact: "youremail.com") + .Build(); + + realtime.OnConnected += (sender, e) => + { + Console.WriteLine("Connected to VRChat Realtime WebSocket!"); + }; + + realtime.OnFriendOnline += (sender, e) => + { + Console.WriteLine($"Friend {e.Message.User.DisplayName} is now online!"); + }; + + realtime.OnFriendOffline += (sender, e) => + { + Console.WriteLine($"Friend {e.Message.UserId} is now offline!"); + }; + + realtime.OnFriendLocation += (sender, e) => + { + Console.WriteLine($"Friend {e.Message.User.DisplayName} is now in {e.Message.Location}!"); + }; + + await realtime.ConnectAsync(); + + Console.ReadLine(); + + await realtime.DisconnectAsync(); + realtime.Dispose(); + } + } +} \ No newline at end of file diff --git a/examples/VRChat.API.Examples.WebSocket/VRChat.API.Examples.WebSocket.csproj b/examples/VRChat.API.Examples.WebSocket/VRChat.API.Examples.WebSocket.csproj new file mode 100644 index 00000000..f179300d --- /dev/null +++ b/examples/VRChat.API.Examples.WebSocket/VRChat.API.Examples.WebSocket.csproj @@ -0,0 +1,15 @@ + + + + Exe + net8.0 + enable + disable + + + + + + + + diff --git a/generate.sh b/generate.sh index cb1d6e7d..21f7e835 100755 --- a/generate.sh +++ b/generate.sh @@ -1,29 +1,21 @@ -#!/bin/bash +#!/usr/bin/env bash -npm install @openapitools/openapi-generator-cli +if [ ${#} -le 1 ] +then + echo "Usage: generate.sh " >&2 + exit 1 +fi rm src docs *.nupkg *.snupkg -rf -curl https://raw.githubusercontent.com/vrchatapi/specification/gh-pages/openapi.yaml --output openapi.yaml - -SPEC_VERSION=`grep "^ version:" openapi.yaml | cut -d " " -f 4` - -vrchat_sdk_version=$(yq '.info.version' openapi.yaml | tr -d '"') - -major=$(echo $vrchat_sdk_version | cut -d. -f1) -minor=$(echo $vrchat_sdk_version | cut -d. -f2) -patch=$(echo $vrchat_sdk_version | cut -d. -f3) - -vrchat_sdk_version="$((major+1)).$minor.$patch" - ./node_modules/\@openapitools/openapi-generator-cli/main.js generate \ -g csharp \ --library httpclient \ ---additional-properties=packageGuid=1c420561-97f1-4810-ad2d-cd344d27170a,packageName=VRChat.API,packageTags=vrchat,packageVersion=$vrchat_sdk_version,targetFramework=net8.0,licenseId=MIT,equatable=true \ +--additional-properties=packageGuid=1c420561-97f1-4810-ad2d-cd344d27170a,packageName=VRChat.API,packageTags=vrchat,packageVersion="${2}",targetFramework=net8.0,licenseId=MIT,equatable=true \ --git-user-id=vrchatapi \ --git-repo-id=vrchatapi-csharp \ -o . \ --i openapi.yaml \ +-i "${1}" \ --http-user-agent="vrchatapi-csharp" rm build.sh @@ -67,7 +59,7 @@ sed -i 's/VRChat.API.Client.ClientUtils.Base64Encode(this.Configuration.Username # Fix fields in csproj sed -i 's/OpenAPI Library/VRChat API Library for .NET/' src/VRChat.API/VRChat.API.csproj sed -i 's/A library generated from a OpenAPI doc/VRChat API Library for .NET/' src/VRChat.API/VRChat.API.csproj -sed -i 's/No Copyright/Copyright © 2021 Owners of GitHub organisation "vrchatapi" and individual contributors./' src/VRChat.API/VRChat.API.csproj +sed -i 's/No Copyright/Copyright © 2021 Owners of GitHub organisation "vrchatapi" and individual contributors./' src/VRChat.API/VRChat.API.csproj sed -i 's/OpenAPI/VRChat API Docs Community/' src/VRChat.API/VRChat.API.csproj sed -i 's/Minor update/Automated deployment/' src/VRChat.API/VRChat.API.csproj @@ -75,7 +67,7 @@ sed -i 's/Minor update/Automated deployment/' src/VRChat.API/VRChat.API.csproj sed -i 's/false<\/GenerateAssemblyInfo>/true<\/GenerateAssemblyInfo>/' src/VRChat.API/VRChat.API.csproj # Update VRChat.API.Extensions.Hosting version -sed -i "s|[^<]*|$vrchat_sdk_version|g" wrapper/VRChat.API.Extensions.Hosting/VRChat.API.Extensions.Hosting.csproj +sed -i "s|[^<]*|${2}|g" wrapper/VRChat.API.Extensions.Hosting/VRChat.API.Extensions.Hosting.csproj # Add README.md to fields sed -i '/PackageTags/a \ README.md<\/PackageReadmeFile>' src/VRChat.API/VRChat.API.csproj diff --git a/global.json b/global.json index 425f399a..efa332c3 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { "version": "8.0.301", - "rollForward": "disable" + "rollForward": "latestMinor" } } \ No newline at end of file diff --git a/src/README.md b/src/README.md index 9e22bca6..2e8c7b7e 100644 --- a/src/README.md +++ b/src/README.md @@ -133,8 +133,16 @@ public class MyController : Controller Console app (login): see [VRChat.API.Examples.Console](examples/VRChat.API.Examples.Console/) +Console app (WebSocket): see [VRChat.API.Examples.WebSocket](examples/VRChat.API.Examples.WebSocket/) + ASP.NET Core (depedency injection): see [VRChat.API.Examples.AspNetCore](examples/VRChat.API.Examples.AspNetCore/) +# WebSockets / VRChat Pipeline + +You can use the `VRChat.API.Realtime` library to connect to VRChat's WebSocket and listen to events. + +The documentation for it is available at [WEBSOCKET.md](WEBSOCKET.md). + # Manually authenticating Sometimes, we don't have two-factor authentication set up on our accounts. While it's **reccomended** for most bots or apps, your app may be a WPF/WinForms application that requires user credential input. In these cases, the `LoginAsync()` methods on `IVRChat` won't work, because they only support token-based two-factor authentication. diff --git a/src/VRChat.API/Api/AuthenticationApi.cs b/src/VRChat.API/Api/AuthenticationApi.cs index f8762065..d02b821c 100644 --- a/src/VRChat.API/Api/AuthenticationApi.cs +++ b/src/VRChat.API/Api/AuthenticationApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/AvatarsApi.cs b/src/VRChat.API/Api/AvatarsApi.cs index 35017923..f93554a4 100644 --- a/src/VRChat.API/Api/AvatarsApi.cs +++ b/src/VRChat.API/Api/AvatarsApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/CalendarApi.cs b/src/VRChat.API/Api/CalendarApi.cs index f33c6d18..38cfd17f 100644 --- a/src/VRChat.API/Api/CalendarApi.cs +++ b/src/VRChat.API/Api/CalendarApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -74,6 +74,47 @@ public interface ICalendarApiSync : IApiAccessor /// ApiResponse of Success ApiResponse DeleteGroupCalendarEventWithHttpInfo(string groupId, string calendarId); /// + /// Discover calendar events + /// + /// + /// Get a list of calendar events Initially, call without a `nextCursor` parameter For every successive call, use the `nextCursor` property returned in the previous call & the `number` of entries desired for this call The `nextCursor` internally keeps track of the `offset` of the results, the initial request parameters, and accounts for discrepancies that might arise from time elapsed between calls + /// + /// Thrown when fails to make API call + /// Scope for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// The number of objects to return. (optional, default to 60) + /// Cursor returned from previous calendar discovery queries (see nextCursor property of the schema CalendarEventDiscovery). (optional) + /// CalendarEventDiscovery + CalendarEventDiscovery DiscoverCalendarEvents(CalendarEventDiscoveryScope? scope = default, string? categories = default, string? tags = default, CalendarEventDiscoveryInclusion? featuredResults = default, CalendarEventDiscoveryInclusion? nonFeaturedResults = default, CalendarEventDiscoveryInclusion? personalizedResults = default, int? minimumInterestCount = default, int? minimumRemainingMinutes = default, int? upcomingOffsetMinutes = default, int? n = default, string? nextCursor = default); + + /// + /// Discover calendar events + /// + /// + /// Get a list of calendar events Initially, call without a `nextCursor` parameter For every successive call, use the `nextCursor` property returned in the previous call & the `number` of entries desired for this call The `nextCursor` internally keeps track of the `offset` of the results, the initial request parameters, and accounts for discrepancies that might arise from time elapsed between calls + /// + /// Thrown when fails to make API call + /// Scope for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// The number of objects to return. (optional, default to 60) + /// Cursor returned from previous calendar discovery queries (see nextCursor property of the schema CalendarEventDiscovery). (optional) + /// ApiResponse of CalendarEventDiscovery + ApiResponse DiscoverCalendarEventsWithHttpInfo(CalendarEventDiscoveryScope? scope = default, string? categories = default, string? tags = default, CalendarEventDiscoveryInclusion? featuredResults = default, CalendarEventDiscoveryInclusion? nonFeaturedResults = default, CalendarEventDiscoveryInclusion? personalizedResults = default, int? minimumInterestCount = default, int? minimumRemainingMinutes = default, int? upcomingOffsetMinutes = default, int? n = default, string? nextCursor = default); + /// /// Follow a calendar event /// /// @@ -358,6 +399,49 @@ public interface ICalendarApiAsync : IApiAccessor /// Task of ApiResponse (Success) System.Threading.Tasks.Task> DeleteGroupCalendarEventWithHttpInfoAsync(string groupId, string calendarId, System.Threading.CancellationToken cancellationToken = default); /// + /// Discover calendar events + /// + /// + /// Get a list of calendar events Initially, call without a `nextCursor` parameter For every successive call, use the `nextCursor` property returned in the previous call & the `number` of entries desired for this call The `nextCursor` internally keeps track of the `offset` of the results, the initial request parameters, and accounts for discrepancies that might arise from time elapsed between calls + /// + /// Thrown when fails to make API call + /// Scope for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// The number of objects to return. (optional, default to 60) + /// Cursor returned from previous calendar discovery queries (see nextCursor property of the schema CalendarEventDiscovery). (optional) + /// Cancellation Token to cancel the request. + /// Task of CalendarEventDiscovery + System.Threading.Tasks.Task DiscoverCalendarEventsAsync(CalendarEventDiscoveryScope? scope = default, string? categories = default, string? tags = default, CalendarEventDiscoveryInclusion? featuredResults = default, CalendarEventDiscoveryInclusion? nonFeaturedResults = default, CalendarEventDiscoveryInclusion? personalizedResults = default, int? minimumInterestCount = default, int? minimumRemainingMinutes = default, int? upcomingOffsetMinutes = default, int? n = default, string? nextCursor = default, System.Threading.CancellationToken cancellationToken = default); + + /// + /// Discover calendar events + /// + /// + /// Get a list of calendar events Initially, call without a `nextCursor` parameter For every successive call, use the `nextCursor` property returned in the previous call & the `number` of entries desired for this call The `nextCursor` internally keeps track of the `offset` of the results, the initial request parameters, and accounts for discrepancies that might arise from time elapsed between calls + /// + /// Thrown when fails to make API call + /// Scope for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// The number of objects to return. (optional, default to 60) + /// Cursor returned from previous calendar discovery queries (see nextCursor property of the schema CalendarEventDiscovery). (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CalendarEventDiscovery) + System.Threading.Tasks.Task> DiscoverCalendarEventsWithHttpInfoAsync(CalendarEventDiscoveryScope? scope = default, string? categories = default, string? tags = default, CalendarEventDiscoveryInclusion? featuredResults = default, CalendarEventDiscoveryInclusion? nonFeaturedResults = default, CalendarEventDiscoveryInclusion? personalizedResults = default, int? minimumInterestCount = default, int? minimumRemainingMinutes = default, int? upcomingOffsetMinutes = default, int? n = default, string? nextCursor = default, System.Threading.CancellationToken cancellationToken = default); + /// /// Follow a calendar event /// /// @@ -1097,6 +1181,251 @@ public async System.Threading.Tasks.Task DeleteGroupCalendarEventAsync( return localVarResponse; } + /// + /// Discover calendar events Get a list of calendar events Initially, call without a `nextCursor` parameter For every successive call, use the `nextCursor` property returned in the previous call & the `number` of entries desired for this call The `nextCursor` internally keeps track of the `offset` of the results, the initial request parameters, and accounts for discrepancies that might arise from time elapsed between calls + /// + /// Thrown when fails to make API call + /// Scope for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// The number of objects to return. (optional, default to 60) + /// Cursor returned from previous calendar discovery queries (see nextCursor property of the schema CalendarEventDiscovery). (optional) + /// CalendarEventDiscovery + public CalendarEventDiscovery DiscoverCalendarEvents(CalendarEventDiscoveryScope? scope = default, string? categories = default, string? tags = default, CalendarEventDiscoveryInclusion? featuredResults = default, CalendarEventDiscoveryInclusion? nonFeaturedResults = default, CalendarEventDiscoveryInclusion? personalizedResults = default, int? minimumInterestCount = default, int? minimumRemainingMinutes = default, int? upcomingOffsetMinutes = default, int? n = default, string? nextCursor = default) + { + VRChat.API.Client.ApiResponse localVarResponse = DiscoverCalendarEventsWithHttpInfo(scope, categories, tags, featuredResults, nonFeaturedResults, personalizedResults, minimumInterestCount, minimumRemainingMinutes, upcomingOffsetMinutes, n, nextCursor); + return localVarResponse.Data; + } + + /// + /// Discover calendar events Get a list of calendar events Initially, call without a `nextCursor` parameter For every successive call, use the `nextCursor` property returned in the previous call & the `number` of entries desired for this call The `nextCursor` internally keeps track of the `offset` of the results, the initial request parameters, and accounts for discrepancies that might arise from time elapsed between calls + /// + /// Thrown when fails to make API call + /// Scope for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// The number of objects to return. (optional, default to 60) + /// Cursor returned from previous calendar discovery queries (see nextCursor property of the schema CalendarEventDiscovery). (optional) + /// ApiResponse of CalendarEventDiscovery + public VRChat.API.Client.ApiResponse DiscoverCalendarEventsWithHttpInfo(CalendarEventDiscoveryScope? scope = default, string? categories = default, string? tags = default, CalendarEventDiscoveryInclusion? featuredResults = default, CalendarEventDiscoveryInclusion? nonFeaturedResults = default, CalendarEventDiscoveryInclusion? personalizedResults = default, int? minimumInterestCount = default, int? minimumRemainingMinutes = default, int? upcomingOffsetMinutes = default, int? n = default, string? nextCursor = default) + { + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (scope != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "scope", scope)); + } + if (categories != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "categories", categories)); + } + if (tags != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "tags", tags)); + } + if (featuredResults != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "featuredResults", featuredResults)); + } + if (nonFeaturedResults != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "nonFeaturedResults", nonFeaturedResults)); + } + if (personalizedResults != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "personalizedResults", personalizedResults)); + } + if (minimumInterestCount != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "minimumInterestCount", minimumInterestCount)); + } + if (minimumRemainingMinutes != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "minimumRemainingMinutes", minimumRemainingMinutes)); + } + if (upcomingOffsetMinutes != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "upcomingOffsetMinutes", upcomingOffsetMinutes)); + } + if (n != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "n", n)); + } + if (nextCursor != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "nextCursor", nextCursor)); + } + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/calendar/discover", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DiscoverCalendarEvents", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Discover calendar events Get a list of calendar events Initially, call without a `nextCursor` parameter For every successive call, use the `nextCursor` property returned in the previous call & the `number` of entries desired for this call The `nextCursor` internally keeps track of the `offset` of the results, the initial request parameters, and accounts for discrepancies that might arise from time elapsed between calls + /// + /// Thrown when fails to make API call + /// Scope for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// The number of objects to return. (optional, default to 60) + /// Cursor returned from previous calendar discovery queries (see nextCursor property of the schema CalendarEventDiscovery). (optional) + /// Cancellation Token to cancel the request. + /// Task of CalendarEventDiscovery + public async System.Threading.Tasks.Task DiscoverCalendarEventsAsync(CalendarEventDiscoveryScope? scope = default, string? categories = default, string? tags = default, CalendarEventDiscoveryInclusion? featuredResults = default, CalendarEventDiscoveryInclusion? nonFeaturedResults = default, CalendarEventDiscoveryInclusion? personalizedResults = default, int? minimumInterestCount = default, int? minimumRemainingMinutes = default, int? upcomingOffsetMinutes = default, int? n = default, string? nextCursor = default, System.Threading.CancellationToken cancellationToken = default) + { + VRChat.API.Client.ApiResponse localVarResponse = await DiscoverCalendarEventsWithHttpInfoAsync(scope, categories, tags, featuredResults, nonFeaturedResults, personalizedResults, minimumInterestCount, minimumRemainingMinutes, upcomingOffsetMinutes, n, nextCursor, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Discover calendar events Get a list of calendar events Initially, call without a `nextCursor` parameter For every successive call, use the `nextCursor` property returned in the previous call & the `number` of entries desired for this call The `nextCursor` internally keeps track of the `offset` of the results, the initial request parameters, and accounts for discrepancies that might arise from time elapsed between calls + /// + /// Thrown when fails to make API call + /// Scope for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// Filter for calendar event discovery. (optional) + /// The number of objects to return. (optional, default to 60) + /// Cursor returned from previous calendar discovery queries (see nextCursor property of the schema CalendarEventDiscovery). (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (CalendarEventDiscovery) + public async System.Threading.Tasks.Task> DiscoverCalendarEventsWithHttpInfoAsync(CalendarEventDiscoveryScope? scope = default, string? categories = default, string? tags = default, CalendarEventDiscoveryInclusion? featuredResults = default, CalendarEventDiscoveryInclusion? nonFeaturedResults = default, CalendarEventDiscoveryInclusion? personalizedResults = default, int? minimumInterestCount = default, int? minimumRemainingMinutes = default, int? upcomingOffsetMinutes = default, int? n = default, string? nextCursor = default, System.Threading.CancellationToken cancellationToken = default) + { + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + if (scope != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "scope", scope)); + } + if (categories != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "categories", categories)); + } + if (tags != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "tags", tags)); + } + if (featuredResults != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "featuredResults", featuredResults)); + } + if (nonFeaturedResults != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "nonFeaturedResults", nonFeaturedResults)); + } + if (personalizedResults != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "personalizedResults", personalizedResults)); + } + if (minimumInterestCount != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "minimumInterestCount", minimumInterestCount)); + } + if (minimumRemainingMinutes != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "minimumRemainingMinutes", minimumRemainingMinutes)); + } + if (upcomingOffsetMinutes != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "upcomingOffsetMinutes", upcomingOffsetMinutes)); + } + if (n != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "n", n)); + } + if (nextCursor != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "nextCursor", nextCursor)); + } + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync("/calendar/discover", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("DiscoverCalendarEvents", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Follow a calendar event Follow or unfollow an event on a group's calendar /// diff --git a/src/VRChat.API/Api/EconomyApi.cs b/src/VRChat.API/Api/EconomyApi.cs index 5c61debf..1e776494 100644 --- a/src/VRChat.API/Api/EconomyApi.cs +++ b/src/VRChat.API/Api/EconomyApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -194,6 +194,29 @@ public interface IEconomyApiSync : IApiAccessor /// ApiResponse of ProductListing ApiResponse GetProductListingWithHttpInfo(string productId, bool? hydrate = default); /// + /// Get Product Listing (alternate) + /// + /// + /// Gets a product listing + /// + /// Thrown when fails to make API call + /// Must be a valid product ID. + /// ProductListing + [Obsolete] + ProductListing GetProductListingAlternate(string productId); + + /// + /// Get Product Listing (alternate) + /// + /// + /// Gets a product listing + /// + /// Thrown when fails to make API call + /// Must be a valid product ID. + /// ApiResponse of ProductListing + [Obsolete] + ApiResponse GetProductListingAlternateWithHttpInfo(string productId); + /// /// Get User Product Listings /// /// @@ -225,6 +248,37 @@ public interface IEconomyApiSync : IApiAccessor /// ApiResponse of List<ProductListing> ApiResponse> GetProductListingsWithHttpInfo(string userId, int? n = default, int? offset = default, bool? hydrate = default, string? groupId = default, bool? active = default); /// + /// Get Product Purchases + /// + /// + /// Gets product purchases + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// (optional) + /// The sort order of the results. (optional) + /// Result ordering (optional) + /// List<ProductPurchase> + List GetProductPurchases(string buyerId, int? n = default, int? offset = default, bool? mostRecent = default, SortOptionProductPurchase? sort = default, OrderOptionShort? order = default); + + /// + /// Get Product Purchases + /// + /// + /// Gets product purchases + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// (optional) + /// The sort order of the results. (optional) + /// Result ordering (optional) + /// ApiResponse of List<ProductPurchase> + ApiResponse> GetProductPurchasesWithHttpInfo(string buyerId, int? n = default, int? offset = default, bool? mostRecent = default, SortOptionProductPurchase? sort = default, OrderOptionShort? order = default); + /// /// Get Recent Subscription /// /// @@ -460,6 +514,27 @@ public interface IEconomyApiSync : IApiAccessor /// ApiResponse of UserSubscriptionEligible ApiResponse GetUserSubscriptionEligibleWithHttpInfo(string userId, string? steamId = default); /// + /// Purchase Product Listing + /// + /// + /// Purchases a product listing + /// + /// Thrown when fails to make API call + /// (optional) + /// ProductPurchase + ProductPurchase PurchaseProductListing(PurchaseProductListingRequest? purchaseProductListingRequest = default); + + /// + /// Purchase Product Listing + /// + /// + /// Purchases a product listing + /// + /// Thrown when fails to make API call + /// (optional) + /// ApiResponse of ProductPurchase + ApiResponse PurchaseProductListingWithHttpInfo(PurchaseProductListingRequest? purchaseProductListingRequest = default); + /// /// Update Tilia TOS Agreement Status /// /// @@ -674,6 +749,31 @@ public interface IEconomyApiAsync : IApiAccessor /// Task of ApiResponse (ProductListing) System.Threading.Tasks.Task> GetProductListingWithHttpInfoAsync(string productId, bool? hydrate = default, System.Threading.CancellationToken cancellationToken = default); /// + /// Get Product Listing (alternate) + /// + /// + /// Gets a product listing + /// + /// Thrown when fails to make API call + /// Must be a valid product ID. + /// Cancellation Token to cancel the request. + /// Task of ProductListing + [Obsolete] + System.Threading.Tasks.Task GetProductListingAlternateAsync(string productId, System.Threading.CancellationToken cancellationToken = default); + + /// + /// Get Product Listing (alternate) + /// + /// + /// Gets a product listing + /// + /// Thrown when fails to make API call + /// Must be a valid product ID. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ProductListing) + [Obsolete] + System.Threading.Tasks.Task> GetProductListingAlternateWithHttpInfoAsync(string productId, System.Threading.CancellationToken cancellationToken = default); + /// /// Get User Product Listings /// /// @@ -707,6 +807,39 @@ public interface IEconomyApiAsync : IApiAccessor /// Task of ApiResponse (List<ProductListing>) System.Threading.Tasks.Task>> GetProductListingsWithHttpInfoAsync(string userId, int? n = default, int? offset = default, bool? hydrate = default, string? groupId = default, bool? active = default, System.Threading.CancellationToken cancellationToken = default); /// + /// Get Product Purchases + /// + /// + /// Gets product purchases + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// (optional) + /// The sort order of the results. (optional) + /// Result ordering (optional) + /// Cancellation Token to cancel the request. + /// Task of List<ProductPurchase> + System.Threading.Tasks.Task> GetProductPurchasesAsync(string buyerId, int? n = default, int? offset = default, bool? mostRecent = default, SortOptionProductPurchase? sort = default, OrderOptionShort? order = default, System.Threading.CancellationToken cancellationToken = default); + + /// + /// Get Product Purchases + /// + /// + /// Gets product purchases + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// (optional) + /// The sort order of the results. (optional) + /// Result ordering (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ProductPurchase>) + System.Threading.Tasks.Task>> GetProductPurchasesWithHttpInfoAsync(string buyerId, int? n = default, int? offset = default, bool? mostRecent = default, SortOptionProductPurchase? sort = default, OrderOptionShort? order = default, System.Threading.CancellationToken cancellationToken = default); + /// /// Get Recent Subscription /// /// @@ -964,6 +1097,29 @@ public interface IEconomyApiAsync : IApiAccessor /// Task of ApiResponse (UserSubscriptionEligible) System.Threading.Tasks.Task> GetUserSubscriptionEligibleWithHttpInfoAsync(string userId, string? steamId = default, System.Threading.CancellationToken cancellationToken = default); /// + /// Purchase Product Listing + /// + /// + /// Purchases a product listing + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ProductPurchase + System.Threading.Tasks.Task PurchaseProductListingAsync(PurchaseProductListingRequest? purchaseProductListingRequest = default, System.Threading.CancellationToken cancellationToken = default); + + /// + /// Purchase Product Listing + /// + /// + /// Purchases a product listing + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ProductPurchase) + System.Threading.Tasks.Task> PurchaseProductListingWithHttpInfoAsync(PurchaseProductListingRequest? purchaseProductListingRequest = default, System.Threading.CancellationToken cancellationToken = default); + /// /// Update Tilia TOS Agreement Status /// /// @@ -2199,6 +2355,137 @@ public async System.Threading.Tasks.Task GetProductListingAsync( return localVarResponse; } + /// + /// Get Product Listing (alternate) Gets a product listing + /// + /// Thrown when fails to make API call + /// Must be a valid product ID. + /// ProductListing + [Obsolete] + public ProductListing GetProductListingAlternate(string productId) + { + VRChat.API.Client.ApiResponse localVarResponse = GetProductListingAlternateWithHttpInfo(productId); + return localVarResponse.Data; + } + + /// + /// Get Product Listing (alternate) Gets a product listing + /// + /// Thrown when fails to make API call + /// Must be a valid product ID. + /// ApiResponse of ProductListing + [Obsolete] + public VRChat.API.Client.ApiResponse GetProductListingAlternateWithHttpInfo(string productId) + { + // verify the required parameter 'productId' is set + if (productId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'productId' when calling EconomyApi->GetProductListingAlternate"); + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("productId", VRChat.API.Client.ClientUtils.ParameterToString(productId)); // path parameter + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/products/{productId}", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetProductListingAlternate", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get Product Listing (alternate) Gets a product listing + /// + /// Thrown when fails to make API call + /// Must be a valid product ID. + /// Cancellation Token to cancel the request. + /// Task of ProductListing + [Obsolete] + public async System.Threading.Tasks.Task GetProductListingAlternateAsync(string productId, System.Threading.CancellationToken cancellationToken = default) + { + VRChat.API.Client.ApiResponse localVarResponse = await GetProductListingAlternateWithHttpInfoAsync(productId, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get Product Listing (alternate) Gets a product listing + /// + /// Thrown when fails to make API call + /// Must be a valid product ID. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ProductListing) + [Obsolete] + public async System.Threading.Tasks.Task> GetProductListingAlternateWithHttpInfoAsync(string productId, System.Threading.CancellationToken cancellationToken = default) + { + // verify the required parameter 'productId' is set + if (productId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'productId' when calling EconomyApi->GetProductListingAlternate"); + + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("productId", VRChat.API.Client.ClientUtils.ParameterToString(productId)); // path parameter + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync("/products/{productId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetProductListingAlternate", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Get User Product Listings Gets the product listings of a given user /// @@ -2386,6 +2673,193 @@ public async System.Threading.Tasks.Task> GetProductListing return localVarResponse; } + /// + /// Get Product Purchases Gets product purchases + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// (optional) + /// The sort order of the results. (optional) + /// Result ordering (optional) + /// List<ProductPurchase> + public List GetProductPurchases(string buyerId, int? n = default, int? offset = default, bool? mostRecent = default, SortOptionProductPurchase? sort = default, OrderOptionShort? order = default) + { + VRChat.API.Client.ApiResponse> localVarResponse = GetProductPurchasesWithHttpInfo(buyerId, n, offset, mostRecent, sort, order); + return localVarResponse.Data; + } + + /// + /// Get Product Purchases Gets product purchases + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// (optional) + /// The sort order of the results. (optional) + /// Result ordering (optional) + /// ApiResponse of List<ProductPurchase> + public VRChat.API.Client.ApiResponse> GetProductPurchasesWithHttpInfo(string buyerId, int? n = default, int? offset = default, bool? mostRecent = default, SortOptionProductPurchase? sort = default, OrderOptionShort? order = default) + { + // verify the required parameter 'buyerId' is set + if (buyerId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'buyerId' when calling EconomyApi->GetProductPurchases"); + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "buyerId", buyerId)); + if (n != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "n", n)); + } + if (offset != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "offset", offset)); + } + if (mostRecent != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "mostRecent", mostRecent)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (order != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "order", order)); + } + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/economy/purchases", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetProductPurchases", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get Product Purchases Gets product purchases + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// (optional) + /// The sort order of the results. (optional) + /// Result ordering (optional) + /// Cancellation Token to cancel the request. + /// Task of List<ProductPurchase> + public async System.Threading.Tasks.Task> GetProductPurchasesAsync(string buyerId, int? n = default, int? offset = default, bool? mostRecent = default, SortOptionProductPurchase? sort = default, OrderOptionShort? order = default, System.Threading.CancellationToken cancellationToken = default) + { + VRChat.API.Client.ApiResponse> localVarResponse = await GetProductPurchasesWithHttpInfoAsync(buyerId, n, offset, mostRecent, sort, order, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get Product Purchases Gets product purchases + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// (optional) + /// The sort order of the results. (optional) + /// Result ordering (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<ProductPurchase>) + public async System.Threading.Tasks.Task>> GetProductPurchasesWithHttpInfoAsync(string buyerId, int? n = default, int? offset = default, bool? mostRecent = default, SortOptionProductPurchase? sort = default, OrderOptionShort? order = default, System.Threading.CancellationToken cancellationToken = default) + { + // verify the required parameter 'buyerId' is set + if (buyerId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'buyerId' when calling EconomyApi->GetProductPurchases"); + + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "buyerId", buyerId)); + if (n != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "n", n)); + } + if (offset != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "offset", offset)); + } + if (mostRecent != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "mostRecent", mostRecent)); + } + if (sort != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "sort", sort)); + } + if (order != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "order", order)); + } + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync>("/economy/purchases", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetProductPurchases", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Get Recent Subscription Get the most recent user subscription. /// @@ -3791,6 +4265,127 @@ public async System.Threading.Tasks.Task GetUserSubscr return localVarResponse; } + /// + /// Purchase Product Listing Purchases a product listing + /// + /// Thrown when fails to make API call + /// (optional) + /// ProductPurchase + public ProductPurchase PurchaseProductListing(PurchaseProductListingRequest? purchaseProductListingRequest = default) + { + VRChat.API.Client.ApiResponse localVarResponse = PurchaseProductListingWithHttpInfo(purchaseProductListingRequest); + return localVarResponse.Data; + } + + /// + /// Purchase Product Listing Purchases a product listing + /// + /// Thrown when fails to make API call + /// (optional) + /// ApiResponse of ProductPurchase + public VRChat.API.Client.ApiResponse PurchaseProductListingWithHttpInfo(PurchaseProductListingRequest? purchaseProductListingRequest = default) + { + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.Data = purchaseProductListingRequest; + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/economy/purchase/listing", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("PurchaseProductListing", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Purchase Product Listing Purchases a product listing + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ProductPurchase + public async System.Threading.Tasks.Task PurchaseProductListingAsync(PurchaseProductListingRequest? purchaseProductListingRequest = default, System.Threading.CancellationToken cancellationToken = default) + { + VRChat.API.Client.ApiResponse localVarResponse = await PurchaseProductListingWithHttpInfoAsync(purchaseProductListingRequest, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Purchase Product Listing Purchases a product listing + /// + /// Thrown when fails to make API call + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (ProductPurchase) + public async System.Threading.Tasks.Task> PurchaseProductListingWithHttpInfoAsync(PurchaseProductListingRequest? purchaseProductListingRequest = default, System.Threading.CancellationToken cancellationToken = default) + { + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.Data = purchaseProductListingRequest; + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync("/economy/purchase/listing", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("PurchaseProductListing", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Update Tilia TOS Agreement Status Updates the status of the agreement of a user to the Tilia TOS /// diff --git a/src/VRChat.API/Api/FavoritesApi.cs b/src/VRChat.API/Api/FavoritesApi.cs index 67d53bd5..3ab2b703 100644 --- a/src/VRChat.API/Api/FavoritesApi.cs +++ b/src/VRChat.API/Api/FavoritesApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/FilesApi.cs b/src/VRChat.API/Api/FilesApi.cs index 8860c262..681a2c42 100644 --- a/src/VRChat.API/Api/FilesApi.cs +++ b/src/VRChat.API/Api/FilesApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -406,12 +406,12 @@ public interface IFilesApiSync : IApiAccessor /// Thrown when fails to make API call /// The binary blob of the png file. /// Needs to be either icon, gallery, sticker, emoji, or emojianimated + /// Animation style for sticker, required for emoji. (optional) /// Required for emojianimated. Total number of frames to be animated (2-64) (optional) /// Required for emojianimated. Animation frames per second (1-64) (optional) - /// Animation style for sticker, required for emoji. (optional) /// Mask of the sticker, optional for emoji. (optional) /// File - File UploadImage(FileParameter file, string tag, int? frames = default, int? framesOverTime = default, string? animationStyle = default, string? maskTag = default); + File UploadImage(FileParameter file, string tag, string? animationStyle = default, int? frames = default, int? framesOverTime = default, string? maskTag = default); /// /// Upload gallery image, icon, emoji or sticker @@ -422,12 +422,12 @@ public interface IFilesApiSync : IApiAccessor /// Thrown when fails to make API call /// The binary blob of the png file. /// Needs to be either icon, gallery, sticker, emoji, or emojianimated + /// Animation style for sticker, required for emoji. (optional) /// Required for emojianimated. Total number of frames to be animated (2-64) (optional) /// Required for emojianimated. Animation frames per second (1-64) (optional) - /// Animation style for sticker, required for emoji. (optional) /// Mask of the sticker, optional for emoji. (optional) /// ApiResponse of File - ApiResponse UploadImageWithHttpInfo(FileParameter file, string tag, int? frames = default, int? framesOverTime = default, string? animationStyle = default, string? maskTag = default); + ApiResponse UploadImageWithHttpInfo(FileParameter file, string tag, string? animationStyle = default, int? frames = default, int? framesOverTime = default, string? maskTag = default); #endregion Synchronous Operations } @@ -848,13 +848,13 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// The binary blob of the png file. /// Needs to be either icon, gallery, sticker, emoji, or emojianimated + /// Animation style for sticker, required for emoji. (optional) /// Required for emojianimated. Total number of frames to be animated (2-64) (optional) /// Required for emojianimated. Animation frames per second (1-64) (optional) - /// Animation style for sticker, required for emoji. (optional) /// Mask of the sticker, optional for emoji. (optional) /// Cancellation Token to cancel the request. /// Task of File - System.Threading.Tasks.Task UploadImageAsync(FileParameter file, string tag, int? frames = default, int? framesOverTime = default, string? animationStyle = default, string? maskTag = default, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task UploadImageAsync(FileParameter file, string tag, string? animationStyle = default, int? frames = default, int? framesOverTime = default, string? maskTag = default, System.Threading.CancellationToken cancellationToken = default); /// /// Upload gallery image, icon, emoji or sticker @@ -865,13 +865,13 @@ public interface IFilesApiAsync : IApiAccessor /// Thrown when fails to make API call /// The binary blob of the png file. /// Needs to be either icon, gallery, sticker, emoji, or emojianimated + /// Animation style for sticker, required for emoji. (optional) /// Required for emojianimated. Total number of frames to be animated (2-64) (optional) /// Required for emojianimated. Animation frames per second (1-64) (optional) - /// Animation style for sticker, required for emoji. (optional) /// Mask of the sticker, optional for emoji. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (File) - System.Threading.Tasks.Task> UploadImageWithHttpInfoAsync(FileParameter file, string tag, int? frames = default, int? framesOverTime = default, string? animationStyle = default, string? maskTag = default, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> UploadImageWithHttpInfoAsync(FileParameter file, string tag, string? animationStyle = default, int? frames = default, int? framesOverTime = default, string? maskTag = default, System.Threading.CancellationToken cancellationToken = default); #endregion Asynchronous Operations } @@ -3275,14 +3275,14 @@ public async System.Threading.Tasks.Task UploadIconAsync(FileParameter fil /// Thrown when fails to make API call /// The binary blob of the png file. /// Needs to be either icon, gallery, sticker, emoji, or emojianimated + /// Animation style for sticker, required for emoji. (optional) /// Required for emojianimated. Total number of frames to be animated (2-64) (optional) /// Required for emojianimated. Animation frames per second (1-64) (optional) - /// Animation style for sticker, required for emoji. (optional) /// Mask of the sticker, optional for emoji. (optional) /// File - public File UploadImage(FileParameter file, string tag, int? frames = default, int? framesOverTime = default, string? animationStyle = default, string? maskTag = default) + public File UploadImage(FileParameter file, string tag, string? animationStyle = default, int? frames = default, int? framesOverTime = default, string? maskTag = default) { - VRChat.API.Client.ApiResponse localVarResponse = UploadImageWithHttpInfo(file, tag, frames, framesOverTime, animationStyle, maskTag); + VRChat.API.Client.ApiResponse localVarResponse = UploadImageWithHttpInfo(file, tag, animationStyle, frames, framesOverTime, maskTag); return localVarResponse.Data; } @@ -3292,12 +3292,12 @@ public File UploadImage(FileParameter file, string tag, int? frames = default, i /// Thrown when fails to make API call /// The binary blob of the png file. /// Needs to be either icon, gallery, sticker, emoji, or emojianimated + /// Animation style for sticker, required for emoji. (optional) /// Required for emojianimated. Total number of frames to be animated (2-64) (optional) /// Required for emojianimated. Animation frames per second (1-64) (optional) - /// Animation style for sticker, required for emoji. (optional) /// Mask of the sticker, optional for emoji. (optional) /// ApiResponse of File - public VRChat.API.Client.ApiResponse UploadImageWithHttpInfo(FileParameter file, string tag, int? frames = default, int? framesOverTime = default, string? animationStyle = default, string? maskTag = default) + public VRChat.API.Client.ApiResponse UploadImageWithHttpInfo(FileParameter file, string tag, string? animationStyle = default, int? frames = default, int? framesOverTime = default, string? maskTag = default) { // verify the required parameter 'file' is set if (file == null) @@ -3324,8 +3324,11 @@ public VRChat.API.Client.ApiResponse UploadImageWithHttpInfo(FileParameter var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + if (animationStyle != null) + { + localVarRequestOptions.FormParameters.Add("animationStyle", VRChat.API.Client.ClientUtils.ParameterToString(animationStyle)); // form parameter + } localVarRequestOptions.FileParameters.Add("file", file); - localVarRequestOptions.FormParameters.Add("tag", VRChat.API.Client.ClientUtils.ParameterToString(tag)); // form parameter if (frames != null) { localVarRequestOptions.FormParameters.Add("frames", VRChat.API.Client.ClientUtils.ParameterToString(frames)); // form parameter @@ -3334,14 +3337,11 @@ public VRChat.API.Client.ApiResponse UploadImageWithHttpInfo(FileParameter { localVarRequestOptions.FormParameters.Add("framesOverTime", VRChat.API.Client.ClientUtils.ParameterToString(framesOverTime)); // form parameter } - if (animationStyle != null) - { - localVarRequestOptions.FormParameters.Add("animationStyle", VRChat.API.Client.ClientUtils.ParameterToString(animationStyle)); // form parameter - } if (maskTag != null) { localVarRequestOptions.FormParameters.Add("maskTag", VRChat.API.Client.ClientUtils.ParameterToString(maskTag)); // form parameter } + localVarRequestOptions.FormParameters.Add("tag", VRChat.API.Client.ClientUtils.ParameterToString(tag)); // form parameter // authentication (authCookie) required // cookie parameter support @@ -3368,15 +3368,15 @@ public VRChat.API.Client.ApiResponse UploadImageWithHttpInfo(FileParameter /// Thrown when fails to make API call /// The binary blob of the png file. /// Needs to be either icon, gallery, sticker, emoji, or emojianimated + /// Animation style for sticker, required for emoji. (optional) /// Required for emojianimated. Total number of frames to be animated (2-64) (optional) /// Required for emojianimated. Animation frames per second (1-64) (optional) - /// Animation style for sticker, required for emoji. (optional) /// Mask of the sticker, optional for emoji. (optional) /// Cancellation Token to cancel the request. /// Task of File - public async System.Threading.Tasks.Task UploadImageAsync(FileParameter file, string tag, int? frames = default, int? framesOverTime = default, string? animationStyle = default, string? maskTag = default, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task UploadImageAsync(FileParameter file, string tag, string? animationStyle = default, int? frames = default, int? framesOverTime = default, string? maskTag = default, System.Threading.CancellationToken cancellationToken = default) { - VRChat.API.Client.ApiResponse localVarResponse = await UploadImageWithHttpInfoAsync(file, tag, frames, framesOverTime, animationStyle, maskTag, cancellationToken).ConfigureAwait(false); + VRChat.API.Client.ApiResponse localVarResponse = await UploadImageWithHttpInfoAsync(file, tag, animationStyle, frames, framesOverTime, maskTag, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -3386,13 +3386,13 @@ public async System.Threading.Tasks.Task UploadImageAsync(FileParameter fi /// Thrown when fails to make API call /// The binary blob of the png file. /// Needs to be either icon, gallery, sticker, emoji, or emojianimated + /// Animation style for sticker, required for emoji. (optional) /// Required for emojianimated. Total number of frames to be animated (2-64) (optional) /// Required for emojianimated. Animation frames per second (1-64) (optional) - /// Animation style for sticker, required for emoji. (optional) /// Mask of the sticker, optional for emoji. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (File) - public async System.Threading.Tasks.Task> UploadImageWithHttpInfoAsync(FileParameter file, string tag, int? frames = default, int? framesOverTime = default, string? animationStyle = default, string? maskTag = default, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> UploadImageWithHttpInfoAsync(FileParameter file, string tag, string? animationStyle = default, int? frames = default, int? framesOverTime = default, string? maskTag = default, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'file' is set if (file == null) @@ -3421,8 +3421,11 @@ public async System.Threading.Tasks.Task UploadImageAsync(FileParameter fi var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + if (animationStyle != null) + { + localVarRequestOptions.FormParameters.Add("animationStyle", VRChat.API.Client.ClientUtils.ParameterToString(animationStyle)); // form parameter + } localVarRequestOptions.FileParameters.Add("file", file); - localVarRequestOptions.FormParameters.Add("tag", VRChat.API.Client.ClientUtils.ParameterToString(tag)); // form parameter if (frames != null) { localVarRequestOptions.FormParameters.Add("frames", VRChat.API.Client.ClientUtils.ParameterToString(frames)); // form parameter @@ -3431,14 +3434,11 @@ public async System.Threading.Tasks.Task UploadImageAsync(FileParameter fi { localVarRequestOptions.FormParameters.Add("framesOverTime", VRChat.API.Client.ClientUtils.ParameterToString(framesOverTime)); // form parameter } - if (animationStyle != null) - { - localVarRequestOptions.FormParameters.Add("animationStyle", VRChat.API.Client.ClientUtils.ParameterToString(animationStyle)); // form parameter - } if (maskTag != null) { localVarRequestOptions.FormParameters.Add("maskTag", VRChat.API.Client.ClientUtils.ParameterToString(maskTag)); // form parameter } + localVarRequestOptions.FormParameters.Add("tag", VRChat.API.Client.ClientUtils.ParameterToString(tag)); // form parameter // authentication (authCookie) required // cookie parameter support diff --git a/src/VRChat.API/Api/FriendsApi.cs b/src/VRChat.API/Api/FriendsApi.cs index 0bdd89ba..88f7f2c6 100644 --- a/src/VRChat.API/Api/FriendsApi.cs +++ b/src/VRChat.API/Api/FriendsApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -28,6 +28,29 @@ public interface IFriendsApiSync : IApiAccessor { #region Synchronous Operations /// + /// Send Boop + /// + /// + /// Send a boop to another user. + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// + /// Success + Success Boop(string userId, BoopRequest boopRequest); + + /// + /// Send Boop + /// + /// + /// Send a boop to another user. + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// + /// ApiResponse of Success + ApiResponse BoopWithHttpInfo(string userId, BoopRequest boopRequest); + /// /// Delete Friend Request /// /// @@ -146,6 +169,31 @@ public interface IFriendsApiAsync : IApiAccessor { #region Asynchronous Operations /// + /// Send Boop + /// + /// + /// Send a boop to another user. + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// + /// Cancellation Token to cancel the request. + /// Task of Success + System.Threading.Tasks.Task BoopAsync(string userId, BoopRequest boopRequest, System.Threading.CancellationToken cancellationToken = default); + + /// + /// Send Boop + /// + /// + /// Send a boop to another user. + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Success) + System.Threading.Tasks.Task> BoopWithHttpInfoAsync(string userId, BoopRequest boopRequest, System.Threading.CancellationToken cancellationToken = default); + /// /// Delete Friend Request /// /// @@ -477,6 +525,149 @@ public VRChat.API.Client.ExceptionFactory ExceptionFactory set { _exceptionFactory = value; } } + /// + /// Send Boop Send a boop to another user. + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// + /// Success + public Success Boop(string userId, BoopRequest boopRequest) + { + VRChat.API.Client.ApiResponse localVarResponse = BoopWithHttpInfo(userId, boopRequest); + return localVarResponse.Data; + } + + /// + /// Send Boop Send a boop to another user. + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// + /// ApiResponse of Success + public VRChat.API.Client.ApiResponse BoopWithHttpInfo(string userId, BoopRequest boopRequest) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'userId' when calling FriendsApi->Boop"); + + // verify the required parameter 'boopRequest' is set + if (boopRequest == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'boopRequest' when calling FriendsApi->Boop"); + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("userId", VRChat.API.Client.ClientUtils.ParameterToString(userId)); // path parameter + localVarRequestOptions.Data = boopRequest; + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + var localVarResponse = this.Client.Post("/users/{userId}/boop", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Boop", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Send Boop Send a boop to another user. + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// + /// Cancellation Token to cancel the request. + /// Task of Success + public async System.Threading.Tasks.Task BoopAsync(string userId, BoopRequest boopRequest, System.Threading.CancellationToken cancellationToken = default) + { + VRChat.API.Client.ApiResponse localVarResponse = await BoopWithHttpInfoAsync(userId, boopRequest, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Send Boop Send a boop to another user. + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Success) + public async System.Threading.Tasks.Task> BoopWithHttpInfoAsync(string userId, BoopRequest boopRequest, System.Threading.CancellationToken cancellationToken = default) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'userId' when calling FriendsApi->Boop"); + + // verify the required parameter 'boopRequest' is set + if (boopRequest == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'boopRequest' when calling FriendsApi->Boop"); + + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("userId", VRChat.API.Client.ClientUtils.ParameterToString(userId)); // path parameter + localVarRequestOptions.Data = boopRequest; + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PostAsync("/users/{userId}/boop", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("Boop", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Delete Friend Request Deletes an outgoing pending friend request to another user. To delete an incoming friend request, use the `deleteNotification` endpoint instead. /// diff --git a/src/VRChat.API/Api/GroupsApi.cs b/src/VRChat.API/Api/GroupsApi.cs index 3f33a702..86ca3f8f 100644 --- a/src/VRChat.API/Api/GroupsApi.cs +++ b/src/VRChat.API/Api/GroupsApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -443,7 +443,7 @@ public interface IGroupsApiSync : IApiAccessor /// Get Group Announcement /// /// - /// Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. + /// Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. /// /// Thrown when fails to make API call /// Must be a valid group ID. @@ -454,7 +454,7 @@ public interface IGroupsApiSync : IApiAccessor /// Get Group Announcement /// /// - /// Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. + /// Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. /// /// Thrown when fails to make API call /// Must be a valid group ID. @@ -1532,7 +1532,7 @@ public interface IGroupsApiAsync : IApiAccessor /// Get Group Announcement /// /// - /// Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. + /// Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. /// /// Thrown when fails to make API call /// Must be a valid group ID. @@ -1544,7 +1544,7 @@ public interface IGroupsApiAsync : IApiAccessor /// Get Group Announcement /// /// - /// Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. + /// Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. /// /// Thrown when fails to make API call /// Must be a valid group ID. @@ -4958,7 +4958,7 @@ public async System.Threading.Tasks.Task GetGroupAsync(string groupId, bo } /// - /// Get Group Announcement Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. + /// Get Group Announcement Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. /// /// Thrown when fails to make API call /// Must be a valid group ID. @@ -4970,7 +4970,7 @@ public GroupAnnouncement GetGroupAnnouncements(string groupId) } /// - /// Get Group Announcement Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. + /// Get Group Announcement Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. /// /// Thrown when fails to make API call /// Must be a valid group ID. @@ -5019,7 +5019,7 @@ public VRChat.API.Client.ApiResponse GetGroupAnnouncementsWit } /// - /// Get Group Announcement Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. + /// Get Group Announcement Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. /// /// Thrown when fails to make API call /// Must be a valid group ID. @@ -5032,7 +5032,7 @@ public async System.Threading.Tasks.Task GetGroupAnnouncement } /// - /// Get Group Announcement Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. + /// Get Group Announcement Returns the announcement for a Group. If no announcement has been made, then it returns **empty object**. If an announcement exists, then it will always return all fields except `imageId` and `imageUrl` which may be null. /// /// Thrown when fails to make API call /// Must be a valid group ID. diff --git a/src/VRChat.API/Api/InstancesApi.cs b/src/VRChat.API/Api/InstancesApi.cs index 99644d67..26467b08 100644 --- a/src/VRChat.API/Api/InstancesApi.cs +++ b/src/VRChat.API/Api/InstancesApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/InventoryApi.cs b/src/VRChat.API/Api/InventoryApi.cs index 7337ad34..4beb4c89 100644 --- a/src/VRChat.API/Api/InventoryApi.cs +++ b/src/VRChat.API/Api/InventoryApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -28,6 +28,27 @@ public interface IInventoryApiSync : IApiAccessor { #region Synchronous Operations /// + /// Consume Own Inventory Item + /// + /// + /// Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// InventoryConsumptionResults + InventoryConsumptionResults ConsumeOwnInventoryItem(string inventoryItemId); + + /// + /// Consume Own Inventory Item + /// + /// + /// Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// ApiResponse of InventoryConsumptionResults + ApiResponse ConsumeOwnInventoryItemWithHttpInfo(string inventoryItemId); + /// /// Delete Own Inventory Item /// /// @@ -49,6 +70,29 @@ public interface IInventoryApiSync : IApiAccessor /// ApiResponse of SuccessFlag ApiResponse DeleteOwnInventoryItemWithHttpInfo(string inventoryItemId); /// + /// Equip Own Inventory Item + /// + /// + /// Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// (optional) + /// InventoryItem + InventoryItem EquipOwnInventoryItem(string inventoryItemId, EquipInventoryItemRequest? equipInventoryItemRequest = default); + + /// + /// Equip Own Inventory Item + /// + /// + /// Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// (optional) + /// ApiResponse of InventoryItem + ApiResponse EquipOwnInventoryItemWithHttpInfo(string inventoryItemId, EquipInventoryItemRequest? equipInventoryItemRequest = default); + /// /// Get Inventory /// /// @@ -222,6 +266,27 @@ public interface IInventoryApiSync : IApiAccessor /// ApiResponse of InventorySpawn ApiResponse SpawnInventoryItemWithHttpInfo(string id); /// + /// Unequip Own Inventory Slot + /// + /// + /// Unequips the InventoryItem in the given slot of the inventory of the currently logged in user. + /// + /// Thrown when fails to make API call + /// Selector for inventory slot management. + /// string + string UnequipOwnInventorySlot(InventoryEquipSlot inventoryItemId); + + /// + /// Unequip Own Inventory Slot + /// + /// + /// Unequips the InventoryItem in the given slot of the inventory of the currently logged in user. + /// + /// Thrown when fails to make API call + /// Selector for inventory slot management. + /// ApiResponse of string + ApiResponse UnequipOwnInventorySlotWithHttpInfo(InventoryEquipSlot inventoryItemId); + /// /// Update Own Inventory Item /// /// @@ -254,6 +319,29 @@ public interface IInventoryApiAsync : IApiAccessor { #region Asynchronous Operations /// + /// Consume Own Inventory Item + /// + /// + /// Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// Cancellation Token to cancel the request. + /// Task of InventoryConsumptionResults + System.Threading.Tasks.Task ConsumeOwnInventoryItemAsync(string inventoryItemId, System.Threading.CancellationToken cancellationToken = default); + + /// + /// Consume Own Inventory Item + /// + /// + /// Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InventoryConsumptionResults) + System.Threading.Tasks.Task> ConsumeOwnInventoryItemWithHttpInfoAsync(string inventoryItemId, System.Threading.CancellationToken cancellationToken = default); + /// /// Delete Own Inventory Item /// /// @@ -277,6 +365,31 @@ public interface IInventoryApiAsync : IApiAccessor /// Task of ApiResponse (SuccessFlag) System.Threading.Tasks.Task> DeleteOwnInventoryItemWithHttpInfoAsync(string inventoryItemId, System.Threading.CancellationToken cancellationToken = default); /// + /// Equip Own Inventory Item + /// + /// + /// Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of InventoryItem + System.Threading.Tasks.Task EquipOwnInventoryItemAsync(string inventoryItemId, EquipInventoryItemRequest? equipInventoryItemRequest = default, System.Threading.CancellationToken cancellationToken = default); + + /// + /// Equip Own Inventory Item + /// + /// + /// Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InventoryItem) + System.Threading.Tasks.Task> EquipOwnInventoryItemWithHttpInfoAsync(string inventoryItemId, EquipInventoryItemRequest? equipInventoryItemRequest = default, System.Threading.CancellationToken cancellationToken = default); + /// /// Get Inventory /// /// @@ -464,6 +577,29 @@ public interface IInventoryApiAsync : IApiAccessor /// Task of ApiResponse (InventorySpawn) System.Threading.Tasks.Task> SpawnInventoryItemWithHttpInfoAsync(string id, System.Threading.CancellationToken cancellationToken = default); /// + /// Unequip Own Inventory Slot + /// + /// + /// Unequips the InventoryItem in the given slot of the inventory of the currently logged in user. + /// + /// Thrown when fails to make API call + /// Selector for inventory slot management. + /// Cancellation Token to cancel the request. + /// Task of string + System.Threading.Tasks.Task UnequipOwnInventorySlotAsync(InventoryEquipSlot inventoryItemId, System.Threading.CancellationToken cancellationToken = default); + + /// + /// Unequip Own Inventory Slot + /// + /// + /// Unequips the InventoryItem in the given slot of the inventory of the currently logged in user. + /// + /// Thrown when fails to make API call + /// Selector for inventory slot management. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + System.Threading.Tasks.Task> UnequipOwnInventorySlotWithHttpInfoAsync(InventoryEquipSlot inventoryItemId, System.Threading.CancellationToken cancellationToken = default); + /// /// Update Own Inventory Item /// /// @@ -701,6 +837,133 @@ public VRChat.API.Client.ExceptionFactory ExceptionFactory set { _exceptionFactory = value; } } + /// + /// Consume Own Inventory Item Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// InventoryConsumptionResults + public InventoryConsumptionResults ConsumeOwnInventoryItem(string inventoryItemId) + { + VRChat.API.Client.ApiResponse localVarResponse = ConsumeOwnInventoryItemWithHttpInfo(inventoryItemId); + return localVarResponse.Data; + } + + /// + /// Consume Own Inventory Item Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// ApiResponse of InventoryConsumptionResults + public VRChat.API.Client.ApiResponse ConsumeOwnInventoryItemWithHttpInfo(string inventoryItemId) + { + // verify the required parameter 'inventoryItemId' is set + if (inventoryItemId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'inventoryItemId' when calling InventoryApi->ConsumeOwnInventoryItem"); + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("inventoryItemId", VRChat.API.Client.ClientUtils.ParameterToString(inventoryItemId)); // path parameter + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/inventory/{inventoryItemId}/consume", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ConsumeOwnInventoryItem", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Consume Own Inventory Item Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// Cancellation Token to cancel the request. + /// Task of InventoryConsumptionResults + public async System.Threading.Tasks.Task ConsumeOwnInventoryItemAsync(string inventoryItemId, System.Threading.CancellationToken cancellationToken = default) + { + VRChat.API.Client.ApiResponse localVarResponse = await ConsumeOwnInventoryItemWithHttpInfoAsync(inventoryItemId, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Consume Own Inventory Item Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InventoryConsumptionResults) + public async System.Threading.Tasks.Task> ConsumeOwnInventoryItemWithHttpInfoAsync(string inventoryItemId, System.Threading.CancellationToken cancellationToken = default) + { + // verify the required parameter 'inventoryItemId' is set + if (inventoryItemId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'inventoryItemId' when calling InventoryApi->ConsumeOwnInventoryItem"); + + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("inventoryItemId", VRChat.API.Client.ClientUtils.ParameterToString(inventoryItemId)); // path parameter + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PutAsync("/inventory/{inventoryItemId}/consume", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("ConsumeOwnInventoryItem", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Delete Own Inventory Item Deletes an InventoryItem from the inventory of the currently logged in user. /// @@ -828,6 +1091,141 @@ public async System.Threading.Tasks.Task DeleteOwnInventoryItemAsyn return localVarResponse; } + /// + /// Equip Own Inventory Item Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// (optional) + /// InventoryItem + public InventoryItem EquipOwnInventoryItem(string inventoryItemId, EquipInventoryItemRequest? equipInventoryItemRequest = default) + { + VRChat.API.Client.ApiResponse localVarResponse = EquipOwnInventoryItemWithHttpInfo(inventoryItemId, equipInventoryItemRequest); + return localVarResponse.Data; + } + + /// + /// Equip Own Inventory Item Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// (optional) + /// ApiResponse of InventoryItem + public VRChat.API.Client.ApiResponse EquipOwnInventoryItemWithHttpInfo(string inventoryItemId, EquipInventoryItemRequest? equipInventoryItemRequest = default) + { + // verify the required parameter 'inventoryItemId' is set + if (inventoryItemId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'inventoryItemId' when calling InventoryApi->EquipOwnInventoryItem"); + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("inventoryItemId", VRChat.API.Client.ClientUtils.ParameterToString(inventoryItemId)); // path parameter + localVarRequestOptions.Data = equipInventoryItemRequest; + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + var localVarResponse = this.Client.Put("/inventory/{inventoryItemId}/equip", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("EquipOwnInventoryItem", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Equip Own Inventory Item Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of InventoryItem + public async System.Threading.Tasks.Task EquipOwnInventoryItemAsync(string inventoryItemId, EquipInventoryItemRequest? equipInventoryItemRequest = default, System.Threading.CancellationToken cancellationToken = default) + { + VRChat.API.Client.ApiResponse localVarResponse = await EquipOwnInventoryItemWithHttpInfoAsync(inventoryItemId, equipInventoryItemRequest, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Equip Own Inventory Item Returns the modified InventoryItem object as held by the currently logged in user. + /// + /// Thrown when fails to make API call + /// Must be a valid inventory item ID. + /// (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (InventoryItem) + public async System.Threading.Tasks.Task> EquipOwnInventoryItemWithHttpInfoAsync(string inventoryItemId, EquipInventoryItemRequest? equipInventoryItemRequest = default, System.Threading.CancellationToken cancellationToken = default) + { + // verify the required parameter 'inventoryItemId' is set + if (inventoryItemId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'inventoryItemId' when calling InventoryApi->EquipOwnInventoryItem"); + + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + "application/json" + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("inventoryItemId", VRChat.API.Client.ClientUtils.ParameterToString(inventoryItemId)); // path parameter + localVarRequestOptions.Data = equipInventoryItemRequest; + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.PutAsync("/inventory/{inventoryItemId}/equip", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("EquipOwnInventoryItem", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Get Inventory Returns an Inventory object. /// @@ -1861,6 +2259,125 @@ public async System.Threading.Tasks.Task SpawnInventoryItemAsync return localVarResponse; } + /// + /// Unequip Own Inventory Slot Unequips the InventoryItem in the given slot of the inventory of the currently logged in user. + /// + /// Thrown when fails to make API call + /// Selector for inventory slot management. + /// string + public string UnequipOwnInventorySlot(InventoryEquipSlot inventoryItemId) + { + VRChat.API.Client.ApiResponse localVarResponse = UnequipOwnInventorySlotWithHttpInfo(inventoryItemId); + return localVarResponse.Data; + } + + /// + /// Unequip Own Inventory Slot Unequips the InventoryItem in the given slot of the inventory of the currently logged in user. + /// + /// Thrown when fails to make API call + /// Selector for inventory slot management. + /// ApiResponse of string + public VRChat.API.Client.ApiResponse UnequipOwnInventorySlotWithHttpInfo(InventoryEquipSlot inventoryItemId) + { + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("inventoryItemId", VRChat.API.Client.ClientUtils.ParameterToString(inventoryItemId)); // path parameter + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + var localVarResponse = this.Client.Delete("/inventory/{inventoryItemId}/equip", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UnequipOwnInventorySlot", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Unequip Own Inventory Slot Unequips the InventoryItem in the given slot of the inventory of the currently logged in user. + /// + /// Thrown when fails to make API call + /// Selector for inventory slot management. + /// Cancellation Token to cancel the request. + /// Task of string + public async System.Threading.Tasks.Task UnequipOwnInventorySlotAsync(InventoryEquipSlot inventoryItemId, System.Threading.CancellationToken cancellationToken = default) + { + VRChat.API.Client.ApiResponse localVarResponse = await UnequipOwnInventorySlotWithHttpInfoAsync(inventoryItemId, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Unequip Own Inventory Slot Unequips the InventoryItem in the given slot of the inventory of the currently logged in user. + /// + /// Thrown when fails to make API call + /// Selector for inventory slot management. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (string) + public async System.Threading.Tasks.Task> UnequipOwnInventorySlotWithHttpInfoAsync(InventoryEquipSlot inventoryItemId, System.Threading.CancellationToken cancellationToken = default) + { + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("inventoryItemId", VRChat.API.Client.ClientUtils.ParameterToString(inventoryItemId)); // path parameter + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.DeleteAsync("/inventory/{inventoryItemId}/equip", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("UnequipOwnInventorySlot", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Update Own Inventory Item Returns the modified InventoryItem object as held by the currently logged in user. /// diff --git a/src/VRChat.API/Api/InviteApi.cs b/src/VRChat.API/Api/InviteApi.cs index 83fff92d..6a46261c 100644 --- a/src/VRChat.API/Api/InviteApi.cs +++ b/src/VRChat.API/Api/InviteApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -129,10 +129,10 @@ public interface IInviteApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// SentNotification - SentNotification InviteUserWithPhoto(string userId, FileParameter image, InviteRequest data); + SentNotification InviteUserWithPhoto(string userId, InviteRequest data, FileParameter image); /// /// Invite User with photo @@ -142,10 +142,10 @@ public interface IInviteApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// ApiResponse of SentNotification - ApiResponse InviteUserWithPhotoWithHttpInfo(string userId, FileParameter image, InviteRequest data); + ApiResponse InviteUserWithPhotoWithHttpInfo(string userId, InviteRequest data, FileParameter image); /// /// Request Invite /// @@ -177,10 +177,10 @@ public interface IInviteApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Notification - Notification RequestInviteWithPhoto(string userId, FileParameter image, RequestInviteRequest data); + Notification RequestInviteWithPhoto(string userId, RequestInviteRequest data, FileParameter image); /// /// Request Invite with photo @@ -190,10 +190,10 @@ public interface IInviteApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// ApiResponse of Notification - ApiResponse RequestInviteWithPhotoWithHttpInfo(string userId, FileParameter image, RequestInviteRequest data); + ApiResponse RequestInviteWithPhotoWithHttpInfo(string userId, RequestInviteRequest data, FileParameter image); /// /// Reset Invite Message /// @@ -250,10 +250,10 @@ public interface IInviteApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Must be a valid notification ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Notification - Notification RespondInviteWithPhoto(string notificationId, FileParameter image, InviteResponse data); + Notification RespondInviteWithPhoto(string notificationId, InviteResponse data, FileParameter image); /// /// Respond Invite with photo @@ -263,10 +263,10 @@ public interface IInviteApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Must be a valid notification ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// ApiResponse of Notification - ApiResponse RespondInviteWithPhotoWithHttpInfo(string notificationId, FileParameter image, InviteResponse data); + ApiResponse RespondInviteWithPhotoWithHttpInfo(string notificationId, InviteResponse data, FileParameter image); /// /// Update Invite Message /// @@ -413,11 +413,11 @@ public interface IInviteApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Cancellation Token to cancel the request. /// Task of SentNotification - System.Threading.Tasks.Task InviteUserWithPhotoAsync(string userId, FileParameter image, InviteRequest data, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task InviteUserWithPhotoAsync(string userId, InviteRequest data, FileParameter image, System.Threading.CancellationToken cancellationToken = default); /// /// Invite User with photo @@ -427,11 +427,11 @@ public interface IInviteApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SentNotification) - System.Threading.Tasks.Task> InviteUserWithPhotoWithHttpInfoAsync(string userId, FileParameter image, InviteRequest data, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> InviteUserWithPhotoWithHttpInfoAsync(string userId, InviteRequest data, FileParameter image, System.Threading.CancellationToken cancellationToken = default); /// /// Request Invite /// @@ -465,11 +465,11 @@ public interface IInviteApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Cancellation Token to cancel the request. /// Task of Notification - System.Threading.Tasks.Task RequestInviteWithPhotoAsync(string userId, FileParameter image, RequestInviteRequest data, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task RequestInviteWithPhotoAsync(string userId, RequestInviteRequest data, FileParameter image, System.Threading.CancellationToken cancellationToken = default); /// /// Request Invite with photo @@ -479,11 +479,11 @@ public interface IInviteApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Notification) - System.Threading.Tasks.Task> RequestInviteWithPhotoWithHttpInfoAsync(string userId, FileParameter image, RequestInviteRequest data, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> RequestInviteWithPhotoWithHttpInfoAsync(string userId, RequestInviteRequest data, FileParameter image, System.Threading.CancellationToken cancellationToken = default); /// /// Reset Invite Message /// @@ -544,11 +544,11 @@ public interface IInviteApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Must be a valid notification ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Cancellation Token to cancel the request. /// Task of Notification - System.Threading.Tasks.Task RespondInviteWithPhotoAsync(string notificationId, FileParameter image, InviteResponse data, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task RespondInviteWithPhotoAsync(string notificationId, InviteResponse data, FileParameter image, System.Threading.CancellationToken cancellationToken = default); /// /// Respond Invite with photo @@ -558,11 +558,11 @@ public interface IInviteApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Must be a valid notification ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Notification) - System.Threading.Tasks.Task> RespondInviteWithPhotoWithHttpInfoAsync(string notificationId, FileParameter image, InviteResponse data, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> RespondInviteWithPhotoWithHttpInfoAsync(string notificationId, InviteResponse data, FileParameter image, System.Threading.CancellationToken cancellationToken = default); /// /// Update Invite Message /// @@ -1366,12 +1366,12 @@ public async System.Threading.Tasks.Task InviteUserAsync(strin /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// SentNotification - public SentNotification InviteUserWithPhoto(string userId, FileParameter image, InviteRequest data) + public SentNotification InviteUserWithPhoto(string userId, InviteRequest data, FileParameter image) { - VRChat.API.Client.ApiResponse localVarResponse = InviteUserWithPhotoWithHttpInfo(userId, image, data); + VRChat.API.Client.ApiResponse localVarResponse = InviteUserWithPhotoWithHttpInfo(userId, data, image); return localVarResponse.Data; } @@ -1380,23 +1380,23 @@ public SentNotification InviteUserWithPhoto(string userId, FileParameter image, /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// ApiResponse of SentNotification - public VRChat.API.Client.ApiResponse InviteUserWithPhotoWithHttpInfo(string userId, FileParameter image, InviteRequest data) + public VRChat.API.Client.ApiResponse InviteUserWithPhotoWithHttpInfo(string userId, InviteRequest data, FileParameter image) { // verify the required parameter 'userId' is set if (userId == null) throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'userId' when calling InviteApi->InviteUserWithPhoto"); - // verify the required parameter 'image' is set - if (image == null) - throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'image' when calling InviteApi->InviteUserWithPhoto"); - // verify the required parameter 'data' is set if (data == null) throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'data' when calling InviteApi->InviteUserWithPhoto"); + // verify the required parameter 'image' is set + if (image == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'image' when calling InviteApi->InviteUserWithPhoto"); + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1415,8 +1415,8 @@ public VRChat.API.Client.ApiResponse InviteUserWithPhotoWithHt if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("userId", VRChat.API.Client.ClientUtils.ParameterToString(userId)); // path parameter - localVarRequestOptions.FileParameters.Add("image", image); localVarRequestOptions.FormParameters.Add("data", VRChat.API.Client.ClientUtils.ParameterToString(data)); // form parameter + localVarRequestOptions.FileParameters.Add("image", image); // authentication (authCookie) required // cookie parameter support @@ -1442,13 +1442,13 @@ public VRChat.API.Client.ApiResponse InviteUserWithPhotoWithHt /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Cancellation Token to cancel the request. /// Task of SentNotification - public async System.Threading.Tasks.Task InviteUserWithPhotoAsync(string userId, FileParameter image, InviteRequest data, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task InviteUserWithPhotoAsync(string userId, InviteRequest data, FileParameter image, System.Threading.CancellationToken cancellationToken = default) { - VRChat.API.Client.ApiResponse localVarResponse = await InviteUserWithPhotoWithHttpInfoAsync(userId, image, data, cancellationToken).ConfigureAwait(false); + VRChat.API.Client.ApiResponse localVarResponse = await InviteUserWithPhotoWithHttpInfoAsync(userId, data, image, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1457,24 +1457,24 @@ public async System.Threading.Tasks.Task InviteUserWithPhotoAs /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Cancellation Token to cancel the request. /// Task of ApiResponse (SentNotification) - public async System.Threading.Tasks.Task> InviteUserWithPhotoWithHttpInfoAsync(string userId, FileParameter image, InviteRequest data, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> InviteUserWithPhotoWithHttpInfoAsync(string userId, InviteRequest data, FileParameter image, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'userId' is set if (userId == null) throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'userId' when calling InviteApi->InviteUserWithPhoto"); - // verify the required parameter 'image' is set - if (image == null) - throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'image' when calling InviteApi->InviteUserWithPhoto"); - // verify the required parameter 'data' is set if (data == null) throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'data' when calling InviteApi->InviteUserWithPhoto"); + // verify the required parameter 'image' is set + if (image == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'image' when calling InviteApi->InviteUserWithPhoto"); + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); @@ -1495,8 +1495,8 @@ public async System.Threading.Tasks.Task InviteUserWithPhotoAs if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("userId", VRChat.API.Client.ClientUtils.ParameterToString(userId)); // path parameter - localVarRequestOptions.FileParameters.Add("image", image); localVarRequestOptions.FormParameters.Add("data", VRChat.API.Client.ClientUtils.ParameterToString(data)); // form parameter + localVarRequestOptions.FileParameters.Add("image", image); // authentication (authCookie) required // cookie parameter support @@ -1658,12 +1658,12 @@ public async System.Threading.Tasks.Task RequestInviteAsync(string /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Notification - public Notification RequestInviteWithPhoto(string userId, FileParameter image, RequestInviteRequest data) + public Notification RequestInviteWithPhoto(string userId, RequestInviteRequest data, FileParameter image) { - VRChat.API.Client.ApiResponse localVarResponse = RequestInviteWithPhotoWithHttpInfo(userId, image, data); + VRChat.API.Client.ApiResponse localVarResponse = RequestInviteWithPhotoWithHttpInfo(userId, data, image); return localVarResponse.Data; } @@ -1672,23 +1672,23 @@ public Notification RequestInviteWithPhoto(string userId, FileParameter image, R /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// ApiResponse of Notification - public VRChat.API.Client.ApiResponse RequestInviteWithPhotoWithHttpInfo(string userId, FileParameter image, RequestInviteRequest data) + public VRChat.API.Client.ApiResponse RequestInviteWithPhotoWithHttpInfo(string userId, RequestInviteRequest data, FileParameter image) { // verify the required parameter 'userId' is set if (userId == null) throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'userId' when calling InviteApi->RequestInviteWithPhoto"); - // verify the required parameter 'image' is set - if (image == null) - throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'image' when calling InviteApi->RequestInviteWithPhoto"); - // verify the required parameter 'data' is set if (data == null) throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'data' when calling InviteApi->RequestInviteWithPhoto"); + // verify the required parameter 'image' is set + if (image == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'image' when calling InviteApi->RequestInviteWithPhoto"); + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -1707,8 +1707,8 @@ public VRChat.API.Client.ApiResponse RequestInviteWithPhotoWithHtt if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("userId", VRChat.API.Client.ClientUtils.ParameterToString(userId)); // path parameter - localVarRequestOptions.FileParameters.Add("image", image); localVarRequestOptions.FormParameters.Add("data", VRChat.API.Client.ClientUtils.ParameterToString(data)); // form parameter + localVarRequestOptions.FileParameters.Add("image", image); // authentication (authCookie) required // cookie parameter support @@ -1734,13 +1734,13 @@ public VRChat.API.Client.ApiResponse RequestInviteWithPhotoWithHtt /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Cancellation Token to cancel the request. /// Task of Notification - public async System.Threading.Tasks.Task RequestInviteWithPhotoAsync(string userId, FileParameter image, RequestInviteRequest data, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task RequestInviteWithPhotoAsync(string userId, RequestInviteRequest data, FileParameter image, System.Threading.CancellationToken cancellationToken = default) { - VRChat.API.Client.ApiResponse localVarResponse = await RequestInviteWithPhotoWithHttpInfoAsync(userId, image, data, cancellationToken).ConfigureAwait(false); + VRChat.API.Client.ApiResponse localVarResponse = await RequestInviteWithPhotoWithHttpInfoAsync(userId, data, image, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1749,24 +1749,24 @@ public async System.Threading.Tasks.Task RequestInviteWithPhotoAsy /// /// Thrown when fails to make API call /// Must be a valid user ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Notification) - public async System.Threading.Tasks.Task> RequestInviteWithPhotoWithHttpInfoAsync(string userId, FileParameter image, RequestInviteRequest data, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> RequestInviteWithPhotoWithHttpInfoAsync(string userId, RequestInviteRequest data, FileParameter image, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'userId' is set if (userId == null) throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'userId' when calling InviteApi->RequestInviteWithPhoto"); - // verify the required parameter 'image' is set - if (image == null) - throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'image' when calling InviteApi->RequestInviteWithPhoto"); - // verify the required parameter 'data' is set if (data == null) throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'data' when calling InviteApi->RequestInviteWithPhoto"); + // verify the required parameter 'image' is set + if (image == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'image' when calling InviteApi->RequestInviteWithPhoto"); + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); @@ -1787,8 +1787,8 @@ public async System.Threading.Tasks.Task RequestInviteWithPhotoAsy if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("userId", VRChat.API.Client.ClientUtils.ParameterToString(userId)); // path parameter - localVarRequestOptions.FileParameters.Add("image", image); localVarRequestOptions.FormParameters.Add("data", VRChat.API.Client.ClientUtils.ParameterToString(data)); // form parameter + localVarRequestOptions.FileParameters.Add("image", image); // authentication (authCookie) required // cookie parameter support @@ -2097,12 +2097,12 @@ public async System.Threading.Tasks.Task RespondInviteAsync(string /// /// Thrown when fails to make API call /// Must be a valid notification ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Notification - public Notification RespondInviteWithPhoto(string notificationId, FileParameter image, InviteResponse data) + public Notification RespondInviteWithPhoto(string notificationId, InviteResponse data, FileParameter image) { - VRChat.API.Client.ApiResponse localVarResponse = RespondInviteWithPhotoWithHttpInfo(notificationId, image, data); + VRChat.API.Client.ApiResponse localVarResponse = RespondInviteWithPhotoWithHttpInfo(notificationId, data, image); return localVarResponse.Data; } @@ -2111,23 +2111,23 @@ public Notification RespondInviteWithPhoto(string notificationId, FileParameter /// /// Thrown when fails to make API call /// Must be a valid notification ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// ApiResponse of Notification - public VRChat.API.Client.ApiResponse RespondInviteWithPhotoWithHttpInfo(string notificationId, FileParameter image, InviteResponse data) + public VRChat.API.Client.ApiResponse RespondInviteWithPhotoWithHttpInfo(string notificationId, InviteResponse data, FileParameter image) { // verify the required parameter 'notificationId' is set if (notificationId == null) throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'notificationId' when calling InviteApi->RespondInviteWithPhoto"); - // verify the required parameter 'image' is set - if (image == null) - throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'image' when calling InviteApi->RespondInviteWithPhoto"); - // verify the required parameter 'data' is set if (data == null) throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'data' when calling InviteApi->RespondInviteWithPhoto"); + // verify the required parameter 'image' is set + if (image == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'image' when calling InviteApi->RespondInviteWithPhoto"); + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); string[] _contentTypes = new string[] { @@ -2146,8 +2146,8 @@ public VRChat.API.Client.ApiResponse RespondInviteWithPhotoWithHtt if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("notificationId", VRChat.API.Client.ClientUtils.ParameterToString(notificationId)); // path parameter - localVarRequestOptions.FileParameters.Add("image", image); localVarRequestOptions.FormParameters.Add("data", VRChat.API.Client.ClientUtils.ParameterToString(data)); // form parameter + localVarRequestOptions.FileParameters.Add("image", image); // authentication (authCookie) required // cookie parameter support @@ -2173,13 +2173,13 @@ public VRChat.API.Client.ApiResponse RespondInviteWithPhotoWithHtt /// /// Thrown when fails to make API call /// Must be a valid notification ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Cancellation Token to cancel the request. /// Task of Notification - public async System.Threading.Tasks.Task RespondInviteWithPhotoAsync(string notificationId, FileParameter image, InviteResponse data, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task RespondInviteWithPhotoAsync(string notificationId, InviteResponse data, FileParameter image, System.Threading.CancellationToken cancellationToken = default) { - VRChat.API.Client.ApiResponse localVarResponse = await RespondInviteWithPhotoWithHttpInfoAsync(notificationId, image, data, cancellationToken).ConfigureAwait(false); + VRChat.API.Client.ApiResponse localVarResponse = await RespondInviteWithPhotoWithHttpInfoAsync(notificationId, data, image, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2188,24 +2188,24 @@ public async System.Threading.Tasks.Task RespondInviteWithPhotoAsy /// /// Thrown when fails to make API call /// Must be a valid notification ID. - /// The binary blob of the png file. /// + /// The binary blob of the png file. /// Cancellation Token to cancel the request. /// Task of ApiResponse (Notification) - public async System.Threading.Tasks.Task> RespondInviteWithPhotoWithHttpInfoAsync(string notificationId, FileParameter image, InviteResponse data, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> RespondInviteWithPhotoWithHttpInfoAsync(string notificationId, InviteResponse data, FileParameter image, System.Threading.CancellationToken cancellationToken = default) { // verify the required parameter 'notificationId' is set if (notificationId == null) throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'notificationId' when calling InviteApi->RespondInviteWithPhoto"); - // verify the required parameter 'image' is set - if (image == null) - throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'image' when calling InviteApi->RespondInviteWithPhoto"); - // verify the required parameter 'data' is set if (data == null) throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'data' when calling InviteApi->RespondInviteWithPhoto"); + // verify the required parameter 'image' is set + if (image == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'image' when calling InviteApi->RespondInviteWithPhoto"); + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); @@ -2226,8 +2226,8 @@ public async System.Threading.Tasks.Task RespondInviteWithPhotoAsy if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.PathParameters.Add("notificationId", VRChat.API.Client.ClientUtils.ParameterToString(notificationId)); // path parameter - localVarRequestOptions.FileParameters.Add("image", image); localVarRequestOptions.FormParameters.Add("data", VRChat.API.Client.ClientUtils.ParameterToString(data)); // form parameter + localVarRequestOptions.FileParameters.Add("image", image); // authentication (authCookie) required // cookie parameter support diff --git a/src/VRChat.API/Api/JamsApi.cs b/src/VRChat.API/Api/JamsApi.cs index a696dc7f..2bdd4241 100644 --- a/src/VRChat.API/Api/JamsApi.cs +++ b/src/VRChat.API/Api/JamsApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/MiscellaneousApi.cs b/src/VRChat.API/Api/MiscellaneousApi.cs index 369f8c97..ce0da33d 100644 --- a/src/VRChat.API/Api/MiscellaneousApi.cs +++ b/src/VRChat.API/Api/MiscellaneousApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/NotificationsApi.cs b/src/VRChat.API/Api/NotificationsApi.cs index fabebadc..075ded6c 100644 --- a/src/VRChat.API/Api/NotificationsApi.cs +++ b/src/VRChat.API/Api/NotificationsApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/PlayermoderationApi.cs b/src/VRChat.API/Api/PlayermoderationApi.cs index c52d0729..09d4f6c2 100644 --- a/src/VRChat.API/Api/PlayermoderationApi.cs +++ b/src/VRChat.API/Api/PlayermoderationApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -54,10 +54,9 @@ public interface IPlayermoderationApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Must be one of PlayerModerationType. (optional) - /// Must be valid UserID. Trying to view someone else's moderations results with \"Can't view someone else's player moderations\" error. (optional) /// Must be valid UserID. (optional) /// List<PlayerModeration> - List GetPlayerModerations(PlayerModerationType? type = default, string? sourceUserId = default, string? targetUserId = default); + List GetPlayerModerations(PlayerModerationType? type = default, string? targetUserId = default); /// /// Search Player Moderations @@ -67,10 +66,9 @@ public interface IPlayermoderationApiSync : IApiAccessor /// /// Thrown when fails to make API call /// Must be one of PlayerModerationType. (optional) - /// Must be valid UserID. Trying to view someone else's moderations results with \"Can't view someone else's player moderations\" error. (optional) /// Must be valid UserID. (optional) /// ApiResponse of List<PlayerModeration> - ApiResponse> GetPlayerModerationsWithHttpInfo(PlayerModerationType? type = default, string? sourceUserId = default, string? targetUserId = default); + ApiResponse> GetPlayerModerationsWithHttpInfo(PlayerModerationType? type = default, string? targetUserId = default); /// /// Moderate User /// @@ -151,11 +149,10 @@ public interface IPlayermoderationApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Must be one of PlayerModerationType. (optional) - /// Must be valid UserID. Trying to view someone else's moderations results with \"Can't view someone else's player moderations\" error. (optional) /// Must be valid UserID. (optional) /// Cancellation Token to cancel the request. /// Task of List<PlayerModeration> - System.Threading.Tasks.Task> GetPlayerModerationsAsync(PlayerModerationType? type = default, string? sourceUserId = default, string? targetUserId = default, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task> GetPlayerModerationsAsync(PlayerModerationType? type = default, string? targetUserId = default, System.Threading.CancellationToken cancellationToken = default); /// /// Search Player Moderations @@ -165,11 +162,10 @@ public interface IPlayermoderationApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// Must be one of PlayerModerationType. (optional) - /// Must be valid UserID. Trying to view someone else's moderations results with \"Can't view someone else's player moderations\" error. (optional) /// Must be valid UserID. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<PlayerModeration>) - System.Threading.Tasks.Task>> GetPlayerModerationsWithHttpInfoAsync(PlayerModerationType? type = default, string? sourceUserId = default, string? targetUserId = default, System.Threading.CancellationToken cancellationToken = default); + System.Threading.Tasks.Task>> GetPlayerModerationsWithHttpInfoAsync(PlayerModerationType? type = default, string? targetUserId = default, System.Threading.CancellationToken cancellationToken = default); /// /// Moderate User /// @@ -547,12 +543,11 @@ public async System.Threading.Tasks.Task ClearAllPlayerModerationsAsync /// /// Thrown when fails to make API call /// Must be one of PlayerModerationType. (optional) - /// Must be valid UserID. Trying to view someone else's moderations results with \"Can't view someone else's player moderations\" error. (optional) /// Must be valid UserID. (optional) /// List<PlayerModeration> - public List GetPlayerModerations(PlayerModerationType? type = default, string? sourceUserId = default, string? targetUserId = default) + public List GetPlayerModerations(PlayerModerationType? type = default, string? targetUserId = default) { - VRChat.API.Client.ApiResponse> localVarResponse = GetPlayerModerationsWithHttpInfo(type, sourceUserId, targetUserId); + VRChat.API.Client.ApiResponse> localVarResponse = GetPlayerModerationsWithHttpInfo(type, targetUserId); return localVarResponse.Data; } @@ -561,10 +556,9 @@ public List GetPlayerModerations(PlayerModerationType? type = /// /// Thrown when fails to make API call /// Must be one of PlayerModerationType. (optional) - /// Must be valid UserID. Trying to view someone else's moderations results with \"Can't view someone else's player moderations\" error. (optional) /// Must be valid UserID. (optional) /// ApiResponse of List<PlayerModeration> - public VRChat.API.Client.ApiResponse> GetPlayerModerationsWithHttpInfo(PlayerModerationType? type = default, string? sourceUserId = default, string? targetUserId = default) + public VRChat.API.Client.ApiResponse> GetPlayerModerationsWithHttpInfo(PlayerModerationType? type = default, string? targetUserId = default) { VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); @@ -586,10 +580,6 @@ public VRChat.API.Client.ApiResponse> GetPlayerModeration { localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "type", type)); } - if (sourceUserId != null) - { - localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "sourceUserId", sourceUserId)); - } if (targetUserId != null) { localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "targetUserId", targetUserId)); @@ -619,13 +609,12 @@ public VRChat.API.Client.ApiResponse> GetPlayerModeration /// /// Thrown when fails to make API call /// Must be one of PlayerModerationType. (optional) - /// Must be valid UserID. Trying to view someone else's moderations results with \"Can't view someone else's player moderations\" error. (optional) /// Must be valid UserID. (optional) /// Cancellation Token to cancel the request. /// Task of List<PlayerModeration> - public async System.Threading.Tasks.Task> GetPlayerModerationsAsync(PlayerModerationType? type = default, string? sourceUserId = default, string? targetUserId = default, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task> GetPlayerModerationsAsync(PlayerModerationType? type = default, string? targetUserId = default, System.Threading.CancellationToken cancellationToken = default) { - VRChat.API.Client.ApiResponse> localVarResponse = await GetPlayerModerationsWithHttpInfoAsync(type, sourceUserId, targetUserId, cancellationToken).ConfigureAwait(false); + VRChat.API.Client.ApiResponse> localVarResponse = await GetPlayerModerationsWithHttpInfoAsync(type, targetUserId, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -634,11 +623,10 @@ public async System.Threading.Tasks.Task> GetPlayerModera /// /// Thrown when fails to make API call /// Must be one of PlayerModerationType. (optional) - /// Must be valid UserID. Trying to view someone else's moderations results with \"Can't view someone else's player moderations\" error. (optional) /// Must be valid UserID. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<PlayerModeration>) - public async System.Threading.Tasks.Task>> GetPlayerModerationsWithHttpInfoAsync(PlayerModerationType? type = default, string? sourceUserId = default, string? targetUserId = default, System.Threading.CancellationToken cancellationToken = default) + public async System.Threading.Tasks.Task>> GetPlayerModerationsWithHttpInfoAsync(PlayerModerationType? type = default, string? targetUserId = default, System.Threading.CancellationToken cancellationToken = default) { VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); @@ -662,10 +650,6 @@ public async System.Threading.Tasks.Task> GetPlayerModera { localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "type", type)); } - if (sourceUserId != null) - { - localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "sourceUserId", sourceUserId)); - } if (targetUserId != null) { localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "targetUserId", targetUserId)); diff --git a/src/VRChat.API/Api/PrintsApi.cs b/src/VRChat.API/Api/PrintsApi.cs index 28c17354..57b494e1 100644 --- a/src/VRChat.API/Api/PrintsApi.cs +++ b/src/VRChat.API/Api/PrintsApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -1077,11 +1077,11 @@ public VRChat.API.Client.ApiResponse UploadPrintWithHttpInfo(FileParamete if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.FileParameters.Add("image", image); - localVarRequestOptions.FormParameters.Add("timestamp", VRChat.API.Client.ClientUtils.ParameterToString(timestamp)); // form parameter if (note != null) { localVarRequestOptions.FormParameters.Add("note", VRChat.API.Client.ClientUtils.ParameterToString(note)); // form parameter } + localVarRequestOptions.FormParameters.Add("timestamp", VRChat.API.Client.ClientUtils.ParameterToString(timestamp)); // form parameter if (worldId != null) { localVarRequestOptions.FormParameters.Add("worldId", VRChat.API.Client.ClientUtils.ParameterToString(worldId)); // form parameter @@ -1164,11 +1164,11 @@ public async System.Threading.Tasks.Task UploadPrintAsync(FileParameter i if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); localVarRequestOptions.FileParameters.Add("image", image); - localVarRequestOptions.FormParameters.Add("timestamp", VRChat.API.Client.ClientUtils.ParameterToString(timestamp)); // form parameter if (note != null) { localVarRequestOptions.FormParameters.Add("note", VRChat.API.Client.ClientUtils.ParameterToString(note)); // form parameter } + localVarRequestOptions.FormParameters.Add("timestamp", VRChat.API.Client.ClientUtils.ParameterToString(timestamp)); // form parameter if (worldId != null) { localVarRequestOptions.FormParameters.Add("worldId", VRChat.API.Client.ClientUtils.ParameterToString(worldId)); // form parameter diff --git a/src/VRChat.API/Api/PropsApi.cs b/src/VRChat.API/Api/PropsApi.cs index 757f9bf0..64951d34 100644 --- a/src/VRChat.API/Api/PropsApi.cs +++ b/src/VRChat.API/Api/PropsApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/UsersApi.cs b/src/VRChat.API/Api/UsersApi.cs index 24fabcee..f4b05595 100644 --- a/src/VRChat.API/Api/UsersApi.cs +++ b/src/VRChat.API/Api/UsersApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -97,6 +97,77 @@ public interface IUsersApiSync : IApiAccessor /// ApiResponse of Object(void) ApiResponse DeleteUserPersistenceWithHttpInfo(string userId, string worldId); /// + /// Get User Mutual Friends + /// + /// + /// Gets a list of mutual friends between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// List<MutualFriend> + List GetMutualFriends(string userId, int? n = default, int? offset = default); + + /// + /// Get User Mutual Friends + /// + /// + /// Gets a list of mutual friends between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// ApiResponse of List<MutualFriend> + ApiResponse> GetMutualFriendsWithHttpInfo(string userId, int? n = default, int? offset = default); + /// + /// Get User Mutual Groups + /// + /// + /// Gets a list of mutual groups between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// List<LimitedUserGroups> + List GetMutualGroups(string userId, int? n = default, int? offset = default); + + /// + /// Get User Mutual Groups + /// + /// + /// Gets a list of mutual groups between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// ApiResponse of List<LimitedUserGroups> + ApiResponse> GetMutualGroupsWithHttpInfo(string userId, int? n = default, int? offset = default); + /// + /// Get User Mutuals + /// + /// + /// Gets the counts of mutuals between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// Mutuals + Mutuals GetMutuals(string userId); + + /// + /// Get User Mutuals + /// + /// + /// Gets the counts of mutuals between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// ApiResponse of Mutuals + ApiResponse GetMutualsWithHttpInfo(string userId); + /// /// Get User by ID /// /// @@ -524,6 +595,83 @@ public interface IUsersApiAsync : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> DeleteUserPersistenceWithHttpInfoAsync(string userId, string worldId, System.Threading.CancellationToken cancellationToken = default); /// + /// Get User Mutual Friends + /// + /// + /// Gets a list of mutual friends between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// Cancellation Token to cancel the request. + /// Task of List<MutualFriend> + System.Threading.Tasks.Task> GetMutualFriendsAsync(string userId, int? n = default, int? offset = default, System.Threading.CancellationToken cancellationToken = default); + + /// + /// Get User Mutual Friends + /// + /// + /// Gets a list of mutual friends between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<MutualFriend>) + System.Threading.Tasks.Task>> GetMutualFriendsWithHttpInfoAsync(string userId, int? n = default, int? offset = default, System.Threading.CancellationToken cancellationToken = default); + /// + /// Get User Mutual Groups + /// + /// + /// Gets a list of mutual groups between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// Cancellation Token to cancel the request. + /// Task of List<LimitedUserGroups> + System.Threading.Tasks.Task> GetMutualGroupsAsync(string userId, int? n = default, int? offset = default, System.Threading.CancellationToken cancellationToken = default); + + /// + /// Get User Mutual Groups + /// + /// + /// Gets a list of mutual groups between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<LimitedUserGroups>) + System.Threading.Tasks.Task>> GetMutualGroupsWithHttpInfoAsync(string userId, int? n = default, int? offset = default, System.Threading.CancellationToken cancellationToken = default); + /// + /// Get User Mutuals + /// + /// + /// Gets the counts of mutuals between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// Cancellation Token to cancel the request. + /// Task of Mutuals + System.Threading.Tasks.Task GetMutualsAsync(string userId, System.Threading.CancellationToken cancellationToken = default); + + /// + /// Get User Mutuals + /// + /// + /// Gets the counts of mutuals between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Mutuals) + System.Threading.Tasks.Task> GetMutualsWithHttpInfoAsync(string userId, System.Threading.CancellationToken cancellationToken = default); + /// /// Get User by ID /// /// @@ -1530,6 +1678,435 @@ public async System.Threading.Tasks.Task DeleteUserPersistenceAsync(string userI return localVarResponse; } + /// + /// Get User Mutual Friends Gets a list of mutual friends between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// List<MutualFriend> + public List GetMutualFriends(string userId, int? n = default, int? offset = default) + { + VRChat.API.Client.ApiResponse> localVarResponse = GetMutualFriendsWithHttpInfo(userId, n, offset); + return localVarResponse.Data; + } + + /// + /// Get User Mutual Friends Gets a list of mutual friends between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// ApiResponse of List<MutualFriend> + public VRChat.API.Client.ApiResponse> GetMutualFriendsWithHttpInfo(string userId, int? n = default, int? offset = default) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetMutualFriends"); + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("userId", VRChat.API.Client.ClientUtils.ParameterToString(userId)); // path parameter + if (n != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "n", n)); + } + if (offset != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "offset", offset)); + } + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/users/{userId}/mutuals/friends", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMutualFriends", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get User Mutual Friends Gets a list of mutual friends between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// Cancellation Token to cancel the request. + /// Task of List<MutualFriend> + public async System.Threading.Tasks.Task> GetMutualFriendsAsync(string userId, int? n = default, int? offset = default, System.Threading.CancellationToken cancellationToken = default) + { + VRChat.API.Client.ApiResponse> localVarResponse = await GetMutualFriendsWithHttpInfoAsync(userId, n, offset, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get User Mutual Friends Gets a list of mutual friends between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<MutualFriend>) + public async System.Threading.Tasks.Task>> GetMutualFriendsWithHttpInfoAsync(string userId, int? n = default, int? offset = default, System.Threading.CancellationToken cancellationToken = default) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetMutualFriends"); + + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("userId", VRChat.API.Client.ClientUtils.ParameterToString(userId)); // path parameter + if (n != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "n", n)); + } + if (offset != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "offset", offset)); + } + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync>("/users/{userId}/mutuals/friends", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMutualFriends", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get User Mutual Groups Gets a list of mutual groups between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// List<LimitedUserGroups> + public List GetMutualGroups(string userId, int? n = default, int? offset = default) + { + VRChat.API.Client.ApiResponse> localVarResponse = GetMutualGroupsWithHttpInfo(userId, n, offset); + return localVarResponse.Data; + } + + /// + /// Get User Mutual Groups Gets a list of mutual groups between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// ApiResponse of List<LimitedUserGroups> + public VRChat.API.Client.ApiResponse> GetMutualGroupsWithHttpInfo(string userId, int? n = default, int? offset = default) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetMutualGroups"); + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("userId", VRChat.API.Client.ClientUtils.ParameterToString(userId)); // path parameter + if (n != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "n", n)); + } + if (offset != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "offset", offset)); + } + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/users/{userId}/mutuals/groups", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMutualGroups", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get User Mutual Groups Gets a list of mutual groups between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// Cancellation Token to cancel the request. + /// Task of List<LimitedUserGroups> + public async System.Threading.Tasks.Task> GetMutualGroupsAsync(string userId, int? n = default, int? offset = default, System.Threading.CancellationToken cancellationToken = default) + { + VRChat.API.Client.ApiResponse> localVarResponse = await GetMutualGroupsWithHttpInfoAsync(userId, n, offset, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get User Mutual Groups Gets a list of mutual groups between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// The number of objects to return. (optional, default to 60) + /// A zero-based offset from the default object sorting from where search results start. (optional) + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<LimitedUserGroups>) + public async System.Threading.Tasks.Task>> GetMutualGroupsWithHttpInfoAsync(string userId, int? n = default, int? offset = default, System.Threading.CancellationToken cancellationToken = default) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetMutualGroups"); + + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("userId", VRChat.API.Client.ClientUtils.ParameterToString(userId)); // path parameter + if (n != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "n", n)); + } + if (offset != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "offset", offset)); + } + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync>("/users/{userId}/mutuals/groups", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMutualGroups", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get User Mutuals Gets the counts of mutuals between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// Mutuals + public Mutuals GetMutuals(string userId) + { + VRChat.API.Client.ApiResponse localVarResponse = GetMutualsWithHttpInfo(userId); + return localVarResponse.Data; + } + + /// + /// Get User Mutuals Gets the counts of mutuals between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// ApiResponse of Mutuals + public VRChat.API.Client.ApiResponse GetMutualsWithHttpInfo(string userId) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetMutuals"); + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("userId", VRChat.API.Client.ClientUtils.ParameterToString(userId)); // path parameter + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/users/{userId}/mutuals", localVarRequestOptions, this.Configuration); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMutuals", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + + /// + /// Get User Mutuals Gets the counts of mutuals between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// Cancellation Token to cancel the request. + /// Task of Mutuals + public async System.Threading.Tasks.Task GetMutualsAsync(string userId, System.Threading.CancellationToken cancellationToken = default) + { + VRChat.API.Client.ApiResponse localVarResponse = await GetMutualsWithHttpInfoAsync(userId, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Get User Mutuals Gets the counts of mutuals between the logged in user and the specified user + /// + /// Thrown when fails to make API call + /// Must be a valid user ID. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Mutuals) + public async System.Threading.Tasks.Task> GetMutualsWithHttpInfoAsync(string userId, System.Threading.CancellationToken cancellationToken = default) + { + // verify the required parameter 'userId' is set + if (userId == null) + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'userId' when calling UsersApi->GetMutuals"); + + + VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); + + string[] _contentTypes = new string[] { + }; + + // to determine the Accept header + string[] _accepts = new string[] { + "application/json" + }; + + + var localVarContentType = VRChat.API.Client.ClientUtils.SelectHeaderContentType(_contentTypes); + if (localVarContentType != null) localVarRequestOptions.HeaderParameters.Add("Content-Type", localVarContentType); + + var localVarAccept = VRChat.API.Client.ClientUtils.SelectHeaderAccept(_accepts); + if (localVarAccept != null) localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); + + localVarRequestOptions.PathParameters.Add("userId", VRChat.API.Client.ClientUtils.ParameterToString(userId)); // path parameter + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "api.vrchat.cloud")); + } + + // make the HTTP request + + var localVarResponse = await this.AsynchronousClient.GetAsync("/users/{userId}/mutuals", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetMutuals", localVarResponse); + if (_exception != null) throw _exception; + } + + return localVarResponse; + } + /// /// Get User by ID Get public user information about a specific user using their ID. /// diff --git a/src/VRChat.API/Api/WorldsApi.cs b/src/VRChat.API/Api/WorldsApi.cs index 5f571b72..95e41631 100644 --- a/src/VRChat.API/Api/WorldsApi.cs +++ b/src/VRChat.API/Api/WorldsApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/ApiClient.cs b/src/VRChat.API/Client/ApiClient.cs index 9a0c4f77..94c0ed45 100644 --- a/src/VRChat.API/Client/ApiClient.cs +++ b/src/VRChat.API/Client/ApiClient.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/ApiException.cs b/src/VRChat.API/Client/ApiException.cs index 49dd7c9b..486c72dd 100644 --- a/src/VRChat.API/Client/ApiException.cs +++ b/src/VRChat.API/Client/ApiException.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/ApiResponse.cs b/src/VRChat.API/Client/ApiResponse.cs index 36380581..3dca2343 100644 --- a/src/VRChat.API/Client/ApiResponse.cs +++ b/src/VRChat.API/Client/ApiResponse.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/ClientUtils.cs b/src/VRChat.API/Client/ClientUtils.cs index 6df02001..57f69e14 100644 --- a/src/VRChat.API/Client/ClientUtils.cs +++ b/src/VRChat.API/Client/ClientUtils.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/Configuration.cs b/src/VRChat.API/Client/Configuration.cs index 3afab671..6d2167c5 100644 --- a/src/VRChat.API/Client/Configuration.cs +++ b/src/VRChat.API/Client/Configuration.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,7 +33,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "2.20.5"; + public const string Version = "2.20.7-nightly.3"; /// /// Identifier for ISO 8601 DateTime Format @@ -539,8 +539,8 @@ public static string ToDebugReport() string report = "C# SDK (VRChat.API) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; - report += " Version of the API: 1.20.5\n"; - report += " SDK Package Version: 2.20.5\n"; + report += " Version of the API: 1.20.7-nightly.3\n"; + report += " SDK Package Version: 2.20.7-nightly.3\n"; return report; } diff --git a/src/VRChat.API/Client/ExceptionFactory.cs b/src/VRChat.API/Client/ExceptionFactory.cs index b59d6767..b304ccc7 100644 --- a/src/VRChat.API/Client/ExceptionFactory.cs +++ b/src/VRChat.API/Client/ExceptionFactory.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/FileParameter.cs b/src/VRChat.API/Client/FileParameter.cs index 6f614fa6..4ab3719f 100644 --- a/src/VRChat.API/Client/FileParameter.cs +++ b/src/VRChat.API/Client/FileParameter.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/GlobalConfiguration.cs b/src/VRChat.API/Client/GlobalConfiguration.cs index 807f25e4..e38f8149 100644 --- a/src/VRChat.API/Client/GlobalConfiguration.cs +++ b/src/VRChat.API/Client/GlobalConfiguration.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/IApiAccessor.cs b/src/VRChat.API/Client/IApiAccessor.cs index 332c3b21..9884d2f9 100644 --- a/src/VRChat.API/Client/IApiAccessor.cs +++ b/src/VRChat.API/Client/IApiAccessor.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/IAsynchronousClient.cs b/src/VRChat.API/Client/IAsynchronousClient.cs index 527a1e74..b12b6052 100644 --- a/src/VRChat.API/Client/IAsynchronousClient.cs +++ b/src/VRChat.API/Client/IAsynchronousClient.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/IReadableConfiguration.cs b/src/VRChat.API/Client/IReadableConfiguration.cs index ccc24170..a25fe76f 100644 --- a/src/VRChat.API/Client/IReadableConfiguration.cs +++ b/src/VRChat.API/Client/IReadableConfiguration.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/ISynchronousClient.cs b/src/VRChat.API/Client/ISynchronousClient.cs index 69287afc..a4c0895b 100644 --- a/src/VRChat.API/Client/ISynchronousClient.cs +++ b/src/VRChat.API/Client/ISynchronousClient.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/Multimap.cs b/src/VRChat.API/Client/Multimap.cs index 99046068..287836c6 100644 --- a/src/VRChat.API/Client/Multimap.cs +++ b/src/VRChat.API/Client/Multimap.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/OpenAPIDateConverter.cs b/src/VRChat.API/Client/OpenAPIDateConverter.cs index 1167bf66..cbefe2e0 100644 --- a/src/VRChat.API/Client/OpenAPIDateConverter.cs +++ b/src/VRChat.API/Client/OpenAPIDateConverter.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/RequestOptions.cs b/src/VRChat.API/Client/RequestOptions.cs index 20a19df8..4ff46e2c 100644 --- a/src/VRChat.API/Client/RequestOptions.cs +++ b/src/VRChat.API/Client/RequestOptions.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/RetryConfiguration.cs b/src/VRChat.API/Client/RetryConfiguration.cs index 798107df..04ab9919 100644 --- a/src/VRChat.API/Client/RetryConfiguration.cs +++ b/src/VRChat.API/Client/RetryConfiguration.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/WebRequestPathBuilder.cs b/src/VRChat.API/Client/WebRequestPathBuilder.cs index 559575f6..f296788a 100644 --- a/src/VRChat.API/Client/WebRequestPathBuilder.cs +++ b/src/VRChat.API/Client/WebRequestPathBuilder.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfig.cs b/src/VRChat.API/Model/APIConfig.cs index 1cb07c92..0497f7b9 100644 --- a/src/VRChat.API/Model/APIConfig.cs +++ b/src/VRChat.API/Model/APIConfig.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -49,9 +49,9 @@ protected APIConfig() { } /// ageVerificationStatusVisible (required). /// Max retries for avatar analysis requests (required). /// Interval between retries for avatar analysis requests (required). - /// Public Announcements (required). /// Unknown (required). /// Unknown (required). + /// Public Announcements (required). /// List of supported Languages (required). /// List of supported Languages (required). /// avatarPerfLimiter (required). @@ -86,10 +86,10 @@ protected APIConfig() { } /// Unknown (default to false). /// Toggles if copying avatars should be disabled (required) (default to false). /// Toggles if avatar gating should be disabled. Avatar gating restricts uploading of avatars to people with the `system_avatar_access` Tag or `admin_avatar_access` Tag (required) (default to false). + /// Unknown (default to true). /// Toggles if the Community Labs should be disabled (required) (default to false). /// Toggles if promotion out of Community Labs should be disabled (required) (default to false). /// Unknown (required) (default to false). - /// Unknown (default to true). /// Toggles if Analytics should be disabled. (required) (default to false). /// Toggles if feedback gating should be disabled. Feedback gating restricts submission of feedback (reporting a World or User) to people with the `system_feedback_access` Tag. (required) (default to false). /// Unknown, probably toggles compilation of frontend web builds? So internal flag? (required) (default to false). @@ -123,6 +123,9 @@ protected APIConfig() { } /// offlineAnalysis (required). /// Unknown (required). /// Unknown (required). + /// Currently used youtube-dl.exe hash in SHA1-delimited format (required). + /// Currently used youtube-dl.exe version (required). + /// Public key, hex encoded (required). /// reportCategories (required). /// URL to the report form (required) (default to "https://help.vrchat.com/hc/en-us/requests/new?ticket_form_id=1500000182242&tf_360056455174=user_report&tf_360057451993={userId}&tf_1500001445142={reportedId}&tf_subject={reason} {category} By {contentType} {reportedName}&tf_description={description}"). /// reportOptions (required). @@ -135,8 +138,8 @@ protected APIConfig() { } /// A list of explicitly allowed origins that worlds can request strings from via the Udon's [VRCStringDownloader.LoadUrl](https://creators.vrchat.com/worlds/udon/string-loading/#ivrcstringdownload). (required). /// VRChat's support email (required). /// VRChat's support form (required). - /// Unknown (required) (default to true). /// WorldID be \"offline\" on User profiles if you are not friends with that user. (required). + /// Unknown (required) (default to true). /// WorldID be \"offline\" on User profiles if you are not friends with that user. (required). /// Unknown (required). /// Unknown (required). @@ -146,14 +149,11 @@ protected APIConfig() { } /// List of allowed URLs that bypass the \"Allow untrusted URL's\" setting in-game (required). /// Unknown (required) (default to false). /// Download link for game on the Steam website. (required). - /// List of allowed URLs that are allowed to host avatar assets (required). - /// Currently used youtube-dl.exe version (required). - /// Currently used youtube-dl.exe hash in SHA1-delimited format (required). - /// Public key, hex encoded (required). /// Unknown (required) (default to 900). /// Unknown (required) (default to 2). /// Unknown (required) (default to 2). - public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLimiting = true, APIConfigAccessLogsUrls accessLogsUrls = default, string address = default, bool ageVerificationInviteVisible = default, bool ageVerificationP = default, bool ageVerificationStatusVisible = default, int analysisMaxRetries = default, int analysisRetryInterval = default, List announcements = default, int analyticsSegmentNewUIPctOfUsers = default, string analyticsSegmentNewUISalt = default, List availableLanguageCodes = default, List availableLanguages = default, APIConfigAvatarPerfLimiter avatarPerfLimiter = default, int chatboxLogBufferSeconds = 40, string clientApiKey = default, int clientBPSCeiling = 18432, int clientDisconnectTimeout = 30000, bool clientNetDispatchThread = false, bool clientNetDispatchThreadMobile = true, bool clientNetInThread = false, bool clientNetInThread2 = false, bool clientNetInThreadMobile = false, bool clientNetInThreadMobile2 = false, bool clientNetOutThread = false, bool clientNetOutThread2 = false, bool clientNetOutThreadMobile = false, bool clientNetOutThreadMobile2 = false, int clientQR = 1, int clientReservedPlayerBPS = 7168, int clientSentCountAllowance = 15, APIConfigConstants constants = default, string contactEmail = default, string copyrightEmail = default, int currentPrivacyVersion = 1, int currentTOSVersion = default, string defaultAvatar = default, string defaultStickerSet = default, List devLanguageCodes = default, string devSdkUrl = default, string devSdkVersion = default, DateTime disCountdown = default, bool disableAVProInProton = false, bool disableAvatarCopying = false, bool disableAvatarGating = false, bool disableCommunityLabs = false, bool disableCommunityLabsPromotion = false, bool disableEmail = false, bool disableCaptcha = true, bool disableEventStream = false, bool disableFeedbackGating = false, bool disableFrontendBuilds = false, bool disableGiftDrops = false, bool disableHello = false, bool disableOculusSubs = false, bool disableRegistration = false, bool disableSteamNetworking = true, bool disableTwoFactorAuth = false, bool disableUdon = false, bool disableUpgradeAccount = false, string downloadLinkWindows = default, APIConfigDownloadURLList downloadUrls = default, List dynamicWorldRows = default, string economyPauseEnd = default, string economyPauseStart = default, int economyState = 1, APIConfigEvents events = default, bool forceUseLatestWorld = true, string giftDisplayType = default, string googleApiClientId = @"827942544393-r2ouvckvouldn9dg9uruseje575e878f.apps.googleusercontent.com", string homeWorldId = default, string homepageRedirectTarget = @"https://hello.vrchat.com", string hubWorldId = default, List imageHostUrlList = default, string jobsEmail = default, APIConfigMinSupportedClientBuildNumber minSupportedClientBuildNumber = default, string minimumUnityVersionForUploads = @"2019.0.0f1", string moderationEmail = default, string notAllowedToSelectAvatarInPrivateWorldMessage = default, APIConfigOfflineAnalysis offlineAnalysis = default, List photonNameserverOverrides = default, List photonPublicKeys = default, APIConfigReportCategories reportCategories = default, string reportFormUrl = @"https://help.vrchat.com/hc/en-us/requests/new?ticket_form_id=1500000182242&tf_360056455174=user_report&tf_360057451993={userId}&tf_1500001445142={reportedId}&tf_subject={reason} {category} By {contentType} {reportedName}&tf_description={description}", APIConfigReportOptions reportOptions = default, APIConfigReportReasons reportReasons = default, bool requireAgeVerificationBetaTag = default, string sdkDeveloperFaqUrl = default, string sdkDiscordUrl = default, string sdkNotAllowedToPublishMessage = default, string sdkUnityVersion = default, List stringHostUrlList = default, string supportEmail = default, string supportFormUrl = default, bool timekeeping = true, string timeOutWorldId = default, string tutorialWorldId = default, int updateRateMsMaximum = default, int updateRateMsMinimum = default, int updateRateMsNormal = default, int updateRateMsUdonManual = default, int uploadAnalysisPercent = default, List urlList = default, bool useReliableUdpForVoice = false, string viveWindowsUrl = default, List whiteListedAssetUrls = default, string playerUrlResolverVersion = default, string playerUrlResolverSha1 = default, string publicKey = default, int websocketMaxFriendsRefreshDelay = 900, int websocketQuickReconnectTime = 2, int websocketReconnectMaxDelay = 2) + /// List of allowed URLs that are allowed to host avatar assets (required). + public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLimiting = true, APIConfigAccessLogsUrls accessLogsUrls = default, string address = default, bool ageVerificationInviteVisible = default, bool ageVerificationP = default, bool ageVerificationStatusVisible = default, int analysisMaxRetries = default, int analysisRetryInterval = default, int analyticsSegmentNewUIPctOfUsers = default, string analyticsSegmentNewUISalt = default, List announcements = default, List availableLanguageCodes = default, List availableLanguages = default, APIConfigAvatarPerfLimiter avatarPerfLimiter = default, int chatboxLogBufferSeconds = 40, string clientApiKey = default, int clientBPSCeiling = 18432, int clientDisconnectTimeout = 30000, bool clientNetDispatchThread = false, bool clientNetDispatchThreadMobile = true, bool clientNetInThread = false, bool clientNetInThread2 = false, bool clientNetInThreadMobile = false, bool clientNetInThreadMobile2 = false, bool clientNetOutThread = false, bool clientNetOutThread2 = false, bool clientNetOutThreadMobile = false, bool clientNetOutThreadMobile2 = false, int clientQR = 1, int clientReservedPlayerBPS = 7168, int clientSentCountAllowance = 15, APIConfigConstants constants = default, string contactEmail = default, string copyrightEmail = default, int currentPrivacyVersion = 1, int currentTOSVersion = default, string defaultAvatar = default, string defaultStickerSet = default, List devLanguageCodes = default, string devSdkUrl = default, string devSdkVersion = default, DateTime disCountdown = default, bool disableAVProInProton = false, bool disableAvatarCopying = false, bool disableAvatarGating = false, bool disableCaptcha = true, bool disableCommunityLabs = false, bool disableCommunityLabsPromotion = false, bool disableEmail = false, bool disableEventStream = false, bool disableFeedbackGating = false, bool disableFrontendBuilds = false, bool disableGiftDrops = false, bool disableHello = false, bool disableOculusSubs = false, bool disableRegistration = false, bool disableSteamNetworking = true, bool disableTwoFactorAuth = false, bool disableUdon = false, bool disableUpgradeAccount = false, string downloadLinkWindows = default, APIConfigDownloadURLList downloadUrls = default, List dynamicWorldRows = default, string economyPauseEnd = default, string economyPauseStart = default, int economyState = 1, APIConfigEvents events = default, bool forceUseLatestWorld = true, string giftDisplayType = default, string googleApiClientId = @"827942544393-r2ouvckvouldn9dg9uruseje575e878f.apps.googleusercontent.com", string homeWorldId = default, string homepageRedirectTarget = @"https://hello.vrchat.com", string hubWorldId = default, List imageHostUrlList = default, string jobsEmail = default, APIConfigMinSupportedClientBuildNumber minSupportedClientBuildNumber = default, string minimumUnityVersionForUploads = @"2019.0.0f1", string moderationEmail = default, string notAllowedToSelectAvatarInPrivateWorldMessage = default, APIConfigOfflineAnalysis offlineAnalysis = default, List photonNameserverOverrides = default, List photonPublicKeys = default, string playerUrlResolverSha1 = default, string playerUrlResolverVersion = default, string publicKey = default, APIConfigReportCategories reportCategories = default, string reportFormUrl = @"https://help.vrchat.com/hc/en-us/requests/new?ticket_form_id=1500000182242&tf_360056455174=user_report&tf_360057451993={userId}&tf_1500001445142={reportedId}&tf_subject={reason} {category} By {contentType} {reportedName}&tf_description={description}", APIConfigReportOptions reportOptions = default, APIConfigReportReasons reportReasons = default, bool requireAgeVerificationBetaTag = default, string sdkDeveloperFaqUrl = default, string sdkDiscordUrl = default, string sdkNotAllowedToPublishMessage = default, string sdkUnityVersion = default, List stringHostUrlList = default, string supportEmail = default, string supportFormUrl = default, string timeOutWorldId = default, bool timekeeping = true, string tutorialWorldId = default, int updateRateMsMaximum = default, int updateRateMsMinimum = default, int updateRateMsNormal = default, int updateRateMsUdonManual = default, int uploadAnalysisPercent = default, List urlList = default, bool useReliableUdpForVoice = false, string viveWindowsUrl = default, int websocketMaxFriendsRefreshDelay = 900, int websocketQuickReconnectTime = 2, int websocketReconnectMaxDelay = 2, List whiteListedAssetUrls = default) { this.VoiceEnableDegradation = voiceEnableDegradation; this.VoiceEnableReceiverLimiting = voiceEnableReceiverLimiting; @@ -174,12 +174,6 @@ public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLi this.AgeVerificationStatusVisible = ageVerificationStatusVisible; this.AnalysisMaxRetries = analysisMaxRetries; this.AnalysisRetryInterval = analysisRetryInterval; - // to ensure "announcements" is required (not null) - if (announcements == null) - { - throw new ArgumentNullException("announcements is a required property for APIConfig and cannot be null"); - } - this.Announcements = announcements; this.AnalyticsSegmentNewUIPctOfUsers = analyticsSegmentNewUIPctOfUsers; // to ensure "analyticsSegmentNewUISalt" is required (not null) if (analyticsSegmentNewUISalt == null) @@ -187,6 +181,12 @@ public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLi throw new ArgumentNullException("analyticsSegmentNewUISalt is a required property for APIConfig and cannot be null"); } this.AnalyticsSegmentNewUISalt = analyticsSegmentNewUISalt; + // to ensure "announcements" is required (not null) + if (announcements == null) + { + throw new ArgumentNullException("announcements is a required property for APIConfig and cannot be null"); + } + this.Announcements = announcements; // to ensure "availableLanguageCodes" is required (not null) if (availableLanguageCodes == null) { @@ -386,6 +386,24 @@ public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLi throw new ArgumentNullException("photonPublicKeys is a required property for APIConfig and cannot be null"); } this.PhotonPublicKeys = photonPublicKeys; + // to ensure "playerUrlResolverSha1" is required (not null) + if (playerUrlResolverSha1 == null) + { + throw new ArgumentNullException("playerUrlResolverSha1 is a required property for APIConfig and cannot be null"); + } + this.PlayerUrlResolverSha1 = playerUrlResolverSha1; + // to ensure "playerUrlResolverVersion" is required (not null) + if (playerUrlResolverVersion == null) + { + throw new ArgumentNullException("playerUrlResolverVersion is a required property for APIConfig and cannot be null"); + } + this.PlayerUrlResolverVersion = playerUrlResolverVersion; + // to ensure "publicKey" is required (not null) + if (publicKey == null) + { + throw new ArgumentNullException("publicKey is a required property for APIConfig and cannot be null"); + } + this.PublicKey = publicKey; // to ensure "reportCategories" is required (not null) if (reportCategories == null) { @@ -453,13 +471,13 @@ public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLi throw new ArgumentNullException("supportFormUrl is a required property for APIConfig and cannot be null"); } this.SupportFormUrl = supportFormUrl; - this.Timekeeping = timekeeping; // to ensure "timeOutWorldId" is required (not null) if (timeOutWorldId == null) { throw new ArgumentNullException("timeOutWorldId is a required property for APIConfig and cannot be null"); } this.TimeOutWorldId = timeOutWorldId; + this.Timekeeping = timekeeping; // to ensure "tutorialWorldId" is required (not null) if (tutorialWorldId == null) { @@ -484,33 +502,15 @@ public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLi throw new ArgumentNullException("viveWindowsUrl is a required property for APIConfig and cannot be null"); } this.ViveWindowsUrl = viveWindowsUrl; + this.WebsocketMaxFriendsRefreshDelay = websocketMaxFriendsRefreshDelay; + this.WebsocketQuickReconnectTime = websocketQuickReconnectTime; + this.WebsocketReconnectMaxDelay = websocketReconnectMaxDelay; // to ensure "whiteListedAssetUrls" is required (not null) if (whiteListedAssetUrls == null) { throw new ArgumentNullException("whiteListedAssetUrls is a required property for APIConfig and cannot be null"); } this.WhiteListedAssetUrls = whiteListedAssetUrls; - // to ensure "playerUrlResolverVersion" is required (not null) - if (playerUrlResolverVersion == null) - { - throw new ArgumentNullException("playerUrlResolverVersion is a required property for APIConfig and cannot be null"); - } - this.PlayerUrlResolverVersion = playerUrlResolverVersion; - // to ensure "playerUrlResolverSha1" is required (not null) - if (playerUrlResolverSha1 == null) - { - throw new ArgumentNullException("playerUrlResolverSha1 is a required property for APIConfig and cannot be null"); - } - this.PlayerUrlResolverSha1 = playerUrlResolverSha1; - // to ensure "publicKey" is required (not null) - if (publicKey == null) - { - throw new ArgumentNullException("publicKey is a required property for APIConfig and cannot be null"); - } - this.PublicKey = publicKey; - this.WebsocketMaxFriendsRefreshDelay = websocketMaxFriendsRefreshDelay; - this.WebsocketQuickReconnectTime = websocketQuickReconnectTime; - this.WebsocketReconnectMaxDelay = websocketReconnectMaxDelay; this.ClientNetDispatchThread = clientNetDispatchThread; this.ClientNetInThread = clientNetInThread; this.ClientNetInThread2 = clientNetInThread2; @@ -589,13 +589,6 @@ public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLi [DataMember(Name = "analysisRetryInterval", IsRequired = true, EmitDefaultValue = true)] public int AnalysisRetryInterval { get; set; } - /// - /// Public Announcements - /// - /// Public Announcements - [DataMember(Name = "announcements", IsRequired = true, EmitDefaultValue = true)] - public List Announcements { get; set; } - /// /// Unknown /// @@ -610,6 +603,13 @@ public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLi [DataMember(Name = "analyticsSegment_NewUI_Salt", IsRequired = true, EmitDefaultValue = true)] public string AnalyticsSegmentNewUISalt { get; set; } + /// + /// Public Announcements + /// + /// Public Announcements + [DataMember(Name = "announcements", IsRequired = true, EmitDefaultValue = true)] + public List Announcements { get; set; } + /// /// List of supported Languages /// @@ -852,6 +852,13 @@ public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLi [DataMember(Name = "disableAvatarGating", IsRequired = true, EmitDefaultValue = true)] public bool DisableAvatarGating { get; set; } + /// + /// Unknown + /// + /// Unknown + [DataMember(Name = "disableCaptcha", EmitDefaultValue = true)] + public bool DisableCaptcha { get; set; } + /// /// Toggles if the Community Labs should be disabled /// @@ -873,13 +880,6 @@ public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLi [DataMember(Name = "disableEmail", IsRequired = true, EmitDefaultValue = true)] public bool DisableEmail { get; set; } - /// - /// Unknown - /// - /// Unknown - [DataMember(Name = "disableCaptcha", EmitDefaultValue = true)] - public bool DisableCaptcha { get; set; } - /// /// Toggles if Analytics should be disabled. /// @@ -1114,6 +1114,27 @@ public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLi [DataMember(Name = "photonPublicKeys", IsRequired = true, EmitDefaultValue = true)] public List PhotonPublicKeys { get; set; } + /// + /// Currently used youtube-dl.exe hash in SHA1-delimited format + /// + /// Currently used youtube-dl.exe hash in SHA1-delimited format + [DataMember(Name = "player-url-resolver-sha1", IsRequired = true, EmitDefaultValue = true)] + public string PlayerUrlResolverSha1 { get; set; } + + /// + /// Currently used youtube-dl.exe version + /// + /// Currently used youtube-dl.exe version + [DataMember(Name = "player-url-resolver-version", IsRequired = true, EmitDefaultValue = true)] + public string PlayerUrlResolverVersion { get; set; } + + /// + /// Public key, hex encoded + /// + /// Public key, hex encoded + [DataMember(Name = "publicKey", IsRequired = true, EmitDefaultValue = true)] + public string PublicKey { get; set; } + /// /// Gets or Sets ReportCategories /// @@ -1194,13 +1215,6 @@ public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLi [DataMember(Name = "supportFormUrl", IsRequired = true, EmitDefaultValue = true)] public string SupportFormUrl { get; set; } - /// - /// Unknown - /// - /// Unknown - [DataMember(Name = "timekeeping", IsRequired = true, EmitDefaultValue = true)] - public bool Timekeeping { get; set; } - /// /// WorldID be \"offline\" on User profiles if you are not friends with that user. /// @@ -1211,6 +1225,13 @@ public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLi [DataMember(Name = "timeOutWorldId", IsRequired = true, EmitDefaultValue = true)] public string TimeOutWorldId { get; set; } + /// + /// Unknown + /// + /// Unknown + [DataMember(Name = "timekeeping", IsRequired = true, EmitDefaultValue = true)] + public bool Timekeeping { get; set; } + /// /// WorldID be \"offline\" on User profiles if you are not friends with that user. /// @@ -1277,34 +1298,6 @@ public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLi [DataMember(Name = "viveWindowsUrl", IsRequired = true, EmitDefaultValue = true)] public string ViveWindowsUrl { get; set; } - /// - /// List of allowed URLs that are allowed to host avatar assets - /// - /// List of allowed URLs that are allowed to host avatar assets - [DataMember(Name = "whiteListedAssetUrls", IsRequired = true, EmitDefaultValue = true)] - public List WhiteListedAssetUrls { get; set; } - - /// - /// Currently used youtube-dl.exe version - /// - /// Currently used youtube-dl.exe version - [DataMember(Name = "player-url-resolver-version", IsRequired = true, EmitDefaultValue = true)] - public string PlayerUrlResolverVersion { get; set; } - - /// - /// Currently used youtube-dl.exe hash in SHA1-delimited format - /// - /// Currently used youtube-dl.exe hash in SHA1-delimited format - [DataMember(Name = "player-url-resolver-sha1", IsRequired = true, EmitDefaultValue = true)] - public string PlayerUrlResolverSha1 { get; set; } - - /// - /// Public key, hex encoded - /// - /// Public key, hex encoded - [DataMember(Name = "publicKey", IsRequired = true, EmitDefaultValue = true)] - public string PublicKey { get; set; } - /// /// Unknown /// @@ -1326,6 +1319,13 @@ public APIConfig(bool voiceEnableDegradation = false, bool voiceEnableReceiverLi [DataMember(Name = "websocketReconnectMaxDelay", IsRequired = true, EmitDefaultValue = true)] public int WebsocketReconnectMaxDelay { get; set; } + /// + /// List of allowed URLs that are allowed to host avatar assets + /// + /// List of allowed URLs that are allowed to host avatar assets + [DataMember(Name = "whiteListedAssetUrls", IsRequired = true, EmitDefaultValue = true)] + public List WhiteListedAssetUrls { get; set; } + /// /// Returns the string presentation of the object /// @@ -1343,9 +1343,9 @@ public override string ToString() sb.Append(" AgeVerificationStatusVisible: ").Append(AgeVerificationStatusVisible).Append("\n"); sb.Append(" AnalysisMaxRetries: ").Append(AnalysisMaxRetries).Append("\n"); sb.Append(" AnalysisRetryInterval: ").Append(AnalysisRetryInterval).Append("\n"); - sb.Append(" Announcements: ").Append(Announcements).Append("\n"); sb.Append(" AnalyticsSegmentNewUIPctOfUsers: ").Append(AnalyticsSegmentNewUIPctOfUsers).Append("\n"); sb.Append(" AnalyticsSegmentNewUISalt: ").Append(AnalyticsSegmentNewUISalt).Append("\n"); + sb.Append(" Announcements: ").Append(Announcements).Append("\n"); sb.Append(" AvailableLanguageCodes: ").Append(AvailableLanguageCodes).Append("\n"); sb.Append(" AvailableLanguages: ").Append(AvailableLanguages).Append("\n"); sb.Append(" AvatarPerfLimiter: ").Append(AvatarPerfLimiter).Append("\n"); @@ -1380,10 +1380,10 @@ public override string ToString() sb.Append(" DisableAVProInProton: ").Append(DisableAVProInProton).Append("\n"); sb.Append(" DisableAvatarCopying: ").Append(DisableAvatarCopying).Append("\n"); sb.Append(" DisableAvatarGating: ").Append(DisableAvatarGating).Append("\n"); + sb.Append(" DisableCaptcha: ").Append(DisableCaptcha).Append("\n"); sb.Append(" DisableCommunityLabs: ").Append(DisableCommunityLabs).Append("\n"); sb.Append(" DisableCommunityLabsPromotion: ").Append(DisableCommunityLabsPromotion).Append("\n"); sb.Append(" DisableEmail: ").Append(DisableEmail).Append("\n"); - sb.Append(" DisableCaptcha: ").Append(DisableCaptcha).Append("\n"); sb.Append(" DisableEventStream: ").Append(DisableEventStream).Append("\n"); sb.Append(" DisableFeedbackGating: ").Append(DisableFeedbackGating).Append("\n"); sb.Append(" DisableFrontendBuilds: ").Append(DisableFrontendBuilds).Append("\n"); @@ -1417,6 +1417,9 @@ public override string ToString() sb.Append(" OfflineAnalysis: ").Append(OfflineAnalysis).Append("\n"); sb.Append(" PhotonNameserverOverrides: ").Append(PhotonNameserverOverrides).Append("\n"); sb.Append(" PhotonPublicKeys: ").Append(PhotonPublicKeys).Append("\n"); + sb.Append(" PlayerUrlResolverSha1: ").Append(PlayerUrlResolverSha1).Append("\n"); + sb.Append(" PlayerUrlResolverVersion: ").Append(PlayerUrlResolverVersion).Append("\n"); + sb.Append(" PublicKey: ").Append(PublicKey).Append("\n"); sb.Append(" ReportCategories: ").Append(ReportCategories).Append("\n"); sb.Append(" ReportFormUrl: ").Append(ReportFormUrl).Append("\n"); sb.Append(" ReportOptions: ").Append(ReportOptions).Append("\n"); @@ -1429,8 +1432,8 @@ public override string ToString() sb.Append(" StringHostUrlList: ").Append(StringHostUrlList).Append("\n"); sb.Append(" SupportEmail: ").Append(SupportEmail).Append("\n"); sb.Append(" SupportFormUrl: ").Append(SupportFormUrl).Append("\n"); - sb.Append(" Timekeeping: ").Append(Timekeeping).Append("\n"); sb.Append(" TimeOutWorldId: ").Append(TimeOutWorldId).Append("\n"); + sb.Append(" Timekeeping: ").Append(Timekeeping).Append("\n"); sb.Append(" TutorialWorldId: ").Append(TutorialWorldId).Append("\n"); sb.Append(" UpdateRateMsMaximum: ").Append(UpdateRateMsMaximum).Append("\n"); sb.Append(" UpdateRateMsMinimum: ").Append(UpdateRateMsMinimum).Append("\n"); @@ -1440,13 +1443,10 @@ public override string ToString() sb.Append(" UrlList: ").Append(UrlList).Append("\n"); sb.Append(" UseReliableUdpForVoice: ").Append(UseReliableUdpForVoice).Append("\n"); sb.Append(" ViveWindowsUrl: ").Append(ViveWindowsUrl).Append("\n"); - sb.Append(" WhiteListedAssetUrls: ").Append(WhiteListedAssetUrls).Append("\n"); - sb.Append(" PlayerUrlResolverVersion: ").Append(PlayerUrlResolverVersion).Append("\n"); - sb.Append(" PlayerUrlResolverSha1: ").Append(PlayerUrlResolverSha1).Append("\n"); - sb.Append(" PublicKey: ").Append(PublicKey).Append("\n"); sb.Append(" WebsocketMaxFriendsRefreshDelay: ").Append(WebsocketMaxFriendsRefreshDelay).Append("\n"); sb.Append(" WebsocketQuickReconnectTime: ").Append(WebsocketQuickReconnectTime).Append("\n"); sb.Append(" WebsocketReconnectMaxDelay: ").Append(WebsocketReconnectMaxDelay).Append("\n"); + sb.Append(" WhiteListedAssetUrls: ").Append(WhiteListedAssetUrls).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -1520,12 +1520,6 @@ public bool Equals(APIConfig input) this.AnalysisRetryInterval == input.AnalysisRetryInterval || this.AnalysisRetryInterval.Equals(input.AnalysisRetryInterval) ) && - ( - this.Announcements == input.Announcements || - this.Announcements != null && - input.Announcements != null && - this.Announcements.SequenceEqual(input.Announcements) - ) && ( this.AnalyticsSegmentNewUIPctOfUsers == input.AnalyticsSegmentNewUIPctOfUsers || this.AnalyticsSegmentNewUIPctOfUsers.Equals(input.AnalyticsSegmentNewUIPctOfUsers) @@ -1535,6 +1529,12 @@ public bool Equals(APIConfig input) (this.AnalyticsSegmentNewUISalt != null && this.AnalyticsSegmentNewUISalt.Equals(input.AnalyticsSegmentNewUISalt)) ) && + ( + this.Announcements == input.Announcements || + this.Announcements != null && + input.Announcements != null && + this.Announcements.SequenceEqual(input.Announcements) + ) && ( this.AvailableLanguageCodes == input.AvailableLanguageCodes || this.AvailableLanguageCodes != null && @@ -1687,6 +1687,10 @@ public bool Equals(APIConfig input) this.DisableAvatarGating == input.DisableAvatarGating || this.DisableAvatarGating.Equals(input.DisableAvatarGating) ) && + ( + this.DisableCaptcha == input.DisableCaptcha || + this.DisableCaptcha.Equals(input.DisableCaptcha) + ) && ( this.DisableCommunityLabs == input.DisableCommunityLabs || this.DisableCommunityLabs.Equals(input.DisableCommunityLabs) @@ -1699,10 +1703,6 @@ public bool Equals(APIConfig input) this.DisableEmail == input.DisableEmail || this.DisableEmail.Equals(input.DisableEmail) ) && - ( - this.DisableCaptcha == input.DisableCaptcha || - this.DisableCaptcha.Equals(input.DisableCaptcha) - ) && ( this.DisableEventStream == input.DisableEventStream || this.DisableEventStream.Equals(input.DisableEventStream) @@ -1859,6 +1859,21 @@ public bool Equals(APIConfig input) input.PhotonPublicKeys != null && this.PhotonPublicKeys.SequenceEqual(input.PhotonPublicKeys) ) && + ( + this.PlayerUrlResolverSha1 == input.PlayerUrlResolverSha1 || + (this.PlayerUrlResolverSha1 != null && + this.PlayerUrlResolverSha1.Equals(input.PlayerUrlResolverSha1)) + ) && + ( + this.PlayerUrlResolverVersion == input.PlayerUrlResolverVersion || + (this.PlayerUrlResolverVersion != null && + this.PlayerUrlResolverVersion.Equals(input.PlayerUrlResolverVersion)) + ) && + ( + this.PublicKey == input.PublicKey || + (this.PublicKey != null && + this.PublicKey.Equals(input.PublicKey)) + ) && ( this.ReportCategories == input.ReportCategories || (this.ReportCategories != null && @@ -1919,15 +1934,15 @@ public bool Equals(APIConfig input) (this.SupportFormUrl != null && this.SupportFormUrl.Equals(input.SupportFormUrl)) ) && - ( - this.Timekeeping == input.Timekeeping || - this.Timekeeping.Equals(input.Timekeeping) - ) && ( this.TimeOutWorldId == input.TimeOutWorldId || (this.TimeOutWorldId != null && this.TimeOutWorldId.Equals(input.TimeOutWorldId)) ) && + ( + this.Timekeeping == input.Timekeeping || + this.Timekeeping.Equals(input.Timekeeping) + ) && ( this.TutorialWorldId == input.TutorialWorldId || (this.TutorialWorldId != null && @@ -1968,27 +1983,6 @@ public bool Equals(APIConfig input) (this.ViveWindowsUrl != null && this.ViveWindowsUrl.Equals(input.ViveWindowsUrl)) ) && - ( - this.WhiteListedAssetUrls == input.WhiteListedAssetUrls || - this.WhiteListedAssetUrls != null && - input.WhiteListedAssetUrls != null && - this.WhiteListedAssetUrls.SequenceEqual(input.WhiteListedAssetUrls) - ) && - ( - this.PlayerUrlResolverVersion == input.PlayerUrlResolverVersion || - (this.PlayerUrlResolverVersion != null && - this.PlayerUrlResolverVersion.Equals(input.PlayerUrlResolverVersion)) - ) && - ( - this.PlayerUrlResolverSha1 == input.PlayerUrlResolverSha1 || - (this.PlayerUrlResolverSha1 != null && - this.PlayerUrlResolverSha1.Equals(input.PlayerUrlResolverSha1)) - ) && - ( - this.PublicKey == input.PublicKey || - (this.PublicKey != null && - this.PublicKey.Equals(input.PublicKey)) - ) && ( this.WebsocketMaxFriendsRefreshDelay == input.WebsocketMaxFriendsRefreshDelay || this.WebsocketMaxFriendsRefreshDelay.Equals(input.WebsocketMaxFriendsRefreshDelay) @@ -2000,6 +1994,12 @@ public bool Equals(APIConfig input) ( this.WebsocketReconnectMaxDelay == input.WebsocketReconnectMaxDelay || this.WebsocketReconnectMaxDelay.Equals(input.WebsocketReconnectMaxDelay) + ) && + ( + this.WhiteListedAssetUrls == input.WhiteListedAssetUrls || + this.WhiteListedAssetUrls != null && + input.WhiteListedAssetUrls != null && + this.WhiteListedAssetUrls.SequenceEqual(input.WhiteListedAssetUrls) ); } @@ -2027,15 +2027,15 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.AgeVerificationStatusVisible.GetHashCode(); hashCode = (hashCode * 59) + this.AnalysisMaxRetries.GetHashCode(); hashCode = (hashCode * 59) + this.AnalysisRetryInterval.GetHashCode(); - if (this.Announcements != null) - { - hashCode = (hashCode * 59) + this.Announcements.GetHashCode(); - } hashCode = (hashCode * 59) + this.AnalyticsSegmentNewUIPctOfUsers.GetHashCode(); if (this.AnalyticsSegmentNewUISalt != null) { hashCode = (hashCode * 59) + this.AnalyticsSegmentNewUISalt.GetHashCode(); } + if (this.Announcements != null) + { + hashCode = (hashCode * 59) + this.Announcements.GetHashCode(); + } if (this.AvailableLanguageCodes != null) { hashCode = (hashCode * 59) + this.AvailableLanguageCodes.GetHashCode(); @@ -2109,10 +2109,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.DisableAVProInProton.GetHashCode(); hashCode = (hashCode * 59) + this.DisableAvatarCopying.GetHashCode(); hashCode = (hashCode * 59) + this.DisableAvatarGating.GetHashCode(); + hashCode = (hashCode * 59) + this.DisableCaptcha.GetHashCode(); hashCode = (hashCode * 59) + this.DisableCommunityLabs.GetHashCode(); hashCode = (hashCode * 59) + this.DisableCommunityLabsPromotion.GetHashCode(); hashCode = (hashCode * 59) + this.DisableEmail.GetHashCode(); - hashCode = (hashCode * 59) + this.DisableCaptcha.GetHashCode(); hashCode = (hashCode * 59) + this.DisableEventStream.GetHashCode(); hashCode = (hashCode * 59) + this.DisableFeedbackGating.GetHashCode(); hashCode = (hashCode * 59) + this.DisableFrontendBuilds.GetHashCode(); @@ -2206,6 +2206,18 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.PhotonPublicKeys.GetHashCode(); } + if (this.PlayerUrlResolverSha1 != null) + { + hashCode = (hashCode * 59) + this.PlayerUrlResolverSha1.GetHashCode(); + } + if (this.PlayerUrlResolverVersion != null) + { + hashCode = (hashCode * 59) + this.PlayerUrlResolverVersion.GetHashCode(); + } + if (this.PublicKey != null) + { + hashCode = (hashCode * 59) + this.PublicKey.GetHashCode(); + } if (this.ReportCategories != null) { hashCode = (hashCode * 59) + this.ReportCategories.GetHashCode(); @@ -2251,11 +2263,11 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SupportFormUrl.GetHashCode(); } - hashCode = (hashCode * 59) + this.Timekeeping.GetHashCode(); if (this.TimeOutWorldId != null) { hashCode = (hashCode * 59) + this.TimeOutWorldId.GetHashCode(); } + hashCode = (hashCode * 59) + this.Timekeeping.GetHashCode(); if (this.TutorialWorldId != null) { hashCode = (hashCode * 59) + this.TutorialWorldId.GetHashCode(); @@ -2274,25 +2286,13 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ViveWindowsUrl.GetHashCode(); } + hashCode = (hashCode * 59) + this.WebsocketMaxFriendsRefreshDelay.GetHashCode(); + hashCode = (hashCode * 59) + this.WebsocketQuickReconnectTime.GetHashCode(); + hashCode = (hashCode * 59) + this.WebsocketReconnectMaxDelay.GetHashCode(); if (this.WhiteListedAssetUrls != null) { hashCode = (hashCode * 59) + this.WhiteListedAssetUrls.GetHashCode(); } - if (this.PlayerUrlResolverVersion != null) - { - hashCode = (hashCode * 59) + this.PlayerUrlResolverVersion.GetHashCode(); - } - if (this.PlayerUrlResolverSha1 != null) - { - hashCode = (hashCode * 59) + this.PlayerUrlResolverSha1.GetHashCode(); - } - if (this.PublicKey != null) - { - hashCode = (hashCode * 59) + this.PublicKey.GetHashCode(); - } - hashCode = (hashCode * 59) + this.WebsocketMaxFriendsRefreshDelay.GetHashCode(); - hashCode = (hashCode * 59) + this.WebsocketQuickReconnectTime.GetHashCode(); - hashCode = (hashCode * 59) + this.WebsocketReconnectMaxDelay.GetHashCode(); return hashCode; } } @@ -2376,6 +2376,18 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for NotAllowedToSelectAvatarInPrivateWorldMessage, length must be greater than 1.", new [] { "NotAllowedToSelectAvatarInPrivateWorldMessage" }); } + // PlayerUrlResolverSha1 (string) minLength + if (this.PlayerUrlResolverSha1 != null && this.PlayerUrlResolverSha1.Length < 1) + { + yield return new ValidationResult("Invalid value for PlayerUrlResolverSha1, length must be greater than 1.", new [] { "PlayerUrlResolverSha1" }); + } + + // PlayerUrlResolverVersion (string) minLength + if (this.PlayerUrlResolverVersion != null && this.PlayerUrlResolverVersion.Length < 1) + { + yield return new ValidationResult("Invalid value for PlayerUrlResolverVersion, length must be greater than 1.", new [] { "PlayerUrlResolverVersion" }); + } + // SdkDeveloperFaqUrl (string) minLength if (this.SdkDeveloperFaqUrl != null && this.SdkDeveloperFaqUrl.Length < 1) { @@ -2412,18 +2424,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for ViveWindowsUrl, length must be greater than 1.", new [] { "ViveWindowsUrl" }); } - // PlayerUrlResolverVersion (string) minLength - if (this.PlayerUrlResolverVersion != null && this.PlayerUrlResolverVersion.Length < 1) - { - yield return new ValidationResult("Invalid value for PlayerUrlResolverVersion, length must be greater than 1.", new [] { "PlayerUrlResolverVersion" }); - } - - // PlayerUrlResolverSha1 (string) minLength - if (this.PlayerUrlResolverSha1 != null && this.PlayerUrlResolverSha1.Length < 1) - { - yield return new ValidationResult("Invalid value for PlayerUrlResolverSha1, length must be greater than 1.", new [] { "PlayerUrlResolverSha1" }); - } - yield break; } } diff --git a/src/VRChat.API/Model/APIConfigAccessLogsUrls.cs b/src/VRChat.API/Model/APIConfigAccessLogsUrls.cs index 0e4dfe8a..3c0d70fc 100644 --- a/src/VRChat.API/Model/APIConfigAccessLogsUrls.cs +++ b/src/VRChat.API/Model/APIConfigAccessLogsUrls.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigAnnouncement.cs b/src/VRChat.API/Model/APIConfigAnnouncement.cs index a6a01313..46cbfb28 100644 --- a/src/VRChat.API/Model/APIConfigAnnouncement.cs +++ b/src/VRChat.API/Model/APIConfigAnnouncement.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigAvatarPerfLimiter.cs b/src/VRChat.API/Model/APIConfigAvatarPerfLimiter.cs index 7118ea37..fc5e48a6 100644 --- a/src/VRChat.API/Model/APIConfigAvatarPerfLimiter.cs +++ b/src/VRChat.API/Model/APIConfigAvatarPerfLimiter.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigConstants.cs b/src/VRChat.API/Model/APIConfigConstants.cs index 0c61fb53..0c1eb314 100644 --- a/src/VRChat.API/Model/APIConfigConstants.cs +++ b/src/VRChat.API/Model/APIConfigConstants.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigConstantsGROUPS.cs b/src/VRChat.API/Model/APIConfigConstantsGROUPS.cs index 6b4ed308..44fc45e3 100644 --- a/src/VRChat.API/Model/APIConfigConstantsGROUPS.cs +++ b/src/VRChat.API/Model/APIConfigConstantsGROUPS.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigConstantsINSTANCE.cs b/src/VRChat.API/Model/APIConfigConstantsINSTANCE.cs index 50404900..2aa1499d 100644 --- a/src/VRChat.API/Model/APIConfigConstantsINSTANCE.cs +++ b/src/VRChat.API/Model/APIConfigConstantsINSTANCE.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETS.cs b/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETS.cs index 23a79d38..0aafab49 100644 --- a/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETS.cs +++ b/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETS.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED.cs b/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED.cs index b0d3a155..f91d4e52 100644 --- a/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED.cs +++ b/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETSCROWDED.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.cs b/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.cs index ade94764..c9eae2e4 100644 --- a/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.cs +++ b/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETSFEW.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.cs b/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.cs index 178963ee..b21eea53 100644 --- a/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.cs +++ b/src/VRChat.API/Model/APIConfigConstantsINSTANCEPOPULATIONBRACKETSMANY.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigConstantsLANGUAGE.cs b/src/VRChat.API/Model/APIConfigConstantsLANGUAGE.cs index be546176..179f7aaf 100644 --- a/src/VRChat.API/Model/APIConfigConstantsLANGUAGE.cs +++ b/src/VRChat.API/Model/APIConfigConstantsLANGUAGE.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigDownloadURLList.cs b/src/VRChat.API/Model/APIConfigDownloadURLList.cs index 2393c6ff..549bf0c4 100644 --- a/src/VRChat.API/Model/APIConfigDownloadURLList.cs +++ b/src/VRChat.API/Model/APIConfigDownloadURLList.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,13 +40,19 @@ protected APIConfigDownloadURLList() { } /// /// Initializes a new instance of the class. /// + /// Download link for ??? (required). /// Download link for legacy SDK2 (required). /// Download link for SDK3 for Avatars (required). /// Download link for SDK3 for Worlds (required). /// Download link for the Creator Companion (required). - /// Download link for ??? (required). - public APIConfigDownloadURLList(string sdk2 = default, string sdk3Avatars = default, string sdk3Worlds = default, string vcc = default, string bootstrap = default) + public APIConfigDownloadURLList(string bootstrap = default, string sdk2 = default, string sdk3Avatars = default, string sdk3Worlds = default, string vcc = default) { + // to ensure "bootstrap" is required (not null) + if (bootstrap == null) + { + throw new ArgumentNullException("bootstrap is a required property for APIConfigDownloadURLList and cannot be null"); + } + this.Bootstrap = bootstrap; // to ensure "sdk2" is required (not null) if (sdk2 == null) { @@ -71,14 +77,15 @@ public APIConfigDownloadURLList(string sdk2 = default, string sdk3Avatars = defa throw new ArgumentNullException("vcc is a required property for APIConfigDownloadURLList and cannot be null"); } this.Vcc = vcc; - // to ensure "bootstrap" is required (not null) - if (bootstrap == null) - { - throw new ArgumentNullException("bootstrap is a required property for APIConfigDownloadURLList and cannot be null"); - } - this.Bootstrap = bootstrap; } + /// + /// Download link for ??? + /// + /// Download link for ??? + [DataMember(Name = "bootstrap", IsRequired = true, EmitDefaultValue = true)] + public string Bootstrap { get; set; } + /// /// Download link for legacy SDK2 /// @@ -108,13 +115,6 @@ public APIConfigDownloadURLList(string sdk2 = default, string sdk3Avatars = defa [DataMember(Name = "vcc", IsRequired = true, EmitDefaultValue = true)] public string Vcc { get; set; } - /// - /// Download link for ??? - /// - /// Download link for ??? - [DataMember(Name = "bootstrap", IsRequired = true, EmitDefaultValue = true)] - public string Bootstrap { get; set; } - /// /// Returns the string presentation of the object /// @@ -123,11 +123,11 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class APIConfigDownloadURLList {\n"); + sb.Append(" Bootstrap: ").Append(Bootstrap).Append("\n"); sb.Append(" Sdk2: ").Append(Sdk2).Append("\n"); sb.Append(" Sdk3Avatars: ").Append(Sdk3Avatars).Append("\n"); sb.Append(" Sdk3Worlds: ").Append(Sdk3Worlds).Append("\n"); sb.Append(" Vcc: ").Append(Vcc).Append("\n"); - sb.Append(" Bootstrap: ").Append(Bootstrap).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -163,6 +163,11 @@ public bool Equals(APIConfigDownloadURLList input) return false; } return + ( + this.Bootstrap == input.Bootstrap || + (this.Bootstrap != null && + this.Bootstrap.Equals(input.Bootstrap)) + ) && ( this.Sdk2 == input.Sdk2 || (this.Sdk2 != null && @@ -182,11 +187,6 @@ public bool Equals(APIConfigDownloadURLList input) this.Vcc == input.Vcc || (this.Vcc != null && this.Vcc.Equals(input.Vcc)) - ) && - ( - this.Bootstrap == input.Bootstrap || - (this.Bootstrap != null && - this.Bootstrap.Equals(input.Bootstrap)) ); } @@ -199,6 +199,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.Bootstrap != null) + { + hashCode = (hashCode * 59) + this.Bootstrap.GetHashCode(); + } if (this.Sdk2 != null) { hashCode = (hashCode * 59) + this.Sdk2.GetHashCode(); @@ -215,10 +219,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Vcc.GetHashCode(); } - if (this.Bootstrap != null) - { - hashCode = (hashCode * 59) + this.Bootstrap.GetHashCode(); - } return hashCode; } } @@ -230,6 +230,12 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { + // Bootstrap (string) minLength + if (this.Bootstrap != null && this.Bootstrap.Length < 1) + { + yield return new ValidationResult("Invalid value for Bootstrap, length must be greater than 1.", new [] { "Bootstrap" }); + } + // Sdk2 (string) minLength if (this.Sdk2 != null && this.Sdk2.Length < 1) { @@ -254,12 +260,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Vcc, length must be greater than 1.", new [] { "Vcc" }); } - // Bootstrap (string) minLength - if (this.Bootstrap != null && this.Bootstrap.Length < 1) - { - yield return new ValidationResult("Invalid value for Bootstrap, length must be greater than 1.", new [] { "Bootstrap" }); - } - yield break; } } diff --git a/src/VRChat.API/Model/APIConfigEvents.cs b/src/VRChat.API/Model/APIConfigEvents.cs index 95697587..c9d7c783 100644 --- a/src/VRChat.API/Model/APIConfigEvents.cs +++ b/src/VRChat.API/Model/APIConfigEvents.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigMinSupportedClientBuildNumber.cs b/src/VRChat.API/Model/APIConfigMinSupportedClientBuildNumber.cs index 43a10f7d..e615444d 100644 --- a/src/VRChat.API/Model/APIConfigMinSupportedClientBuildNumber.cs +++ b/src/VRChat.API/Model/APIConfigMinSupportedClientBuildNumber.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigOfflineAnalysis.cs b/src/VRChat.API/Model/APIConfigOfflineAnalysis.cs index 04dc678e..968e9082 100644 --- a/src/VRChat.API/Model/APIConfigOfflineAnalysis.cs +++ b/src/VRChat.API/Model/APIConfigOfflineAnalysis.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigReportCategories.cs b/src/VRChat.API/Model/APIConfigReportCategories.cs index 5c97c033..25bba9a0 100644 --- a/src/VRChat.API/Model/APIConfigReportCategories.cs +++ b/src/VRChat.API/Model/APIConfigReportCategories.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -48,12 +48,12 @@ protected APIConfigReportCategories() { } /// varEnvironment (required). /// groupstore (required). /// image (required). - /// text (required). /// sticker. + /// text (required). /// warnings (required). /// worldimage (required). /// worldstore (required). - public APIConfigReportCategories(ReportCategory avatar = default, ReportCategory avatarpage = default, ReportCategory behavior = default, ReportCategory chat = default, ReportCategory emoji = default, ReportCategory varEnvironment = default, ReportCategory groupstore = default, ReportCategory image = default, ReportCategory text = default, ReportCategory sticker = default, ReportCategory warnings = default, ReportCategory worldimage = default, ReportCategory worldstore = default) + public APIConfigReportCategories(ReportCategory avatar = default, ReportCategory avatarpage = default, ReportCategory behavior = default, ReportCategory chat = default, ReportCategory emoji = default, ReportCategory varEnvironment = default, ReportCategory groupstore = default, ReportCategory image = default, ReportCategory sticker = default, ReportCategory text = default, ReportCategory warnings = default, ReportCategory worldimage = default, ReportCategory worldstore = default) { // to ensure "avatar" is required (not null) if (avatar == null) @@ -168,18 +168,18 @@ public APIConfigReportCategories(ReportCategory avatar = default, ReportCategory [DataMember(Name = "image", IsRequired = true, EmitDefaultValue = true)] public ReportCategory Image { get; set; } - /// - /// Gets or Sets Text - /// - [DataMember(Name = "text", IsRequired = true, EmitDefaultValue = true)] - public ReportCategory Text { get; set; } - /// /// Gets or Sets Sticker /// [DataMember(Name = "sticker", EmitDefaultValue = false)] public ReportCategory Sticker { get; set; } + /// + /// Gets or Sets Text + /// + [DataMember(Name = "text", IsRequired = true, EmitDefaultValue = true)] + public ReportCategory Text { get; set; } + /// /// Gets or Sets Warnings /// @@ -214,8 +214,8 @@ public override string ToString() sb.Append(" VarEnvironment: ").Append(VarEnvironment).Append("\n"); sb.Append(" Groupstore: ").Append(Groupstore).Append("\n"); sb.Append(" Image: ").Append(Image).Append("\n"); - sb.Append(" Text: ").Append(Text).Append("\n"); sb.Append(" Sticker: ").Append(Sticker).Append("\n"); + sb.Append(" Text: ").Append(Text).Append("\n"); sb.Append(" Warnings: ").Append(Warnings).Append("\n"); sb.Append(" Worldimage: ").Append(Worldimage).Append("\n"); sb.Append(" Worldstore: ").Append(Worldstore).Append("\n"); @@ -294,16 +294,16 @@ public bool Equals(APIConfigReportCategories input) (this.Image != null && this.Image.Equals(input.Image)) ) && - ( - this.Text == input.Text || - (this.Text != null && - this.Text.Equals(input.Text)) - ) && ( this.Sticker == input.Sticker || (this.Sticker != null && this.Sticker.Equals(input.Sticker)) ) && + ( + this.Text == input.Text || + (this.Text != null && + this.Text.Equals(input.Text)) + ) && ( this.Warnings == input.Warnings || (this.Warnings != null && @@ -362,14 +362,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Image.GetHashCode(); } - if (this.Text != null) - { - hashCode = (hashCode * 59) + this.Text.GetHashCode(); - } if (this.Sticker != null) { hashCode = (hashCode * 59) + this.Sticker.GetHashCode(); } + if (this.Text != null) + { + hashCode = (hashCode * 59) + this.Text.GetHashCode(); + } if (this.Warnings != null) { hashCode = (hashCode * 59) + this.Warnings.GetHashCode(); diff --git a/src/VRChat.API/Model/APIConfigReportOptions.cs b/src/VRChat.API/Model/APIConfigReportOptions.cs index 7904ab30..3c26a474 100644 --- a/src/VRChat.API/Model/APIConfigReportOptions.cs +++ b/src/VRChat.API/Model/APIConfigReportOptions.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigReportOptionsAvatar.cs b/src/VRChat.API/Model/APIConfigReportOptionsAvatar.cs index 088a28b8..4ca56e05 100644 --- a/src/VRChat.API/Model/APIConfigReportOptionsAvatar.cs +++ b/src/VRChat.API/Model/APIConfigReportOptionsAvatar.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigReportOptionsGroup.cs b/src/VRChat.API/Model/APIConfigReportOptionsGroup.cs index e107b1a6..c42463a6 100644 --- a/src/VRChat.API/Model/APIConfigReportOptionsGroup.cs +++ b/src/VRChat.API/Model/APIConfigReportOptionsGroup.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigReportOptionsUser.cs b/src/VRChat.API/Model/APIConfigReportOptionsUser.cs index 5f54bf7a..90fa606b 100644 --- a/src/VRChat.API/Model/APIConfigReportOptionsUser.cs +++ b/src/VRChat.API/Model/APIConfigReportOptionsUser.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigReportOptionsWorld.cs b/src/VRChat.API/Model/APIConfigReportOptionsWorld.cs index 3cc35489..aacb4230 100644 --- a/src/VRChat.API/Model/APIConfigReportOptionsWorld.cs +++ b/src/VRChat.API/Model/APIConfigReportOptionsWorld.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigReportReasons.cs b/src/VRChat.API/Model/APIConfigReportReasons.cs index d5ef17ec..b8cef894 100644 --- a/src/VRChat.API/Model/APIConfigReportReasons.cs +++ b/src/VRChat.API/Model/APIConfigReportReasons.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIHealth.cs b/src/VRChat.API/Model/APIHealth.cs index 0b892b80..515c6ca8 100644 --- a/src/VRChat.API/Model/APIHealth.cs +++ b/src/VRChat.API/Model/APIHealth.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,11 +40,17 @@ protected APIHealth() { } /// /// Initializes a new instance of the class. /// + /// buildVersionTag (required). /// ok (required). /// serverName (required). - /// buildVersionTag (required). - public APIHealth(bool ok = default, string serverName = default, string buildVersionTag = default) + public APIHealth(string buildVersionTag = default, bool ok = default, string serverName = default) { + // to ensure "buildVersionTag" is required (not null) + if (buildVersionTag == null) + { + throw new ArgumentNullException("buildVersionTag is a required property for APIHealth and cannot be null"); + } + this.BuildVersionTag = buildVersionTag; this.Ok = ok; // to ensure "serverName" is required (not null) if (serverName == null) @@ -52,14 +58,14 @@ public APIHealth(bool ok = default, string serverName = default, string buildVer throw new ArgumentNullException("serverName is a required property for APIHealth and cannot be null"); } this.ServerName = serverName; - // to ensure "buildVersionTag" is required (not null) - if (buildVersionTag == null) - { - throw new ArgumentNullException("buildVersionTag is a required property for APIHealth and cannot be null"); - } - this.BuildVersionTag = buildVersionTag; } + /// + /// Gets or Sets BuildVersionTag + /// + [DataMember(Name = "buildVersionTag", IsRequired = true, EmitDefaultValue = true)] + public string BuildVersionTag { get; set; } + /// /// Gets or Sets Ok /// @@ -72,12 +78,6 @@ public APIHealth(bool ok = default, string serverName = default, string buildVer [DataMember(Name = "serverName", IsRequired = true, EmitDefaultValue = true)] public string ServerName { get; set; } - /// - /// Gets or Sets BuildVersionTag - /// - [DataMember(Name = "buildVersionTag", IsRequired = true, EmitDefaultValue = true)] - public string BuildVersionTag { get; set; } - /// /// Returns the string presentation of the object /// @@ -86,9 +86,9 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class APIHealth {\n"); + sb.Append(" BuildVersionTag: ").Append(BuildVersionTag).Append("\n"); sb.Append(" Ok: ").Append(Ok).Append("\n"); sb.Append(" ServerName: ").Append(ServerName).Append("\n"); - sb.Append(" BuildVersionTag: ").Append(BuildVersionTag).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -124,6 +124,11 @@ public bool Equals(APIHealth input) return false; } return + ( + this.BuildVersionTag == input.BuildVersionTag || + (this.BuildVersionTag != null && + this.BuildVersionTag.Equals(input.BuildVersionTag)) + ) && ( this.Ok == input.Ok || this.Ok.Equals(input.Ok) @@ -132,11 +137,6 @@ public bool Equals(APIHealth input) this.ServerName == input.ServerName || (this.ServerName != null && this.ServerName.Equals(input.ServerName)) - ) && - ( - this.BuildVersionTag == input.BuildVersionTag || - (this.BuildVersionTag != null && - this.BuildVersionTag.Equals(input.BuildVersionTag)) ); } @@ -149,15 +149,15 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.BuildVersionTag != null) + { + hashCode = (hashCode * 59) + this.BuildVersionTag.GetHashCode(); + } hashCode = (hashCode * 59) + this.Ok.GetHashCode(); if (this.ServerName != null) { hashCode = (hashCode * 59) + this.ServerName.GetHashCode(); } - if (this.BuildVersionTag != null) - { - hashCode = (hashCode * 59) + this.BuildVersionTag.GetHashCode(); - } return hashCode; } } @@ -169,18 +169,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // ServerName (string) minLength - if (this.ServerName != null && this.ServerName.Length < 1) - { - yield return new ValidationResult("Invalid value for ServerName, length must be greater than 1.", new [] { "ServerName" }); - } - // BuildVersionTag (string) minLength if (this.BuildVersionTag != null && this.BuildVersionTag.Length < 1) { yield return new ValidationResult("Invalid value for BuildVersionTag, length must be greater than 1.", new [] { "BuildVersionTag" }); } + // ServerName (string) minLength + if (this.ServerName != null && this.ServerName.Length < 1) + { + yield return new ValidationResult("Invalid value for ServerName, length must be greater than 1.", new [] { "ServerName" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/AbstractOpenAPISchema.cs b/src/VRChat.API/Model/AbstractOpenAPISchema.cs index a18c5941..1730335a 100644 --- a/src/VRChat.API/Model/AbstractOpenAPISchema.cs +++ b/src/VRChat.API/Model/AbstractOpenAPISchema.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/AccountDeletionLog.cs b/src/VRChat.API/Model/AccountDeletionLog.cs index 0d197f8e..c27f0837 100644 --- a/src/VRChat.API/Model/AccountDeletionLog.cs +++ b/src/VRChat.API/Model/AccountDeletionLog.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,26 +35,23 @@ public partial class AccountDeletionLog : IEquatable, IValid /// /// Initializes a new instance of the class. /// - /// Typically \"Deletion requested\" or \"Deletion canceled\". Other messages like \"Deletion completed\" may exist, but are these are not possible to see as a regular user. (default to "Deletion requested"). - /// When the deletion is scheduled to happen, standard is 14 days after the request.. /// Date and time of the deletion request.. - public AccountDeletionLog(string message = @"Deletion requested", DateTime? deletionScheduled = default, DateTime dateTime = default) + /// When the deletion is scheduled to happen, standard is 14 days after the request.. + /// Typically \"Deletion requested\" or \"Deletion canceled\". Other messages like \"Deletion completed\" may exist, but are these are not possible to see as a regular user. (default to "Deletion requested"). + public AccountDeletionLog(DateTime dateTime = default, DateTime? deletionScheduled = default, string message = @"Deletion requested") { + this.DateTime = dateTime; + this.DeletionScheduled = deletionScheduled; // use default value if no "message" provided this.Message = message ?? @"Deletion requested"; - this.DeletionScheduled = deletionScheduled; - this.DateTime = dateTime; } /// - /// Typically \"Deletion requested\" or \"Deletion canceled\". Other messages like \"Deletion completed\" may exist, but are these are not possible to see as a regular user. + /// Date and time of the deletion request. /// - /// Typically \"Deletion requested\" or \"Deletion canceled\". Other messages like \"Deletion completed\" may exist, but are these are not possible to see as a regular user. - /* - Deletion requested - */ - [DataMember(Name = "message", EmitDefaultValue = false)] - public string Message { get; set; } + /// Date and time of the deletion request. + [DataMember(Name = "dateTime", EmitDefaultValue = false)] + public DateTime DateTime { get; set; } /// /// When the deletion is scheduled to happen, standard is 14 days after the request. @@ -64,11 +61,14 @@ public AccountDeletionLog(string message = @"Deletion requested", DateTime? dele public DateTime? DeletionScheduled { get; set; } /// - /// Date and time of the deletion request. + /// Typically \"Deletion requested\" or \"Deletion canceled\". Other messages like \"Deletion completed\" may exist, but are these are not possible to see as a regular user. /// - /// Date and time of the deletion request. - [DataMember(Name = "dateTime", EmitDefaultValue = false)] - public DateTime DateTime { get; set; } + /// Typically \"Deletion requested\" or \"Deletion canceled\". Other messages like \"Deletion completed\" may exist, but are these are not possible to see as a regular user. + /* + Deletion requested + */ + [DataMember(Name = "message", EmitDefaultValue = false)] + public string Message { get; set; } /// /// Returns the string presentation of the object @@ -78,9 +78,9 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class AccountDeletionLog {\n"); - sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append(" DeletionScheduled: ").Append(DeletionScheduled).Append("\n"); sb.Append(" DateTime: ").Append(DateTime).Append("\n"); + sb.Append(" DeletionScheduled: ").Append(DeletionScheduled).Append("\n"); + sb.Append(" Message: ").Append(Message).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -117,9 +117,9 @@ public bool Equals(AccountDeletionLog input) } return ( - this.Message == input.Message || - (this.Message != null && - this.Message.Equals(input.Message)) + this.DateTime == input.DateTime || + (this.DateTime != null && + this.DateTime.Equals(input.DateTime)) ) && ( this.DeletionScheduled == input.DeletionScheduled || @@ -127,9 +127,9 @@ public bool Equals(AccountDeletionLog input) this.DeletionScheduled.Equals(input.DeletionScheduled)) ) && ( - this.DateTime == input.DateTime || - (this.DateTime != null && - this.DateTime.Equals(input.DateTime)) + this.Message == input.Message || + (this.Message != null && + this.Message.Equals(input.Message)) ); } @@ -142,17 +142,17 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Message != null) + if (this.DateTime != null) { - hashCode = (hashCode * 59) + this.Message.GetHashCode(); + hashCode = (hashCode * 59) + this.DateTime.GetHashCode(); } if (this.DeletionScheduled != null) { hashCode = (hashCode * 59) + this.DeletionScheduled.GetHashCode(); } - if (this.DateTime != null) + if (this.Message != null) { - hashCode = (hashCode * 59) + this.DateTime.GetHashCode(); + hashCode = (hashCode * 59) + this.Message.GetHashCode(); } return hashCode; } diff --git a/src/VRChat.API/Model/AddFavoriteRequest.cs b/src/VRChat.API/Model/AddFavoriteRequest.cs index a036d65a..c1f5b0ff 100644 --- a/src/VRChat.API/Model/AddFavoriteRequest.cs +++ b/src/VRChat.API/Model/AddFavoriteRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,12 +46,11 @@ protected AddFavoriteRequest() { } /// /// Initializes a new instance of the class. /// - /// type (required). /// Must be either AvatarID, WorldID or UserID. (required). /// Tags indicate which group this favorite belongs to. Adding multiple groups makes it show up in all. Removing it from one in that case removes it from all. (required). - public AddFavoriteRequest(FavoriteType type = default, string favoriteId = default, List tags = default) + /// type (required). + public AddFavoriteRequest(string favoriteId = default, List tags = default, FavoriteType type = default) { - this.Type = type; // to ensure "favoriteId" is required (not null) if (favoriteId == null) { @@ -64,6 +63,7 @@ public AddFavoriteRequest(FavoriteType type = default, string favoriteId = defau throw new ArgumentNullException("tags is a required property for AddFavoriteRequest and cannot be null"); } this.Tags = tags; + this.Type = type; } /// @@ -88,9 +88,9 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class AddFavoriteRequest {\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" FavoriteId: ").Append(FavoriteId).Append("\n"); sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -126,10 +126,6 @@ public bool Equals(AddFavoriteRequest input) return false; } return - ( - this.Type == input.Type || - this.Type.Equals(input.Type) - ) && ( this.FavoriteId == input.FavoriteId || (this.FavoriteId != null && @@ -140,6 +136,10 @@ public bool Equals(AddFavoriteRequest input) this.Tags != null && input.Tags != null && this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.Type == input.Type || + this.Type.Equals(input.Type) ); } @@ -152,7 +152,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Type.GetHashCode(); if (this.FavoriteId != null) { hashCode = (hashCode * 59) + this.FavoriteId.GetHashCode(); @@ -161,6 +160,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Tags.GetHashCode(); } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/AddGroupGalleryImageRequest.cs b/src/VRChat.API/Model/AddGroupGalleryImageRequest.cs index 7a49a7d3..cb43d5ab 100644 --- a/src/VRChat.API/Model/AddGroupGalleryImageRequest.cs +++ b/src/VRChat.API/Model/AddGroupGalleryImageRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/AdminAssetBundle.cs b/src/VRChat.API/Model/AdminAssetBundle.cs index 43f81ec1..17318ff3 100644 --- a/src/VRChat.API/Model/AdminAssetBundle.cs +++ b/src/VRChat.API/Model/AdminAssetBundle.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/AdminUnityPackage.cs b/src/VRChat.API/Model/AdminUnityPackage.cs index 90fea66b..c168850d 100644 --- a/src/VRChat.API/Model/AdminUnityPackage.cs +++ b/src/VRChat.API/Model/AdminUnityPackage.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/AgeVerificationStatus.cs b/src/VRChat.API/Model/AgeVerificationStatus.cs index 81b039ca..331d4fc6 100644 --- a/src/VRChat.API/Model/AgeVerificationStatus.cs +++ b/src/VRChat.API/Model/AgeVerificationStatus.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -34,22 +34,22 @@ namespace VRChat.API.Model public enum AgeVerificationStatus { /// - /// Enum hidden for value: hidden + /// Enum hidden for value: 18+ /// - [EnumMember(Value = "hidden")] + [EnumMember(Value = "18+")] hidden = 1, /// - /// Enum verified for value: verified + /// Enum plus18 for value: hidden /// - [EnumMember(Value = "verified")] - verified = 2, + [EnumMember(Value = "hidden")] + plus18 = 2, /// - /// Enum plus18 for value: 18+ + /// Enum verified for value: verified /// - [EnumMember(Value = "18+")] - plus18 = 3 + [EnumMember(Value = "verified")] + verified = 3 } } diff --git a/src/VRChat.API/Model/Avatar.cs b/src/VRChat.API/Model/Avatar.cs index 1cc1fc9d..178aa56e 100644 --- a/src/VRChat.API/Model/Avatar.cs +++ b/src/VRChat.API/Model/Avatar.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/AvatarModeration.cs b/src/VRChat.API/Model/AvatarModeration.cs index 78df3490..77904307 100644 --- a/src/VRChat.API/Model/AvatarModeration.cs +++ b/src/VRChat.API/Model/AvatarModeration.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/AvatarModerationCreated.cs b/src/VRChat.API/Model/AvatarModerationCreated.cs index b378ce35..37a8d5b2 100644 --- a/src/VRChat.API/Model/AvatarModerationCreated.cs +++ b/src/VRChat.API/Model/AvatarModerationCreated.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/AvatarModerationType.cs b/src/VRChat.API/Model/AvatarModerationType.cs index b37a5bd7..329bfa28 100644 --- a/src/VRChat.API/Model/AvatarModerationType.cs +++ b/src/VRChat.API/Model/AvatarModerationType.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/AvatarPerformance.cs b/src/VRChat.API/Model/AvatarPerformance.cs index fdd849e2..141c2789 100644 --- a/src/VRChat.API/Model/AvatarPerformance.cs +++ b/src/VRChat.API/Model/AvatarPerformance.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/AvatarPublishedListingsInner.cs b/src/VRChat.API/Model/AvatarPublishedListingsInner.cs index 284e5190..aa6d37ad 100644 --- a/src/VRChat.API/Model/AvatarPublishedListingsInner.cs +++ b/src/VRChat.API/Model/AvatarPublishedListingsInner.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/AvatarStyle.cs b/src/VRChat.API/Model/AvatarStyle.cs index 31f837aa..598df90b 100644 --- a/src/VRChat.API/Model/AvatarStyle.cs +++ b/src/VRChat.API/Model/AvatarStyle.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/AvatarStyles.cs b/src/VRChat.API/Model/AvatarStyles.cs index 568e74ac..65f267a1 100644 --- a/src/VRChat.API/Model/AvatarStyles.cs +++ b/src/VRChat.API/Model/AvatarStyles.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/AvatarUnityPackageUrlObject.cs b/src/VRChat.API/Model/AvatarUnityPackageUrlObject.cs index 94697ef6..97e244c1 100644 --- a/src/VRChat.API/Model/AvatarUnityPackageUrlObject.cs +++ b/src/VRChat.API/Model/AvatarUnityPackageUrlObject.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Badge.cs b/src/VRChat.API/Model/Badge.cs index a58b87dd..433d880a 100644 --- a/src/VRChat.API/Model/Badge.cs +++ b/src/VRChat.API/Model/Badge.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Balance.cs b/src/VRChat.API/Model/Balance.cs index dd894e09..cd5401a2 100644 --- a/src/VRChat.API/Model/Balance.cs +++ b/src/VRChat.API/Model/Balance.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/BanGroupMemberRequest.cs b/src/VRChat.API/Model/BanGroupMemberRequest.cs index d06b242b..06b54cdf 100644 --- a/src/VRChat.API/Model/BanGroupMemberRequest.cs +++ b/src/VRChat.API/Model/BanGroupMemberRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/BoopRequest.cs b/src/VRChat.API/Model/BoopRequest.cs new file mode 100644 index 00000000..1e8751de --- /dev/null +++ b/src/VRChat.API/Model/BoopRequest.cs @@ -0,0 +1,298 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.20.7-nightly.3 + * Contact: vrchatapi.lpv0t@aries.fyi + * 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 FileParameter = VRChat.API.Client.FileParameter; +using OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// See NotificationDetailBoop; either inventoryItemId (accessed through .id) by itself, or emojiId (accessed through .metadata.fileId or built-in emoji name) with optional emojiVersion + /// + [DataContract(Name = "BoopRequest")] + public partial class BoopRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// Either a FileID or a string constant for default emojis. + /// emojiVersion. + /// inventoryItemId. + public BoopRequest(string emojiId = default, int emojiVersion = default, string inventoryItemId = default) + { + this.EmojiId = emojiId; + this.EmojiVersion = emojiVersion; + this.InventoryItemId = inventoryItemId; + } + + /// + /// Either a FileID or a string constant for default emojis + /// + /// Either a FileID or a string constant for default emojis + /* + Angry: + value: default_angry +Arrow Point: + value: default_arrowpoint +Bats: + value: default_bats +Beachball: + value: default_beachball +Beer: + value: default_beer +Blushing: + value: default_blushing +Boo: + value: default_boo +Broken Heart: + value: default_broken_heart +Candy: + value: default_candy +Candy Cane: + value: default_candy_cane +Candy Corn: + value: default_candy_corn +CantSee: + value: default_cantsee +Champagne: + value: default_champagne +Cloud: + value: default_cloud +Coal: + value: default_coal +Confetti: + value: default_confetti +Crying: + value: default_crying +Drink: + value: default_drink +Exclamation: + value: default_exclamation +Fire: + value: default_fire +Frown: + value: default_frown +Gift: + value: default_gift +Gifts: + value: default_gifts +Gingerbread: + value: default_gingerbread +Go: + value: default_go +Hand Wave: + value: default_hand_wave +Hang Ten: + value: default_hang_ten +Heart: + value: default_heart +Hourglass: + value: default_hourglass +Ice Cream: + value: default_ice_cream +In Love: + value: default_in_love +Jack O Lantern: + value: default_jack_o_lantern +Keyboard: + value: default_keyboard +Kiss: + value: default_kiss +Laugh: + value: default_laugh +Life Ring: + value: default_life_ring +Mistletoe: + value: default_mistletoe +Money: + value: default_money +Music Note: + value: default_music_note +Neon Shades: + value: default_neon_shades +NoHeadphones: + value: default_noheadphones +NoMic: + value: default_nomic +Pineapple: + value: default_pineapple +Pizza: + value: default_pizza +Portal: + value: default_portal +Question: + value: default_question +Shush: + value: default_shush +Skull: + value: default_skull +Smile: + value: default_smile +Snow Fall: + value: default_snow_fall +Snowball: + value: default_snowball +Splash: + value: default_splash +Spooky Ghost: + value: default_spooky_ghost +Stoic: + value: default_stoic +Stop: + value: default_stop +Sun Lotion: + value: default_sun_lotion +Sunglasses: + value: default_sunglasses +Thinking: + value: default_thinking +Thumbs Down: + value: default_thumbs_down +Thumbs Up: + value: default_thumbs_up +Tomato: + value: default_tomato +Tongue Out: + value: default_tongue_out +Web: + value: default_web +Wow: + value: default_wow +Zzz: + value: default_zzz + + */ + [DataMember(Name = "emojiId", EmitDefaultValue = false)] + public string EmojiId { get; set; } + + /// + /// Gets or Sets EmojiVersion + /// + [DataMember(Name = "emojiVersion", EmitDefaultValue = false)] + public int EmojiVersion { get; set; } + + /// + /// Gets or Sets InventoryItemId + /// + /* + inv_10bce5b0-2d2b-44e0-900d-db6534615162 + */ + [DataMember(Name = "inventoryItemId", EmitDefaultValue = false)] + public string InventoryItemId { 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 BoopRequest {\n"); + sb.Append(" EmojiId: ").Append(EmojiId).Append("\n"); + sb.Append(" EmojiVersion: ").Append(EmojiVersion).Append("\n"); + sb.Append(" InventoryItemId: ").Append(InventoryItemId).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as BoopRequest); + } + + /// + /// Returns true if BoopRequest instances are equal + /// + /// Instance of BoopRequest to be compared + /// Boolean + public bool Equals(BoopRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.EmojiId == input.EmojiId || + (this.EmojiId != null && + this.EmojiId.Equals(input.EmojiId)) + ) && + ( + this.EmojiVersion == input.EmojiVersion || + this.EmojiVersion.Equals(input.EmojiVersion) + ) && + ( + this.InventoryItemId == input.InventoryItemId || + (this.InventoryItemId != null && + this.InventoryItemId.Equals(input.InventoryItemId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.EmojiId != null) + { + hashCode = (hashCode * 59) + this.EmojiId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.EmojiVersion.GetHashCode(); + if (this.InventoryItemId != null) + { + hashCode = (hashCode * 59) + this.InventoryItemId.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/VRChat.API/Model/CalendarEvent.cs b/src/VRChat.API/Model/CalendarEvent.cs index e27c8e07..03d5dfaa 100644 --- a/src/VRChat.API/Model/CalendarEvent.cs +++ b/src/VRChat.API/Model/CalendarEvent.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace VRChat.API.Model { /// - /// CalendarEvent + /// An event scheduled on a group's calendar /// [DataContract(Name = "CalendarEvent")] public partial class CalendarEvent : IEquatable, IValidatableObject @@ -64,9 +64,9 @@ protected CalendarEvent() { } /// title (required). /// type. /// updatedAt. - /// usesInstanceOverflow. /// userInterest. - public CalendarEvent(string accessType = default, string category = default, int closeInstanceAfterEndMinutes = default, DateTime createdAt = default, DateTime? deletedAt = default, string description = default, DateTime endsAt = default, bool featured = default, int guestEarlyJoinMinutes = default, int hostEarlyJoinMinutes = default, string id = default, string imageId = default, string imageUrl = default, int interestedUserCount = default, bool isDraft = default, List languages = default, string ownerId = default, List platforms = default, List roleIds = default, DateTime startsAt = default, List tags = default, string title = default, string type = default, DateTime updatedAt = default, bool usesInstanceOverflow = default, CalendarEventUserInterest userInterest = default) + /// usesInstanceOverflow. + public CalendarEvent(string accessType = default, string category = default, int closeInstanceAfterEndMinutes = default, DateTime createdAt = default, DateTime? deletedAt = default, string description = default, DateTime endsAt = default, bool featured = default, int guestEarlyJoinMinutes = default, int hostEarlyJoinMinutes = default, string id = default, string imageId = default, string imageUrl = default, int interestedUserCount = default, bool isDraft = default, List languages = default, string ownerId = default, List platforms = default, List roleIds = default, DateTime startsAt = default, List tags = default, string title = default, string type = default, DateTime updatedAt = default, CalendarEventUserInterest userInterest = default, bool usesInstanceOverflow = default) { // to ensure "accessType" is required (not null) if (accessType == null) @@ -117,8 +117,8 @@ public CalendarEvent(string accessType = default, string category = default, int this.Tags = tags; this.Type = type; this.UpdatedAt = updatedAt; - this.UsesInstanceOverflow = usesInstanceOverflow; this.UserInterest = userInterest; + this.UsesInstanceOverflow = usesInstanceOverflow; } /// @@ -287,18 +287,18 @@ public CalendarEvent(string accessType = default, string category = default, int [DataMember(Name = "updatedAt", EmitDefaultValue = false)] public DateTime UpdatedAt { get; set; } - /// - /// Gets or Sets UsesInstanceOverflow - /// - [DataMember(Name = "usesInstanceOverflow", EmitDefaultValue = true)] - public bool UsesInstanceOverflow { get; set; } - /// /// Gets or Sets UserInterest /// [DataMember(Name = "userInterest", EmitDefaultValue = false)] public CalendarEventUserInterest UserInterest { get; set; } + /// + /// Gets or Sets UsesInstanceOverflow + /// + [DataMember(Name = "usesInstanceOverflow", EmitDefaultValue = true)] + public bool UsesInstanceOverflow { get; set; } + /// /// Returns the string presentation of the object /// @@ -331,8 +331,8 @@ public override string ToString() sb.Append(" Title: ").Append(Title).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" UsesInstanceOverflow: ").Append(UsesInstanceOverflow).Append("\n"); sb.Append(" UserInterest: ").Append(UserInterest).Append("\n"); + sb.Append(" UsesInstanceOverflow: ").Append(UsesInstanceOverflow).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -486,14 +486,14 @@ public bool Equals(CalendarEvent input) (this.UpdatedAt != null && this.UpdatedAt.Equals(input.UpdatedAt)) ) && - ( - this.UsesInstanceOverflow == input.UsesInstanceOverflow || - this.UsesInstanceOverflow.Equals(input.UsesInstanceOverflow) - ) && ( this.UserInterest == input.UserInterest || (this.UserInterest != null && this.UserInterest.Equals(input.UserInterest)) + ) && + ( + this.UsesInstanceOverflow == input.UsesInstanceOverflow || + this.UsesInstanceOverflow.Equals(input.UsesInstanceOverflow) ); } @@ -584,11 +584,11 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); } - hashCode = (hashCode * 59) + this.UsesInstanceOverflow.GetHashCode(); if (this.UserInterest != null) { hashCode = (hashCode * 59) + this.UserInterest.GetHashCode(); } + hashCode = (hashCode * 59) + this.UsesInstanceOverflow.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/CalendarEventDiscovery.cs b/src/VRChat.API/Model/CalendarEventDiscovery.cs new file mode 100644 index 00000000..7be54690 --- /dev/null +++ b/src/VRChat.API/Model/CalendarEventDiscovery.cs @@ -0,0 +1,164 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.20.7-nightly.3 + * Contact: vrchatapi.lpv0t@aries.fyi + * 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 FileParameter = VRChat.API.Client.FileParameter; +using OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// CalendarEventDiscovery + /// + [DataContract(Name = "CalendarEventDiscovery")] + public partial class CalendarEventDiscovery : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected CalendarEventDiscovery() { } + /// + /// Initializes a new instance of the class. + /// + /// Base64-encoded JSON: type: object properties: dataSource: type: string enum: - featured - personalized dataIndex: type: integer format: int32 phase: type: string enum: - all - live - upcoming description: see CalendarEventDiscoveryScope asOf: type: integer format: int64 description: milliseconds since Unix epoch paramHash: type: string format: string description: Base64-encoded 256-bit hash of the original query parameters (required). + /// results (required). + public CalendarEventDiscovery(string nextCursor = default, List results = default) + { + // to ensure "nextCursor" is required (not null) + if (nextCursor == null) + { + throw new ArgumentNullException("nextCursor is a required property for CalendarEventDiscovery and cannot be null"); + } + this.NextCursor = nextCursor; + // to ensure "results" is required (not null) + if (results == null) + { + throw new ArgumentNullException("results is a required property for CalendarEventDiscovery and cannot be null"); + } + this.Results = results; + } + + /// + /// Base64-encoded JSON: type: object properties: dataSource: type: string enum: - featured - personalized dataIndex: type: integer format: int32 phase: type: string enum: - all - live - upcoming description: see CalendarEventDiscoveryScope asOf: type: integer format: int64 description: milliseconds since Unix epoch paramHash: type: string format: string description: Base64-encoded 256-bit hash of the original query parameters + /// + /// Base64-encoded JSON: type: object properties: dataSource: type: string enum: - featured - personalized dataIndex: type: integer format: int32 phase: type: string enum: - all - live - upcoming description: see CalendarEventDiscoveryScope asOf: type: integer format: int64 description: milliseconds since Unix epoch paramHash: type: string format: string description: Base64-encoded 256-bit hash of the original query parameters + [DataMember(Name = "nextCursor", IsRequired = true, EmitDefaultValue = true)] + public string NextCursor { get; set; } + + /// + /// Gets or Sets Results + /// + [DataMember(Name = "results", IsRequired = true, EmitDefaultValue = true)] + public List Results { 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 CalendarEventDiscovery {\n"); + sb.Append(" NextCursor: ").Append(NextCursor).Append("\n"); + sb.Append(" Results: ").Append(Results).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as CalendarEventDiscovery); + } + + /// + /// Returns true if CalendarEventDiscovery instances are equal + /// + /// Instance of CalendarEventDiscovery to be compared + /// Boolean + public bool Equals(CalendarEventDiscovery input) + { + if (input == null) + { + return false; + } + return + ( + this.NextCursor == input.NextCursor || + (this.NextCursor != null && + this.NextCursor.Equals(input.NextCursor)) + ) && + ( + this.Results == input.Results || + this.Results != null && + input.Results != null && + this.Results.SequenceEqual(input.Results) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.NextCursor != null) + { + hashCode = (hashCode * 59) + this.NextCursor.GetHashCode(); + } + if (this.Results != null) + { + hashCode = (hashCode * 59) + this.Results.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/VRChat.API/Model/CalendarEventDiscoveryInclusion.cs b/src/VRChat.API/Model/CalendarEventDiscoveryInclusion.cs new file mode 100644 index 00000000..9788a635 --- /dev/null +++ b/src/VRChat.API/Model/CalendarEventDiscoveryInclusion.cs @@ -0,0 +1,54 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.20.7-nightly.3 + * Contact: vrchatapi.lpv0t@aries.fyi + * 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 FileParameter = VRChat.API.Client.FileParameter; +using OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// Defines CalendarEventDiscoveryInclusion + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CalendarEventDiscoveryInclusion + { + /// + /// Enum Exclude for value: exclude + /// + [EnumMember(Value = "exclude")] + Exclude = 1, + + /// + /// Enum Include for value: include + /// + [EnumMember(Value = "include")] + Include = 2, + + /// + /// Enum Skip for value: skip + /// + [EnumMember(Value = "skip")] + Skip = 3 + } + +} diff --git a/src/VRChat.API/Model/CalendarEventDiscoveryScope.cs b/src/VRChat.API/Model/CalendarEventDiscoveryScope.cs new file mode 100644 index 00000000..356a1223 --- /dev/null +++ b/src/VRChat.API/Model/CalendarEventDiscoveryScope.cs @@ -0,0 +1,54 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.20.7-nightly.3 + * Contact: vrchatapi.lpv0t@aries.fyi + * 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 FileParameter = VRChat.API.Client.FileParameter; +using OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// Defines CalendarEventDiscoveryScope + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum CalendarEventDiscoveryScope + { + /// + /// Enum All for value: all + /// + [EnumMember(Value = "all")] + All = 1, + + /// + /// Enum Live for value: live + /// + [EnumMember(Value = "live")] + Live = 2, + + /// + /// Enum Upcoming for value: upcoming + /// + [EnumMember(Value = "upcoming")] + Upcoming = 3 + } + +} diff --git a/src/VRChat.API/Model/CalendarEventUserInterest.cs b/src/VRChat.API/Model/CalendarEventUserInterest.cs index e12e5d29..be180e6d 100644 --- a/src/VRChat.API/Model/CalendarEventUserInterest.cs +++ b/src/VRChat.API/Model/CalendarEventUserInterest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/ChangeUserTagsRequest.cs b/src/VRChat.API/Model/ChangeUserTagsRequest.cs index 23acf212..821ff21f 100644 --- a/src/VRChat.API/Model/ChangeUserTagsRequest.cs +++ b/src/VRChat.API/Model/ChangeUserTagsRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/CreateAvatarModerationRequest.cs b/src/VRChat.API/Model/CreateAvatarModerationRequest.cs index b693336e..79659347 100644 --- a/src/VRChat.API/Model/CreateAvatarModerationRequest.cs +++ b/src/VRChat.API/Model/CreateAvatarModerationRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,17 +46,17 @@ protected CreateAvatarModerationRequest() { } /// /// Initializes a new instance of the class. /// - /// targetAvatarId (required). /// avatarModerationType (required). - public CreateAvatarModerationRequest(string targetAvatarId = default, AvatarModerationType avatarModerationType = default) + /// targetAvatarId (required). + public CreateAvatarModerationRequest(AvatarModerationType avatarModerationType = default, string targetAvatarId = default) { + this.AvatarModerationType = avatarModerationType; // to ensure "targetAvatarId" is required (not null) if (targetAvatarId == null) { throw new ArgumentNullException("targetAvatarId is a required property for CreateAvatarModerationRequest and cannot be null"); } this.TargetAvatarId = targetAvatarId; - this.AvatarModerationType = avatarModerationType; } /// @@ -76,8 +76,8 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class CreateAvatarModerationRequest {\n"); - sb.Append(" TargetAvatarId: ").Append(TargetAvatarId).Append("\n"); sb.Append(" AvatarModerationType: ").Append(AvatarModerationType).Append("\n"); + sb.Append(" TargetAvatarId: ").Append(TargetAvatarId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -113,14 +113,14 @@ public bool Equals(CreateAvatarModerationRequest input) return false; } return + ( + this.AvatarModerationType == input.AvatarModerationType || + this.AvatarModerationType.Equals(input.AvatarModerationType) + ) && ( this.TargetAvatarId == input.TargetAvatarId || (this.TargetAvatarId != null && this.TargetAvatarId.Equals(input.TargetAvatarId)) - ) && - ( - this.AvatarModerationType == input.AvatarModerationType || - this.AvatarModerationType.Equals(input.AvatarModerationType) ); } @@ -133,11 +133,11 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + hashCode = (hashCode * 59) + this.AvatarModerationType.GetHashCode(); if (this.TargetAvatarId != null) { hashCode = (hashCode * 59) + this.TargetAvatarId.GetHashCode(); } - hashCode = (hashCode * 59) + this.AvatarModerationType.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/CreateAvatarRequest.cs b/src/VRChat.API/Model/CreateAvatarRequest.cs index 17f51203..11b3cf72 100644 --- a/src/VRChat.API/Model/CreateAvatarRequest.cs +++ b/src/VRChat.API/Model/CreateAvatarRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -48,49 +48,47 @@ protected CreateAvatarRequest() { } /// /// assetUrl. /// assetVersion. - /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.. /// A date and time of the pattern `M/d/yyyy h:mm:ss tt` (see C Sharp `System.DateTime`). - /// A date and time of the pattern `M/d/yyyy h:mm:ss tt` (see C Sharp `System.DateTime`). + /// description. /// id. + /// imageUrl (required). /// name (required). - /// description. + /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.. + /// releaseStatus. /// . - /// imageUrl (required). /// thumbnailImageUrl. - /// releaseStatus. - /// varVersion (default to 1). - /// Enabling featured tag requires Admin Credentials.. /// unityPackageUrl. /// unityVersion (default to "5.3.4p1"). - public CreateAvatarRequest(string assetUrl = default, string assetVersion = default, string platform = default, string createdAt = default, string updatedAt = default, string id = default, string name = default, string description = default, List tags = default, string imageUrl = default, string thumbnailImageUrl = default, ReleaseStatus? releaseStatus = default, int varVersion = 1, bool featured = default, string unityPackageUrl = default, string unityVersion = @"5.3.4p1") + /// A date and time of the pattern `M/d/yyyy h:mm:ss tt` (see C Sharp `System.DateTime`). + /// varVersion (default to 1). + public CreateAvatarRequest(string assetUrl = default, string assetVersion = default, string createdAt = default, string description = default, string id = default, string imageUrl = default, string name = default, string platform = default, ReleaseStatus? releaseStatus = default, List tags = default, string thumbnailImageUrl = default, string unityPackageUrl = default, string unityVersion = @"5.3.4p1", string updatedAt = default, int varVersion = 1) { - // to ensure "name" is required (not null) - if (name == null) - { - throw new ArgumentNullException("name is a required property for CreateAvatarRequest and cannot be null"); - } - this.Name = name; // to ensure "imageUrl" is required (not null) if (imageUrl == null) { throw new ArgumentNullException("imageUrl is a required property for CreateAvatarRequest and cannot be null"); } this.ImageUrl = imageUrl; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateAvatarRequest and cannot be null"); + } + this.Name = name; this.AssetUrl = assetUrl; this.AssetVersion = assetVersion; - this.Platform = platform; this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - this.Id = id; this.Description = description; + this.Id = id; + this.Platform = platform; + this.ReleaseStatus = releaseStatus; this.Tags = tags; this.ThumbnailImageUrl = thumbnailImageUrl; - this.ReleaseStatus = releaseStatus; - this.VarVersion = varVersion; - this.Featured = featured; this.UnityPackageUrl = unityPackageUrl; // use default value if no "unityVersion" provided this.UnityVersion = unityVersion ?? @"5.3.4p1"; + this.UpdatedAt = updatedAt; + this.VarVersion = varVersion; } /// @@ -105,16 +103,6 @@ public CreateAvatarRequest(string assetUrl = default, string assetVersion = defa [DataMember(Name = "assetVersion", EmitDefaultValue = false)] public string AssetVersion { get; set; } - /// - /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. - /// - /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. - /* - standalonewindows - */ - [DataMember(Name = "platform", EmitDefaultValue = false)] - public string Platform { get; set; } - /// /// A date and time of the pattern `M/d/yyyy h:mm:ss tt` (see C Sharp `System.DateTime`) /// @@ -126,14 +114,10 @@ public CreateAvatarRequest(string assetUrl = default, string assetVersion = defa public string CreatedAt { get; set; } /// - /// A date and time of the pattern `M/d/yyyy h:mm:ss tt` (see C Sharp `System.DateTime`) + /// Gets or Sets Description /// - /// A date and time of the pattern `M/d/yyyy h:mm:ss tt` (see C Sharp `System.DateTime`) - /* - 12/12/2021 1:23:43 AM - */ - [DataMember(Name = "updated_at", EmitDefaultValue = false)] - public string UpdatedAt { get; set; } + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } /// /// Gets or Sets Id @@ -144,6 +128,12 @@ public CreateAvatarRequest(string assetUrl = default, string assetVersion = defa [DataMember(Name = "id", EmitDefaultValue = false)] public string Id { get; set; } + /// + /// Gets or Sets ImageUrl + /// + [DataMember(Name = "imageUrl", IsRequired = true, EmitDefaultValue = true)] + public string ImageUrl { get; set; } + /// /// Gets or Sets Name /// @@ -151,10 +141,14 @@ public CreateAvatarRequest(string assetUrl = default, string assetVersion = defa public string Name { get; set; } /// - /// Gets or Sets Description + /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. /// - [DataMember(Name = "description", EmitDefaultValue = false)] - public string Description { get; set; } + /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /* + standalonewindows + */ + [DataMember(Name = "platform", EmitDefaultValue = false)] + public string Platform { get; set; } /// /// @@ -163,31 +157,12 @@ public CreateAvatarRequest(string assetUrl = default, string assetVersion = defa [DataMember(Name = "tags", EmitDefaultValue = false)] public List Tags { get; set; } - /// - /// Gets or Sets ImageUrl - /// - [DataMember(Name = "imageUrl", IsRequired = true, EmitDefaultValue = true)] - public string ImageUrl { get; set; } - /// /// Gets or Sets ThumbnailImageUrl /// [DataMember(Name = "thumbnailImageUrl", EmitDefaultValue = false)] public string ThumbnailImageUrl { get; set; } - /// - /// Gets or Sets VarVersion - /// - [DataMember(Name = "version", EmitDefaultValue = false)] - public int VarVersion { get; set; } - - /// - /// Enabling featured tag requires Admin Credentials. - /// - /// Enabling featured tag requires Admin Credentials. - [DataMember(Name = "featured", EmitDefaultValue = true)] - public bool Featured { get; set; } - /// /// Gets or Sets UnityPackageUrl /// @@ -203,6 +178,22 @@ public CreateAvatarRequest(string assetUrl = default, string assetVersion = defa [DataMember(Name = "unityVersion", EmitDefaultValue = false)] public string UnityVersion { get; set; } + /// + /// A date and time of the pattern `M/d/yyyy h:mm:ss tt` (see C Sharp `System.DateTime`) + /// + /// A date and time of the pattern `M/d/yyyy h:mm:ss tt` (see C Sharp `System.DateTime`) + /* + 12/12/2021 1:23:43 AM + */ + [DataMember(Name = "updated_at", EmitDefaultValue = false)] + public string UpdatedAt { get; set; } + + /// + /// Gets or Sets VarVersion + /// + [DataMember(Name = "version", EmitDefaultValue = false)] + public int VarVersion { get; set; } + /// /// Returns the string presentation of the object /// @@ -213,20 +204,19 @@ public override string ToString() sb.Append("class CreateAvatarRequest {\n"); sb.Append(" AssetUrl: ").Append(AssetUrl).Append("\n"); sb.Append(" AssetVersion: ").Append(AssetVersion).Append("\n"); - sb.Append(" Platform: ").Append(Platform).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Platform: ").Append(Platform).Append("\n"); + sb.Append(" ReleaseStatus: ").Append(ReleaseStatus).Append("\n"); sb.Append(" Tags: ").Append(Tags).Append("\n"); - sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); sb.Append(" ThumbnailImageUrl: ").Append(ThumbnailImageUrl).Append("\n"); - sb.Append(" ReleaseStatus: ").Append(ReleaseStatus).Append("\n"); - sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); - sb.Append(" Featured: ").Append(Featured).Append("\n"); sb.Append(" UnityPackageUrl: ").Append(UnityPackageUrl).Append("\n"); sb.Append(" UnityVersion: ").Append(UnityVersion).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -272,35 +262,39 @@ public bool Equals(CreateAvatarRequest input) (this.AssetVersion != null && this.AssetVersion.Equals(input.AssetVersion)) ) && - ( - this.Platform == input.Platform || - (this.Platform != null && - this.Platform.Equals(input.Platform)) - ) && ( this.CreatedAt == input.CreatedAt || (this.CreatedAt != null && this.CreatedAt.Equals(input.CreatedAt)) ) && ( - this.UpdatedAt == input.UpdatedAt || - (this.UpdatedAt != null && - this.UpdatedAt.Equals(input.UpdatedAt)) + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) ) && ( this.Id == input.Id || (this.Id != null && this.Id.Equals(input.Id)) ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ) && ( this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) ) && ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) + this.Platform == input.Platform || + (this.Platform != null && + this.Platform.Equals(input.Platform)) + ) && + ( + this.ReleaseStatus == input.ReleaseStatus || + this.ReleaseStatus.Equals(input.ReleaseStatus) ) && ( this.Tags == input.Tags || @@ -308,28 +302,11 @@ public bool Equals(CreateAvatarRequest input) input.Tags != null && this.Tags.SequenceEqual(input.Tags) ) && - ( - this.ImageUrl == input.ImageUrl || - (this.ImageUrl != null && - this.ImageUrl.Equals(input.ImageUrl)) - ) && ( this.ThumbnailImageUrl == input.ThumbnailImageUrl || (this.ThumbnailImageUrl != null && this.ThumbnailImageUrl.Equals(input.ThumbnailImageUrl)) ) && - ( - this.ReleaseStatus == input.ReleaseStatus || - this.ReleaseStatus.Equals(input.ReleaseStatus) - ) && - ( - this.VarVersion == input.VarVersion || - this.VarVersion.Equals(input.VarVersion) - ) && - ( - this.Featured == input.Featured || - this.Featured.Equals(input.Featured) - ) && ( this.UnityPackageUrl == input.UnityPackageUrl || (this.UnityPackageUrl != null && @@ -339,6 +316,15 @@ public bool Equals(CreateAvatarRequest input) this.UnityVersion == input.UnityVersion || (this.UnityVersion != null && this.UnityVersion.Equals(input.UnityVersion)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.VarVersion == input.VarVersion || + this.VarVersion.Equals(input.VarVersion) ); } @@ -359,45 +345,39 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.AssetVersion.GetHashCode(); } - if (this.Platform != null) - { - hashCode = (hashCode * 59) + this.Platform.GetHashCode(); - } if (this.CreatedAt != null) { hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } - if (this.UpdatedAt != null) + if (this.Description != null) { - hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.Description.GetHashCode(); } if (this.Id != null) { hashCode = (hashCode * 59) + this.Id.GetHashCode(); } + if (this.ImageUrl != null) + { + hashCode = (hashCode * 59) + this.ImageUrl.GetHashCode(); + } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); } - if (this.Description != null) + if (this.Platform != null) { - hashCode = (hashCode * 59) + this.Description.GetHashCode(); + hashCode = (hashCode * 59) + this.Platform.GetHashCode(); } + hashCode = (hashCode * 59) + this.ReleaseStatus.GetHashCode(); if (this.Tags != null) { hashCode = (hashCode * 59) + this.Tags.GetHashCode(); } - if (this.ImageUrl != null) - { - hashCode = (hashCode * 59) + this.ImageUrl.GetHashCode(); - } if (this.ThumbnailImageUrl != null) { hashCode = (hashCode * 59) + this.ThumbnailImageUrl.GetHashCode(); } - hashCode = (hashCode * 59) + this.ReleaseStatus.GetHashCode(); - hashCode = (hashCode * 59) + this.VarVersion.GetHashCode(); - hashCode = (hashCode * 59) + this.Featured.GetHashCode(); if (this.UnityPackageUrl != null) { hashCode = (hashCode * 59) + this.UnityPackageUrl.GetHashCode(); @@ -406,6 +386,11 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.UnityVersion.GetHashCode(); } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + hashCode = (hashCode * 59) + this.VarVersion.GetHashCode(); return hashCode; } } @@ -417,12 +402,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) minLength - if (this.Name != null && this.Name.Length < 1) - { - yield return new ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); - } - // Description (string) minLength if (this.Description != null && this.Description.Length < 1) { @@ -435,16 +414,16 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for ImageUrl, length must be greater than 1.", new [] { "ImageUrl" }); } - // ThumbnailImageUrl (string) minLength - if (this.ThumbnailImageUrl != null && this.ThumbnailImageUrl.Length < 1) + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) { - yield return new ValidationResult("Invalid value for ThumbnailImageUrl, length must be greater than 1.", new [] { "ThumbnailImageUrl" }); + yield return new ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); } - // VarVersion (int) minimum - if (this.VarVersion < (int)0) + // ThumbnailImageUrl (string) minLength + if (this.ThumbnailImageUrl != null && this.ThumbnailImageUrl.Length < 1) { - yield return new ValidationResult("Invalid value for VarVersion, must be a value greater than or equal to 0.", new [] { "VarVersion" }); + yield return new ValidationResult("Invalid value for ThumbnailImageUrl, length must be greater than 1.", new [] { "ThumbnailImageUrl" }); } // UnityVersion (string) minLength @@ -453,6 +432,12 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for UnityVersion, length must be greater than 1.", new [] { "UnityVersion" }); } + // VarVersion (int) minimum + if (this.VarVersion < (int)0) + { + yield return new ValidationResult("Invalid value for VarVersion, must be a value greater than or equal to 0.", new [] { "VarVersion" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/CreateCalendarEventRequest.cs b/src/VRChat.API/Model/CreateCalendarEventRequest.cs index b8b0e203..fcb6dcc0 100644 --- a/src/VRChat.API/Model/CreateCalendarEventRequest.cs +++ b/src/VRChat.API/Model/CreateCalendarEventRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,16 +39,16 @@ public partial class CreateCalendarEventRequest : IEquatable - /// Enum Public for value: public + /// Enum Group for value: group /// - [EnumMember(Value = "public")] - Public = 1, + [EnumMember(Value = "group")] + Group = 1, /// - /// Enum Group for value: group + /// Enum Public for value: public /// - [EnumMember(Value = "group")] - Group = 2 + [EnumMember(Value = "public")] + Public = 2 } @@ -65,34 +65,34 @@ protected CreateCalendarEventRequest() { } /// /// Initializes a new instance of the class. /// - /// Event title (required). - /// Time the event starts at (required). + /// accessType (required). + /// category (required). + /// closeInstanceAfterEndMinutes. /// description (required). /// Time the event ends at (required). - /// category (required). - /// tags. - /// isDraft. + /// featured. + /// guestEarlyJoinMinutes. + /// hostEarlyJoinMinutes. /// imageId. - /// roleIds. + /// isDraft. + /// languages. /// parentId. /// platforms. - /// languages. + /// roleIds. /// Send notification to group members. (required). - /// featured. - /// hostEarlyJoinMinutes. - /// guestEarlyJoinMinutes. - /// closeInstanceAfterEndMinutes. + /// Time the event starts at (required). + /// tags. + /// Event title (required). /// usesInstanceOverflow. - /// accessType (required). - public CreateCalendarEventRequest(string title = default, DateTime startsAt = default, string description = default, DateTime endsAt = default, string category = default, List tags = default, bool isDraft = default, string imageId = default, List roleIds = default, string parentId = default, List platforms = default, List languages = default, bool sendCreationNotification = default, bool featured = default, int hostEarlyJoinMinutes = default, int guestEarlyJoinMinutes = default, int closeInstanceAfterEndMinutes = default, bool usesInstanceOverflow = default, AccessTypeEnum accessType = default) + public CreateCalendarEventRequest(AccessTypeEnum accessType = default, string category = default, int closeInstanceAfterEndMinutes = default, string description = default, DateTime endsAt = default, bool featured = default, int guestEarlyJoinMinutes = default, int hostEarlyJoinMinutes = default, string imageId = default, bool isDraft = default, List languages = default, string parentId = default, List platforms = default, List roleIds = default, bool sendCreationNotification = default, DateTime startsAt = default, List tags = default, string title = default, bool usesInstanceOverflow = default) { - // to ensure "title" is required (not null) - if (title == null) + this.AccessType = accessType; + // to ensure "category" is required (not null) + if (category == null) { - throw new ArgumentNullException("title is a required property for CreateCalendarEventRequest and cannot be null"); + throw new ArgumentNullException("category is a required property for CreateCalendarEventRequest and cannot be null"); } - this.Title = title; - this.StartsAt = startsAt; + this.Category = category; // to ensure "description" is required (not null) if (description == null) { @@ -100,44 +100,45 @@ public CreateCalendarEventRequest(string title = default, DateTime startsAt = de } this.Description = description; this.EndsAt = endsAt; - // to ensure "category" is required (not null) - if (category == null) + this.SendCreationNotification = sendCreationNotification; + this.StartsAt = startsAt; + // to ensure "title" is required (not null) + if (title == null) { - throw new ArgumentNullException("category is a required property for CreateCalendarEventRequest and cannot be null"); + throw new ArgumentNullException("title is a required property for CreateCalendarEventRequest and cannot be null"); } - this.Category = category; - this.SendCreationNotification = sendCreationNotification; - this.AccessType = accessType; - this.Tags = tags; - this.IsDraft = isDraft; + this.Title = title; + this.CloseInstanceAfterEndMinutes = closeInstanceAfterEndMinutes; + this.Featured = featured; + this.GuestEarlyJoinMinutes = guestEarlyJoinMinutes; + this.HostEarlyJoinMinutes = hostEarlyJoinMinutes; this.ImageId = imageId; - this.RoleIds = roleIds; + this.IsDraft = isDraft; + this.Languages = languages; this.ParentId = parentId; this.Platforms = platforms; - this.Languages = languages; - this.Featured = featured; - this.HostEarlyJoinMinutes = hostEarlyJoinMinutes; - this.GuestEarlyJoinMinutes = guestEarlyJoinMinutes; - this.CloseInstanceAfterEndMinutes = closeInstanceAfterEndMinutes; + this.RoleIds = roleIds; + this.Tags = tags; this.UsesInstanceOverflow = usesInstanceOverflow; } /// - /// Event title + /// Gets or Sets Category /// - /// Event title /* - Performance Event! + performance */ - [DataMember(Name = "title", IsRequired = true, EmitDefaultValue = true)] - public string Title { get; set; } + [DataMember(Name = "category", IsRequired = true, EmitDefaultValue = true)] + public string Category { get; set; } /// - /// Time the event starts at + /// Gets or Sets CloseInstanceAfterEndMinutes /// - /// Time the event starts at - [DataMember(Name = "startsAt", IsRequired = true, EmitDefaultValue = true)] - public DateTime StartsAt { get; set; } + /* + 5 + */ + [DataMember(Name = "closeInstanceAfterEndMinutes", EmitDefaultValue = false)] + public int CloseInstanceAfterEndMinutes { get; set; } /// /// Gets or Sets Description @@ -153,25 +154,28 @@ public CreateCalendarEventRequest(string title = default, DateTime startsAt = de public DateTime EndsAt { get; set; } /// - /// Gets or Sets Category + /// Gets or Sets Featured /// - /* - performance - */ - [DataMember(Name = "category", IsRequired = true, EmitDefaultValue = true)] - public string Category { get; set; } + [DataMember(Name = "featured", EmitDefaultValue = true)] + public bool Featured { get; set; } /// - /// Gets or Sets Tags + /// Gets or Sets GuestEarlyJoinMinutes /// - [DataMember(Name = "tags", EmitDefaultValue = false)] - public List Tags { get; set; } + /* + 5 + */ + [DataMember(Name = "guestEarlyJoinMinutes", EmitDefaultValue = false)] + public int GuestEarlyJoinMinutes { get; set; } /// - /// Gets or Sets IsDraft + /// Gets or Sets HostEarlyJoinMinutes /// - [DataMember(Name = "isDraft", EmitDefaultValue = true)] - public bool IsDraft { get; set; } + /* + 60 + */ + [DataMember(Name = "hostEarlyJoinMinutes", EmitDefaultValue = false)] + public int HostEarlyJoinMinutes { get; set; } /// /// Gets or Sets ImageId @@ -183,10 +187,16 @@ public CreateCalendarEventRequest(string title = default, DateTime startsAt = de public string ImageId { get; set; } /// - /// Gets or Sets RoleIds + /// Gets or Sets IsDraft /// - [DataMember(Name = "roleIds", EmitDefaultValue = false)] - public List RoleIds { get; set; } + [DataMember(Name = "isDraft", EmitDefaultValue = true)] + public bool IsDraft { get; set; } + + /// + /// Gets or Sets Languages + /// + [DataMember(Name = "languages", EmitDefaultValue = false)] + public List Languages { get; set; } /// /// Gets or Sets ParentId @@ -201,10 +211,10 @@ public CreateCalendarEventRequest(string title = default, DateTime startsAt = de public List Platforms { get; set; } /// - /// Gets or Sets Languages + /// Gets or Sets RoleIds /// - [DataMember(Name = "languages", EmitDefaultValue = false)] - public List Languages { get; set; } + [DataMember(Name = "roleIds", EmitDefaultValue = false)] + public List RoleIds { get; set; } /// /// Send notification to group members. @@ -217,37 +227,27 @@ public CreateCalendarEventRequest(string title = default, DateTime startsAt = de public bool SendCreationNotification { get; set; } /// - /// Gets or Sets Featured - /// - [DataMember(Name = "featured", EmitDefaultValue = true)] - public bool Featured { get; set; } - - /// - /// Gets or Sets HostEarlyJoinMinutes + /// Time the event starts at /// - /* - 60 - */ - [DataMember(Name = "hostEarlyJoinMinutes", EmitDefaultValue = false)] - public int HostEarlyJoinMinutes { get; set; } + /// Time the event starts at + [DataMember(Name = "startsAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime StartsAt { get; set; } /// - /// Gets or Sets GuestEarlyJoinMinutes + /// Gets or Sets Tags /// - /* - 5 - */ - [DataMember(Name = "guestEarlyJoinMinutes", EmitDefaultValue = false)] - public int GuestEarlyJoinMinutes { get; set; } + [DataMember(Name = "tags", EmitDefaultValue = false)] + public List Tags { get; set; } /// - /// Gets or Sets CloseInstanceAfterEndMinutes + /// Event title /// + /// Event title /* - 5 + Performance Event! */ - [DataMember(Name = "closeInstanceAfterEndMinutes", EmitDefaultValue = false)] - public int CloseInstanceAfterEndMinutes { get; set; } + [DataMember(Name = "title", IsRequired = true, EmitDefaultValue = true)] + public string Title { get; set; } /// /// Gets or Sets UsesInstanceOverflow @@ -266,25 +266,25 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class CreateCalendarEventRequest {\n"); - sb.Append(" Title: ").Append(Title).Append("\n"); - sb.Append(" StartsAt: ").Append(StartsAt).Append("\n"); + sb.Append(" AccessType: ").Append(AccessType).Append("\n"); + sb.Append(" Category: ").Append(Category).Append("\n"); + sb.Append(" CloseInstanceAfterEndMinutes: ").Append(CloseInstanceAfterEndMinutes).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" EndsAt: ").Append(EndsAt).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" Tags: ").Append(Tags).Append("\n"); - sb.Append(" IsDraft: ").Append(IsDraft).Append("\n"); + sb.Append(" Featured: ").Append(Featured).Append("\n"); + sb.Append(" GuestEarlyJoinMinutes: ").Append(GuestEarlyJoinMinutes).Append("\n"); + sb.Append(" HostEarlyJoinMinutes: ").Append(HostEarlyJoinMinutes).Append("\n"); sb.Append(" ImageId: ").Append(ImageId).Append("\n"); - sb.Append(" RoleIds: ").Append(RoleIds).Append("\n"); + sb.Append(" IsDraft: ").Append(IsDraft).Append("\n"); + sb.Append(" Languages: ").Append(Languages).Append("\n"); sb.Append(" ParentId: ").Append(ParentId).Append("\n"); sb.Append(" Platforms: ").Append(Platforms).Append("\n"); - sb.Append(" Languages: ").Append(Languages).Append("\n"); + sb.Append(" RoleIds: ").Append(RoleIds).Append("\n"); sb.Append(" SendCreationNotification: ").Append(SendCreationNotification).Append("\n"); - sb.Append(" Featured: ").Append(Featured).Append("\n"); - sb.Append(" HostEarlyJoinMinutes: ").Append(HostEarlyJoinMinutes).Append("\n"); - sb.Append(" GuestEarlyJoinMinutes: ").Append(GuestEarlyJoinMinutes).Append("\n"); - sb.Append(" CloseInstanceAfterEndMinutes: ").Append(CloseInstanceAfterEndMinutes).Append("\n"); + sb.Append(" StartsAt: ").Append(StartsAt).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Title: ").Append(Title).Append("\n"); sb.Append(" UsesInstanceOverflow: ").Append(UsesInstanceOverflow).Append("\n"); - sb.Append(" AccessType: ").Append(AccessType).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -321,14 +321,17 @@ public bool Equals(CreateCalendarEventRequest input) } return ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) + this.AccessType == input.AccessType || + this.AccessType.Equals(input.AccessType) ) && ( - this.StartsAt == input.StartsAt || - (this.StartsAt != null && - this.StartsAt.Equals(input.StartsAt)) + this.Category == input.Category || + (this.Category != null && + this.Category.Equals(input.Category)) + ) && + ( + this.CloseInstanceAfterEndMinutes == input.CloseInstanceAfterEndMinutes || + this.CloseInstanceAfterEndMinutes.Equals(input.CloseInstanceAfterEndMinutes) ) && ( this.Description == input.Description || @@ -341,19 +344,16 @@ public bool Equals(CreateCalendarEventRequest input) this.EndsAt.Equals(input.EndsAt)) ) && ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) + this.Featured == input.Featured || + this.Featured.Equals(input.Featured) ) && ( - this.Tags == input.Tags || - this.Tags != null && - input.Tags != null && - this.Tags.SequenceEqual(input.Tags) + this.GuestEarlyJoinMinutes == input.GuestEarlyJoinMinutes || + this.GuestEarlyJoinMinutes.Equals(input.GuestEarlyJoinMinutes) ) && ( - this.IsDraft == input.IsDraft || - this.IsDraft.Equals(input.IsDraft) + this.HostEarlyJoinMinutes == input.HostEarlyJoinMinutes || + this.HostEarlyJoinMinutes.Equals(input.HostEarlyJoinMinutes) ) && ( this.ImageId == input.ImageId || @@ -361,10 +361,14 @@ public bool Equals(CreateCalendarEventRequest input) this.ImageId.Equals(input.ImageId)) ) && ( - this.RoleIds == input.RoleIds || - this.RoleIds != null && - input.RoleIds != null && - this.RoleIds.SequenceEqual(input.RoleIds) + this.IsDraft == input.IsDraft || + this.IsDraft.Equals(input.IsDraft) + ) && + ( + this.Languages == input.Languages || + this.Languages != null && + input.Languages != null && + this.Languages.SequenceEqual(input.Languages) ) && ( this.ParentId == input.ParentId || @@ -378,38 +382,34 @@ public bool Equals(CreateCalendarEventRequest input) this.Platforms.SequenceEqual(input.Platforms) ) && ( - this.Languages == input.Languages || - this.Languages != null && - input.Languages != null && - this.Languages.SequenceEqual(input.Languages) + this.RoleIds == input.RoleIds || + this.RoleIds != null && + input.RoleIds != null && + this.RoleIds.SequenceEqual(input.RoleIds) ) && ( this.SendCreationNotification == input.SendCreationNotification || this.SendCreationNotification.Equals(input.SendCreationNotification) ) && ( - this.Featured == input.Featured || - this.Featured.Equals(input.Featured) - ) && - ( - this.HostEarlyJoinMinutes == input.HostEarlyJoinMinutes || - this.HostEarlyJoinMinutes.Equals(input.HostEarlyJoinMinutes) + this.StartsAt == input.StartsAt || + (this.StartsAt != null && + this.StartsAt.Equals(input.StartsAt)) ) && ( - this.GuestEarlyJoinMinutes == input.GuestEarlyJoinMinutes || - this.GuestEarlyJoinMinutes.Equals(input.GuestEarlyJoinMinutes) + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) ) && ( - this.CloseInstanceAfterEndMinutes == input.CloseInstanceAfterEndMinutes || - this.CloseInstanceAfterEndMinutes.Equals(input.CloseInstanceAfterEndMinutes) + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) ) && ( this.UsesInstanceOverflow == input.UsesInstanceOverflow || this.UsesInstanceOverflow.Equals(input.UsesInstanceOverflow) - ) && - ( - this.AccessType == input.AccessType || - this.AccessType.Equals(input.AccessType) ); } @@ -422,14 +422,12 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Title != null) - { - hashCode = (hashCode * 59) + this.Title.GetHashCode(); - } - if (this.StartsAt != null) + hashCode = (hashCode * 59) + this.AccessType.GetHashCode(); + if (this.Category != null) { - hashCode = (hashCode * 59) + this.StartsAt.GetHashCode(); + hashCode = (hashCode * 59) + this.Category.GetHashCode(); } + hashCode = (hashCode * 59) + this.CloseInstanceAfterEndMinutes.GetHashCode(); if (this.Description != null) { hashCode = (hashCode * 59) + this.Description.GetHashCode(); @@ -438,22 +436,17 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.EndsAt.GetHashCode(); } - if (this.Category != null) - { - hashCode = (hashCode * 59) + this.Category.GetHashCode(); - } - if (this.Tags != null) - { - hashCode = (hashCode * 59) + this.Tags.GetHashCode(); - } - hashCode = (hashCode * 59) + this.IsDraft.GetHashCode(); + hashCode = (hashCode * 59) + this.Featured.GetHashCode(); + hashCode = (hashCode * 59) + this.GuestEarlyJoinMinutes.GetHashCode(); + hashCode = (hashCode * 59) + this.HostEarlyJoinMinutes.GetHashCode(); if (this.ImageId != null) { hashCode = (hashCode * 59) + this.ImageId.GetHashCode(); } - if (this.RoleIds != null) + hashCode = (hashCode * 59) + this.IsDraft.GetHashCode(); + if (this.Languages != null) { - hashCode = (hashCode * 59) + this.RoleIds.GetHashCode(); + hashCode = (hashCode * 59) + this.Languages.GetHashCode(); } if (this.ParentId != null) { @@ -463,17 +456,24 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Platforms.GetHashCode(); } - if (this.Languages != null) + if (this.RoleIds != null) { - hashCode = (hashCode * 59) + this.Languages.GetHashCode(); + hashCode = (hashCode * 59) + this.RoleIds.GetHashCode(); } hashCode = (hashCode * 59) + this.SendCreationNotification.GetHashCode(); - hashCode = (hashCode * 59) + this.Featured.GetHashCode(); - hashCode = (hashCode * 59) + this.HostEarlyJoinMinutes.GetHashCode(); - hashCode = (hashCode * 59) + this.GuestEarlyJoinMinutes.GetHashCode(); - hashCode = (hashCode * 59) + this.CloseInstanceAfterEndMinutes.GetHashCode(); + if (this.StartsAt != null) + { + hashCode = (hashCode * 59) + this.StartsAt.GetHashCode(); + } + if (this.Tags != null) + { + hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + } + if (this.Title != null) + { + hashCode = (hashCode * 59) + this.Title.GetHashCode(); + } hashCode = (hashCode * 59) + this.UsesInstanceOverflow.GetHashCode(); - hashCode = (hashCode * 59) + this.AccessType.GetHashCode(); return hashCode; } } @@ -485,18 +485,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Title (string) minLength - if (this.Title != null && this.Title.Length < 1) - { - yield return new ValidationResult("Invalid value for Title, length must be greater than 1.", new [] { "Title" }); - } - // Description (string) minLength if (this.Description != null && this.Description.Length < 1) { yield return new ValidationResult("Invalid value for Description, length must be greater than 1.", new [] { "Description" }); } + // Title (string) minLength + if (this.Title != null && this.Title.Length < 1) + { + yield return new ValidationResult("Invalid value for Title, length must be greater than 1.", new [] { "Title" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/CreateFileRequest.cs b/src/VRChat.API/Model/CreateFileRequest.cs index 9cba1d75..3eaeb288 100644 --- a/src/VRChat.API/Model/CreateFileRequest.cs +++ b/src/VRChat.API/Model/CreateFileRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,40 +46,40 @@ protected CreateFileRequest() { } /// /// Initializes a new instance of the class. /// - /// name (required). - /// mimeType (required). /// extension (required). + /// mimeType (required). + /// name (required). /// . - public CreateFileRequest(string name = default, MIMEType mimeType = default, string extension = default, List tags = default) + public CreateFileRequest(string extension = default, MIMEType mimeType = default, string name = default, List tags = default) { - // to ensure "name" is required (not null) - if (name == null) - { - throw new ArgumentNullException("name is a required property for CreateFileRequest and cannot be null"); - } - this.Name = name; - this.MimeType = mimeType; // to ensure "extension" is required (not null) if (extension == null) { throw new ArgumentNullException("extension is a required property for CreateFileRequest and cannot be null"); } this.Extension = extension; + this.MimeType = mimeType; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for CreateFileRequest and cannot be null"); + } + this.Name = name; this.Tags = tags; } - /// - /// Gets or Sets Name - /// - [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] - public string Name { get; set; } - /// /// Gets or Sets Extension /// [DataMember(Name = "extension", IsRequired = true, EmitDefaultValue = true)] public string Extension { get; set; } + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + /// /// /// @@ -95,9 +95,9 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class CreateFileRequest {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" MimeType: ").Append(MimeType).Append("\n"); sb.Append(" Extension: ").Append(Extension).Append("\n"); + sb.Append(" MimeType: ").Append(MimeType).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Tags: ").Append(Tags).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -135,18 +135,18 @@ public bool Equals(CreateFileRequest input) } return ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) + this.Extension == input.Extension || + (this.Extension != null && + this.Extension.Equals(input.Extension)) ) && ( this.MimeType == input.MimeType || this.MimeType.Equals(input.MimeType) ) && ( - this.Extension == input.Extension || - (this.Extension != null && - this.Extension.Equals(input.Extension)) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( this.Tags == input.Tags || @@ -165,14 +165,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Name != null) + if (this.Extension != null) { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + hashCode = (hashCode * 59) + this.Extension.GetHashCode(); } hashCode = (hashCode * 59) + this.MimeType.GetHashCode(); - if (this.Extension != null) + if (this.Name != null) { - hashCode = (hashCode * 59) + this.Extension.GetHashCode(); + hashCode = (hashCode * 59) + this.Name.GetHashCode(); } if (this.Tags != null) { @@ -189,18 +189,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) minLength - if (this.Name != null && this.Name.Length < 0) - { - yield return new ValidationResult("Invalid value for Name, length must be greater than 0.", new [] { "Name" }); - } - // Extension (string) minLength if (this.Extension != null && this.Extension.Length < 1) { yield return new ValidationResult("Invalid value for Extension, length must be greater than 1.", new [] { "Extension" }); } + // Name (string) minLength + if (this.Name != null && this.Name.Length < 0) + { + yield return new ValidationResult("Invalid value for Name, length must be greater than 0.", new [] { "Name" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/CreateFileVersionRequest.cs b/src/VRChat.API/Model/CreateFileVersionRequest.cs index 2f9d7add..750b77a2 100644 --- a/src/VRChat.API/Model/CreateFileVersionRequest.cs +++ b/src/VRChat.API/Model/CreateFileVersionRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,11 +40,11 @@ protected CreateFileVersionRequest() { } /// /// Initializes a new instance of the class. /// - /// signatureMd5 (required). - /// signatureSizeInBytes (required). /// fileMd5. /// fileSizeInBytes. - public CreateFileVersionRequest(string signatureMd5 = default, int signatureSizeInBytes = default, string fileMd5 = default, int fileSizeInBytes = default) + /// signatureMd5 (required). + /// signatureSizeInBytes (required). + public CreateFileVersionRequest(string fileMd5 = default, int fileSizeInBytes = default, string signatureMd5 = default, int signatureSizeInBytes = default) { // to ensure "signatureMd5" is required (not null) if (signatureMd5 == null) @@ -57,18 +57,6 @@ public CreateFileVersionRequest(string signatureMd5 = default, int signatureSize this.FileSizeInBytes = fileSizeInBytes; } - /// - /// Gets or Sets SignatureMd5 - /// - [DataMember(Name = "signatureMd5", IsRequired = true, EmitDefaultValue = true)] - public string SignatureMd5 { get; set; } - - /// - /// Gets or Sets SignatureSizeInBytes - /// - [DataMember(Name = "signatureSizeInBytes", IsRequired = true, EmitDefaultValue = true)] - public int SignatureSizeInBytes { get; set; } - /// /// Gets or Sets FileMd5 /// @@ -81,6 +69,18 @@ public CreateFileVersionRequest(string signatureMd5 = default, int signatureSize [DataMember(Name = "fileSizeInBytes", EmitDefaultValue = false)] public int FileSizeInBytes { get; set; } + /// + /// Gets or Sets SignatureMd5 + /// + [DataMember(Name = "signatureMd5", IsRequired = true, EmitDefaultValue = true)] + public string SignatureMd5 { get; set; } + + /// + /// Gets or Sets SignatureSizeInBytes + /// + [DataMember(Name = "signatureSizeInBytes", IsRequired = true, EmitDefaultValue = true)] + public int SignatureSizeInBytes { get; set; } + /// /// Returns the string presentation of the object /// @@ -89,10 +89,10 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class CreateFileVersionRequest {\n"); - sb.Append(" SignatureMd5: ").Append(SignatureMd5).Append("\n"); - sb.Append(" SignatureSizeInBytes: ").Append(SignatureSizeInBytes).Append("\n"); sb.Append(" FileMd5: ").Append(FileMd5).Append("\n"); sb.Append(" FileSizeInBytes: ").Append(FileSizeInBytes).Append("\n"); + sb.Append(" SignatureMd5: ").Append(SignatureMd5).Append("\n"); + sb.Append(" SignatureSizeInBytes: ").Append(SignatureSizeInBytes).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -128,15 +128,6 @@ public bool Equals(CreateFileVersionRequest input) return false; } return - ( - this.SignatureMd5 == input.SignatureMd5 || - (this.SignatureMd5 != null && - this.SignatureMd5.Equals(input.SignatureMd5)) - ) && - ( - this.SignatureSizeInBytes == input.SignatureSizeInBytes || - this.SignatureSizeInBytes.Equals(input.SignatureSizeInBytes) - ) && ( this.FileMd5 == input.FileMd5 || (this.FileMd5 != null && @@ -145,6 +136,15 @@ public bool Equals(CreateFileVersionRequest input) ( this.FileSizeInBytes == input.FileSizeInBytes || this.FileSizeInBytes.Equals(input.FileSizeInBytes) + ) && + ( + this.SignatureMd5 == input.SignatureMd5 || + (this.SignatureMd5 != null && + this.SignatureMd5.Equals(input.SignatureMd5)) + ) && + ( + this.SignatureSizeInBytes == input.SignatureSizeInBytes || + this.SignatureSizeInBytes.Equals(input.SignatureSizeInBytes) ); } @@ -157,16 +157,16 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.SignatureMd5 != null) - { - hashCode = (hashCode * 59) + this.SignatureMd5.GetHashCode(); - } - hashCode = (hashCode * 59) + this.SignatureSizeInBytes.GetHashCode(); if (this.FileMd5 != null) { hashCode = (hashCode * 59) + this.FileMd5.GetHashCode(); } hashCode = (hashCode * 59) + this.FileSizeInBytes.GetHashCode(); + if (this.SignatureMd5 != null) + { + hashCode = (hashCode * 59) + this.SignatureMd5.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SignatureSizeInBytes.GetHashCode(); return hashCode; } } @@ -178,18 +178,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // SignatureMd5 (string) minLength - if (this.SignatureMd5 != null && this.SignatureMd5.Length < 1) - { - yield return new ValidationResult("Invalid value for SignatureMd5, length must be greater than 1.", new [] { "SignatureMd5" }); - } - // FileMd5 (string) minLength if (this.FileMd5 != null && this.FileMd5.Length < 1) { yield return new ValidationResult("Invalid value for FileMd5, length must be greater than 1.", new [] { "FileMd5" }); } + // SignatureMd5 (string) minLength + if (this.SignatureMd5 != null && this.SignatureMd5.Length < 1) + { + yield return new ValidationResult("Invalid value for SignatureMd5, length must be greater than 1.", new [] { "SignatureMd5" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/CreateGroupAnnouncementRequest.cs b/src/VRChat.API/Model/CreateGroupAnnouncementRequest.cs index ddea785a..7fe77b34 100644 --- a/src/VRChat.API/Model/CreateGroupAnnouncementRequest.cs +++ b/src/VRChat.API/Model/CreateGroupAnnouncementRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,11 +40,11 @@ protected CreateGroupAnnouncementRequest() { } /// /// Initializes a new instance of the class. /// - /// Announcement title (required). - /// Announcement text. /// imageId. /// Send notification to group members. (default to false). - public CreateGroupAnnouncementRequest(string title = default, string text = default, string imageId = default, bool sendNotification = false) + /// Announcement text. + /// Announcement title (required). + public CreateGroupAnnouncementRequest(string imageId = default, bool sendNotification = false, string text = default, string title = default) { // to ensure "title" is required (not null) if (title == null) @@ -52,49 +52,49 @@ public CreateGroupAnnouncementRequest(string title = default, string text = defa throw new ArgumentNullException("title is a required property for CreateGroupAnnouncementRequest and cannot be null"); } this.Title = title; - this.Text = text; this.ImageId = imageId; this.SendNotification = sendNotification; + this.Text = text; } /// - /// Announcement title + /// Gets or Sets ImageId /// - /// Announcement title /* - Event is starting soon! + file_ce35d830-e20a-4df0-a6d4-5aaef4508044 */ - [DataMember(Name = "title", IsRequired = true, EmitDefaultValue = true)] - public string Title { get; set; } + [DataMember(Name = "imageId", EmitDefaultValue = false)] + public string ImageId { get; set; } /// - /// Announcement text + /// Send notification to group members. /// - /// Announcement text + /// Send notification to group members. /* - Come join us for the event! + false */ - [DataMember(Name = "text", EmitDefaultValue = false)] - public string Text { get; set; } + [DataMember(Name = "sendNotification", EmitDefaultValue = true)] + public bool SendNotification { get; set; } /// - /// Gets or Sets ImageId + /// Announcement text /// + /// Announcement text /* - file_ce35d830-e20a-4df0-a6d4-5aaef4508044 + Come join us for the event! */ - [DataMember(Name = "imageId", EmitDefaultValue = false)] - public string ImageId { get; set; } + [DataMember(Name = "text", EmitDefaultValue = false)] + public string Text { get; set; } /// - /// Send notification to group members. + /// Announcement title /// - /// Send notification to group members. + /// Announcement title /* - false + Event is starting soon! */ - [DataMember(Name = "sendNotification", EmitDefaultValue = true)] - public bool SendNotification { get; set; } + [DataMember(Name = "title", IsRequired = true, EmitDefaultValue = true)] + public string Title { get; set; } /// /// Returns the string presentation of the object @@ -104,10 +104,10 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class CreateGroupAnnouncementRequest {\n"); - sb.Append(" Title: ").Append(Title).Append("\n"); - sb.Append(" Text: ").Append(Text).Append("\n"); sb.Append(" ImageId: ").Append(ImageId).Append("\n"); sb.Append(" SendNotification: ").Append(SendNotification).Append("\n"); + sb.Append(" Text: ").Append(Text).Append("\n"); + sb.Append(" Title: ").Append(Title).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -143,16 +143,6 @@ public bool Equals(CreateGroupAnnouncementRequest input) return false; } return - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && - ( - this.Text == input.Text || - (this.Text != null && - this.Text.Equals(input.Text)) - ) && ( this.ImageId == input.ImageId || (this.ImageId != null && @@ -161,6 +151,16 @@ public bool Equals(CreateGroupAnnouncementRequest input) ( this.SendNotification == input.SendNotification || this.SendNotification.Equals(input.SendNotification) + ) && + ( + this.Text == input.Text || + (this.Text != null && + this.Text.Equals(input.Text)) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) ); } @@ -173,19 +173,19 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Title != null) + if (this.ImageId != null) { - hashCode = (hashCode * 59) + this.Title.GetHashCode(); + hashCode = (hashCode * 59) + this.ImageId.GetHashCode(); } + hashCode = (hashCode * 59) + this.SendNotification.GetHashCode(); if (this.Text != null) { hashCode = (hashCode * 59) + this.Text.GetHashCode(); } - if (this.ImageId != null) + if (this.Title != null) { - hashCode = (hashCode * 59) + this.ImageId.GetHashCode(); + hashCode = (hashCode * 59) + this.Title.GetHashCode(); } - hashCode = (hashCode * 59) + this.SendNotification.GetHashCode(); return hashCode; } } @@ -197,18 +197,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Title (string) minLength - if (this.Title != null && this.Title.Length < 1) - { - yield return new ValidationResult("Invalid value for Title, length must be greater than 1.", new [] { "Title" }); - } - // Text (string) minLength if (this.Text != null && this.Text.Length < 1) { yield return new ValidationResult("Invalid value for Text, length must be greater than 1.", new [] { "Text" }); } + // Title (string) minLength + if (this.Title != null && this.Title.Length < 1) + { + yield return new ValidationResult("Invalid value for Title, length must be greater than 1.", new [] { "Title" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/CreateGroupGalleryRequest.cs b/src/VRChat.API/Model/CreateGroupGalleryRequest.cs index 63546acf..cca4e8b1 100644 --- a/src/VRChat.API/Model/CreateGroupGalleryRequest.cs +++ b/src/VRChat.API/Model/CreateGroupGalleryRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,14 +40,14 @@ protected CreateGroupGalleryRequest() { } /// /// Initializes a new instance of the class. /// - /// Name of the gallery. (required). /// Description of the gallery.. /// Whether the gallery is members only. (default to false). - /// . - /// . + /// Name of the gallery. (required). /// . /// . - public CreateGroupGalleryRequest(string name = default, string description = default, bool membersOnly = false, List roleIdsToView = default, List roleIdsToSubmit = default, List roleIdsToAutoApprove = default, List roleIdsToManage = default) + /// . + /// . + public CreateGroupGalleryRequest(string description = default, bool membersOnly = false, string name = default, List roleIdsToAutoApprove = default, List roleIdsToManage = default, List roleIdsToSubmit = default, List roleIdsToView = default) { // to ensure "name" is required (not null) if (name == null) @@ -57,22 +57,12 @@ public CreateGroupGalleryRequest(string name = default, string description = def this.Name = name; this.Description = description; this.MembersOnly = membersOnly; - this.RoleIdsToView = roleIdsToView; - this.RoleIdsToSubmit = roleIdsToSubmit; this.RoleIdsToAutoApprove = roleIdsToAutoApprove; this.RoleIdsToManage = roleIdsToManage; + this.RoleIdsToSubmit = roleIdsToSubmit; + this.RoleIdsToView = roleIdsToView; } - /// - /// Name of the gallery. - /// - /// Name of the gallery. - /* - Example Gallery - */ - [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] - public string Name { get; set; } - /// /// Description of the gallery. /// @@ -93,33 +83,43 @@ public CreateGroupGalleryRequest(string name = default, string description = def [DataMember(Name = "membersOnly", EmitDefaultValue = true)] public bool MembersOnly { get; set; } + /// + /// Name of the gallery. + /// + /// Name of the gallery. + /* + Example Gallery + */ + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + /// /// /// /// - [DataMember(Name = "roleIdsToView", EmitDefaultValue = true)] - public List RoleIdsToView { get; set; } + [DataMember(Name = "roleIdsToAutoApprove", EmitDefaultValue = true)] + public List RoleIdsToAutoApprove { get; set; } /// /// /// /// - [DataMember(Name = "roleIdsToSubmit", EmitDefaultValue = true)] - public List RoleIdsToSubmit { get; set; } + [DataMember(Name = "roleIdsToManage", EmitDefaultValue = true)] + public List RoleIdsToManage { get; set; } /// /// /// /// - [DataMember(Name = "roleIdsToAutoApprove", EmitDefaultValue = true)] - public List RoleIdsToAutoApprove { get; set; } + [DataMember(Name = "roleIdsToSubmit", EmitDefaultValue = true)] + public List RoleIdsToSubmit { get; set; } /// /// /// /// - [DataMember(Name = "roleIdsToManage", EmitDefaultValue = true)] - public List RoleIdsToManage { get; set; } + [DataMember(Name = "roleIdsToView", EmitDefaultValue = true)] + public List RoleIdsToView { get; set; } /// /// Returns the string presentation of the object @@ -129,13 +129,13 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class CreateGroupGalleryRequest {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" MembersOnly: ").Append(MembersOnly).Append("\n"); - sb.Append(" RoleIdsToView: ").Append(RoleIdsToView).Append("\n"); - sb.Append(" RoleIdsToSubmit: ").Append(RoleIdsToSubmit).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" RoleIdsToAutoApprove: ").Append(RoleIdsToAutoApprove).Append("\n"); sb.Append(" RoleIdsToManage: ").Append(RoleIdsToManage).Append("\n"); + sb.Append(" RoleIdsToSubmit: ").Append(RoleIdsToSubmit).Append("\n"); + sb.Append(" RoleIdsToView: ").Append(RoleIdsToView).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -171,11 +171,6 @@ public bool Equals(CreateGroupGalleryRequest input) return false; } return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && ( this.Description == input.Description || (this.Description != null && @@ -186,16 +181,9 @@ public bool Equals(CreateGroupGalleryRequest input) this.MembersOnly.Equals(input.MembersOnly) ) && ( - this.RoleIdsToView == input.RoleIdsToView || - this.RoleIdsToView != null && - input.RoleIdsToView != null && - this.RoleIdsToView.SequenceEqual(input.RoleIdsToView) - ) && - ( - this.RoleIdsToSubmit == input.RoleIdsToSubmit || - this.RoleIdsToSubmit != null && - input.RoleIdsToSubmit != null && - this.RoleIdsToSubmit.SequenceEqual(input.RoleIdsToSubmit) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( this.RoleIdsToAutoApprove == input.RoleIdsToAutoApprove || @@ -208,6 +196,18 @@ public bool Equals(CreateGroupGalleryRequest input) this.RoleIdsToManage != null && input.RoleIdsToManage != null && this.RoleIdsToManage.SequenceEqual(input.RoleIdsToManage) + ) && + ( + this.RoleIdsToSubmit == input.RoleIdsToSubmit || + this.RoleIdsToSubmit != null && + input.RoleIdsToSubmit != null && + this.RoleIdsToSubmit.SequenceEqual(input.RoleIdsToSubmit) + ) && + ( + this.RoleIdsToView == input.RoleIdsToView || + this.RoleIdsToView != null && + input.RoleIdsToView != null && + this.RoleIdsToView.SequenceEqual(input.RoleIdsToView) ); } @@ -220,22 +220,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Name != null) - { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); - } if (this.Description != null) { hashCode = (hashCode * 59) + this.Description.GetHashCode(); } hashCode = (hashCode * 59) + this.MembersOnly.GetHashCode(); - if (this.RoleIdsToView != null) - { - hashCode = (hashCode * 59) + this.RoleIdsToView.GetHashCode(); - } - if (this.RoleIdsToSubmit != null) + if (this.Name != null) { - hashCode = (hashCode * 59) + this.RoleIdsToSubmit.GetHashCode(); + hashCode = (hashCode * 59) + this.Name.GetHashCode(); } if (this.RoleIdsToAutoApprove != null) { @@ -245,6 +237,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.RoleIdsToManage.GetHashCode(); } + if (this.RoleIdsToSubmit != null) + { + hashCode = (hashCode * 59) + this.RoleIdsToSubmit.GetHashCode(); + } + if (this.RoleIdsToView != null) + { + hashCode = (hashCode * 59) + this.RoleIdsToView.GetHashCode(); + } return hashCode; } } @@ -256,18 +256,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) minLength - if (this.Name != null && this.Name.Length < 1) - { - yield return new ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); - } - // Description (string) minLength if (this.Description != null && this.Description.Length < 0) { yield return new ValidationResult("Invalid value for Description, length must be greater than 0.", new [] { "Description" }); } + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/CreateGroupInviteRequest.cs b/src/VRChat.API/Model/CreateGroupInviteRequest.cs index 5c4517d9..85e9f748 100644 --- a/src/VRChat.API/Model/CreateGroupInviteRequest.cs +++ b/src/VRChat.API/Model/CreateGroupInviteRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,9 +40,9 @@ protected CreateGroupInviteRequest() { } /// /// Initializes a new instance of the class. /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). /// confirmOverrideBlock (default to true). - public CreateGroupInviteRequest(string userId = default, bool confirmOverrideBlock = true) + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). + public CreateGroupInviteRequest(bool confirmOverrideBlock = true, string userId = default) { // to ensure "userId" is required (not null) if (userId == null) @@ -53,6 +53,12 @@ public CreateGroupInviteRequest(string userId = default, bool confirmOverrideBlo this.ConfirmOverrideBlock = confirmOverrideBlock; } + /// + /// Gets or Sets ConfirmOverrideBlock + /// + [DataMember(Name = "confirmOverrideBlock", EmitDefaultValue = true)] + public bool ConfirmOverrideBlock { get; set; } + /// /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// @@ -63,12 +69,6 @@ public CreateGroupInviteRequest(string userId = default, bool confirmOverrideBlo [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)] public string UserId { get; set; } - /// - /// Gets or Sets ConfirmOverrideBlock - /// - [DataMember(Name = "confirmOverrideBlock", EmitDefaultValue = true)] - public bool ConfirmOverrideBlock { get; set; } - /// /// Returns the string presentation of the object /// @@ -77,8 +77,8 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class CreateGroupInviteRequest {\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); sb.Append(" ConfirmOverrideBlock: ").Append(ConfirmOverrideBlock).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -114,14 +114,14 @@ public bool Equals(CreateGroupInviteRequest input) return false; } return + ( + this.ConfirmOverrideBlock == input.ConfirmOverrideBlock || + this.ConfirmOverrideBlock.Equals(input.ConfirmOverrideBlock) + ) && ( this.UserId == input.UserId || (this.UserId != null && this.UserId.Equals(input.UserId)) - ) && - ( - this.ConfirmOverrideBlock == input.ConfirmOverrideBlock || - this.ConfirmOverrideBlock.Equals(input.ConfirmOverrideBlock) ); } @@ -134,11 +134,11 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + hashCode = (hashCode * 59) + this.ConfirmOverrideBlock.GetHashCode(); if (this.UserId != null) { hashCode = (hashCode * 59) + this.UserId.GetHashCode(); } - hashCode = (hashCode * 59) + this.ConfirmOverrideBlock.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/CreateGroupPostRequest.cs b/src/VRChat.API/Model/CreateGroupPostRequest.cs index 798ce710..6113849d 100644 --- a/src/VRChat.API/Model/CreateGroupPostRequest.cs +++ b/src/VRChat.API/Model/CreateGroupPostRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,52 +46,32 @@ protected CreateGroupPostRequest() { } /// /// Initializes a new instance of the class. /// - /// Post title (required). - /// Post text (required). /// imageId. - /// Send notification to group members. (required) (default to false). /// . + /// Send notification to group members. (required) (default to false). + /// Post text (required). + /// Post title (required). /// visibility (required). - public CreateGroupPostRequest(string title = default, string text = default, string imageId = default, bool sendNotification = false, List roleIds = default, GroupPostVisibility visibility = default) + public CreateGroupPostRequest(string imageId = default, List roleIds = default, bool sendNotification = false, string text = default, string title = default, GroupPostVisibility visibility = default) { - // to ensure "title" is required (not null) - if (title == null) - { - throw new ArgumentNullException("title is a required property for CreateGroupPostRequest and cannot be null"); - } - this.Title = title; + this.SendNotification = sendNotification; // to ensure "text" is required (not null) if (text == null) { throw new ArgumentNullException("text is a required property for CreateGroupPostRequest and cannot be null"); } this.Text = text; - this.SendNotification = sendNotification; + // to ensure "title" is required (not null) + if (title == null) + { + throw new ArgumentNullException("title is a required property for CreateGroupPostRequest and cannot be null"); + } + this.Title = title; this.Visibility = visibility; this.ImageId = imageId; this.RoleIds = roleIds; } - /// - /// Post title - /// - /// Post title - /* - Event is starting soon! - */ - [DataMember(Name = "title", IsRequired = true, EmitDefaultValue = true)] - public string Title { get; set; } - - /// - /// Post text - /// - /// Post text - /* - Come join us for the event! - */ - [DataMember(Name = "text", IsRequired = true, EmitDefaultValue = true)] - public string Text { get; set; } - /// /// Gets or Sets ImageId /// @@ -101,6 +81,13 @@ public CreateGroupPostRequest(string title = default, string text = default, str [DataMember(Name = "imageId", EmitDefaultValue = false)] public string ImageId { get; set; } + /// + /// + /// + /// + [DataMember(Name = "roleIds", EmitDefaultValue = false)] + public List RoleIds { get; set; } + /// /// Send notification to group members. /// @@ -112,11 +99,24 @@ public CreateGroupPostRequest(string title = default, string text = default, str public bool SendNotification { get; set; } /// - /// + /// Post text /// - /// - [DataMember(Name = "roleIds", EmitDefaultValue = false)] - public List RoleIds { get; set; } + /// Post text + /* + Come join us for the event! + */ + [DataMember(Name = "text", IsRequired = true, EmitDefaultValue = true)] + public string Text { get; set; } + + /// + /// Post title + /// + /// Post title + /* + Event is starting soon! + */ + [DataMember(Name = "title", IsRequired = true, EmitDefaultValue = true)] + public string Title { get; set; } /// /// Returns the string presentation of the object @@ -126,11 +126,11 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class CreateGroupPostRequest {\n"); - sb.Append(" Title: ").Append(Title).Append("\n"); - sb.Append(" Text: ").Append(Text).Append("\n"); sb.Append(" ImageId: ").Append(ImageId).Append("\n"); - sb.Append(" SendNotification: ").Append(SendNotification).Append("\n"); sb.Append(" RoleIds: ").Append(RoleIds).Append("\n"); + sb.Append(" SendNotification: ").Append(SendNotification).Append("\n"); + sb.Append(" Text: ").Append(Text).Append("\n"); + sb.Append(" Title: ").Append(Title).Append("\n"); sb.Append(" Visibility: ").Append(Visibility).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -167,31 +167,31 @@ public bool Equals(CreateGroupPostRequest input) return false; } return - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && - ( - this.Text == input.Text || - (this.Text != null && - this.Text.Equals(input.Text)) - ) && ( this.ImageId == input.ImageId || (this.ImageId != null && this.ImageId.Equals(input.ImageId)) ) && - ( - this.SendNotification == input.SendNotification || - this.SendNotification.Equals(input.SendNotification) - ) && ( this.RoleIds == input.RoleIds || this.RoleIds != null && input.RoleIds != null && this.RoleIds.SequenceEqual(input.RoleIds) ) && + ( + this.SendNotification == input.SendNotification || + this.SendNotification.Equals(input.SendNotification) + ) && + ( + this.Text == input.Text || + (this.Text != null && + this.Text.Equals(input.Text)) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && ( this.Visibility == input.Visibility || this.Visibility.Equals(input.Visibility) @@ -207,23 +207,23 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Title != null) - { - hashCode = (hashCode * 59) + this.Title.GetHashCode(); - } - if (this.Text != null) - { - hashCode = (hashCode * 59) + this.Text.GetHashCode(); - } if (this.ImageId != null) { hashCode = (hashCode * 59) + this.ImageId.GetHashCode(); } - hashCode = (hashCode * 59) + this.SendNotification.GetHashCode(); if (this.RoleIds != null) { hashCode = (hashCode * 59) + this.RoleIds.GetHashCode(); } + hashCode = (hashCode * 59) + this.SendNotification.GetHashCode(); + if (this.Text != null) + { + hashCode = (hashCode * 59) + this.Text.GetHashCode(); + } + if (this.Title != null) + { + hashCode = (hashCode * 59) + this.Title.GetHashCode(); + } hashCode = (hashCode * 59) + this.Visibility.GetHashCode(); return hashCode; } @@ -236,18 +236,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Title (string) minLength - if (this.Title != null && this.Title.Length < 1) - { - yield return new ValidationResult("Invalid value for Title, length must be greater than 1.", new [] { "Title" }); - } - // Text (string) minLength if (this.Text != null && this.Text.Length < 1) { yield return new ValidationResult("Invalid value for Text, length must be greater than 1.", new [] { "Text" }); } + // Title (string) minLength + if (this.Title != null && this.Title.Length < 1) + { + yield return new ValidationResult("Invalid value for Title, length must be greater than 1.", new [] { "Title" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/CreateGroupRequest.cs b/src/VRChat.API/Model/CreateGroupRequest.cs index 20e4600e..c939fea0 100644 --- a/src/VRChat.API/Model/CreateGroupRequest.cs +++ b/src/VRChat.API/Model/CreateGroupRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -58,15 +58,15 @@ protected CreateGroupRequest() { } /// /// Initializes a new instance of the class. /// - /// name (required). - /// shortCode (required). + /// bannerId. /// description. - /// joinState. /// iconId. - /// bannerId. + /// joinState. + /// name (required). /// privacy. /// roleTemplate (required). - public CreateGroupRequest(string name = default, string shortCode = default, string description = default, GroupJoinState? joinState = default, string iconId = default, string bannerId = default, GroupPrivacy? privacy = default, GroupRoleTemplate roleTemplate = default) + /// shortCode (required). + public CreateGroupRequest(string bannerId = default, string description = default, string iconId = default, GroupJoinState? joinState = default, string name = default, GroupPrivacy? privacy = default, GroupRoleTemplate roleTemplate = default, string shortCode = default) { // to ensure "name" is required (not null) if (name == null) @@ -74,31 +74,25 @@ public CreateGroupRequest(string name = default, string shortCode = default, str throw new ArgumentNullException("name is a required property for CreateGroupRequest and cannot be null"); } this.Name = name; + this.RoleTemplate = roleTemplate; // to ensure "shortCode" is required (not null) if (shortCode == null) { throw new ArgumentNullException("shortCode is a required property for CreateGroupRequest and cannot be null"); } this.ShortCode = shortCode; - this.RoleTemplate = roleTemplate; + this.BannerId = bannerId; this.Description = description; - this.JoinState = joinState; this.IconId = iconId; - this.BannerId = bannerId; + this.JoinState = joinState; this.Privacy = privacy; } /// - /// Gets or Sets Name - /// - [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] - public string Name { get; set; } - - /// - /// Gets or Sets ShortCode + /// Gets or Sets BannerId /// - [DataMember(Name = "shortCode", IsRequired = true, EmitDefaultValue = true)] - public string ShortCode { get; set; } + [DataMember(Name = "bannerId", EmitDefaultValue = true)] + public string BannerId { get; set; } /// /// Gets or Sets Description @@ -113,10 +107,16 @@ public CreateGroupRequest(string name = default, string shortCode = default, str public string IconId { get; set; } /// - /// Gets or Sets BannerId + /// Gets or Sets Name /// - [DataMember(Name = "bannerId", EmitDefaultValue = true)] - public string BannerId { get; set; } + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets ShortCode + /// + [DataMember(Name = "shortCode", IsRequired = true, EmitDefaultValue = true)] + public string ShortCode { get; set; } /// /// Returns the string presentation of the object @@ -126,14 +126,14 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class CreateGroupRequest {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ShortCode: ").Append(ShortCode).Append("\n"); + sb.Append(" BannerId: ").Append(BannerId).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" JoinState: ").Append(JoinState).Append("\n"); sb.Append(" IconId: ").Append(IconId).Append("\n"); - sb.Append(" BannerId: ").Append(BannerId).Append("\n"); + sb.Append(" JoinState: ").Append(JoinState).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Privacy: ").Append(Privacy).Append("\n"); sb.Append(" RoleTemplate: ").Append(RoleTemplate).Append("\n"); + sb.Append(" ShortCode: ").Append(ShortCode).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -170,33 +170,28 @@ public bool Equals(CreateGroupRequest input) } return ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.ShortCode == input.ShortCode || - (this.ShortCode != null && - this.ShortCode.Equals(input.ShortCode)) + this.BannerId == input.BannerId || + (this.BannerId != null && + this.BannerId.Equals(input.BannerId)) ) && ( this.Description == input.Description || (this.Description != null && this.Description.Equals(input.Description)) ) && - ( - this.JoinState == input.JoinState || - this.JoinState.Equals(input.JoinState) - ) && ( this.IconId == input.IconId || (this.IconId != null && this.IconId.Equals(input.IconId)) ) && ( - this.BannerId == input.BannerId || - (this.BannerId != null && - this.BannerId.Equals(input.BannerId)) + this.JoinState == input.JoinState || + this.JoinState.Equals(input.JoinState) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( this.Privacy == input.Privacy || @@ -205,6 +200,11 @@ public bool Equals(CreateGroupRequest input) ( this.RoleTemplate == input.RoleTemplate || this.RoleTemplate.Equals(input.RoleTemplate) + ) && + ( + this.ShortCode == input.ShortCode || + (this.ShortCode != null && + this.ShortCode.Equals(input.ShortCode)) ); } @@ -217,29 +217,29 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Name != null) - { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); - } - if (this.ShortCode != null) + if (this.BannerId != null) { - hashCode = (hashCode * 59) + this.ShortCode.GetHashCode(); + hashCode = (hashCode * 59) + this.BannerId.GetHashCode(); } if (this.Description != null) { hashCode = (hashCode * 59) + this.Description.GetHashCode(); } - hashCode = (hashCode * 59) + this.JoinState.GetHashCode(); if (this.IconId != null) { hashCode = (hashCode * 59) + this.IconId.GetHashCode(); } - if (this.BannerId != null) + hashCode = (hashCode * 59) + this.JoinState.GetHashCode(); + if (this.Name != null) { - hashCode = (hashCode * 59) + this.BannerId.GetHashCode(); + hashCode = (hashCode * 59) + this.Name.GetHashCode(); } hashCode = (hashCode * 59) + this.Privacy.GetHashCode(); hashCode = (hashCode * 59) + this.RoleTemplate.GetHashCode(); + if (this.ShortCode != null) + { + hashCode = (hashCode * 59) + this.ShortCode.GetHashCode(); + } return hashCode; } } @@ -251,6 +251,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { + // Description (string) maxLength + if (this.Description != null && this.Description.Length > 250) + { + yield return new ValidationResult("Invalid value for Description, length must be less than 250.", new [] { "Description" }); + } + + // Description (string) minLength + if (this.Description != null && this.Description.Length < 0) + { + yield return new ValidationResult("Invalid value for Description, length must be greater than 0.", new [] { "Description" }); + } + // Name (string) maxLength if (this.Name != null && this.Name.Length > 64) { @@ -275,18 +287,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for ShortCode, length must be greater than 3.", new [] { "ShortCode" }); } - // Description (string) maxLength - if (this.Description != null && this.Description.Length > 250) - { - yield return new ValidationResult("Invalid value for Description, length must be less than 250.", new [] { "Description" }); - } - - // Description (string) minLength - if (this.Description != null && this.Description.Length < 0) - { - yield return new ValidationResult("Invalid value for Description, length must be greater than 0.", new [] { "Description" }); - } - yield break; } } diff --git a/src/VRChat.API/Model/CreateGroupRoleRequest.cs b/src/VRChat.API/Model/CreateGroupRoleRequest.cs index f7a790dd..309225e2 100644 --- a/src/VRChat.API/Model/CreateGroupRoleRequest.cs +++ b/src/VRChat.API/Model/CreateGroupRoleRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,44 +35,44 @@ public partial class CreateGroupRoleRequest : IEquatable /// /// Initializes a new instance of the class. /// - /// id. - /// name. /// description. + /// id. /// isSelfAssignable (default to false). + /// name. /// permissions. - public CreateGroupRoleRequest(string id = default, string name = default, string description = default, bool isSelfAssignable = false, List permissions = default) + public CreateGroupRoleRequest(string description = default, string id = default, bool isSelfAssignable = false, string name = default, List permissions = default) { - this.Id = id; - this.Name = name; this.Description = description; + this.Id = id; this.IsSelfAssignable = isSelfAssignable; + this.Name = name; this.Permissions = permissions; } - /// - /// Gets or Sets Id - /// - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } - - /// - /// Gets or Sets Name - /// - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } - /// /// Gets or Sets Description /// [DataMember(Name = "description", EmitDefaultValue = false)] public string Description { get; set; } + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + /// /// Gets or Sets IsSelfAssignable /// [DataMember(Name = "isSelfAssignable", EmitDefaultValue = true)] public bool IsSelfAssignable { get; set; } + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + /// /// Gets or Sets Permissions /// @@ -87,10 +87,10 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class CreateGroupRoleRequest {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" IsSelfAssignable: ").Append(IsSelfAssignable).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Permissions: ").Append(Permissions).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -127,25 +127,25 @@ public bool Equals(CreateGroupRoleRequest input) return false; } return + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && ( this.Id == input.Id || (this.Id != null && this.Id.Equals(input.Id)) ) && + ( + this.IsSelfAssignable == input.IsSelfAssignable || + this.IsSelfAssignable.Equals(input.IsSelfAssignable) + ) && ( this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.IsSelfAssignable == input.IsSelfAssignable || - this.IsSelfAssignable.Equals(input.IsSelfAssignable) - ) && ( this.Permissions == input.Permissions || this.Permissions != null && @@ -163,19 +163,19 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); + } if (this.Id != null) { hashCode = (hashCode * 59) + this.Id.GetHashCode(); } + hashCode = (hashCode * 59) + this.IsSelfAssignable.GetHashCode(); if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); } - if (this.Description != null) - { - hashCode = (hashCode * 59) + this.Description.GetHashCode(); - } - hashCode = (hashCode * 59) + this.IsSelfAssignable.GetHashCode(); if (this.Permissions != null) { hashCode = (hashCode * 59) + this.Permissions.GetHashCode(); diff --git a/src/VRChat.API/Model/CreateInstanceRequest.cs b/src/VRChat.API/Model/CreateInstanceRequest.cs index 329b5e03..1048c9cf 100644 --- a/src/VRChat.API/Model/CreateInstanceRequest.cs +++ b/src/VRChat.API/Model/CreateInstanceRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -34,10 +34,10 @@ public partial class CreateInstanceRequest : IEquatable, { /// - /// Gets or Sets Type + /// Gets or Sets GroupAccessType /// - [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] - public InstanceType Type { get; set; } + [DataMember(Name = "groupAccessType", EmitDefaultValue = false)] + public GroupAccessType? GroupAccessType { get; set; } /// /// Gets or Sets Region @@ -46,10 +46,10 @@ public partial class CreateInstanceRequest : IEquatable, public InstanceRegion Region { get; set; } /// - /// Gets or Sets GroupAccessType + /// Gets or Sets Type /// - [DataMember(Name = "groupAccessType", EmitDefaultValue = false)] - public GroupAccessType? GroupAccessType { get; set; } + [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] + public InstanceType Type { get; set; } /// /// Initializes a new instance of the class. /// @@ -58,77 +58,57 @@ protected CreateInstanceRequest() { } /// /// Initializes a new instance of the class. /// - /// WorldID be \"offline\" on User profiles if you are not friends with that user. (required). - /// type (required). - /// region (required). - /// A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise. - /// Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\". - /// groupAccessType. - /// queueEnabled (default to false). - /// The time after which users won't be allowed to join the instance. This doesn't work for public instances.. + /// ageGate (default to false). /// Only applies to invite type instances to make them invite+ (default to false). + /// The time after which users won't be allowed to join the instance. This doesn't work for public instances.. + /// contentSettings. + /// displayName. + /// groupAccessType. /// Currently unused, but will eventually be a flag to set if the closing of the instance should kick people. (default to false). - /// inviteOnly (default to false). - /// ageGate (default to false). /// instancePersistenceEnabled. - /// displayName. - /// contentSettings. - public CreateInstanceRequest(string worldId = default, InstanceType type = default, InstanceRegion region = default, string ownerId = default, List roleIds = default, GroupAccessType? groupAccessType = default, bool queueEnabled = false, DateTime closedAt = default, bool canRequestInvite = false, bool hardClose = false, bool inviteOnly = false, bool ageGate = false, bool? instancePersistenceEnabled = default, string displayName = default, InstanceContentSettings contentSettings = default) + /// inviteOnly (default to false). + /// A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise. + /// queueEnabled (default to false). + /// region (required). + /// Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\". + /// type (required). + /// WorldID be \"offline\" on User profiles if you are not friends with that user. (required). + public CreateInstanceRequest(bool ageGate = false, bool canRequestInvite = false, DateTime closedAt = default, InstanceContentSettings contentSettings = default, string displayName = default, GroupAccessType? groupAccessType = default, bool hardClose = false, bool? instancePersistenceEnabled = default, bool inviteOnly = false, string ownerId = default, bool queueEnabled = false, InstanceRegion region = default, List roleIds = default, InstanceType type = default, string worldId = default) { + this.Region = region; + this.Type = type; // to ensure "worldId" is required (not null) if (worldId == null) { throw new ArgumentNullException("worldId is a required property for CreateInstanceRequest and cannot be null"); } this.WorldId = worldId; - this.Type = type; - this.Region = region; - this.OwnerId = ownerId; - this.RoleIds = roleIds; - this.GroupAccessType = groupAccessType; - this.QueueEnabled = queueEnabled; - this.ClosedAt = closedAt; + this.AgeGate = ageGate; this.CanRequestInvite = canRequestInvite; + this.ClosedAt = closedAt; + this.ContentSettings = contentSettings; + this.DisplayName = displayName; + this.GroupAccessType = groupAccessType; this.HardClose = hardClose; - this.InviteOnly = inviteOnly; - this.AgeGate = ageGate; this.InstancePersistenceEnabled = instancePersistenceEnabled; - this.DisplayName = displayName; - this.ContentSettings = contentSettings; + this.InviteOnly = inviteOnly; + this.OwnerId = ownerId; + this.QueueEnabled = queueEnabled; + this.RoleIds = roleIds; } /// - /// WorldID be \"offline\" on User profiles if you are not friends with that user. - /// - /// WorldID be \"offline\" on User profiles if you are not friends with that user. - /* - wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd - */ - [DataMember(Name = "worldId", IsRequired = true, EmitDefaultValue = true)] - public string WorldId { get; set; } - - /// - /// A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise - /// - /// A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise - /* - usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 - */ - [DataMember(Name = "ownerId", EmitDefaultValue = true)] - public string OwnerId { get; set; } - - /// - /// Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\" + /// Gets or Sets AgeGate /// - /// Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\" - [DataMember(Name = "roleIds", EmitDefaultValue = false)] - public List RoleIds { get; set; } + [DataMember(Name = "ageGate", EmitDefaultValue = true)] + public bool AgeGate { get; set; } /// - /// Gets or Sets QueueEnabled + /// Only applies to invite type instances to make them invite+ /// - [DataMember(Name = "queueEnabled", EmitDefaultValue = true)] - public bool QueueEnabled { get; set; } + /// Only applies to invite type instances to make them invite+ + [DataMember(Name = "canRequestInvite", EmitDefaultValue = true)] + public bool CanRequestInvite { get; set; } /// /// The time after which users won't be allowed to join the instance. This doesn't work for public instances. @@ -138,11 +118,16 @@ public CreateInstanceRequest(string worldId = default, InstanceType type = defau public DateTime ClosedAt { get; set; } /// - /// Only applies to invite type instances to make them invite+ + /// Gets or Sets ContentSettings /// - /// Only applies to invite type instances to make them invite+ - [DataMember(Name = "canRequestInvite", EmitDefaultValue = true)] - public bool CanRequestInvite { get; set; } + [DataMember(Name = "contentSettings", EmitDefaultValue = false)] + public InstanceContentSettings ContentSettings { get; set; } + + /// + /// Gets or Sets DisplayName + /// + [DataMember(Name = "displayName", EmitDefaultValue = true)] + public string DisplayName { get; set; } /// /// Currently unused, but will eventually be a flag to set if the closing of the instance should kick people. @@ -151,6 +136,12 @@ public CreateInstanceRequest(string worldId = default, InstanceType type = defau [DataMember(Name = "hardClose", EmitDefaultValue = true)] public bool HardClose { get; set; } + /// + /// Gets or Sets InstancePersistenceEnabled + /// + [DataMember(Name = "instancePersistenceEnabled", EmitDefaultValue = true)] + public bool? InstancePersistenceEnabled { get; set; } + /// /// Gets or Sets InviteOnly /// @@ -158,28 +149,37 @@ public CreateInstanceRequest(string worldId = default, InstanceType type = defau public bool InviteOnly { get; set; } /// - /// Gets or Sets AgeGate + /// A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise /// - [DataMember(Name = "ageGate", EmitDefaultValue = true)] - public bool AgeGate { get; set; } + /// A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise + /* + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + */ + [DataMember(Name = "ownerId", EmitDefaultValue = true)] + public string OwnerId { get; set; } /// - /// Gets or Sets InstancePersistenceEnabled + /// Gets or Sets QueueEnabled /// - [DataMember(Name = "instancePersistenceEnabled", EmitDefaultValue = true)] - public bool? InstancePersistenceEnabled { get; set; } + [DataMember(Name = "queueEnabled", EmitDefaultValue = true)] + public bool QueueEnabled { get; set; } /// - /// Gets or Sets DisplayName + /// Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\" /// - [DataMember(Name = "displayName", EmitDefaultValue = true)] - public string DisplayName { get; set; } + /// Group roleIds that are allowed to join if the type is \"group\" and groupAccessType is \"member\" + [DataMember(Name = "roleIds", EmitDefaultValue = false)] + public List RoleIds { get; set; } /// - /// Gets or Sets ContentSettings + /// WorldID be \"offline\" on User profiles if you are not friends with that user. /// - [DataMember(Name = "contentSettings", EmitDefaultValue = false)] - public InstanceContentSettings ContentSettings { get; set; } + /// WorldID be \"offline\" on User profiles if you are not friends with that user. + /* + wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd + */ + [DataMember(Name = "worldId", IsRequired = true, EmitDefaultValue = true)] + public string WorldId { get; set; } /// /// Returns the string presentation of the object @@ -189,21 +189,21 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class CreateInstanceRequest {\n"); - sb.Append(" WorldId: ").Append(WorldId).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Region: ").Append(Region).Append("\n"); - sb.Append(" OwnerId: ").Append(OwnerId).Append("\n"); - sb.Append(" RoleIds: ").Append(RoleIds).Append("\n"); - sb.Append(" GroupAccessType: ").Append(GroupAccessType).Append("\n"); - sb.Append(" QueueEnabled: ").Append(QueueEnabled).Append("\n"); - sb.Append(" ClosedAt: ").Append(ClosedAt).Append("\n"); + sb.Append(" AgeGate: ").Append(AgeGate).Append("\n"); sb.Append(" CanRequestInvite: ").Append(CanRequestInvite).Append("\n"); + sb.Append(" ClosedAt: ").Append(ClosedAt).Append("\n"); + sb.Append(" ContentSettings: ").Append(ContentSettings).Append("\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append(" GroupAccessType: ").Append(GroupAccessType).Append("\n"); sb.Append(" HardClose: ").Append(HardClose).Append("\n"); - sb.Append(" InviteOnly: ").Append(InviteOnly).Append("\n"); - sb.Append(" AgeGate: ").Append(AgeGate).Append("\n"); sb.Append(" InstancePersistenceEnabled: ").Append(InstancePersistenceEnabled).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" ContentSettings: ").Append(ContentSettings).Append("\n"); + sb.Append(" InviteOnly: ").Append(InviteOnly).Append("\n"); + sb.Append(" OwnerId: ").Append(OwnerId).Append("\n"); + sb.Append(" QueueEnabled: ").Append(QueueEnabled).Append("\n"); + sb.Append(" Region: ").Append(Region).Append("\n"); + sb.Append(" RoleIds: ").Append(RoleIds).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); + sb.Append(" WorldId: ").Append(WorldId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -240,72 +240,72 @@ public bool Equals(CreateInstanceRequest input) } return ( - this.WorldId == input.WorldId || - (this.WorldId != null && - this.WorldId.Equals(input.WorldId)) + this.AgeGate == input.AgeGate || + this.AgeGate.Equals(input.AgeGate) ) && ( - this.Type == input.Type || - this.Type.Equals(input.Type) + this.CanRequestInvite == input.CanRequestInvite || + this.CanRequestInvite.Equals(input.CanRequestInvite) ) && ( - this.Region == input.Region || - this.Region.Equals(input.Region) + this.ClosedAt == input.ClosedAt || + (this.ClosedAt != null && + this.ClosedAt.Equals(input.ClosedAt)) ) && ( - this.OwnerId == input.OwnerId || - (this.OwnerId != null && - this.OwnerId.Equals(input.OwnerId)) + this.ContentSettings == input.ContentSettings || + (this.ContentSettings != null && + this.ContentSettings.Equals(input.ContentSettings)) ) && ( - this.RoleIds == input.RoleIds || - this.RoleIds != null && - input.RoleIds != null && - this.RoleIds.SequenceEqual(input.RoleIds) + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) ) && ( this.GroupAccessType == input.GroupAccessType || this.GroupAccessType.Equals(input.GroupAccessType) ) && ( - this.QueueEnabled == input.QueueEnabled || - this.QueueEnabled.Equals(input.QueueEnabled) + this.HardClose == input.HardClose || + this.HardClose.Equals(input.HardClose) ) && ( - this.ClosedAt == input.ClosedAt || - (this.ClosedAt != null && - this.ClosedAt.Equals(input.ClosedAt)) + this.InstancePersistenceEnabled == input.InstancePersistenceEnabled || + (this.InstancePersistenceEnabled != null && + this.InstancePersistenceEnabled.Equals(input.InstancePersistenceEnabled)) ) && ( - this.CanRequestInvite == input.CanRequestInvite || - this.CanRequestInvite.Equals(input.CanRequestInvite) + this.InviteOnly == input.InviteOnly || + this.InviteOnly.Equals(input.InviteOnly) ) && ( - this.HardClose == input.HardClose || - this.HardClose.Equals(input.HardClose) + this.OwnerId == input.OwnerId || + (this.OwnerId != null && + this.OwnerId.Equals(input.OwnerId)) ) && ( - this.InviteOnly == input.InviteOnly || - this.InviteOnly.Equals(input.InviteOnly) + this.QueueEnabled == input.QueueEnabled || + this.QueueEnabled.Equals(input.QueueEnabled) ) && ( - this.AgeGate == input.AgeGate || - this.AgeGate.Equals(input.AgeGate) + this.Region == input.Region || + this.Region.Equals(input.Region) ) && ( - this.InstancePersistenceEnabled == input.InstancePersistenceEnabled || - (this.InstancePersistenceEnabled != null && - this.InstancePersistenceEnabled.Equals(input.InstancePersistenceEnabled)) + this.RoleIds == input.RoleIds || + this.RoleIds != null && + input.RoleIds != null && + this.RoleIds.SequenceEqual(input.RoleIds) ) && ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) + this.Type == input.Type || + this.Type.Equals(input.Type) ) && ( - this.ContentSettings == input.ContentSettings || - (this.ContentSettings != null && - this.ContentSettings.Equals(input.ContentSettings)) + this.WorldId == input.WorldId || + (this.WorldId != null && + this.WorldId.Equals(input.WorldId)) ); } @@ -318,41 +318,41 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.WorldId != null) + hashCode = (hashCode * 59) + this.AgeGate.GetHashCode(); + hashCode = (hashCode * 59) + this.CanRequestInvite.GetHashCode(); + if (this.ClosedAt != null) { - hashCode = (hashCode * 59) + this.WorldId.GetHashCode(); + hashCode = (hashCode * 59) + this.ClosedAt.GetHashCode(); } - hashCode = (hashCode * 59) + this.Type.GetHashCode(); - hashCode = (hashCode * 59) + this.Region.GetHashCode(); - if (this.OwnerId != null) + if (this.ContentSettings != null) { - hashCode = (hashCode * 59) + this.OwnerId.GetHashCode(); + hashCode = (hashCode * 59) + this.ContentSettings.GetHashCode(); } - if (this.RoleIds != null) + if (this.DisplayName != null) { - hashCode = (hashCode * 59) + this.RoleIds.GetHashCode(); + hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); } hashCode = (hashCode * 59) + this.GroupAccessType.GetHashCode(); - hashCode = (hashCode * 59) + this.QueueEnabled.GetHashCode(); - if (this.ClosedAt != null) - { - hashCode = (hashCode * 59) + this.ClosedAt.GetHashCode(); - } - hashCode = (hashCode * 59) + this.CanRequestInvite.GetHashCode(); hashCode = (hashCode * 59) + this.HardClose.GetHashCode(); - hashCode = (hashCode * 59) + this.InviteOnly.GetHashCode(); - hashCode = (hashCode * 59) + this.AgeGate.GetHashCode(); if (this.InstancePersistenceEnabled != null) { hashCode = (hashCode * 59) + this.InstancePersistenceEnabled.GetHashCode(); } - if (this.DisplayName != null) + hashCode = (hashCode * 59) + this.InviteOnly.GetHashCode(); + if (this.OwnerId != null) { - hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); + hashCode = (hashCode * 59) + this.OwnerId.GetHashCode(); } - if (this.ContentSettings != null) + hashCode = (hashCode * 59) + this.QueueEnabled.GetHashCode(); + hashCode = (hashCode * 59) + this.Region.GetHashCode(); + if (this.RoleIds != null) { - hashCode = (hashCode * 59) + this.ContentSettings.GetHashCode(); + hashCode = (hashCode * 59) + this.RoleIds.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); + if (this.WorldId != null) + { + hashCode = (hashCode * 59) + this.WorldId.GetHashCode(); } return hashCode; } diff --git a/src/VRChat.API/Model/CreatePermissionRequest.cs b/src/VRChat.API/Model/CreatePermissionRequest.cs deleted file mode 100644 index e6971e61..00000000 --- a/src/VRChat.API/Model/CreatePermissionRequest.cs +++ /dev/null @@ -1,161 +0,0 @@ -/* - * VRChat API Documentation - * - * - * The version of the OpenAPI document: 1.20.5 - * Contact: vrchatapi.lpv0t@aries.fyi - * 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 FileParameter = VRChat.API.Client.FileParameter; -using OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; - -namespace VRChat.API.Model -{ - /// - /// CreatePermissionRequest - /// - [DataContract(Name = "createPermission_request")] - public partial class CreatePermissionRequest : IEquatable, IValidatableObject - { - /// - /// Initializes a new instance of the class. - /// - [JsonConstructorAttribute] - protected CreatePermissionRequest() { } - /// - /// Initializes a new instance of the class. - /// - /// name (required). - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. - public CreatePermissionRequest(string name = default, string ownerId = default) - { - // to ensure "name" is required (not null) - if (name == null) - { - throw new ArgumentNullException("name is a required property for CreatePermissionRequest and cannot be null"); - } - this.Name = name; - this.OwnerId = ownerId; - } - - /// - /// Gets or Sets Name - /// - [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] - public string Name { get; set; } - - /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - /* - usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 - */ - [DataMember(Name = "ownerId", EmitDefaultValue = false)] - public string OwnerId { 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 CreatePermissionRequest {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" OwnerId: ").Append(OwnerId).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); - } - - /// - /// Returns true if objects are equal - /// - /// Object to be compared - /// Boolean - public override bool Equals(object input) - { - return this.Equals(input as CreatePermissionRequest); - } - - /// - /// Returns true if CreatePermissionRequest instances are equal - /// - /// Instance of CreatePermissionRequest to be compared - /// Boolean - public bool Equals(CreatePermissionRequest input) - { - if (input == null) - { - return false; - } - return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.OwnerId == input.OwnerId || - (this.OwnerId != null && - this.OwnerId.Equals(input.OwnerId)) - ); - } - - /// - /// Gets the hash code - /// - /// Hash code - public override int GetHashCode() - { - unchecked // Overflow is fine, just wrap - { - int hashCode = 41; - if (this.Name != null) - { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); - } - if (this.OwnerId != null) - { - hashCode = (hashCode * 59) + this.OwnerId.GetHashCode(); - } - return hashCode; - } - } - - /// - /// To validate all properties of the instance - /// - /// Validation context - /// Validation Result - IEnumerable IValidatableObject.Validate(ValidationContext validationContext) - { - yield break; - } - } - -} diff --git a/src/VRChat.API/Model/CreateWorldRequest.cs b/src/VRChat.API/Model/CreateWorldRequest.cs index 5422c9c8..4a96e025 100644 --- a/src/VRChat.API/Model/CreateWorldRequest.cs +++ b/src/VRChat.API/Model/CreateWorldRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/CurrentUser.cs b/src/VRChat.API/Model/CurrentUser.cs index 85612554..bed55177 100644 --- a/src/VRChat.API/Model/CurrentUser.cs +++ b/src/VRChat.API/Model/CurrentUser.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -64,8 +64,8 @@ protected CurrentUser() { } /// /// Initializes a new instance of the class. /// - /// acceptedTOSVersion (required). /// acceptedPrivacyVersion. + /// acceptedTOSVersion (required). /// accountDeletionDate. /// . /// . @@ -79,8 +79,8 @@ protected CurrentUser() { } /// These tags begin with `content_` and control content gating. /// currentAvatar (required). /// When profilePicOverride is not empty, use it instead. (required). - /// When profilePicOverride is not empty, use it instead. (required). /// currentAvatarTags (required). + /// When profilePicOverride is not empty, use it instead. (required). /// dateJoined (required). /// developerType (required). /// discordDetails. @@ -91,13 +91,13 @@ protected CurrentUser() { } /// Always empty array. (required). /// friendKey (required). /// friends (required). + /// googleDetails. + /// googleId. /// hasBirthday (required). - /// hideContentFilterSettings. - /// userLanguage. - /// userLanguageCode. /// hasEmail (required). /// hasLoggedInFromClient (required). /// hasPendingEmail (required). + /// hideContentFilterSettings. /// WorldID be \"offline\" on User profiles if you are not friends with that user. (required). /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). /// isAdult (required). @@ -110,15 +110,12 @@ protected CurrentUser() { } /// obfuscatedEmail (required). /// obfuscatedPendingEmail (required). /// oculusId (required). - /// googleId. - /// googleDetails. - /// picoId. - /// viveId. /// offlineFriends. /// onlineFriends. /// (required). - /// presence. + /// picoId. /// platformHistory. + /// presence. /// profilePicOverride (required). /// profilePicOverrideThumbnail (required). /// pronouns (required). @@ -138,8 +135,11 @@ protected CurrentUser() { } /// unsubscribe (required). /// updatedAt. /// userIcon (required). + /// userLanguage. + /// userLanguageCode. /// -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429).. - public CurrentUser(int acceptedTOSVersion = default, int acceptedPrivacyVersion = default, DateOnly? accountDeletionDate = default, List accountDeletionLog = default, List activeFriends = default, AgeVerificationStatus ageVerificationStatus = default, bool ageVerified = default, bool allowAvatarCopying = default, string authToken = default, List badges = default, string bio = default, List bioLinks = default, List contentFilters = default, string currentAvatar = default, string currentAvatarImageUrl = default, string currentAvatarThumbnailImageUrl = default, List currentAvatarTags = default, DateOnly dateJoined = default, DeveloperType developerType = default, DiscordDetails discordDetails = default, string discordId = default, string displayName = default, bool emailVerified = default, string fallbackAvatar = default, List friendGroupNames = default, string friendKey = default, List friends = default, bool hasBirthday = default, bool hideContentFilterSettings = default, string userLanguage = default, string userLanguageCode = default, bool hasEmail = default, bool hasLoggedInFromClient = default, bool hasPendingEmail = default, string homeLocation = default, string id = default, bool isAdult = default, bool isBoopingEnabled = true, bool isFriend = false, DateTime lastActivity = default, DateTime lastLogin = default, DateTime? lastMobile = default, string lastPlatform = default, string obfuscatedEmail = default, string obfuscatedPendingEmail = default, string oculusId = default, string googleId = default, Object googleDetails = default, string picoId = default, string viveId = default, List offlineFriends = default, List onlineFriends = default, List pastDisplayNames = default, CurrentUserPresence presence = default, List platformHistory = default, string profilePicOverride = default, string profilePicOverrideThumbnail = default, string pronouns = default, List pronounsHistory = default, string queuedInstance = default, bool receiveMobileInvitations = default, UserState state = default, UserStatus status = default, string statusDescription = default, bool statusFirstTime = default, List statusHistory = default, Object steamDetails = default, string steamId = default, List tags = default, bool twoFactorAuthEnabled = default, DateTime? twoFactorAuthEnabledDate = default, bool unsubscribe = default, DateTime updatedAt = default, string userIcon = default, string username = default) + /// viveId. + public CurrentUser(int acceptedPrivacyVersion = default, int acceptedTOSVersion = default, DateOnly? accountDeletionDate = default, List accountDeletionLog = default, List activeFriends = default, AgeVerificationStatus ageVerificationStatus = default, bool ageVerified = default, bool allowAvatarCopying = default, string authToken = default, List badges = default, string bio = default, List bioLinks = default, List contentFilters = default, string currentAvatar = default, string currentAvatarImageUrl = default, List currentAvatarTags = default, string currentAvatarThumbnailImageUrl = default, DateOnly dateJoined = default, DeveloperType developerType = default, DiscordDetails discordDetails = default, string discordId = default, string displayName = default, bool emailVerified = default, string fallbackAvatar = default, List friendGroupNames = default, string friendKey = default, List friends = default, Object googleDetails = default, string googleId = default, bool hasBirthday = default, bool hasEmail = default, bool hasLoggedInFromClient = default, bool hasPendingEmail = default, bool hideContentFilterSettings = default, string homeLocation = default, string id = default, bool isAdult = default, bool isBoopingEnabled = true, bool isFriend = false, DateTime lastActivity = default, DateTime lastLogin = default, DateTime? lastMobile = default, string lastPlatform = default, string obfuscatedEmail = default, string obfuscatedPendingEmail = default, string oculusId = default, List offlineFriends = default, List onlineFriends = default, List pastDisplayNames = default, string picoId = default, List platformHistory = default, CurrentUserPresence presence = default, string profilePicOverride = default, string profilePicOverrideThumbnail = default, string pronouns = default, List pronounsHistory = default, string queuedInstance = default, bool receiveMobileInvitations = default, UserState state = default, UserStatus status = default, string statusDescription = default, bool statusFirstTime = default, List statusHistory = default, Object steamDetails = default, string steamId = default, List tags = default, bool twoFactorAuthEnabled = default, DateTime? twoFactorAuthEnabledDate = default, bool unsubscribe = default, DateTime updatedAt = default, string userIcon = default, string userLanguage = default, string userLanguageCode = default, string username = default, string viveId = default) { this.AcceptedTOSVersion = acceptedTOSVersion; this.AgeVerificationStatus = ageVerificationStatus; @@ -169,18 +169,18 @@ public CurrentUser(int acceptedTOSVersion = default, int acceptedPrivacyVersion throw new ArgumentNullException("currentAvatarImageUrl is a required property for CurrentUser and cannot be null"); } this.CurrentAvatarImageUrl = currentAvatarImageUrl; - // to ensure "currentAvatarThumbnailImageUrl" is required (not null) - if (currentAvatarThumbnailImageUrl == null) - { - throw new ArgumentNullException("currentAvatarThumbnailImageUrl is a required property for CurrentUser and cannot be null"); - } - this.CurrentAvatarThumbnailImageUrl = currentAvatarThumbnailImageUrl; // to ensure "currentAvatarTags" is required (not null) if (currentAvatarTags == null) { throw new ArgumentNullException("currentAvatarTags is a required property for CurrentUser and cannot be null"); } this.CurrentAvatarTags = currentAvatarTags; + // to ensure "currentAvatarThumbnailImageUrl" is required (not null) + if (currentAvatarThumbnailImageUrl == null) + { + throw new ArgumentNullException("currentAvatarThumbnailImageUrl is a required property for CurrentUser and cannot be null"); + } + this.CurrentAvatarThumbnailImageUrl = currentAvatarThumbnailImageUrl; this.DateJoined = dateJoined; this.DeveloperType = developerType; // to ensure "displayName" is required (not null) @@ -338,43 +338,43 @@ public CurrentUser(int acceptedTOSVersion = default, int acceptedPrivacyVersion this.DiscordDetails = discordDetails; this.DiscordId = discordId; this.FallbackAvatar = fallbackAvatar; + this.GoogleDetails = googleDetails; + this.GoogleId = googleId; this.HideContentFilterSettings = hideContentFilterSettings; - this.UserLanguage = userLanguage; - this.UserLanguageCode = userLanguageCode; this.IsBoopingEnabled = isBoopingEnabled; this.LastActivity = lastActivity; - this.GoogleId = googleId; - this.GoogleDetails = googleDetails; - this.PicoId = picoId; - this.ViveId = viveId; this.OfflineFriends = offlineFriends; this.OnlineFriends = onlineFriends; - this.Presence = presence; + this.PicoId = picoId; this.PlatformHistory = platformHistory; + this.Presence = presence; this.QueuedInstance = queuedInstance; this.ReceiveMobileInvitations = receiveMobileInvitations; this.TwoFactorAuthEnabledDate = twoFactorAuthEnabledDate; this.UpdatedAt = updatedAt; + this.UserLanguage = userLanguage; + this.UserLanguageCode = userLanguageCode; this.Username = username; + this.ViveId = viveId; } /// - /// Gets or Sets AcceptedTOSVersion + /// Gets or Sets AcceptedPrivacyVersion /// /* - 7 + 0 */ - [DataMember(Name = "acceptedTOSVersion", IsRequired = false, EmitDefaultValue = true)] - public int AcceptedTOSVersion { get; set; } + [DataMember(Name = "acceptedPrivacyVersion", EmitDefaultValue = false)] + public int AcceptedPrivacyVersion { get; set; } /// - /// Gets or Sets AcceptedPrivacyVersion + /// Gets or Sets AcceptedTOSVersion /// /* - 0 + 7 */ - [DataMember(Name = "acceptedPrivacyVersion", EmitDefaultValue = false)] - public int AcceptedPrivacyVersion { get; set; } + [DataMember(Name = "acceptedTOSVersion", IsRequired = false, EmitDefaultValue = true)] + public int AcceptedTOSVersion { get; set; } /// /// Gets or Sets AccountDeletionDate @@ -462,6 +462,12 @@ public CurrentUser(int acceptedTOSVersion = default, int acceptedPrivacyVersion [DataMember(Name = "currentAvatarImageUrl", IsRequired = false, EmitDefaultValue = true)] public string CurrentAvatarImageUrl { get; set; } + /// + /// Gets or Sets CurrentAvatarTags + /// + [DataMember(Name = "currentAvatarTags", IsRequired = false, EmitDefaultValue = true)] + public List CurrentAvatarTags { get; set; } + /// /// When profilePicOverride is not empty, use it instead. /// @@ -472,12 +478,6 @@ public CurrentUser(int acceptedTOSVersion = default, int acceptedPrivacyVersion [DataMember(Name = "currentAvatarThumbnailImageUrl", IsRequired = false, EmitDefaultValue = true)] public string CurrentAvatarThumbnailImageUrl { get; set; } - /// - /// Gets or Sets CurrentAvatarTags - /// - [DataMember(Name = "currentAvatarTags", IsRequired = false, EmitDefaultValue = true)] - public List CurrentAvatarTags { get; set; } - /// /// Gets or Sets DateJoined /// @@ -542,28 +542,22 @@ public CurrentUser(int acceptedTOSVersion = default, int acceptedPrivacyVersion public List Friends { get; set; } /// - /// Gets or Sets HasBirthday - /// - [DataMember(Name = "hasBirthday", IsRequired = false, EmitDefaultValue = true)] - public bool HasBirthday { get; set; } - - /// - /// Gets or Sets HideContentFilterSettings + /// Gets or Sets GoogleDetails /// - [DataMember(Name = "hideContentFilterSettings", EmitDefaultValue = true)] - public bool HideContentFilterSettings { get; set; } + [DataMember(Name = "googleDetails", EmitDefaultValue = false)] + public Object GoogleDetails { get; set; } /// - /// Gets or Sets UserLanguage + /// Gets or Sets GoogleId /// - [DataMember(Name = "userLanguage", EmitDefaultValue = true)] - public string UserLanguage { get; set; } + [DataMember(Name = "googleId", EmitDefaultValue = false)] + public string GoogleId { get; set; } /// - /// Gets or Sets UserLanguageCode + /// Gets or Sets HasBirthday /// - [DataMember(Name = "userLanguageCode", EmitDefaultValue = true)] - public string UserLanguageCode { get; set; } + [DataMember(Name = "hasBirthday", IsRequired = false, EmitDefaultValue = true)] + public bool HasBirthday { get; set; } /// /// Gets or Sets HasEmail @@ -583,6 +577,12 @@ public CurrentUser(int acceptedTOSVersion = default, int acceptedPrivacyVersion [DataMember(Name = "hasPendingEmail", IsRequired = false, EmitDefaultValue = true)] public bool HasPendingEmail { get; set; } + /// + /// Gets or Sets HideContentFilterSettings + /// + [DataMember(Name = "hideContentFilterSettings", EmitDefaultValue = true)] + public bool HideContentFilterSettings { get; set; } + /// /// WorldID be \"offline\" on User profiles if you are not friends with that user. /// @@ -667,30 +667,6 @@ public CurrentUser(int acceptedTOSVersion = default, int acceptedPrivacyVersion [DataMember(Name = "oculusId", IsRequired = false, EmitDefaultValue = true)] public string OculusId { get; set; } - /// - /// Gets or Sets GoogleId - /// - [DataMember(Name = "googleId", EmitDefaultValue = false)] - public string GoogleId { get; set; } - - /// - /// Gets or Sets GoogleDetails - /// - [DataMember(Name = "googleDetails", EmitDefaultValue = false)] - public Object GoogleDetails { get; set; } - - /// - /// Gets or Sets PicoId - /// - [DataMember(Name = "picoId", EmitDefaultValue = false)] - public string PicoId { get; set; } - - /// - /// Gets or Sets ViveId - /// - [DataMember(Name = "viveId", EmitDefaultValue = false)] - public string ViveId { get; set; } - /// /// Gets or Sets OfflineFriends /// @@ -711,10 +687,10 @@ public CurrentUser(int acceptedTOSVersion = default, int acceptedPrivacyVersion public List PastDisplayNames { get; set; } /// - /// Gets or Sets Presence + /// Gets or Sets PicoId /// - [DataMember(Name = "presence", EmitDefaultValue = false)] - public CurrentUserPresence Presence { get; set; } + [DataMember(Name = "picoId", EmitDefaultValue = false)] + public string PicoId { get; set; } /// /// Gets or Sets PlatformHistory @@ -722,6 +698,12 @@ public CurrentUser(int acceptedTOSVersion = default, int acceptedPrivacyVersion [DataMember(Name = "platform_history", EmitDefaultValue = false)] public List PlatformHistory { get; set; } + /// + /// Gets or Sets Presence + /// + [DataMember(Name = "presence", EmitDefaultValue = false)] + public CurrentUserPresence Presence { get; set; } + /// /// Gets or Sets ProfilePicOverride /// @@ -830,6 +812,18 @@ public CurrentUser(int acceptedTOSVersion = default, int acceptedPrivacyVersion [DataMember(Name = "requiresTwoFactorAuth", IsRequired = false, EmitDefaultValue = true)] public List RequiresTwoFactorAuth { get; set; } + /// + /// Gets or Sets UserLanguage + /// + [DataMember(Name = "userLanguage", EmitDefaultValue = true)] + public string UserLanguage { get; set; } + + /// + /// Gets or Sets UserLanguageCode + /// + [DataMember(Name = "userLanguageCode", EmitDefaultValue = true)] + public string UserLanguageCode { get; set; } + /// /// -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429). /// @@ -838,6 +832,12 @@ public CurrentUser(int acceptedTOSVersion = default, int acceptedPrivacyVersion [Obsolete] public string Username { get; set; } + /// + /// Gets or Sets ViveId + /// + [DataMember(Name = "viveId", EmitDefaultValue = false)] + public string ViveId { get; set; } + /// /// Returns the string presentation of the object /// @@ -846,8 +846,8 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class CurrentUser {\n"); - sb.Append(" AcceptedTOSVersion: ").Append(AcceptedTOSVersion).Append("\n"); sb.Append(" AcceptedPrivacyVersion: ").Append(AcceptedPrivacyVersion).Append("\n"); + sb.Append(" AcceptedTOSVersion: ").Append(AcceptedTOSVersion).Append("\n"); sb.Append(" AccountDeletionDate: ").Append(AccountDeletionDate).Append("\n"); sb.Append(" AccountDeletionLog: ").Append(AccountDeletionLog).Append("\n"); sb.Append(" ActiveFriends: ").Append(ActiveFriends).Append("\n"); @@ -861,8 +861,8 @@ public override string ToString() sb.Append(" ContentFilters: ").Append(ContentFilters).Append("\n"); sb.Append(" CurrentAvatar: ").Append(CurrentAvatar).Append("\n"); sb.Append(" CurrentAvatarImageUrl: ").Append(CurrentAvatarImageUrl).Append("\n"); - sb.Append(" CurrentAvatarThumbnailImageUrl: ").Append(CurrentAvatarThumbnailImageUrl).Append("\n"); sb.Append(" CurrentAvatarTags: ").Append(CurrentAvatarTags).Append("\n"); + sb.Append(" CurrentAvatarThumbnailImageUrl: ").Append(CurrentAvatarThumbnailImageUrl).Append("\n"); sb.Append(" DateJoined: ").Append(DateJoined).Append("\n"); sb.Append(" DeveloperType: ").Append(DeveloperType).Append("\n"); sb.Append(" DiscordDetails: ").Append(DiscordDetails).Append("\n"); @@ -873,13 +873,13 @@ public override string ToString() sb.Append(" FriendGroupNames: ").Append(FriendGroupNames).Append("\n"); sb.Append(" FriendKey: ").Append(FriendKey).Append("\n"); sb.Append(" Friends: ").Append(Friends).Append("\n"); + sb.Append(" GoogleDetails: ").Append(GoogleDetails).Append("\n"); + sb.Append(" GoogleId: ").Append(GoogleId).Append("\n"); sb.Append(" HasBirthday: ").Append(HasBirthday).Append("\n"); - sb.Append(" HideContentFilterSettings: ").Append(HideContentFilterSettings).Append("\n"); - sb.Append(" UserLanguage: ").Append(UserLanguage).Append("\n"); - sb.Append(" UserLanguageCode: ").Append(UserLanguageCode).Append("\n"); sb.Append(" HasEmail: ").Append(HasEmail).Append("\n"); sb.Append(" HasLoggedInFromClient: ").Append(HasLoggedInFromClient).Append("\n"); sb.Append(" HasPendingEmail: ").Append(HasPendingEmail).Append("\n"); + sb.Append(" HideContentFilterSettings: ").Append(HideContentFilterSettings).Append("\n"); sb.Append(" HomeLocation: ").Append(HomeLocation).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" IsAdult: ").Append(IsAdult).Append("\n"); @@ -892,15 +892,12 @@ public override string ToString() sb.Append(" ObfuscatedEmail: ").Append(ObfuscatedEmail).Append("\n"); sb.Append(" ObfuscatedPendingEmail: ").Append(ObfuscatedPendingEmail).Append("\n"); sb.Append(" OculusId: ").Append(OculusId).Append("\n"); - sb.Append(" GoogleId: ").Append(GoogleId).Append("\n"); - sb.Append(" GoogleDetails: ").Append(GoogleDetails).Append("\n"); - sb.Append(" PicoId: ").Append(PicoId).Append("\n"); - sb.Append(" ViveId: ").Append(ViveId).Append("\n"); sb.Append(" OfflineFriends: ").Append(OfflineFriends).Append("\n"); sb.Append(" OnlineFriends: ").Append(OnlineFriends).Append("\n"); sb.Append(" PastDisplayNames: ").Append(PastDisplayNames).Append("\n"); - sb.Append(" Presence: ").Append(Presence).Append("\n"); + sb.Append(" PicoId: ").Append(PicoId).Append("\n"); sb.Append(" PlatformHistory: ").Append(PlatformHistory).Append("\n"); + sb.Append(" Presence: ").Append(Presence).Append("\n"); sb.Append(" ProfilePicOverride: ").Append(ProfilePicOverride).Append("\n"); sb.Append(" ProfilePicOverrideThumbnail: ").Append(ProfilePicOverrideThumbnail).Append("\n"); sb.Append(" Pronouns: ").Append(Pronouns).Append("\n"); @@ -920,7 +917,10 @@ public override string ToString() sb.Append(" Unsubscribe: ").Append(Unsubscribe).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append(" UserIcon: ").Append(UserIcon).Append("\n"); + sb.Append(" UserLanguage: ").Append(UserLanguage).Append("\n"); + sb.Append(" UserLanguageCode: ").Append(UserLanguageCode).Append("\n"); sb.Append(" Username: ").Append(Username).Append("\n"); + sb.Append(" ViveId: ").Append(ViveId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -956,14 +956,14 @@ public bool Equals(CurrentUser input) return false; } return - ( - this.AcceptedTOSVersion == input.AcceptedTOSVersion || - this.AcceptedTOSVersion.Equals(input.AcceptedTOSVersion) - ) && ( this.AcceptedPrivacyVersion == input.AcceptedPrivacyVersion || this.AcceptedPrivacyVersion.Equals(input.AcceptedPrivacyVersion) ) && + ( + this.AcceptedTOSVersion == input.AcceptedTOSVersion || + this.AcceptedTOSVersion.Equals(input.AcceptedTOSVersion) + ) && ( this.AccountDeletionDate == input.AccountDeletionDate || (this.AccountDeletionDate != null && @@ -1031,17 +1031,17 @@ public bool Equals(CurrentUser input) (this.CurrentAvatarImageUrl != null && this.CurrentAvatarImageUrl.Equals(input.CurrentAvatarImageUrl)) ) && - ( - this.CurrentAvatarThumbnailImageUrl == input.CurrentAvatarThumbnailImageUrl || - (this.CurrentAvatarThumbnailImageUrl != null && - this.CurrentAvatarThumbnailImageUrl.Equals(input.CurrentAvatarThumbnailImageUrl)) - ) && ( this.CurrentAvatarTags == input.CurrentAvatarTags || this.CurrentAvatarTags != null && input.CurrentAvatarTags != null && this.CurrentAvatarTags.SequenceEqual(input.CurrentAvatarTags) ) && + ( + this.CurrentAvatarThumbnailImageUrl == input.CurrentAvatarThumbnailImageUrl || + (this.CurrentAvatarThumbnailImageUrl != null && + this.CurrentAvatarThumbnailImageUrl.Equals(input.CurrentAvatarThumbnailImageUrl)) + ) && ( this.DateJoined == input.DateJoined || (this.DateJoined != null && @@ -1093,22 +1093,18 @@ public bool Equals(CurrentUser input) this.Friends.SequenceEqual(input.Friends) ) && ( - this.HasBirthday == input.HasBirthday || - this.HasBirthday.Equals(input.HasBirthday) - ) && - ( - this.HideContentFilterSettings == input.HideContentFilterSettings || - this.HideContentFilterSettings.Equals(input.HideContentFilterSettings) + this.GoogleDetails == input.GoogleDetails || + (this.GoogleDetails != null && + this.GoogleDetails.Equals(input.GoogleDetails)) ) && ( - this.UserLanguage == input.UserLanguage || - (this.UserLanguage != null && - this.UserLanguage.Equals(input.UserLanguage)) + this.GoogleId == input.GoogleId || + (this.GoogleId != null && + this.GoogleId.Equals(input.GoogleId)) ) && ( - this.UserLanguageCode == input.UserLanguageCode || - (this.UserLanguageCode != null && - this.UserLanguageCode.Equals(input.UserLanguageCode)) + this.HasBirthday == input.HasBirthday || + this.HasBirthday.Equals(input.HasBirthday) ) && ( this.HasEmail == input.HasEmail || @@ -1122,6 +1118,10 @@ public bool Equals(CurrentUser input) this.HasPendingEmail == input.HasPendingEmail || this.HasPendingEmail.Equals(input.HasPendingEmail) ) && + ( + this.HideContentFilterSettings == input.HideContentFilterSettings || + this.HideContentFilterSettings.Equals(input.HideContentFilterSettings) + ) && ( this.HomeLocation == input.HomeLocation || (this.HomeLocation != null && @@ -1179,26 +1179,6 @@ public bool Equals(CurrentUser input) (this.OculusId != null && this.OculusId.Equals(input.OculusId)) ) && - ( - this.GoogleId == input.GoogleId || - (this.GoogleId != null && - this.GoogleId.Equals(input.GoogleId)) - ) && - ( - this.GoogleDetails == input.GoogleDetails || - (this.GoogleDetails != null && - this.GoogleDetails.Equals(input.GoogleDetails)) - ) && - ( - this.PicoId == input.PicoId || - (this.PicoId != null && - this.PicoId.Equals(input.PicoId)) - ) && - ( - this.ViveId == input.ViveId || - (this.ViveId != null && - this.ViveId.Equals(input.ViveId)) - ) && ( this.OfflineFriends == input.OfflineFriends || this.OfflineFriends != null && @@ -1218,9 +1198,9 @@ public bool Equals(CurrentUser input) this.PastDisplayNames.SequenceEqual(input.PastDisplayNames) ) && ( - this.Presence == input.Presence || - (this.Presence != null && - this.Presence.Equals(input.Presence)) + this.PicoId == input.PicoId || + (this.PicoId != null && + this.PicoId.Equals(input.PicoId)) ) && ( this.PlatformHistory == input.PlatformHistory || @@ -1228,6 +1208,11 @@ public bool Equals(CurrentUser input) input.PlatformHistory != null && this.PlatformHistory.SequenceEqual(input.PlatformHistory) ) && + ( + this.Presence == input.Presence || + (this.Presence != null && + this.Presence.Equals(input.Presence)) + ) && ( this.ProfilePicOverride == input.ProfilePicOverride || (this.ProfilePicOverride != null && @@ -1320,10 +1305,25 @@ public bool Equals(CurrentUser input) (this.UserIcon != null && this.UserIcon.Equals(input.UserIcon)) ) && + ( + this.UserLanguage == input.UserLanguage || + (this.UserLanguage != null && + this.UserLanguage.Equals(input.UserLanguage)) + ) && + ( + this.UserLanguageCode == input.UserLanguageCode || + (this.UserLanguageCode != null && + this.UserLanguageCode.Equals(input.UserLanguageCode)) + ) && ( this.Username == input.Username || (this.Username != null && this.Username.Equals(input.Username)) + ) && + ( + this.ViveId == input.ViveId || + (this.ViveId != null && + this.ViveId.Equals(input.ViveId)) ); } @@ -1336,8 +1336,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.AcceptedTOSVersion.GetHashCode(); hashCode = (hashCode * 59) + this.AcceptedPrivacyVersion.GetHashCode(); + hashCode = (hashCode * 59) + this.AcceptedTOSVersion.GetHashCode(); if (this.AccountDeletionDate != null) { hashCode = (hashCode * 59) + this.AccountDeletionDate.GetHashCode(); @@ -1381,14 +1381,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CurrentAvatarImageUrl.GetHashCode(); } - if (this.CurrentAvatarThumbnailImageUrl != null) - { - hashCode = (hashCode * 59) + this.CurrentAvatarThumbnailImageUrl.GetHashCode(); - } if (this.CurrentAvatarTags != null) { hashCode = (hashCode * 59) + this.CurrentAvatarTags.GetHashCode(); } + if (this.CurrentAvatarThumbnailImageUrl != null) + { + hashCode = (hashCode * 59) + this.CurrentAvatarThumbnailImageUrl.GetHashCode(); + } if (this.DateJoined != null) { hashCode = (hashCode * 59) + this.DateJoined.GetHashCode(); @@ -1423,19 +1423,19 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Friends.GetHashCode(); } - hashCode = (hashCode * 59) + this.HasBirthday.GetHashCode(); - hashCode = (hashCode * 59) + this.HideContentFilterSettings.GetHashCode(); - if (this.UserLanguage != null) + if (this.GoogleDetails != null) { - hashCode = (hashCode * 59) + this.UserLanguage.GetHashCode(); + hashCode = (hashCode * 59) + this.GoogleDetails.GetHashCode(); } - if (this.UserLanguageCode != null) + if (this.GoogleId != null) { - hashCode = (hashCode * 59) + this.UserLanguageCode.GetHashCode(); + hashCode = (hashCode * 59) + this.GoogleId.GetHashCode(); } + hashCode = (hashCode * 59) + this.HasBirthday.GetHashCode(); hashCode = (hashCode * 59) + this.HasEmail.GetHashCode(); hashCode = (hashCode * 59) + this.HasLoggedInFromClient.GetHashCode(); hashCode = (hashCode * 59) + this.HasPendingEmail.GetHashCode(); + hashCode = (hashCode * 59) + this.HideContentFilterSettings.GetHashCode(); if (this.HomeLocation != null) { hashCode = (hashCode * 59) + this.HomeLocation.GetHashCode(); @@ -1475,22 +1475,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.OculusId.GetHashCode(); } - if (this.GoogleId != null) - { - hashCode = (hashCode * 59) + this.GoogleId.GetHashCode(); - } - if (this.GoogleDetails != null) - { - hashCode = (hashCode * 59) + this.GoogleDetails.GetHashCode(); - } - if (this.PicoId != null) - { - hashCode = (hashCode * 59) + this.PicoId.GetHashCode(); - } - if (this.ViveId != null) - { - hashCode = (hashCode * 59) + this.ViveId.GetHashCode(); - } if (this.OfflineFriends != null) { hashCode = (hashCode * 59) + this.OfflineFriends.GetHashCode(); @@ -1503,14 +1487,18 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.PastDisplayNames.GetHashCode(); } - if (this.Presence != null) + if (this.PicoId != null) { - hashCode = (hashCode * 59) + this.Presence.GetHashCode(); + hashCode = (hashCode * 59) + this.PicoId.GetHashCode(); } if (this.PlatformHistory != null) { hashCode = (hashCode * 59) + this.PlatformHistory.GetHashCode(); } + if (this.Presence != null) + { + hashCode = (hashCode * 59) + this.Presence.GetHashCode(); + } if (this.ProfilePicOverride != null) { hashCode = (hashCode * 59) + this.ProfilePicOverride.GetHashCode(); @@ -1569,10 +1557,22 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.UserIcon.GetHashCode(); } + if (this.UserLanguage != null) + { + hashCode = (hashCode * 59) + this.UserLanguage.GetHashCode(); + } + if (this.UserLanguageCode != null) + { + hashCode = (hashCode * 59) + this.UserLanguageCode.GetHashCode(); + } if (this.Username != null) { hashCode = (hashCode * 59) + this.Username.GetHashCode(); } + if (this.ViveId != null) + { + hashCode = (hashCode * 59) + this.ViveId.GetHashCode(); + } return hashCode; } } @@ -1584,18 +1584,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // AcceptedTOSVersion (int) minimum - if (this.AcceptedTOSVersion < (int)0) - { - yield return new ValidationResult("Invalid value for AcceptedTOSVersion, must be a value greater than or equal to 0.", new [] { "AcceptedTOSVersion" }); - } - // AcceptedPrivacyVersion (int) minimum if (this.AcceptedPrivacyVersion < (int)0) { yield return new ValidationResult("Invalid value for AcceptedPrivacyVersion, must be a value greater than or equal to 0.", new [] { "AcceptedPrivacyVersion" }); } + // AcceptedTOSVersion (int) minimum + if (this.AcceptedTOSVersion < (int)0) + { + yield return new ValidationResult("Invalid value for AcceptedTOSVersion, must be a value greater than or equal to 0.", new [] { "AcceptedTOSVersion" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/CurrentUserPlatformHistoryInner.cs b/src/VRChat.API/Model/CurrentUserPlatformHistoryInner.cs index c2ccfa80..95778d6e 100644 --- a/src/VRChat.API/Model/CurrentUserPlatformHistoryInner.cs +++ b/src/VRChat.API/Model/CurrentUserPlatformHistoryInner.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/CurrentUserPresence.cs b/src/VRChat.API/Model/CurrentUserPresence.cs index 42f81e17..3b00f0b9 100644 --- a/src/VRChat.API/Model/CurrentUserPresence.cs +++ b/src/VRChat.API/Model/CurrentUserPresence.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -37,8 +37,8 @@ public partial class CurrentUserPresence : IEquatable, IVal /// /// avatarThumbnail. /// currentAvatarTags. - /// displayName. /// debugflag. + /// displayName. /// groups. /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. /// instance. @@ -51,12 +51,12 @@ public partial class CurrentUserPresence : IEquatable, IVal /// Represents a unique location, consisting of a world identifier and an instance identifier, or \"offline\" if the user is not on your friends list.. /// userIcon. /// WorldID be \"offline\" on User profiles if you are not friends with that user.. - public CurrentUserPresence(string avatarThumbnail = default, List currentAvatarTags = default, string displayName = default, string debugflag = default, List groups = default, string id = default, string instance = default, string instanceType = default, string isRejoining = default, string platform = default, string profilePicOverride = default, string status = default, string travelingToInstance = default, string travelingToWorld = default, string userIcon = default, string world = default) + public CurrentUserPresence(string avatarThumbnail = default, List currentAvatarTags = default, string debugflag = default, string displayName = default, List groups = default, string id = default, string instance = default, string instanceType = default, string isRejoining = default, string platform = default, string profilePicOverride = default, string status = default, string travelingToInstance = default, string travelingToWorld = default, string userIcon = default, string world = default) { this.AvatarThumbnail = avatarThumbnail; this.CurrentAvatarTags = currentAvatarTags; - this.DisplayName = displayName; this.Debugflag = debugflag; + this.DisplayName = displayName; this.Groups = groups; this.Id = id; this.Instance = instance; @@ -83,18 +83,18 @@ public CurrentUserPresence(string avatarThumbnail = default, List curren [DataMember(Name = "currentAvatarTags", EmitDefaultValue = false)] public List CurrentAvatarTags { get; set; } - /// - /// Gets or Sets DisplayName - /// - [DataMember(Name = "displayName", EmitDefaultValue = false)] - public string DisplayName { get; set; } - /// /// Gets or Sets Debugflag /// [DataMember(Name = "debugflag", EmitDefaultValue = false)] public string Debugflag { get; set; } + /// + /// Gets or Sets DisplayName + /// + [DataMember(Name = "displayName", EmitDefaultValue = false)] + public string DisplayName { get; set; } + /// /// Gets or Sets Groups /// @@ -195,8 +195,8 @@ public override string ToString() sb.Append("class CurrentUserPresence {\n"); sb.Append(" AvatarThumbnail: ").Append(AvatarThumbnail).Append("\n"); sb.Append(" CurrentAvatarTags: ").Append(CurrentAvatarTags).Append("\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); sb.Append(" Debugflag: ").Append(Debugflag).Append("\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); sb.Append(" Groups: ").Append(Groups).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Instance: ").Append(Instance).Append("\n"); @@ -255,16 +255,16 @@ public bool Equals(CurrentUserPresence input) input.CurrentAvatarTags != null && this.CurrentAvatarTags.SequenceEqual(input.CurrentAvatarTags) ) && - ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) - ) && ( this.Debugflag == input.Debugflag || (this.Debugflag != null && this.Debugflag.Equals(input.Debugflag)) ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && ( this.Groups == input.Groups || this.Groups != null && @@ -345,14 +345,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CurrentAvatarTags.GetHashCode(); } - if (this.DisplayName != null) - { - hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); - } if (this.Debugflag != null) { hashCode = (hashCode * 59) + this.Debugflag.GetHashCode(); } + if (this.DisplayName != null) + { + hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); + } if (this.Groups != null) { hashCode = (hashCode * 59) + this.Groups.GetHashCode(); diff --git a/src/VRChat.API/Model/DeveloperType.cs b/src/VRChat.API/Model/DeveloperType.cs index dcc2f329..219b1717 100644 --- a/src/VRChat.API/Model/DeveloperType.cs +++ b/src/VRChat.API/Model/DeveloperType.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -34,28 +34,28 @@ namespace VRChat.API.Model public enum DeveloperType { /// - /// Enum None for value: none + /// Enum Internal for value: internal /// - [EnumMember(Value = "none")] - None = 1, + [EnumMember(Value = "internal")] + Internal = 1, /// - /// Enum Trusted for value: trusted + /// Enum Moderator for value: moderator /// - [EnumMember(Value = "trusted")] - Trusted = 2, + [EnumMember(Value = "moderator")] + Moderator = 2, /// - /// Enum Internal for value: internal + /// Enum None for value: none /// - [EnumMember(Value = "internal")] - Internal = 3, + [EnumMember(Value = "none")] + None = 3, /// - /// Enum Moderator for value: moderator + /// Enum Trusted for value: trusted /// - [EnumMember(Value = "moderator")] - Moderator = 4 + [EnumMember(Value = "trusted")] + Trusted = 4 } } diff --git a/src/VRChat.API/Model/Disable2FAResult.cs b/src/VRChat.API/Model/Disable2FAResult.cs index 9d5fff6b..d2e880d7 100644 --- a/src/VRChat.API/Model/Disable2FAResult.cs +++ b/src/VRChat.API/Model/Disable2FAResult.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/DiscordDetails.cs b/src/VRChat.API/Model/DiscordDetails.cs index f4c09d99..2c3ca5b0 100644 --- a/src/VRChat.API/Model/DiscordDetails.cs +++ b/src/VRChat.API/Model/DiscordDetails.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/DynamicContentRow.cs b/src/VRChat.API/Model/DynamicContentRow.cs index 4f644baa..26ae873a 100644 --- a/src/VRChat.API/Model/DynamicContentRow.cs +++ b/src/VRChat.API/Model/DynamicContentRow.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/EconomyAccount.cs b/src/VRChat.API/Model/EconomyAccount.cs index 2e21b714..ea08d9c4 100644 --- a/src/VRChat.API/Model/EconomyAccount.cs +++ b/src/VRChat.API/Model/EconomyAccount.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/EquipInventoryItemRequest.cs b/src/VRChat.API/Model/EquipInventoryItemRequest.cs new file mode 100644 index 00000000..c42848d5 --- /dev/null +++ b/src/VRChat.API/Model/EquipInventoryItemRequest.cs @@ -0,0 +1,130 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.20.7-nightly.3 + * Contact: vrchatapi.lpv0t@aries.fyi + * 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 FileParameter = VRChat.API.Client.FileParameter; +using OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// EquipInventoryItemRequest + /// + [DataContract(Name = "EquipInventoryItemRequest")] + public partial class EquipInventoryItemRequest : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets EquipSlot + /// + [DataMember(Name = "equipSlot", IsRequired = true, EmitDefaultValue = true)] + public InventoryEquipSlot EquipSlot { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected EquipInventoryItemRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// equipSlot (required). + public EquipInventoryItemRequest(InventoryEquipSlot equipSlot = default) + { + this.EquipSlot = equipSlot; + } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class EquipInventoryItemRequest {\n"); + sb.Append(" EquipSlot: ").Append(EquipSlot).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as EquipInventoryItemRequest); + } + + /// + /// Returns true if EquipInventoryItemRequest instances are equal + /// + /// Instance of EquipInventoryItemRequest to be compared + /// Boolean + public bool Equals(EquipInventoryItemRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.EquipSlot == input.EquipSlot || + this.EquipSlot.Equals(input.EquipSlot) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.EquipSlot.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/VRChat.API/Model/Error.cs b/src/VRChat.API/Model/Error.cs index 357c0171..59074f8d 100644 --- a/src/VRChat.API/Model/Error.cs +++ b/src/VRChat.API/Model/Error.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Favorite.cs b/src/VRChat.API/Model/Favorite.cs index b0175cfd..b3e101ae 100644 --- a/src/VRChat.API/Model/Favorite.cs +++ b/src/VRChat.API/Model/Favorite.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/FavoriteGroup.cs b/src/VRChat.API/Model/FavoriteGroup.cs index 4504d13b..6c99a83d 100644 --- a/src/VRChat.API/Model/FavoriteGroup.cs +++ b/src/VRChat.API/Model/FavoriteGroup.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/FavoriteGroupLimits.cs b/src/VRChat.API/Model/FavoriteGroupLimits.cs index cf7ceb43..fd30715d 100644 --- a/src/VRChat.API/Model/FavoriteGroupLimits.cs +++ b/src/VRChat.API/Model/FavoriteGroupLimits.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/FavoriteGroupVisibility.cs b/src/VRChat.API/Model/FavoriteGroupVisibility.cs index 1e2b669c..10c3f0a5 100644 --- a/src/VRChat.API/Model/FavoriteGroupVisibility.cs +++ b/src/VRChat.API/Model/FavoriteGroupVisibility.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,16 +33,16 @@ namespace VRChat.API.Model public enum FavoriteGroupVisibility { /// - /// Enum Private for value: private + /// Enum Friends for value: friends /// - [EnumMember(Value = "private")] - Private = 1, + [EnumMember(Value = "friends")] + Friends = 1, /// - /// Enum Friends for value: friends + /// Enum Private for value: private /// - [EnumMember(Value = "friends")] - Friends = 2, + [EnumMember(Value = "private")] + Private = 2, /// /// Enum Public for value: public diff --git a/src/VRChat.API/Model/FavoriteLimits.cs b/src/VRChat.API/Model/FavoriteLimits.cs index cf848b1f..ba0bcf71 100644 --- a/src/VRChat.API/Model/FavoriteLimits.cs +++ b/src/VRChat.API/Model/FavoriteLimits.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/FavoriteType.cs b/src/VRChat.API/Model/FavoriteType.cs index 99f89547..99df4058 100644 --- a/src/VRChat.API/Model/FavoriteType.cs +++ b/src/VRChat.API/Model/FavoriteType.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,10 +33,10 @@ namespace VRChat.API.Model public enum FavoriteType { /// - /// Enum World for value: world + /// Enum Avatar for value: avatar /// - [EnumMember(Value = "world")] - World = 1, + [EnumMember(Value = "avatar")] + Avatar = 1, /// /// Enum Friend for value: friend @@ -45,10 +45,10 @@ public enum FavoriteType Friend = 2, /// - /// Enum Avatar for value: avatar + /// Enum World for value: world /// - [EnumMember(Value = "avatar")] - Avatar = 3 + [EnumMember(Value = "world")] + World = 3 } } diff --git a/src/VRChat.API/Model/FavoritedWorld.cs b/src/VRChat.API/Model/FavoritedWorld.cs index 5c902a52..a39a2719 100644 --- a/src/VRChat.API/Model/FavoritedWorld.cs +++ b/src/VRChat.API/Model/FavoritedWorld.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -49,15 +49,13 @@ protected FavoritedWorld() { } /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. /// authorName (required). /// capacity (required). - /// description (required). - /// recommendedCapacity. /// createdAt (required). /// defaultContentSettings. - /// favorites (required) (default to 0). + /// description (required). /// favoriteGroup (required). /// favoriteId (required). + /// favorites (required) (default to 0). /// featured (required) (default to false). - /// visits (default to 0). /// heat (required) (default to 0). /// WorldID be \"offline\" on User profiles if you are not friends with that user. (required). /// imageUrl (required). @@ -68,15 +66,17 @@ protected FavoritedWorld() { } /// popularity (required) (default to 0). /// previewYoutubeId. /// publicationDate (required). + /// recommendedCapacity. /// releaseStatus (required). /// (required). /// thumbnailImageUrl (required). + /// udonProducts. /// (required). /// updatedAt (required). /// urlList (required). - /// udonProducts. /// varVersion (required). - public FavoritedWorld(string authorId = default, string authorName = default, int capacity = default, string description = default, int recommendedCapacity = default, DateTime createdAt = default, InstanceContentSettings defaultContentSettings = default, int favorites = 0, string favoriteGroup = default, string favoriteId = default, bool featured = false, int visits = 0, int heat = 0, string id = default, string imageUrl = default, string labsPublicationDate = default, string name = default, int occupants = 0, string organization = @"vrchat", int popularity = 0, string previewYoutubeId = default, string publicationDate = default, ReleaseStatus releaseStatus = default, List tags = default, string thumbnailImageUrl = default, List unityPackages = default, DateTime updatedAt = default, List urlList = default, List udonProducts = default, int varVersion = default) + /// visits (default to 0). + public FavoritedWorld(string authorId = default, string authorName = default, int capacity = default, DateTime createdAt = default, InstanceContentSettings defaultContentSettings = default, string description = default, string favoriteGroup = default, string favoriteId = default, int favorites = 0, bool featured = false, int heat = 0, string id = default, string imageUrl = default, string labsPublicationDate = default, string name = default, int occupants = 0, string organization = @"vrchat", int popularity = 0, string previewYoutubeId = default, string publicationDate = default, int recommendedCapacity = default, ReleaseStatus releaseStatus = default, List tags = default, string thumbnailImageUrl = default, List udonProducts = default, List unityPackages = default, DateTime updatedAt = default, List urlList = default, int varVersion = default, int visits = 0) { // to ensure "authorName" is required (not null) if (authorName == null) @@ -85,14 +85,13 @@ public FavoritedWorld(string authorId = default, string authorName = default, in } this.AuthorName = authorName; this.Capacity = capacity; + this.CreatedAt = createdAt; // to ensure "description" is required (not null) if (description == null) { throw new ArgumentNullException("description is a required property for FavoritedWorld and cannot be null"); } this.Description = description; - this.CreatedAt = createdAt; - this.Favorites = favorites; // to ensure "favoriteGroup" is required (not null) if (favoriteGroup == null) { @@ -105,6 +104,7 @@ public FavoritedWorld(string authorId = default, string authorName = default, in throw new ArgumentNullException("favoriteId is a required property for FavoritedWorld and cannot be null"); } this.FavoriteId = favoriteId; + this.Favorites = favorites; this.Featured = featured; this.Heat = heat; // to ensure "id" is required (not null) @@ -173,11 +173,11 @@ public FavoritedWorld(string authorId = default, string authorName = default, in this.UrlList = urlList; this.VarVersion = varVersion; this.AuthorId = authorId; - this.RecommendedCapacity = recommendedCapacity; this.DefaultContentSettings = defaultContentSettings; - this.Visits = visits; this.PreviewYoutubeId = previewYoutubeId; + this.RecommendedCapacity = recommendedCapacity; this.UdonProducts = udonProducts; + this.Visits = visits; } /// @@ -205,21 +205,6 @@ public FavoritedWorld(string authorId = default, string authorName = default, in [DataMember(Name = "capacity", IsRequired = true, EmitDefaultValue = true)] public int Capacity { get; set; } - /// - /// Gets or Sets Description - /// - [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] - public string Description { get; set; } - - /// - /// Gets or Sets RecommendedCapacity - /// - /* - 16 - */ - [DataMember(Name = "recommendedCapacity", EmitDefaultValue = false)] - public int RecommendedCapacity { get; set; } - /// /// Gets or Sets CreatedAt /// @@ -233,13 +218,10 @@ public FavoritedWorld(string authorId = default, string authorName = default, in public InstanceContentSettings DefaultContentSettings { get; set; } /// - /// Gets or Sets Favorites + /// Gets or Sets Description /// - /* - 12024 - */ - [DataMember(Name = "favorites", IsRequired = true, EmitDefaultValue = true)] - public int Favorites { get; set; } + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } /// /// Gets or Sets FavoriteGroup @@ -257,19 +239,19 @@ public FavoritedWorld(string authorId = default, string authorName = default, in public string FavoriteId { get; set; } /// - /// Gets or Sets Featured + /// Gets or Sets Favorites /// - [DataMember(Name = "featured", IsRequired = true, EmitDefaultValue = true)] - public bool Featured { get; set; } + /* + 12024 + */ + [DataMember(Name = "favorites", IsRequired = true, EmitDefaultValue = true)] + public int Favorites { get; set; } /// - /// Gets or Sets Visits + /// Gets or Sets Featured /// - /* - 9988675 - */ - [DataMember(Name = "visits", EmitDefaultValue = false)] - public int Visits { get; set; } + [DataMember(Name = "featured", IsRequired = true, EmitDefaultValue = true)] + public bool Featured { get; set; } /// /// Gets or Sets Heat @@ -350,6 +332,15 @@ public FavoritedWorld(string authorId = default, string authorName = default, in [DataMember(Name = "publicationDate", IsRequired = true, EmitDefaultValue = true)] public string PublicationDate { get; set; } + /// + /// Gets or Sets RecommendedCapacity + /// + /* + 16 + */ + [DataMember(Name = "recommendedCapacity", EmitDefaultValue = false)] + public int RecommendedCapacity { get; set; } + /// /// /// @@ -363,6 +354,12 @@ public FavoritedWorld(string authorId = default, string authorName = default, in [DataMember(Name = "thumbnailImageUrl", IsRequired = true, EmitDefaultValue = true)] public string ThumbnailImageUrl { get; set; } + /// + /// Gets or Sets UdonProducts + /// + [DataMember(Name = "udonProducts", EmitDefaultValue = false)] + public List UdonProducts { get; set; } + /// /// /// @@ -382,18 +379,21 @@ public FavoritedWorld(string authorId = default, string authorName = default, in [DataMember(Name = "urlList", IsRequired = true, EmitDefaultValue = true)] public List UrlList { get; set; } - /// - /// Gets or Sets UdonProducts - /// - [DataMember(Name = "udonProducts", EmitDefaultValue = false)] - public List UdonProducts { get; set; } - /// /// Gets or Sets VarVersion /// [DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)] public int VarVersion { get; set; } + /// + /// Gets or Sets Visits + /// + /* + 9988675 + */ + [DataMember(Name = "visits", EmitDefaultValue = false)] + public int Visits { get; set; } + /// /// Returns the string presentation of the object /// @@ -405,15 +405,13 @@ public override string ToString() sb.Append(" AuthorId: ").Append(AuthorId).Append("\n"); sb.Append(" AuthorName: ").Append(AuthorName).Append("\n"); sb.Append(" Capacity: ").Append(Capacity).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" RecommendedCapacity: ").Append(RecommendedCapacity).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" DefaultContentSettings: ").Append(DefaultContentSettings).Append("\n"); - sb.Append(" Favorites: ").Append(Favorites).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" FavoriteGroup: ").Append(FavoriteGroup).Append("\n"); sb.Append(" FavoriteId: ").Append(FavoriteId).Append("\n"); + sb.Append(" Favorites: ").Append(Favorites).Append("\n"); sb.Append(" Featured: ").Append(Featured).Append("\n"); - sb.Append(" Visits: ").Append(Visits).Append("\n"); sb.Append(" Heat: ").Append(Heat).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); @@ -424,14 +422,16 @@ public override string ToString() sb.Append(" Popularity: ").Append(Popularity).Append("\n"); sb.Append(" PreviewYoutubeId: ").Append(PreviewYoutubeId).Append("\n"); sb.Append(" PublicationDate: ").Append(PublicationDate).Append("\n"); + sb.Append(" RecommendedCapacity: ").Append(RecommendedCapacity).Append("\n"); sb.Append(" ReleaseStatus: ").Append(ReleaseStatus).Append("\n"); sb.Append(" Tags: ").Append(Tags).Append("\n"); sb.Append(" ThumbnailImageUrl: ").Append(ThumbnailImageUrl).Append("\n"); + sb.Append(" UdonProducts: ").Append(UdonProducts).Append("\n"); sb.Append(" UnityPackages: ").Append(UnityPackages).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append(" UrlList: ").Append(UrlList).Append("\n"); - sb.Append(" UdonProducts: ").Append(UdonProducts).Append("\n"); sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); + sb.Append(" Visits: ").Append(Visits).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -481,15 +481,6 @@ public bool Equals(FavoritedWorld input) this.Capacity == input.Capacity || this.Capacity.Equals(input.Capacity) ) && - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && - ( - this.RecommendedCapacity == input.RecommendedCapacity || - this.RecommendedCapacity.Equals(input.RecommendedCapacity) - ) && ( this.CreatedAt == input.CreatedAt || (this.CreatedAt != null && @@ -501,8 +492,9 @@ public bool Equals(FavoritedWorld input) this.DefaultContentSettings.Equals(input.DefaultContentSettings)) ) && ( - this.Favorites == input.Favorites || - this.Favorites.Equals(input.Favorites) + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) ) && ( this.FavoriteGroup == input.FavoriteGroup || @@ -515,12 +507,12 @@ public bool Equals(FavoritedWorld input) this.FavoriteId.Equals(input.FavoriteId)) ) && ( - this.Featured == input.Featured || - this.Featured.Equals(input.Featured) + this.Favorites == input.Favorites || + this.Favorites.Equals(input.Favorites) ) && ( - this.Visits == input.Visits || - this.Visits.Equals(input.Visits) + this.Featured == input.Featured || + this.Featured.Equals(input.Featured) ) && ( this.Heat == input.Heat || @@ -569,6 +561,10 @@ public bool Equals(FavoritedWorld input) (this.PublicationDate != null && this.PublicationDate.Equals(input.PublicationDate)) ) && + ( + this.RecommendedCapacity == input.RecommendedCapacity || + this.RecommendedCapacity.Equals(input.RecommendedCapacity) + ) && ( this.ReleaseStatus == input.ReleaseStatus || this.ReleaseStatus.Equals(input.ReleaseStatus) @@ -584,6 +580,12 @@ public bool Equals(FavoritedWorld input) (this.ThumbnailImageUrl != null && this.ThumbnailImageUrl.Equals(input.ThumbnailImageUrl)) ) && + ( + this.UdonProducts == input.UdonProducts || + this.UdonProducts != null && + input.UdonProducts != null && + this.UdonProducts.SequenceEqual(input.UdonProducts) + ) && ( this.UnityPackages == input.UnityPackages || this.UnityPackages != null && @@ -601,15 +603,13 @@ public bool Equals(FavoritedWorld input) input.UrlList != null && this.UrlList.SequenceEqual(input.UrlList) ) && - ( - this.UdonProducts == input.UdonProducts || - this.UdonProducts != null && - input.UdonProducts != null && - this.UdonProducts.SequenceEqual(input.UdonProducts) - ) && ( this.VarVersion == input.VarVersion || this.VarVersion.Equals(input.VarVersion) + ) && + ( + this.Visits == input.Visits || + this.Visits.Equals(input.Visits) ); } @@ -631,11 +631,6 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.AuthorName.GetHashCode(); } hashCode = (hashCode * 59) + this.Capacity.GetHashCode(); - if (this.Description != null) - { - hashCode = (hashCode * 59) + this.Description.GetHashCode(); - } - hashCode = (hashCode * 59) + this.RecommendedCapacity.GetHashCode(); if (this.CreatedAt != null) { hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); @@ -644,7 +639,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.DefaultContentSettings.GetHashCode(); } - hashCode = (hashCode * 59) + this.Favorites.GetHashCode(); + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); + } if (this.FavoriteGroup != null) { hashCode = (hashCode * 59) + this.FavoriteGroup.GetHashCode(); @@ -653,8 +651,8 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.FavoriteId.GetHashCode(); } + hashCode = (hashCode * 59) + this.Favorites.GetHashCode(); hashCode = (hashCode * 59) + this.Featured.GetHashCode(); - hashCode = (hashCode * 59) + this.Visits.GetHashCode(); hashCode = (hashCode * 59) + this.Heat.GetHashCode(); if (this.Id != null) { @@ -686,6 +684,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.PublicationDate.GetHashCode(); } + hashCode = (hashCode * 59) + this.RecommendedCapacity.GetHashCode(); hashCode = (hashCode * 59) + this.ReleaseStatus.GetHashCode(); if (this.Tags != null) { @@ -695,6 +694,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ThumbnailImageUrl.GetHashCode(); } + if (this.UdonProducts != null) + { + hashCode = (hashCode * 59) + this.UdonProducts.GetHashCode(); + } if (this.UnityPackages != null) { hashCode = (hashCode * 59) + this.UnityPackages.GetHashCode(); @@ -707,11 +710,8 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.UrlList.GetHashCode(); } - if (this.UdonProducts != null) - { - hashCode = (hashCode * 59) + this.UdonProducts.GetHashCode(); - } hashCode = (hashCode * 59) + this.VarVersion.GetHashCode(); + hashCode = (hashCode * 59) + this.Visits.GetHashCode(); return hashCode; } } @@ -735,22 +735,16 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Description, length must be greater than 1.", new [] { "Description" }); } - // Favorites (int) minimum - if (this.Favorites < (int)0) - { - yield return new ValidationResult("Invalid value for Favorites, must be a value greater than or equal to 0.", new [] { "Favorites" }); - } - // FavoriteGroup (string) minLength if (this.FavoriteGroup != null && this.FavoriteGroup.Length < 1) { yield return new ValidationResult("Invalid value for FavoriteGroup, length must be greater than 1.", new [] { "FavoriteGroup" }); } - // Visits (int) minimum - if (this.Visits < (int)0) + // Favorites (int) minimum + if (this.Favorites < (int)0) { - yield return new ValidationResult("Invalid value for Visits, must be a value greater than or equal to 0.", new [] { "Visits" }); + yield return new ValidationResult("Invalid value for Favorites, must be a value greater than or equal to 0.", new [] { "Favorites" }); } // Heat (int) minimum @@ -813,6 +807,12 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for VarVersion, must be a value greater than or equal to 1.", new [] { "VarVersion" }); } + // Visits (int) minimum + if (this.Visits < (int)0) + { + yield return new ValidationResult("Invalid value for Visits, must be a value greater than or equal to 0.", new [] { "Visits" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/Feedback.cs b/src/VRChat.API/Model/Feedback.cs index ab676e5c..0df9660d 100644 --- a/src/VRChat.API/Model/Feedback.cs +++ b/src/VRChat.API/Model/Feedback.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/File.cs b/src/VRChat.API/Model/File.cs index ca0c588e..f59fcb72 100644 --- a/src/VRChat.API/Model/File.cs +++ b/src/VRChat.API/Model/File.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,15 +47,15 @@ protected File() { } /// Initializes a new instance of the class. /// /// animationStyle. - /// maskTag. /// extension (required). /// id (required). + /// maskTag. /// mimeType (required). /// name (required). /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). /// (required). /// (required). - public File(string animationStyle = default, string maskTag = default, string extension = default, string id = default, MIMEType mimeType = default, string name = default, string ownerId = default, List tags = default, List versions = default) + public File(string animationStyle = default, string extension = default, string id = default, string maskTag = default, MIMEType mimeType = default, string name = default, string ownerId = default, List tags = default, List versions = default) { // to ensure "extension" is required (not null) if (extension == null) @@ -107,15 +107,6 @@ public File(string animationStyle = default, string maskTag = default, string ex [DataMember(Name = "animationStyle", EmitDefaultValue = false)] public string AnimationStyle { get; set; } - /// - /// Gets or Sets MaskTag - /// - /* - square - */ - [DataMember(Name = "maskTag", EmitDefaultValue = false)] - public string MaskTag { get; set; } - /// /// Gets or Sets Extension /// @@ -134,6 +125,15 @@ public File(string animationStyle = default, string maskTag = default, string ex [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } + /// + /// Gets or Sets MaskTag + /// + /* + square + */ + [DataMember(Name = "maskTag", EmitDefaultValue = false)] + public string MaskTag { get; set; } + /// /// Gets or Sets Name /// @@ -176,9 +176,9 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class File {\n"); sb.Append(" AnimationStyle: ").Append(AnimationStyle).Append("\n"); - sb.Append(" MaskTag: ").Append(MaskTag).Append("\n"); sb.Append(" Extension: ").Append(Extension).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" MaskTag: ").Append(MaskTag).Append("\n"); sb.Append(" MimeType: ").Append(MimeType).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" OwnerId: ").Append(OwnerId).Append("\n"); @@ -224,11 +224,6 @@ public bool Equals(File input) (this.AnimationStyle != null && this.AnimationStyle.Equals(input.AnimationStyle)) ) && - ( - this.MaskTag == input.MaskTag || - (this.MaskTag != null && - this.MaskTag.Equals(input.MaskTag)) - ) && ( this.Extension == input.Extension || (this.Extension != null && @@ -239,6 +234,11 @@ public bool Equals(File input) (this.Id != null && this.Id.Equals(input.Id)) ) && + ( + this.MaskTag == input.MaskTag || + (this.MaskTag != null && + this.MaskTag.Equals(input.MaskTag)) + ) && ( this.MimeType == input.MimeType || this.MimeType.Equals(input.MimeType) @@ -280,10 +280,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.AnimationStyle.GetHashCode(); } - if (this.MaskTag != null) - { - hashCode = (hashCode * 59) + this.MaskTag.GetHashCode(); - } if (this.Extension != null) { hashCode = (hashCode * 59) + this.Extension.GetHashCode(); @@ -292,6 +288,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Id.GetHashCode(); } + if (this.MaskTag != null) + { + hashCode = (hashCode * 59) + this.MaskTag.GetHashCode(); + } hashCode = (hashCode * 59) + this.MimeType.GetHashCode(); if (this.Name != null) { diff --git a/src/VRChat.API/Model/FileAnalysis.cs b/src/VRChat.API/Model/FileAnalysis.cs index 8fc73dce..5bd9b950 100644 --- a/src/VRChat.API/Model/FileAnalysis.cs +++ b/src/VRChat.API/Model/FileAnalysis.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/FileAnalysisAvatarStats.cs b/src/VRChat.API/Model/FileAnalysisAvatarStats.cs index 2253bd6b..8f3742fd 100644 --- a/src/VRChat.API/Model/FileAnalysisAvatarStats.cs +++ b/src/VRChat.API/Model/FileAnalysisAvatarStats.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/FileData.cs b/src/VRChat.API/Model/FileData.cs index 4326990f..ca6a5678 100644 --- a/src/VRChat.API/Model/FileData.cs +++ b/src/VRChat.API/Model/FileData.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/FileStatus.cs b/src/VRChat.API/Model/FileStatus.cs index 95fdbe38..560d25e8 100644 --- a/src/VRChat.API/Model/FileStatus.cs +++ b/src/VRChat.API/Model/FileStatus.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,29 +32,29 @@ namespace VRChat.API.Model [JsonConverter(typeof(StringEnumConverter))] public enum FileStatus { - /// - /// Enum Waiting for value: waiting - /// - [EnumMember(Value = "waiting")] - Waiting = 1, - /// /// Enum Complete for value: complete /// [EnumMember(Value = "complete")] - Complete = 2, + Complete = 1, /// /// Enum None for value: none /// [EnumMember(Value = "none")] - None = 3, + None = 2, /// /// Enum Queued for value: queued /// [EnumMember(Value = "queued")] - Queued = 4 + Queued = 3, + + /// + /// Enum Waiting for value: waiting + /// + [EnumMember(Value = "waiting")] + Waiting = 4 } } diff --git a/src/VRChat.API/Model/FileUploadURL.cs b/src/VRChat.API/Model/FileUploadURL.cs index f148c8c0..c8d6949a 100644 --- a/src/VRChat.API/Model/FileUploadURL.cs +++ b/src/VRChat.API/Model/FileUploadURL.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/FileVersion.cs b/src/VRChat.API/Model/FileVersion.cs index 86f7c944..8daf4ee1 100644 --- a/src/VRChat.API/Model/FileVersion.cs +++ b/src/VRChat.API/Model/FileVersion.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/FileVersionUploadStatus.cs b/src/VRChat.API/Model/FileVersionUploadStatus.cs index a519d8f4..0f534d83 100644 --- a/src/VRChat.API/Model/FileVersionUploadStatus.cs +++ b/src/VRChat.API/Model/FileVersionUploadStatus.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,50 +40,48 @@ protected FileVersionUploadStatus() { } /// /// Initializes a new instance of the class. /// - /// uploadId (required). + /// Unknown (required). /// fileName (required). - /// nextPartNumber (required). /// maxParts (required). + /// nextPartNumber (required). /// parts (required). - /// Unknown (required). - public FileVersionUploadStatus(string uploadId = default, string fileName = default, int nextPartNumber = default, int maxParts = default, List parts = default, List etags = default) + /// uploadId (required). + public FileVersionUploadStatus(List etags = default, string fileName = default, int maxParts = default, int nextPartNumber = default, List parts = default, string uploadId = default) { - // to ensure "uploadId" is required (not null) - if (uploadId == null) + // to ensure "etags" is required (not null) + if (etags == null) { - throw new ArgumentNullException("uploadId is a required property for FileVersionUploadStatus and cannot be null"); + throw new ArgumentNullException("etags is a required property for FileVersionUploadStatus and cannot be null"); } - this.UploadId = uploadId; + this.Etags = etags; // to ensure "fileName" is required (not null) if (fileName == null) { throw new ArgumentNullException("fileName is a required property for FileVersionUploadStatus and cannot be null"); } this.FileName = fileName; - this.NextPartNumber = nextPartNumber; this.MaxParts = maxParts; + this.NextPartNumber = nextPartNumber; // to ensure "parts" is required (not null) if (parts == null) { throw new ArgumentNullException("parts is a required property for FileVersionUploadStatus and cannot be null"); } this.Parts = parts; - // to ensure "etags" is required (not null) - if (etags == null) + // to ensure "uploadId" is required (not null) + if (uploadId == null) { - throw new ArgumentNullException("etags is a required property for FileVersionUploadStatus and cannot be null"); + throw new ArgumentNullException("uploadId is a required property for FileVersionUploadStatus and cannot be null"); } - this.Etags = etags; + this.UploadId = uploadId; } /// - /// Gets or Sets UploadId + /// Unknown /// - /* - xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx..xxxxxxxxxxxxxxxxxxxxxxx - */ - [DataMember(Name = "uploadId", IsRequired = true, EmitDefaultValue = true)] - public string UploadId { get; set; } + /// Unknown + [DataMember(Name = "etags", IsRequired = true, EmitDefaultValue = true)] + public List Etags { get; set; } /// /// Gets or Sets FileName @@ -95,22 +93,22 @@ public FileVersionUploadStatus(string uploadId = default, string fileName = defa public string FileName { get; set; } /// - /// Gets or Sets NextPartNumber + /// Gets or Sets MaxParts /// /* - 0 + 1000 */ - [DataMember(Name = "nextPartNumber", IsRequired = true, EmitDefaultValue = true)] - public int NextPartNumber { get; set; } + [DataMember(Name = "maxParts", IsRequired = true, EmitDefaultValue = true)] + public int MaxParts { get; set; } /// - /// Gets or Sets MaxParts + /// Gets or Sets NextPartNumber /// /* - 1000 + 0 */ - [DataMember(Name = "maxParts", IsRequired = true, EmitDefaultValue = true)] - public int MaxParts { get; set; } + [DataMember(Name = "nextPartNumber", IsRequired = true, EmitDefaultValue = true)] + public int NextPartNumber { get; set; } /// /// Gets or Sets Parts @@ -119,11 +117,13 @@ public FileVersionUploadStatus(string uploadId = default, string fileName = defa public List Parts { get; set; } /// - /// Unknown + /// Gets or Sets UploadId /// - /// Unknown - [DataMember(Name = "etags", IsRequired = true, EmitDefaultValue = true)] - public List Etags { get; set; } + /* + xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxx.xxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx..xxxxxxxxxxxxxxxxxxxxxxx + */ + [DataMember(Name = "uploadId", IsRequired = true, EmitDefaultValue = true)] + public string UploadId { get; set; } /// /// Returns the string presentation of the object @@ -133,12 +133,12 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class FileVersionUploadStatus {\n"); - sb.Append(" UploadId: ").Append(UploadId).Append("\n"); + sb.Append(" Etags: ").Append(Etags).Append("\n"); sb.Append(" FileName: ").Append(FileName).Append("\n"); - sb.Append(" NextPartNumber: ").Append(NextPartNumber).Append("\n"); sb.Append(" MaxParts: ").Append(MaxParts).Append("\n"); + sb.Append(" NextPartNumber: ").Append(NextPartNumber).Append("\n"); sb.Append(" Parts: ").Append(Parts).Append("\n"); - sb.Append(" Etags: ").Append(Etags).Append("\n"); + sb.Append(" UploadId: ").Append(UploadId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -175,23 +175,24 @@ public bool Equals(FileVersionUploadStatus input) } return ( - this.UploadId == input.UploadId || - (this.UploadId != null && - this.UploadId.Equals(input.UploadId)) + this.Etags == input.Etags || + this.Etags != null && + input.Etags != null && + this.Etags.SequenceEqual(input.Etags) ) && ( this.FileName == input.FileName || (this.FileName != null && this.FileName.Equals(input.FileName)) ) && - ( - this.NextPartNumber == input.NextPartNumber || - this.NextPartNumber.Equals(input.NextPartNumber) - ) && ( this.MaxParts == input.MaxParts || this.MaxParts.Equals(input.MaxParts) ) && + ( + this.NextPartNumber == input.NextPartNumber || + this.NextPartNumber.Equals(input.NextPartNumber) + ) && ( this.Parts == input.Parts || this.Parts != null && @@ -199,10 +200,9 @@ public bool Equals(FileVersionUploadStatus input) this.Parts.SequenceEqual(input.Parts) ) && ( - this.Etags == input.Etags || - this.Etags != null && - input.Etags != null && - this.Etags.SequenceEqual(input.Etags) + this.UploadId == input.UploadId || + (this.UploadId != null && + this.UploadId.Equals(input.UploadId)) ); } @@ -215,23 +215,23 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.UploadId != null) + if (this.Etags != null) { - hashCode = (hashCode * 59) + this.UploadId.GetHashCode(); + hashCode = (hashCode * 59) + this.Etags.GetHashCode(); } if (this.FileName != null) { hashCode = (hashCode * 59) + this.FileName.GetHashCode(); } - hashCode = (hashCode * 59) + this.NextPartNumber.GetHashCode(); hashCode = (hashCode * 59) + this.MaxParts.GetHashCode(); + hashCode = (hashCode * 59) + this.NextPartNumber.GetHashCode(); if (this.Parts != null) { hashCode = (hashCode * 59) + this.Parts.GetHashCode(); } - if (this.Etags != null) + if (this.UploadId != null) { - hashCode = (hashCode * 59) + this.Etags.GetHashCode(); + hashCode = (hashCode * 59) + this.UploadId.GetHashCode(); } return hashCode; } @@ -244,28 +244,28 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // UploadId (string) minLength - if (this.UploadId != null && this.UploadId.Length < 1) - { - yield return new ValidationResult("Invalid value for UploadId, length must be greater than 1.", new [] { "UploadId" }); - } - // FileName (string) minLength if (this.FileName != null && this.FileName.Length < 1) { yield return new ValidationResult("Invalid value for FileName, length must be greater than 1.", new [] { "FileName" }); } + // MaxParts (int) minimum + if (this.MaxParts < (int)1) + { + yield return new ValidationResult("Invalid value for MaxParts, must be a value greater than or equal to 1.", new [] { "MaxParts" }); + } + // NextPartNumber (int) minimum if (this.NextPartNumber < (int)0) { yield return new ValidationResult("Invalid value for NextPartNumber, must be a value greater than or equal to 0.", new [] { "NextPartNumber" }); } - // MaxParts (int) minimum - if (this.MaxParts < (int)1) + // UploadId (string) minLength + if (this.UploadId != null && this.UploadId.Length < 1) { - yield return new ValidationResult("Invalid value for MaxParts, must be a value greater than or equal to 1.", new [] { "MaxParts" }); + yield return new ValidationResult("Invalid value for UploadId, length must be greater than 1.", new [] { "UploadId" }); } yield break; diff --git a/src/VRChat.API/Model/FinishFileDataUploadRequest.cs b/src/VRChat.API/Model/FinishFileDataUploadRequest.cs index 47002cab..58a9f438 100644 --- a/src/VRChat.API/Model/FinishFileDataUploadRequest.cs +++ b/src/VRChat.API/Model/FinishFileDataUploadRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,22 +41,22 @@ protected FinishFileDataUploadRequest() { } /// Initializes a new instance of the class. /// /// Array of ETags uploaded.. - /// Always a zero in string form, despite how many parts uploaded. (required) (default to "0"). /// Always a zero in string form, despite how many parts uploaded. (required) (default to "0"). - public FinishFileDataUploadRequest(List etags = default, string nextPartNumber = @"0", string maxParts = @"0") + /// Always a zero in string form, despite how many parts uploaded. (required) (default to "0"). + public FinishFileDataUploadRequest(List etags = default, string maxParts = @"0", string nextPartNumber = @"0") { - // to ensure "nextPartNumber" is required (not null) - if (nextPartNumber == null) - { - throw new ArgumentNullException("nextPartNumber is a required property for FinishFileDataUploadRequest and cannot be null"); - } - this.NextPartNumber = nextPartNumber; // to ensure "maxParts" is required (not null) if (maxParts == null) { throw new ArgumentNullException("maxParts is a required property for FinishFileDataUploadRequest and cannot be null"); } this.MaxParts = maxParts; + // to ensure "nextPartNumber" is required (not null) + if (nextPartNumber == null) + { + throw new ArgumentNullException("nextPartNumber is a required property for FinishFileDataUploadRequest and cannot be null"); + } + this.NextPartNumber = nextPartNumber; this.Etags = etags; } @@ -74,9 +74,9 @@ public FinishFileDataUploadRequest(List etags = default, string nextPart /* 0 */ - [DataMember(Name = "nextPartNumber", IsRequired = true, EmitDefaultValue = true)] + [DataMember(Name = "maxParts", IsRequired = true, EmitDefaultValue = true)] [Obsolete] - public string NextPartNumber { get; set; } + public string MaxParts { get; set; } /// /// Always a zero in string form, despite how many parts uploaded. @@ -85,9 +85,9 @@ public FinishFileDataUploadRequest(List etags = default, string nextPart /* 0 */ - [DataMember(Name = "maxParts", IsRequired = true, EmitDefaultValue = true)] + [DataMember(Name = "nextPartNumber", IsRequired = true, EmitDefaultValue = true)] [Obsolete] - public string MaxParts { get; set; } + public string NextPartNumber { get; set; } /// /// Returns the string presentation of the object @@ -98,8 +98,8 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class FinishFileDataUploadRequest {\n"); sb.Append(" Etags: ").Append(Etags).Append("\n"); - sb.Append(" NextPartNumber: ").Append(NextPartNumber).Append("\n"); sb.Append(" MaxParts: ").Append(MaxParts).Append("\n"); + sb.Append(" NextPartNumber: ").Append(NextPartNumber).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -141,15 +141,15 @@ public bool Equals(FinishFileDataUploadRequest input) input.Etags != null && this.Etags.SequenceEqual(input.Etags) ) && - ( - this.NextPartNumber == input.NextPartNumber || - (this.NextPartNumber != null && - this.NextPartNumber.Equals(input.NextPartNumber)) - ) && ( this.MaxParts == input.MaxParts || (this.MaxParts != null && this.MaxParts.Equals(input.MaxParts)) + ) && + ( + this.NextPartNumber == input.NextPartNumber || + (this.NextPartNumber != null && + this.NextPartNumber.Equals(input.NextPartNumber)) ); } @@ -166,14 +166,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Etags.GetHashCode(); } - if (this.NextPartNumber != null) - { - hashCode = (hashCode * 59) + this.NextPartNumber.GetHashCode(); - } if (this.MaxParts != null) { hashCode = (hashCode * 59) + this.MaxParts.GetHashCode(); } + if (this.NextPartNumber != null) + { + hashCode = (hashCode * 59) + this.NextPartNumber.GetHashCode(); + } return hashCode; } } @@ -185,18 +185,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // NextPartNumber (string) maxLength - if (this.NextPartNumber != null && this.NextPartNumber.Length > 1) - { - yield return new ValidationResult("Invalid value for NextPartNumber, length must be less than 1.", new [] { "NextPartNumber" }); - } - - // NextPartNumber (string) minLength - if (this.NextPartNumber != null && this.NextPartNumber.Length < 1) - { - yield return new ValidationResult("Invalid value for NextPartNumber, length must be greater than 1.", new [] { "NextPartNumber" }); - } - // MaxParts (string) maxLength if (this.MaxParts != null && this.MaxParts.Length > 1) { @@ -209,6 +197,18 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for MaxParts, length must be greater than 1.", new [] { "MaxParts" }); } + // NextPartNumber (string) maxLength + if (this.NextPartNumber != null && this.NextPartNumber.Length > 1) + { + yield return new ValidationResult("Invalid value for NextPartNumber, length must be less than 1.", new [] { "NextPartNumber" }); + } + + // NextPartNumber (string) minLength + if (this.NextPartNumber != null && this.NextPartNumber.Length < 1) + { + yield return new ValidationResult("Invalid value for NextPartNumber, length must be greater than 1.", new [] { "NextPartNumber" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/FollowCalendarEventRequest.cs b/src/VRChat.API/Model/FollowCalendarEventRequest.cs index e1718b0c..e49115a8 100644 --- a/src/VRChat.API/Model/FollowCalendarEventRequest.cs +++ b/src/VRChat.API/Model/FollowCalendarEventRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/FriendStatus.cs b/src/VRChat.API/Model/FriendStatus.cs index 765e8a98..56511702 100644 --- a/src/VRChat.API/Model/FriendStatus.cs +++ b/src/VRChat.API/Model/FriendStatus.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GetGroupPosts200Response.cs b/src/VRChat.API/Model/GetGroupPosts200Response.cs index 67b73898..faebe38a 100644 --- a/src/VRChat.API/Model/GetGroupPosts200Response.cs +++ b/src/VRChat.API/Model/GetGroupPosts200Response.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GetUserGroupInstances200Response.cs b/src/VRChat.API/Model/GetUserGroupInstances200Response.cs index cd51b00f..8a71d963 100644 --- a/src/VRChat.API/Model/GetUserGroupInstances200Response.cs +++ b/src/VRChat.API/Model/GetUserGroupInstances200Response.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Group.cs b/src/VRChat.API/Model/Group.cs index 26e8a699..9ee8cd64 100644 --- a/src/VRChat.API/Model/Group.cs +++ b/src/VRChat.API/Model/Group.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,12 +33,6 @@ namespace VRChat.API.Model public partial class Group : IEquatable, IValidatableObject { - /// - /// Gets or Sets Privacy - /// - [DataMember(Name = "privacy", EmitDefaultValue = false)] - public GroupPrivacy? Privacy { get; set; } - /// /// Gets or Sets JoinState /// @@ -50,83 +44,83 @@ public partial class Group : IEquatable, IValidatableObject /// [DataMember(Name = "membershipStatus", EmitDefaultValue = false)] public GroupMemberStatus? MembershipStatus { get; set; } + + /// + /// Gets or Sets Privacy + /// + [DataMember(Name = "privacy", EmitDefaultValue = false)] + public GroupPrivacy? Privacy { get; set; } /// /// Initializes a new instance of the class. /// - /// ageVerificationSlotsAvailable. /// ageVerificationBetaCode. /// ageVerificationBetaSlots. + /// ageVerificationSlotsAvailable. /// badges. - /// id. - /// name. - /// shortCode. - /// discriminator. - /// description. - /// iconUrl. + /// bannerId. /// bannerUrl. - /// privacy. - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. - /// rules. - /// links. - /// languages. + /// createdAt. + /// description. + /// discriminator. + /// galleries. /// iconId. - /// bannerId. - /// memberCount. - /// memberCountSyncedAt. + /// iconUrl. + /// id. /// isVerified (default to false). /// joinState. - /// tags. - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. - /// galleries. - /// createdAt. - /// updatedAt. + /// languages. /// lastPostCreatedAt. - /// onlineMemberCount. + /// links. + /// memberCount. + /// memberCountSyncedAt. /// membershipStatus. /// myMember. + /// name. + /// onlineMemberCount. + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + /// privacy. /// Only returned if ?includeRoles=true is specified.. - public Group(bool ageVerificationSlotsAvailable = default, string ageVerificationBetaCode = default, decimal ageVerificationBetaSlots = default, List badges = default, string id = default, string name = default, string shortCode = default, string discriminator = default, string description = default, string iconUrl = default, string bannerUrl = default, GroupPrivacy? privacy = default, string ownerId = default, string rules = default, List links = default, List languages = default, string iconId = default, string bannerId = default, int memberCount = default, DateTime memberCountSyncedAt = default, bool isVerified = false, GroupJoinState? joinState = default, List tags = default, string transferTargetId = default, List galleries = default, DateTime createdAt = default, DateTime updatedAt = default, DateTime? lastPostCreatedAt = default, int onlineMemberCount = default, GroupMemberStatus? membershipStatus = default, GroupMyMember myMember = default, List roles = default) + /// rules. + /// shortCode. + /// tags. + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + /// updatedAt. + public Group(string ageVerificationBetaCode = default, decimal ageVerificationBetaSlots = default, bool ageVerificationSlotsAvailable = default, List badges = default, string bannerId = default, string bannerUrl = default, DateTime createdAt = default, string description = default, string discriminator = default, List galleries = default, string iconId = default, string iconUrl = default, string id = default, bool isVerified = false, GroupJoinState? joinState = default, List languages = default, DateTime? lastPostCreatedAt = default, List links = default, int memberCount = default, DateTime memberCountSyncedAt = default, GroupMemberStatus? membershipStatus = default, GroupMyMember myMember = default, string name = default, int onlineMemberCount = default, string ownerId = default, GroupPrivacy? privacy = default, List roles = default, string rules = default, string shortCode = default, List tags = default, string transferTargetId = default, DateTime updatedAt = default) { - this.AgeVerificationSlotsAvailable = ageVerificationSlotsAvailable; this.AgeVerificationBetaCode = ageVerificationBetaCode; this.AgeVerificationBetaSlots = ageVerificationBetaSlots; + this.AgeVerificationSlotsAvailable = ageVerificationSlotsAvailable; this.Badges = badges; - this.Id = id; - this.Name = name; - this.ShortCode = shortCode; - this.Discriminator = discriminator; - this.Description = description; - this.IconUrl = iconUrl; + this.BannerId = bannerId; this.BannerUrl = bannerUrl; - this.Privacy = privacy; - this.OwnerId = ownerId; - this.Rules = rules; - this.Links = links; - this.Languages = languages; + this.CreatedAt = createdAt; + this.Description = description; + this.Discriminator = discriminator; + this.Galleries = galleries; this.IconId = iconId; - this.BannerId = bannerId; - this.MemberCount = memberCount; - this.MemberCountSyncedAt = memberCountSyncedAt; + this.IconUrl = iconUrl; + this.Id = id; this.IsVerified = isVerified; this.JoinState = joinState; - this.Tags = tags; - this.TransferTargetId = transferTargetId; - this.Galleries = galleries; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; + this.Languages = languages; this.LastPostCreatedAt = lastPostCreatedAt; - this.OnlineMemberCount = onlineMemberCount; + this.Links = links; + this.MemberCount = memberCount; + this.MemberCountSyncedAt = memberCountSyncedAt; this.MembershipStatus = membershipStatus; this.MyMember = myMember; + this.Name = name; + this.OnlineMemberCount = onlineMemberCount; + this.OwnerId = ownerId; + this.Privacy = privacy; this.Roles = roles; + this.Rules = rules; + this.ShortCode = shortCode; + this.Tags = tags; + this.TransferTargetId = transferTargetId; + this.UpdatedAt = updatedAt; } - /// - /// Gets or Sets AgeVerificationSlotsAvailable - /// - [DataMember(Name = "ageVerificationSlotsAvailable", EmitDefaultValue = true)] - public bool AgeVerificationSlotsAvailable { get; set; } - /// /// Gets or Sets AgeVerificationBetaCode /// @@ -145,6 +139,12 @@ public Group(bool ageVerificationSlotsAvailable = default, string ageVerificatio [DataMember(Name = "ageVerificationBetaSlots", EmitDefaultValue = false)] public decimal AgeVerificationBetaSlots { get; set; } + /// + /// Gets or Sets AgeVerificationSlotsAvailable + /// + [DataMember(Name = "ageVerificationSlotsAvailable", EmitDefaultValue = true)] + public bool AgeVerificationSlotsAvailable { get; set; } + /// /// Gets or Sets Badges /// @@ -152,77 +152,70 @@ public Group(bool ageVerificationSlotsAvailable = default, string ageVerificatio public List Badges { get; set; } /// - /// Gets or Sets Id + /// Gets or Sets BannerId /// - /* - grp_71a7ff59-112c-4e78-a990-c7cc650776e5 - */ - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + [DataMember(Name = "bannerId", EmitDefaultValue = true)] + public string BannerId { get; set; } /// - /// Gets or Sets Name + /// Gets or Sets BannerUrl /// - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + [DataMember(Name = "bannerUrl", EmitDefaultValue = true)] + public string BannerUrl { get; set; } /// - /// Gets or Sets ShortCode + /// Gets or Sets CreatedAt /// - /* - ABC123 - */ - [DataMember(Name = "shortCode", EmitDefaultValue = false)] - public string ShortCode { get; set; } + [DataMember(Name = "createdAt", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } /// /// Gets or Sets Discriminator /// /* - 1234 + 0000 */ [DataMember(Name = "discriminator", EmitDefaultValue = false)] public string Discriminator { get; set; } /// - /// Gets or Sets Description + /// Gets or Sets Galleries /// - [DataMember(Name = "description", EmitDefaultValue = false)] - public string Description { get; set; } + [DataMember(Name = "galleries", EmitDefaultValue = false)] + public List Galleries { get; set; } /// - /// Gets or Sets IconUrl + /// Gets or Sets IconId /// - [DataMember(Name = "iconUrl", EmitDefaultValue = true)] - public string IconUrl { get; set; } + [DataMember(Name = "iconId", EmitDefaultValue = true)] + public string IconId { get; set; } /// - /// Gets or Sets BannerUrl + /// Gets or Sets IconUrl /// - [DataMember(Name = "bannerUrl", EmitDefaultValue = true)] - public string BannerUrl { get; set; } + [DataMember(Name = "iconUrl", EmitDefaultValue = true)] + public string IconUrl { get; set; } /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// Gets or Sets Id /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /* - usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + grp_71a7ff59-112c-4e78-a990-c7cc650776e5 */ - [DataMember(Name = "ownerId", EmitDefaultValue = false)] - public string OwnerId { get; set; } - - /// - /// Gets or Sets Rules - /// - [DataMember(Name = "rules", EmitDefaultValue = true)] - public string Rules { get; set; } + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } /// - /// Gets or Sets Links + /// Gets or Sets IsVerified /// - [DataMember(Name = "links", EmitDefaultValue = false)] - public List Links { get; set; } + [DataMember(Name = "isVerified", EmitDefaultValue = true)] + public bool IsVerified { get; set; } /// /// Gets or Sets Languages @@ -231,16 +224,16 @@ public Group(bool ageVerificationSlotsAvailable = default, string ageVerificatio public List Languages { get; set; } /// - /// Gets or Sets IconId + /// Gets or Sets LastPostCreatedAt /// - [DataMember(Name = "iconId", EmitDefaultValue = true)] - public string IconId { get; set; } + [DataMember(Name = "lastPostCreatedAt", EmitDefaultValue = true)] + public DateTime? LastPostCreatedAt { get; set; } /// - /// Gets or Sets BannerId + /// Gets or Sets Links /// - [DataMember(Name = "bannerId", EmitDefaultValue = true)] - public string BannerId { get; set; } + [DataMember(Name = "links", EmitDefaultValue = false)] + public List Links { get; set; } /// /// Gets or Sets MemberCount @@ -255,16 +248,22 @@ public Group(bool ageVerificationSlotsAvailable = default, string ageVerificatio public DateTime MemberCountSyncedAt { get; set; } /// - /// Gets or Sets IsVerified + /// Gets or Sets MyMember /// - [DataMember(Name = "isVerified", EmitDefaultValue = true)] - public bool IsVerified { get; set; } + [DataMember(Name = "myMember", EmitDefaultValue = false)] + public GroupMyMember MyMember { get; set; } /// - /// Gets or Sets Tags + /// Gets or Sets Name /// - [DataMember(Name = "tags", EmitDefaultValue = false)] - public List Tags { get; set; } + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets OnlineMemberCount + /// + [DataMember(Name = "onlineMemberCount", EmitDefaultValue = false)] + public int OnlineMemberCount { get; set; } /// /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. @@ -273,51 +272,52 @@ public Group(bool ageVerificationSlotsAvailable = default, string ageVerificatio /* usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 */ - [DataMember(Name = "transferTargetId", EmitDefaultValue = false)] - public string TransferTargetId { get; set; } - - /// - /// Gets or Sets Galleries - /// - [DataMember(Name = "galleries", EmitDefaultValue = false)] - public List Galleries { get; set; } + [DataMember(Name = "ownerId", EmitDefaultValue = false)] + public string OwnerId { get; set; } /// - /// Gets or Sets CreatedAt + /// Only returned if ?includeRoles=true is specified. /// - [DataMember(Name = "createdAt", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + /// Only returned if ?includeRoles=true is specified. + [DataMember(Name = "roles", EmitDefaultValue = true)] + public List Roles { get; set; } /// - /// Gets or Sets UpdatedAt + /// Gets or Sets Rules /// - [DataMember(Name = "updatedAt", EmitDefaultValue = false)] - public DateTime UpdatedAt { get; set; } + [DataMember(Name = "rules", EmitDefaultValue = true)] + public string Rules { get; set; } /// - /// Gets or Sets LastPostCreatedAt + /// Gets or Sets ShortCode /// - [DataMember(Name = "lastPostCreatedAt", EmitDefaultValue = true)] - public DateTime? LastPostCreatedAt { get; set; } + /* + VRCHAT + */ + [DataMember(Name = "shortCode", EmitDefaultValue = false)] + public string ShortCode { get; set; } /// - /// Gets or Sets OnlineMemberCount + /// Gets or Sets Tags /// - [DataMember(Name = "onlineMemberCount", EmitDefaultValue = false)] - public int OnlineMemberCount { get; set; } + [DataMember(Name = "tags", EmitDefaultValue = false)] + public List Tags { get; set; } /// - /// Gets or Sets MyMember + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// - [DataMember(Name = "myMember", EmitDefaultValue = false)] - public GroupMyMember MyMember { get; set; } + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /* + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + */ + [DataMember(Name = "transferTargetId", EmitDefaultValue = false)] + public string TransferTargetId { get; set; } /// - /// Only returned if ?includeRoles=true is specified. + /// Gets or Sets UpdatedAt /// - /// Only returned if ?includeRoles=true is specified. - [DataMember(Name = "roles", EmitDefaultValue = true)] - public List Roles { get; set; } + [DataMember(Name = "updatedAt", EmitDefaultValue = false)] + public DateTime UpdatedAt { get; set; } /// /// Returns the string presentation of the object @@ -327,38 +327,38 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class Group {\n"); - sb.Append(" AgeVerificationSlotsAvailable: ").Append(AgeVerificationSlotsAvailable).Append("\n"); sb.Append(" AgeVerificationBetaCode: ").Append(AgeVerificationBetaCode).Append("\n"); sb.Append(" AgeVerificationBetaSlots: ").Append(AgeVerificationBetaSlots).Append("\n"); + sb.Append(" AgeVerificationSlotsAvailable: ").Append(AgeVerificationSlotsAvailable).Append("\n"); sb.Append(" Badges: ").Append(Badges).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ShortCode: ").Append(ShortCode).Append("\n"); - sb.Append(" Discriminator: ").Append(Discriminator).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" IconUrl: ").Append(IconUrl).Append("\n"); + sb.Append(" BannerId: ").Append(BannerId).Append("\n"); sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n"); - sb.Append(" Privacy: ").Append(Privacy).Append("\n"); - sb.Append(" OwnerId: ").Append(OwnerId).Append("\n"); - sb.Append(" Rules: ").Append(Rules).Append("\n"); - sb.Append(" Links: ").Append(Links).Append("\n"); - sb.Append(" Languages: ").Append(Languages).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Discriminator: ").Append(Discriminator).Append("\n"); + sb.Append(" Galleries: ").Append(Galleries).Append("\n"); sb.Append(" IconId: ").Append(IconId).Append("\n"); - sb.Append(" BannerId: ").Append(BannerId).Append("\n"); - sb.Append(" MemberCount: ").Append(MemberCount).Append("\n"); - sb.Append(" MemberCountSyncedAt: ").Append(MemberCountSyncedAt).Append("\n"); + sb.Append(" IconUrl: ").Append(IconUrl).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" IsVerified: ").Append(IsVerified).Append("\n"); sb.Append(" JoinState: ").Append(JoinState).Append("\n"); - sb.Append(" Tags: ").Append(Tags).Append("\n"); - sb.Append(" TransferTargetId: ").Append(TransferTargetId).Append("\n"); - sb.Append(" Galleries: ").Append(Galleries).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Languages: ").Append(Languages).Append("\n"); sb.Append(" LastPostCreatedAt: ").Append(LastPostCreatedAt).Append("\n"); - sb.Append(" OnlineMemberCount: ").Append(OnlineMemberCount).Append("\n"); + sb.Append(" Links: ").Append(Links).Append("\n"); + sb.Append(" MemberCount: ").Append(MemberCount).Append("\n"); + sb.Append(" MemberCountSyncedAt: ").Append(MemberCountSyncedAt).Append("\n"); sb.Append(" MembershipStatus: ").Append(MembershipStatus).Append("\n"); sb.Append(" MyMember: ").Append(MyMember).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" OnlineMemberCount: ").Append(OnlineMemberCount).Append("\n"); + sb.Append(" OwnerId: ").Append(OwnerId).Append("\n"); + sb.Append(" Privacy: ").Append(Privacy).Append("\n"); sb.Append(" Roles: ").Append(Roles).Append("\n"); + sb.Append(" Rules: ").Append(Rules).Append("\n"); + sb.Append(" ShortCode: ").Append(ShortCode).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" TransferTargetId: ").Append(TransferTargetId).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -394,10 +394,6 @@ public bool Equals(Group input) return false; } return - ( - this.AgeVerificationSlotsAvailable == input.AgeVerificationSlotsAvailable || - this.AgeVerificationSlotsAvailable.Equals(input.AgeVerificationSlotsAvailable) - ) && ( this.AgeVerificationBetaCode == input.AgeVerificationBetaCode || (this.AgeVerificationBetaCode != null && @@ -407,6 +403,10 @@ public bool Equals(Group input) this.AgeVerificationBetaSlots == input.AgeVerificationBetaSlots || this.AgeVerificationBetaSlots.Equals(input.AgeVerificationBetaSlots) ) && + ( + this.AgeVerificationSlotsAvailable == input.AgeVerificationSlotsAvailable || + this.AgeVerificationSlotsAvailable.Equals(input.AgeVerificationSlotsAvailable) + ) && ( this.Badges == input.Badges || this.Badges != null && @@ -414,19 +414,24 @@ public bool Equals(Group input) this.Badges.SequenceEqual(input.Badges) ) && ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) + this.BannerId == input.BannerId || + (this.BannerId != null && + this.BannerId.Equals(input.BannerId)) ) && ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) + this.BannerUrl == input.BannerUrl || + (this.BannerUrl != null && + this.BannerUrl.Equals(input.BannerUrl)) ) && ( - this.ShortCode == input.ShortCode || - (this.ShortCode != null && - this.ShortCode.Equals(input.ShortCode)) + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) ) && ( this.Discriminator == input.Discriminator || @@ -434,9 +439,15 @@ public bool Equals(Group input) this.Discriminator.Equals(input.Discriminator)) ) && ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) + this.Galleries == input.Galleries || + this.Galleries != null && + input.Galleries != null && + this.Galleries.SequenceEqual(input.Galleries) + ) && + ( + this.IconId == input.IconId || + (this.IconId != null && + this.IconId.Equals(input.IconId)) ) && ( this.IconUrl == input.IconUrl || @@ -444,29 +455,17 @@ public bool Equals(Group input) this.IconUrl.Equals(input.IconUrl)) ) && ( - this.BannerUrl == input.BannerUrl || - (this.BannerUrl != null && - this.BannerUrl.Equals(input.BannerUrl)) - ) && - ( - this.Privacy == input.Privacy || - this.Privacy.Equals(input.Privacy) - ) && - ( - this.OwnerId == input.OwnerId || - (this.OwnerId != null && - this.OwnerId.Equals(input.OwnerId)) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Rules == input.Rules || - (this.Rules != null && - this.Rules.Equals(input.Rules)) + this.IsVerified == input.IsVerified || + this.IsVerified.Equals(input.IsVerified) ) && ( - this.Links == input.Links || - this.Links != null && - input.Links != null && - this.Links.SequenceEqual(input.Links) + this.JoinState == input.JoinState || + this.JoinState.Equals(input.JoinState) ) && ( this.Languages == input.Languages || @@ -475,14 +474,15 @@ public bool Equals(Group input) this.Languages.SequenceEqual(input.Languages) ) && ( - this.IconId == input.IconId || - (this.IconId != null && - this.IconId.Equals(input.IconId)) + this.LastPostCreatedAt == input.LastPostCreatedAt || + (this.LastPostCreatedAt != null && + this.LastPostCreatedAt.Equals(input.LastPostCreatedAt)) ) && ( - this.BannerId == input.BannerId || - (this.BannerId != null && - this.BannerId.Equals(input.BannerId)) + this.Links == input.Links || + this.Links != null && + input.Links != null && + this.Links.SequenceEqual(input.Links) ) && ( this.MemberCount == input.MemberCount || @@ -494,63 +494,63 @@ public bool Equals(Group input) this.MemberCountSyncedAt.Equals(input.MemberCountSyncedAt)) ) && ( - this.IsVerified == input.IsVerified || - this.IsVerified.Equals(input.IsVerified) + this.MembershipStatus == input.MembershipStatus || + this.MembershipStatus.Equals(input.MembershipStatus) ) && ( - this.JoinState == input.JoinState || - this.JoinState.Equals(input.JoinState) + this.MyMember == input.MyMember || + (this.MyMember != null && + this.MyMember.Equals(input.MyMember)) ) && ( - this.Tags == input.Tags || - this.Tags != null && - input.Tags != null && - this.Tags.SequenceEqual(input.Tags) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( - this.TransferTargetId == input.TransferTargetId || - (this.TransferTargetId != null && - this.TransferTargetId.Equals(input.TransferTargetId)) + this.OnlineMemberCount == input.OnlineMemberCount || + this.OnlineMemberCount.Equals(input.OnlineMemberCount) ) && ( - this.Galleries == input.Galleries || - this.Galleries != null && - input.Galleries != null && - this.Galleries.SequenceEqual(input.Galleries) + this.OwnerId == input.OwnerId || + (this.OwnerId != null && + this.OwnerId.Equals(input.OwnerId)) ) && ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) + this.Privacy == input.Privacy || + this.Privacy.Equals(input.Privacy) ) && ( - this.UpdatedAt == input.UpdatedAt || - (this.UpdatedAt != null && - this.UpdatedAt.Equals(input.UpdatedAt)) + this.Roles == input.Roles || + this.Roles != null && + input.Roles != null && + this.Roles.SequenceEqual(input.Roles) ) && ( - this.LastPostCreatedAt == input.LastPostCreatedAt || - (this.LastPostCreatedAt != null && - this.LastPostCreatedAt.Equals(input.LastPostCreatedAt)) + this.Rules == input.Rules || + (this.Rules != null && + this.Rules.Equals(input.Rules)) ) && ( - this.OnlineMemberCount == input.OnlineMemberCount || - this.OnlineMemberCount.Equals(input.OnlineMemberCount) + this.ShortCode == input.ShortCode || + (this.ShortCode != null && + this.ShortCode.Equals(input.ShortCode)) ) && ( - this.MembershipStatus == input.MembershipStatus || - this.MembershipStatus.Equals(input.MembershipStatus) + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) ) && ( - this.MyMember == input.MyMember || - (this.MyMember != null && - this.MyMember.Equals(input.MyMember)) + this.TransferTargetId == input.TransferTargetId || + (this.TransferTargetId != null && + this.TransferTargetId.Equals(input.TransferTargetId)) ) && ( - this.Roles == input.Roles || - this.Roles != null && - input.Roles != null && - this.Roles.SequenceEqual(input.Roles) + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) ); } @@ -563,109 +563,109 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.AgeVerificationSlotsAvailable.GetHashCode(); if (this.AgeVerificationBetaCode != null) { hashCode = (hashCode * 59) + this.AgeVerificationBetaCode.GetHashCode(); } hashCode = (hashCode * 59) + this.AgeVerificationBetaSlots.GetHashCode(); + hashCode = (hashCode * 59) + this.AgeVerificationSlotsAvailable.GetHashCode(); if (this.Badges != null) { hashCode = (hashCode * 59) + this.Badges.GetHashCode(); } - if (this.Id != null) - { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - } - if (this.Name != null) + if (this.BannerId != null) { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + hashCode = (hashCode * 59) + this.BannerId.GetHashCode(); } - if (this.ShortCode != null) + if (this.BannerUrl != null) { - hashCode = (hashCode * 59) + this.ShortCode.GetHashCode(); + hashCode = (hashCode * 59) + this.BannerUrl.GetHashCode(); } - if (this.Discriminator != null) + if (this.CreatedAt != null) { - hashCode = (hashCode * 59) + this.Discriminator.GetHashCode(); + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } if (this.Description != null) { hashCode = (hashCode * 59) + this.Description.GetHashCode(); } - if (this.IconUrl != null) + if (this.Discriminator != null) { - hashCode = (hashCode * 59) + this.IconUrl.GetHashCode(); + hashCode = (hashCode * 59) + this.Discriminator.GetHashCode(); } - if (this.BannerUrl != null) + if (this.Galleries != null) { - hashCode = (hashCode * 59) + this.BannerUrl.GetHashCode(); + hashCode = (hashCode * 59) + this.Galleries.GetHashCode(); } - hashCode = (hashCode * 59) + this.Privacy.GetHashCode(); - if (this.OwnerId != null) + if (this.IconId != null) { - hashCode = (hashCode * 59) + this.OwnerId.GetHashCode(); + hashCode = (hashCode * 59) + this.IconId.GetHashCode(); } - if (this.Rules != null) + if (this.IconUrl != null) { - hashCode = (hashCode * 59) + this.Rules.GetHashCode(); + hashCode = (hashCode * 59) + this.IconUrl.GetHashCode(); } - if (this.Links != null) + if (this.Id != null) { - hashCode = (hashCode * 59) + this.Links.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } + hashCode = (hashCode * 59) + this.IsVerified.GetHashCode(); + hashCode = (hashCode * 59) + this.JoinState.GetHashCode(); if (this.Languages != null) { hashCode = (hashCode * 59) + this.Languages.GetHashCode(); } - if (this.IconId != null) + if (this.LastPostCreatedAt != null) { - hashCode = (hashCode * 59) + this.IconId.GetHashCode(); + hashCode = (hashCode * 59) + this.LastPostCreatedAt.GetHashCode(); } - if (this.BannerId != null) + if (this.Links != null) { - hashCode = (hashCode * 59) + this.BannerId.GetHashCode(); + hashCode = (hashCode * 59) + this.Links.GetHashCode(); } hashCode = (hashCode * 59) + this.MemberCount.GetHashCode(); if (this.MemberCountSyncedAt != null) { hashCode = (hashCode * 59) + this.MemberCountSyncedAt.GetHashCode(); } - hashCode = (hashCode * 59) + this.IsVerified.GetHashCode(); - hashCode = (hashCode * 59) + this.JoinState.GetHashCode(); - if (this.Tags != null) + hashCode = (hashCode * 59) + this.MembershipStatus.GetHashCode(); + if (this.MyMember != null) { - hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + hashCode = (hashCode * 59) + this.MyMember.GetHashCode(); } - if (this.TransferTargetId != null) + if (this.Name != null) { - hashCode = (hashCode * 59) + this.TransferTargetId.GetHashCode(); + hashCode = (hashCode * 59) + this.Name.GetHashCode(); } - if (this.Galleries != null) + hashCode = (hashCode * 59) + this.OnlineMemberCount.GetHashCode(); + if (this.OwnerId != null) { - hashCode = (hashCode * 59) + this.Galleries.GetHashCode(); + hashCode = (hashCode * 59) + this.OwnerId.GetHashCode(); } - if (this.CreatedAt != null) + hashCode = (hashCode * 59) + this.Privacy.GetHashCode(); + if (this.Roles != null) { - hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.Roles.GetHashCode(); } - if (this.UpdatedAt != null) + if (this.Rules != null) { - hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.Rules.GetHashCode(); } - if (this.LastPostCreatedAt != null) + if (this.ShortCode != null) { - hashCode = (hashCode * 59) + this.LastPostCreatedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.ShortCode.GetHashCode(); } - hashCode = (hashCode * 59) + this.OnlineMemberCount.GetHashCode(); - hashCode = (hashCode * 59) + this.MembershipStatus.GetHashCode(); - if (this.MyMember != null) + if (this.Tags != null) { - hashCode = (hashCode * 59) + this.MyMember.GetHashCode(); + hashCode = (hashCode * 59) + this.Tags.GetHashCode(); } - if (this.Roles != null) + if (this.TransferTargetId != null) { - hashCode = (hashCode * 59) + this.Roles.GetHashCode(); + hashCode = (hashCode * 59) + this.TransferTargetId.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); } return hashCode; } diff --git a/src/VRChat.API/Model/GroupAccessType.cs b/src/VRChat.API/Model/GroupAccessType.cs index a788216d..e2e1fc75 100644 --- a/src/VRChat.API/Model/GroupAccessType.cs +++ b/src/VRChat.API/Model/GroupAccessType.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -34,10 +34,10 @@ namespace VRChat.API.Model public enum GroupAccessType { /// - /// Enum Public for value: public + /// Enum Members for value: members /// - [EnumMember(Value = "public")] - Public = 1, + [EnumMember(Value = "members")] + Members = 1, /// /// Enum Plus for value: plus @@ -46,10 +46,10 @@ public enum GroupAccessType Plus = 2, /// - /// Enum Members for value: members + /// Enum Public for value: public /// - [EnumMember(Value = "members")] - Members = 3 + [EnumMember(Value = "public")] + Public = 3 } } diff --git a/src/VRChat.API/Model/GroupAnnouncement.cs b/src/VRChat.API/Model/GroupAnnouncement.cs index 9a2d9476..6a5575a9 100644 --- a/src/VRChat.API/Model/GroupAnnouncement.cs +++ b/src/VRChat.API/Model/GroupAnnouncement.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,36 +35,43 @@ public partial class GroupAnnouncement : IEquatable, IValidat /// /// Initializes a new instance of the class. /// - /// id. - /// groupId. /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. - /// title. - /// text. + /// createdAt. + /// groupId. + /// id. /// imageId. /// imageUrl. - /// createdAt. + /// text. + /// title. /// updatedAt. - public GroupAnnouncement(string id = default, string groupId = default, string authorId = default, string title = default, string text = default, string imageId = default, string imageUrl = default, DateTime? createdAt = default, DateTime? updatedAt = default) + public GroupAnnouncement(string authorId = default, DateTime? createdAt = default, string groupId = default, string id = default, string imageId = default, string imageUrl = default, string text = default, string title = default, DateTime? updatedAt = default) { - this.Id = id; - this.GroupId = groupId; this.AuthorId = authorId; - this.Title = title; - this.Text = text; + this.CreatedAt = createdAt; + this.GroupId = groupId; + this.Id = id; this.ImageId = imageId; this.ImageUrl = imageUrl; - this.CreatedAt = createdAt; + this.Text = text; + this.Title = title; this.UpdatedAt = updatedAt; } /// - /// Gets or Sets Id + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /* - gpos_71a7ff59-112c-4e78-a990-c7cc650776e5 + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 */ - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + [DataMember(Name = "authorId", EmitDefaultValue = false)] + public string AuthorId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", EmitDefaultValue = true)] + public DateTime? CreatedAt { get; set; } /// /// Gets or Sets GroupId @@ -76,26 +83,13 @@ public GroupAnnouncement(string id = default, string groupId = default, string a public string GroupId { get; set; } /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// Gets or Sets Id /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /* - usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + gpos_71a7ff59-112c-4e78-a990-c7cc650776e5 */ - [DataMember(Name = "authorId", EmitDefaultValue = false)] - public string AuthorId { get; set; } - - /// - /// Gets or Sets Title - /// - [DataMember(Name = "title", EmitDefaultValue = true)] - public string Title { get; set; } - - /// - /// Gets or Sets Text - /// - [DataMember(Name = "text", EmitDefaultValue = true)] - public string Text { get; set; } + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } /// /// Gets or Sets ImageId @@ -113,10 +107,16 @@ public GroupAnnouncement(string id = default, string groupId = default, string a public string ImageUrl { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets Text /// - [DataMember(Name = "createdAt", EmitDefaultValue = true)] - public DateTime? CreatedAt { get; set; } + [DataMember(Name = "text", EmitDefaultValue = true)] + public string Text { get; set; } + + /// + /// Gets or Sets Title + /// + [DataMember(Name = "title", EmitDefaultValue = true)] + public string Title { get; set; } /// /// Gets or Sets UpdatedAt @@ -132,14 +132,14 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class GroupAnnouncement {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); sb.Append(" AuthorId: ").Append(AuthorId).Append("\n"); - sb.Append(" Title: ").Append(Title).Append("\n"); - sb.Append(" Text: ").Append(Text).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" GroupId: ").Append(GroupId).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" ImageId: ").Append(ImageId).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Text: ").Append(Text).Append("\n"); + sb.Append(" Title: ").Append(Title).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -176,30 +176,25 @@ public bool Equals(GroupAnnouncement input) return false; } return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && ( this.AuthorId == input.AuthorId || (this.AuthorId != null && this.AuthorId.Equals(input.AuthorId)) ) && ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) ) && ( - this.Text == input.Text || - (this.Text != null && - this.Text.Equals(input.Text)) + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.ImageId == input.ImageId || @@ -212,9 +207,14 @@ public bool Equals(GroupAnnouncement input) this.ImageUrl.Equals(input.ImageUrl)) ) && ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) + this.Text == input.Text || + (this.Text != null && + this.Text.Equals(input.Text)) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) ) && ( this.UpdatedAt == input.UpdatedAt || @@ -232,25 +232,21 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) - { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - } - if (this.GroupId != null) - { - hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); - } if (this.AuthorId != null) { hashCode = (hashCode * 59) + this.AuthorId.GetHashCode(); } - if (this.Title != null) + if (this.CreatedAt != null) { - hashCode = (hashCode * 59) + this.Title.GetHashCode(); + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } - if (this.Text != null) + if (this.GroupId != null) { - hashCode = (hashCode * 59) + this.Text.GetHashCode(); + hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } if (this.ImageId != null) { @@ -260,9 +256,13 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ImageUrl.GetHashCode(); } - if (this.CreatedAt != null) + if (this.Text != null) { - hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.Text.GetHashCode(); + } + if (this.Title != null) + { + hashCode = (hashCode * 59) + this.Title.GetHashCode(); } if (this.UpdatedAt != null) { diff --git a/src/VRChat.API/Model/GroupAuditLogEntry.cs b/src/VRChat.API/Model/GroupAuditLogEntry.cs index 4526b8c5..4ba98ca1 100644 --- a/src/VRChat.API/Model/GroupAuditLogEntry.cs +++ b/src/VRChat.API/Model/GroupAuditLogEntry.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,37 +35,44 @@ public partial class GroupAuditLogEntry : IEquatable, IValid /// /// Initializes a new instance of the class. /// - /// id. + /// actorDisplayName. + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. /// createdAt. + /// The data associated with the event. The format of this data is dependent on the event type.. + /// A human-readable description of the event.. + /// The type of event that occurred. This is a string that is prefixed with the type of object that the event occurred on. For example, a group role update event would be prefixed with `group.role`. (default to "group.update"). /// groupId. - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. - /// actorDisplayName. + /// id. /// Typically a UserID, GroupID, GroupRoleID, or Location, but could be other types of IDs.. - /// The type of event that occurred. This is a string that is prefixed with the type of object that the event occurred on. For example, a group role update event would be prefixed with `group.role`. (default to "group.update"). - /// A human-readable description of the event.. - /// The data associated with the event. The format of this data is dependent on the event type.. - public GroupAuditLogEntry(string id = default, DateTime createdAt = default, string groupId = default, string actorId = default, string actorDisplayName = default, string targetId = default, string eventType = @"group.update", string description = default, Object data = default) + public GroupAuditLogEntry(string actorDisplayName = default, string actorId = default, DateTime createdAt = default, Object data = default, string description = default, string eventType = @"group.update", string groupId = default, string id = default, string targetId = default) { - this.Id = id; - this.CreatedAt = createdAt; - this.GroupId = groupId; - this.ActorId = actorId; this.ActorDisplayName = actorDisplayName; - this.TargetId = targetId; + this.ActorId = actorId; + this.CreatedAt = createdAt; + this.Data = data; + this.Description = description; // use default value if no "eventType" provided this.EventType = eventType ?? @"group.update"; - this.Description = description; - this.Data = data; + this.GroupId = groupId; + this.Id = id; + this.TargetId = targetId; } /// - /// Gets or Sets Id + /// Gets or Sets ActorDisplayName + /// + [DataMember(Name = "actorDisplayName", EmitDefaultValue = false)] + public string ActorDisplayName { get; set; } + + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /* - gaud_71a7ff59-112c-4e78-a990-c7cc650776e5 + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 */ - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + [DataMember(Name = "actorId", EmitDefaultValue = false)] + public string ActorId { get; set; } /// /// Gets or Sets CreatedAt @@ -74,36 +81,24 @@ public GroupAuditLogEntry(string id = default, DateTime createdAt = default, str public DateTime CreatedAt { get; set; } /// - /// Gets or Sets GroupId + /// The data associated with the event. The format of this data is dependent on the event type. /// + /// The data associated with the event. The format of this data is dependent on the event type. /* - grp_71a7ff59-112c-4e78-a990-c7cc650776e5 + {"description":{"new":"My exciting new group. It's pretty nifty!","old":"My exciting new group. It's pretty nifty!"},"joinState":{"new":"request","old":"closed"}} */ - [DataMember(Name = "groupId", EmitDefaultValue = false)] - public string GroupId { get; set; } + [DataMember(Name = "data", EmitDefaultValue = false)] + public Object Data { get; set; } /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// A human-readable description of the event. /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// A human-readable description of the event. /* - usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + Group role updated */ - [DataMember(Name = "actorId", EmitDefaultValue = false)] - public string ActorId { get; set; } - - /// - /// Gets or Sets ActorDisplayName - /// - [DataMember(Name = "actorDisplayName", EmitDefaultValue = false)] - public string ActorDisplayName { get; set; } - - /// - /// Typically a UserID, GroupID, GroupRoleID, or Location, but could be other types of IDs. - /// - /// Typically a UserID, GroupID, GroupRoleID, or Location, but could be other types of IDs. - [DataMember(Name = "targetId", EmitDefaultValue = false)] - public string TargetId { get; set; } + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } /// /// The type of event that occurred. This is a string that is prefixed with the type of object that the event occurred on. For example, a group role update event would be prefixed with `group.role`. @@ -116,24 +111,29 @@ public GroupAuditLogEntry(string id = default, DateTime createdAt = default, str public string EventType { get; set; } /// - /// A human-readable description of the event. + /// Gets or Sets GroupId /// - /// A human-readable description of the event. /* - Group role updated + grp_71a7ff59-112c-4e78-a990-c7cc650776e5 */ - [DataMember(Name = "description", EmitDefaultValue = false)] - public string Description { get; set; } + [DataMember(Name = "groupId", EmitDefaultValue = false)] + public string GroupId { get; set; } /// - /// The data associated with the event. The format of this data is dependent on the event type. + /// Gets or Sets Id /// - /// The data associated with the event. The format of this data is dependent on the event type. /* - {"description":{"old":"My exciting new group. It's pretty nifty!","new":"My exciting new group. It's pretty nifty!"},"joinState":{"old":"closed","new":"request"}} + gaud_71a7ff59-112c-4e78-a990-c7cc650776e5 */ - [DataMember(Name = "data", EmitDefaultValue = false)] - public Object Data { get; set; } + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Typically a UserID, GroupID, GroupRoleID, or Location, but could be other types of IDs. + /// + /// Typically a UserID, GroupID, GroupRoleID, or Location, but could be other types of IDs. + [DataMember(Name = "targetId", EmitDefaultValue = false)] + public string TargetId { get; set; } /// /// Returns the string presentation of the object @@ -143,15 +143,15 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class GroupAuditLogEntry {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" ActorDisplayName: ").Append(ActorDisplayName).Append("\n"); + sb.Append(" ActorId: ").Append(ActorId).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" EventType: ").Append(EventType).Append("\n"); sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" ActorId: ").Append(ActorId).Append("\n"); - sb.Append(" ActorDisplayName: ").Append(ActorDisplayName).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" TargetId: ").Append(TargetId).Append("\n"); - sb.Append(" EventType: ").Append(EventType).Append("\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -188,19 +188,9 @@ public bool Equals(GroupAuditLogEntry input) } return ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) + this.ActorDisplayName == input.ActorDisplayName || + (this.ActorDisplayName != null && + this.ActorDisplayName.Equals(input.ActorDisplayName)) ) && ( this.ActorId == input.ActorId || @@ -208,14 +198,19 @@ public bool Equals(GroupAuditLogEntry input) this.ActorId.Equals(input.ActorId)) ) && ( - this.ActorDisplayName == input.ActorDisplayName || - (this.ActorDisplayName != null && - this.ActorDisplayName.Equals(input.ActorDisplayName)) + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) ) && ( - this.TargetId == input.TargetId || - (this.TargetId != null && - this.TargetId.Equals(input.TargetId)) + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) ) && ( this.EventType == input.EventType || @@ -223,14 +218,19 @@ public bool Equals(GroupAuditLogEntry input) this.EventType.Equals(input.EventType)) ) && ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) ) && ( - this.Data == input.Data || - (this.Data != null && - this.Data.Equals(input.Data)) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.TargetId == input.TargetId || + (this.TargetId != null && + this.TargetId.Equals(input.TargetId)) ); } @@ -243,41 +243,41 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) - { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - } - if (this.CreatedAt != null) - { - hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); - } - if (this.GroupId != null) + if (this.ActorDisplayName != null) { - hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); + hashCode = (hashCode * 59) + this.ActorDisplayName.GetHashCode(); } if (this.ActorId != null) { hashCode = (hashCode * 59) + this.ActorId.GetHashCode(); } - if (this.ActorDisplayName != null) + if (this.CreatedAt != null) { - hashCode = (hashCode * 59) + this.ActorDisplayName.GetHashCode(); + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } - if (this.TargetId != null) + if (this.Data != null) { - hashCode = (hashCode * 59) + this.TargetId.GetHashCode(); + hashCode = (hashCode * 59) + this.Data.GetHashCode(); + } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); } if (this.EventType != null) { hashCode = (hashCode * 59) + this.EventType.GetHashCode(); } - if (this.Description != null) + if (this.GroupId != null) { - hashCode = (hashCode * 59) + this.Description.GetHashCode(); + hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); } - if (this.Data != null) + if (this.Id != null) { - hashCode = (hashCode * 59) + this.Data.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.TargetId != null) + { + hashCode = (hashCode * 59) + this.TargetId.GetHashCode(); } return hashCode; } diff --git a/src/VRChat.API/Model/GroupGallery.cs b/src/VRChat.API/Model/GroupGallery.cs index 8b7a9ab9..291369bd 100644 --- a/src/VRChat.API/Model/GroupGallery.cs +++ b/src/VRChat.API/Model/GroupGallery.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,48 +35,35 @@ public partial class GroupGallery : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// id. - /// Name of the gallery.. + /// createdAt. /// Description of the gallery.. + /// id. /// Whether the gallery is members only. (default to false). - /// . - /// . + /// Name of the gallery.. /// . /// . - /// createdAt. + /// . + /// . /// updatedAt. - public GroupGallery(string id = default, string name = default, string description = default, bool membersOnly = false, List roleIdsToView = default, List roleIdsToSubmit = default, List roleIdsToAutoApprove = default, List roleIdsToManage = default, DateTime createdAt = default, DateTime updatedAt = default) + public GroupGallery(DateTime createdAt = default, string description = default, string id = default, bool membersOnly = false, string name = default, List roleIdsToAutoApprove = default, List roleIdsToManage = default, List roleIdsToSubmit = default, List roleIdsToView = default, DateTime updatedAt = default) { - this.Id = id; - this.Name = name; + this.CreatedAt = createdAt; this.Description = description; + this.Id = id; this.MembersOnly = membersOnly; - this.RoleIdsToView = roleIdsToView; - this.RoleIdsToSubmit = roleIdsToSubmit; + this.Name = name; this.RoleIdsToAutoApprove = roleIdsToAutoApprove; this.RoleIdsToManage = roleIdsToManage; - this.CreatedAt = createdAt; + this.RoleIdsToSubmit = roleIdsToSubmit; + this.RoleIdsToView = roleIdsToView; this.UpdatedAt = updatedAt; } /// - /// Gets or Sets Id - /// - /* - ggal_a03a4b55-4ca6-4490-9519-40ba6351a233 - */ - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } - - /// - /// Name of the gallery. + /// Gets or Sets CreatedAt /// - /// Name of the gallery. - /* - Example Gallery - */ - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + [DataMember(Name = "createdAt", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// /// Description of the gallery. @@ -88,6 +75,15 @@ public GroupGallery(string id = default, string name = default, string descripti [DataMember(Name = "description", EmitDefaultValue = false)] public string Description { get; set; } + /// + /// Gets or Sets Id + /// + /* + ggal_a03a4b55-4ca6-4490-9519-40ba6351a233 + */ + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + /// /// Whether the gallery is members only. /// @@ -99,38 +95,42 @@ public GroupGallery(string id = default, string name = default, string descripti public bool MembersOnly { get; set; } /// - /// + /// Name of the gallery. /// - /// - [DataMember(Name = "roleIdsToView", EmitDefaultValue = true)] - public List RoleIdsToView { get; set; } + /// Name of the gallery. + /* + Example Gallery + */ + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } /// /// /// /// - [DataMember(Name = "roleIdsToSubmit", EmitDefaultValue = true)] - public List RoleIdsToSubmit { get; set; } + [DataMember(Name = "roleIdsToAutoApprove", EmitDefaultValue = true)] + public List RoleIdsToAutoApprove { get; set; } /// /// /// /// - [DataMember(Name = "roleIdsToAutoApprove", EmitDefaultValue = true)] - public List RoleIdsToAutoApprove { get; set; } + [DataMember(Name = "roleIdsToManage", EmitDefaultValue = true)] + public List RoleIdsToManage { get; set; } /// /// /// /// - [DataMember(Name = "roleIdsToManage", EmitDefaultValue = true)] - public List RoleIdsToManage { get; set; } + [DataMember(Name = "roleIdsToSubmit", EmitDefaultValue = true)] + public List RoleIdsToSubmit { get; set; } /// - /// Gets or Sets CreatedAt + /// /// - [DataMember(Name = "createdAt", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + /// + [DataMember(Name = "roleIdsToView", EmitDefaultValue = true)] + public List RoleIdsToView { get; set; } /// /// Gets or Sets UpdatedAt @@ -146,15 +146,15 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class GroupGallery {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" MembersOnly: ").Append(MembersOnly).Append("\n"); - sb.Append(" RoleIdsToView: ").Append(RoleIdsToView).Append("\n"); - sb.Append(" RoleIdsToSubmit: ").Append(RoleIdsToSubmit).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" RoleIdsToAutoApprove: ").Append(RoleIdsToAutoApprove).Append("\n"); sb.Append(" RoleIdsToManage: ").Append(RoleIdsToManage).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" RoleIdsToSubmit: ").Append(RoleIdsToSubmit).Append("\n"); + sb.Append(" RoleIdsToView: ").Append(RoleIdsToView).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -192,14 +192,9 @@ public bool Equals(GroupGallery input) } return ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) ) && ( this.Description == input.Description || @@ -207,20 +202,18 @@ public bool Equals(GroupGallery input) this.Description.Equals(input.Description)) ) && ( - this.MembersOnly == input.MembersOnly || - this.MembersOnly.Equals(input.MembersOnly) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.RoleIdsToView == input.RoleIdsToView || - this.RoleIdsToView != null && - input.RoleIdsToView != null && - this.RoleIdsToView.SequenceEqual(input.RoleIdsToView) + this.MembersOnly == input.MembersOnly || + this.MembersOnly.Equals(input.MembersOnly) ) && ( - this.RoleIdsToSubmit == input.RoleIdsToSubmit || - this.RoleIdsToSubmit != null && - input.RoleIdsToSubmit != null && - this.RoleIdsToSubmit.SequenceEqual(input.RoleIdsToSubmit) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( this.RoleIdsToAutoApprove == input.RoleIdsToAutoApprove || @@ -235,9 +228,16 @@ public bool Equals(GroupGallery input) this.RoleIdsToManage.SequenceEqual(input.RoleIdsToManage) ) && ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) + this.RoleIdsToSubmit == input.RoleIdsToSubmit || + this.RoleIdsToSubmit != null && + input.RoleIdsToSubmit != null && + this.RoleIdsToSubmit.SequenceEqual(input.RoleIdsToSubmit) + ) && + ( + this.RoleIdsToView == input.RoleIdsToView || + this.RoleIdsToView != null && + input.RoleIdsToView != null && + this.RoleIdsToView.SequenceEqual(input.RoleIdsToView) ) && ( this.UpdatedAt == input.UpdatedAt || @@ -255,26 +255,22 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) - { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - } - if (this.Name != null) + if (this.CreatedAt != null) { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } if (this.Description != null) { hashCode = (hashCode * 59) + this.Description.GetHashCode(); } - hashCode = (hashCode * 59) + this.MembersOnly.GetHashCode(); - if (this.RoleIdsToView != null) + if (this.Id != null) { - hashCode = (hashCode * 59) + this.RoleIdsToView.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } - if (this.RoleIdsToSubmit != null) + hashCode = (hashCode * 59) + this.MembersOnly.GetHashCode(); + if (this.Name != null) { - hashCode = (hashCode * 59) + this.RoleIdsToSubmit.GetHashCode(); + hashCode = (hashCode * 59) + this.Name.GetHashCode(); } if (this.RoleIdsToAutoApprove != null) { @@ -284,9 +280,13 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.RoleIdsToManage.GetHashCode(); } - if (this.CreatedAt != null) + if (this.RoleIdsToSubmit != null) { - hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.RoleIdsToSubmit.GetHashCode(); + } + if (this.RoleIdsToView != null) + { + hashCode = (hashCode * 59) + this.RoleIdsToView.GetHashCode(); } if (this.UpdatedAt != null) { @@ -303,18 +303,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) minLength - if (this.Name != null && this.Name.Length < 1) - { - yield return new ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); - } - // Description (string) minLength if (this.Description != null && this.Description.Length < 0) { yield return new ValidationResult("Invalid value for Description, length must be greater than 0.", new [] { "Description" }); } + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/GroupGalleryImage.cs b/src/VRChat.API/Model/GroupGalleryImage.cs index 5d82584c..d03c7c22 100644 --- a/src/VRChat.API/Model/GroupGalleryImage.cs +++ b/src/VRChat.API/Model/GroupGalleryImage.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,56 +35,60 @@ public partial class GroupGalleryImage : IEquatable, IValidat /// /// Initializes a new instance of the class. /// - /// id. - /// groupId. - /// galleryId. + /// approved (default to false). + /// approvedAt. + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + /// createdAt. /// fileId. + /// galleryId. + /// groupId. + /// id. /// imageUrl. - /// createdAt. /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. - /// approved (default to false). - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. - /// approvedAt. - public GroupGalleryImage(string id = default, string groupId = default, string galleryId = default, string fileId = default, string imageUrl = default, DateTime createdAt = default, string submittedByUserId = default, bool approved = false, string approvedByUserId = default, DateTime approvedAt = default) + public GroupGalleryImage(bool approved = false, DateTime approvedAt = default, string approvedByUserId = default, DateTime createdAt = default, string fileId = default, string galleryId = default, string groupId = default, string id = default, string imageUrl = default, string submittedByUserId = default) { - this.Id = id; - this.GroupId = groupId; - this.GalleryId = galleryId; + this.Approved = approved; + this.ApprovedAt = approvedAt; + this.ApprovedByUserId = approvedByUserId; + this.CreatedAt = createdAt; this.FileId = fileId; + this.GalleryId = galleryId; + this.GroupId = groupId; + this.Id = id; this.ImageUrl = imageUrl; - this.CreatedAt = createdAt; this.SubmittedByUserId = submittedByUserId; - this.Approved = approved; - this.ApprovedByUserId = approvedByUserId; - this.ApprovedAt = approvedAt; } /// - /// Gets or Sets Id + /// Gets or Sets Approved /// /* - ggim_71a7ff59-112c-4e78-a990-c7cc650776e5 + true */ - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + [DataMember(Name = "approved", EmitDefaultValue = true)] + public bool Approved { get; set; } /// - /// Gets or Sets GroupId + /// Gets or Sets ApprovedAt /// - /* - grp_71a7ff59-112c-4e78-a990-c7cc650776e5 - */ - [DataMember(Name = "groupId", EmitDefaultValue = false)] - public string GroupId { get; set; } + [DataMember(Name = "approvedAt", EmitDefaultValue = false)] + public DateTime ApprovedAt { get; set; } /// - /// Gets or Sets GalleryId + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /* - ggal_a03a4b55-4ca6-4490-9519-40ba6351a233 + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 */ - [DataMember(Name = "galleryId", EmitDefaultValue = false)] - public string GalleryId { get; set; } + [DataMember(Name = "approvedByUserId", EmitDefaultValue = false)] + public string ApprovedByUserId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// /// Gets or Sets FileId @@ -96,38 +100,40 @@ public GroupGalleryImage(string id = default, string groupId = default, string g public string FileId { get; set; } /// - /// Gets or Sets ImageUrl + /// Gets or Sets GalleryId /// /* - https://api.vrchat.cloud/api/1/file/file_ce35d830-e20a-4df0-a6d4-5aaef4508044/1/file + ggal_a03a4b55-4ca6-4490-9519-40ba6351a233 */ - [DataMember(Name = "imageUrl", EmitDefaultValue = false)] - public string ImageUrl { get; set; } + [DataMember(Name = "galleryId", EmitDefaultValue = false)] + public string GalleryId { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets GroupId /// - [DataMember(Name = "createdAt", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + /* + grp_71a7ff59-112c-4e78-a990-c7cc650776e5 + */ + [DataMember(Name = "groupId", EmitDefaultValue = false)] + public string GroupId { get; set; } /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// Gets or Sets Id /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /* - usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + ggim_71a7ff59-112c-4e78-a990-c7cc650776e5 */ - [DataMember(Name = "submittedByUserId", EmitDefaultValue = false)] - public string SubmittedByUserId { get; set; } + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } /// - /// Gets or Sets Approved + /// Gets or Sets ImageUrl /// /* - true + https://api.vrchat.cloud/api/1/file/file_ce35d830-e20a-4df0-a6d4-5aaef4508044/1/file */ - [DataMember(Name = "approved", EmitDefaultValue = true)] - public bool Approved { get; set; } + [DataMember(Name = "imageUrl", EmitDefaultValue = false)] + public string ImageUrl { get; set; } /// /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. @@ -136,14 +142,8 @@ public GroupGalleryImage(string id = default, string groupId = default, string g /* usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 */ - [DataMember(Name = "approvedByUserId", EmitDefaultValue = false)] - public string ApprovedByUserId { get; set; } - - /// - /// Gets or Sets ApprovedAt - /// - [DataMember(Name = "approvedAt", EmitDefaultValue = false)] - public DateTime ApprovedAt { get; set; } + [DataMember(Name = "submittedByUserId", EmitDefaultValue = false)] + public string SubmittedByUserId { get; set; } /// /// Returns the string presentation of the object @@ -153,16 +153,16 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class GroupGalleryImage {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" GalleryId: ").Append(GalleryId).Append("\n"); + sb.Append(" Approved: ").Append(Approved).Append("\n"); + sb.Append(" ApprovedAt: ").Append(ApprovedAt).Append("\n"); + sb.Append(" ApprovedByUserId: ").Append(ApprovedByUserId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" FileId: ").Append(FileId).Append("\n"); + sb.Append(" GalleryId: ").Append(GalleryId).Append("\n"); + sb.Append(" GroupId: ").Append(GroupId).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" SubmittedByUserId: ").Append(SubmittedByUserId).Append("\n"); - sb.Append(" Approved: ").Append(Approved).Append("\n"); - sb.Append(" ApprovedByUserId: ").Append(ApprovedByUserId).Append("\n"); - sb.Append(" ApprovedAt: ").Append(ApprovedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -199,19 +199,23 @@ public bool Equals(GroupGalleryImage input) } return ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) + this.Approved == input.Approved || + this.Approved.Equals(input.Approved) ) && ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) + this.ApprovedAt == input.ApprovedAt || + (this.ApprovedAt != null && + this.ApprovedAt.Equals(input.ApprovedAt)) ) && ( - this.GalleryId == input.GalleryId || - (this.GalleryId != null && - this.GalleryId.Equals(input.GalleryId)) + this.ApprovedByUserId == input.ApprovedByUserId || + (this.ApprovedByUserId != null && + this.ApprovedByUserId.Equals(input.ApprovedByUserId)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) ) && ( this.FileId == input.FileId || @@ -219,33 +223,29 @@ public bool Equals(GroupGalleryImage input) this.FileId.Equals(input.FileId)) ) && ( - this.ImageUrl == input.ImageUrl || - (this.ImageUrl != null && - this.ImageUrl.Equals(input.ImageUrl)) - ) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) + this.GalleryId == input.GalleryId || + (this.GalleryId != null && + this.GalleryId.Equals(input.GalleryId)) ) && ( - this.SubmittedByUserId == input.SubmittedByUserId || - (this.SubmittedByUserId != null && - this.SubmittedByUserId.Equals(input.SubmittedByUserId)) + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) ) && ( - this.Approved == input.Approved || - this.Approved.Equals(input.Approved) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.ApprovedByUserId == input.ApprovedByUserId || - (this.ApprovedByUserId != null && - this.ApprovedByUserId.Equals(input.ApprovedByUserId)) + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) ) && ( - this.ApprovedAt == input.ApprovedAt || - (this.ApprovedAt != null && - this.ApprovedAt.Equals(input.ApprovedAt)) + this.SubmittedByUserId == input.SubmittedByUserId || + (this.SubmittedByUserId != null && + this.SubmittedByUserId.Equals(input.SubmittedByUserId)) ); } @@ -258,42 +258,42 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) + hashCode = (hashCode * 59) + this.Approved.GetHashCode(); + if (this.ApprovedAt != null) { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + hashCode = (hashCode * 59) + this.ApprovedAt.GetHashCode(); } - if (this.GroupId != null) + if (this.ApprovedByUserId != null) { - hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); + hashCode = (hashCode * 59) + this.ApprovedByUserId.GetHashCode(); } - if (this.GalleryId != null) + if (this.CreatedAt != null) { - hashCode = (hashCode * 59) + this.GalleryId.GetHashCode(); + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } if (this.FileId != null) { hashCode = (hashCode * 59) + this.FileId.GetHashCode(); } - if (this.ImageUrl != null) + if (this.GalleryId != null) { - hashCode = (hashCode * 59) + this.ImageUrl.GetHashCode(); + hashCode = (hashCode * 59) + this.GalleryId.GetHashCode(); } - if (this.CreatedAt != null) + if (this.GroupId != null) { - hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); } - if (this.SubmittedByUserId != null) + if (this.Id != null) { - hashCode = (hashCode * 59) + this.SubmittedByUserId.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } - hashCode = (hashCode * 59) + this.Approved.GetHashCode(); - if (this.ApprovedByUserId != null) + if (this.ImageUrl != null) { - hashCode = (hashCode * 59) + this.ApprovedByUserId.GetHashCode(); + hashCode = (hashCode * 59) + this.ImageUrl.GetHashCode(); } - if (this.ApprovedAt != null) + if (this.SubmittedByUserId != null) { - hashCode = (hashCode * 59) + this.ApprovedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.SubmittedByUserId.GetHashCode(); } return hashCode; } diff --git a/src/VRChat.API/Model/GroupInstance.cs b/src/VRChat.API/Model/GroupInstance.cs index 0f2bba6e..28de1580 100644 --- a/src/VRChat.API/Model/GroupInstance.cs +++ b/src/VRChat.API/Model/GroupInstance.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -42,9 +42,9 @@ protected GroupInstance() { } /// /// InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. (required). /// Represents a unique location, consisting of a world identifier and an instance identifier, or \"offline\" if the user is not on your friends list. (required). - /// world (required). /// memberCount (required). - public GroupInstance(string instanceId = default, string location = default, World world = default, int memberCount = default) + /// world (required). + public GroupInstance(string instanceId = default, string location = default, int memberCount = default, World world = default) { // to ensure "instanceId" is required (not null) if (instanceId == null) @@ -58,13 +58,13 @@ public GroupInstance(string instanceId = default, string location = default, Wor throw new ArgumentNullException("location is a required property for GroupInstance and cannot be null"); } this.Location = location; + this.MemberCount = memberCount; // to ensure "world" is required (not null) if (world == null) { throw new ArgumentNullException("world is a required property for GroupInstance and cannot be null"); } this.World = world; - this.MemberCount = memberCount; } /// @@ -87,12 +87,6 @@ public GroupInstance(string instanceId = default, string location = default, Wor [DataMember(Name = "location", IsRequired = true, EmitDefaultValue = true)] public string Location { get; set; } - /// - /// Gets or Sets World - /// - [DataMember(Name = "world", IsRequired = true, EmitDefaultValue = true)] - public World World { get; set; } - /// /// Gets or Sets MemberCount /// @@ -102,6 +96,12 @@ public GroupInstance(string instanceId = default, string location = default, Wor [DataMember(Name = "memberCount", IsRequired = true, EmitDefaultValue = true)] public int MemberCount { get; set; } + /// + /// Gets or Sets World + /// + [DataMember(Name = "world", IsRequired = true, EmitDefaultValue = true)] + public World World { get; set; } + /// /// Returns the string presentation of the object /// @@ -112,8 +112,8 @@ public override string ToString() sb.Append("class GroupInstance {\n"); sb.Append(" InstanceId: ").Append(InstanceId).Append("\n"); sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" World: ").Append(World).Append("\n"); sb.Append(" MemberCount: ").Append(MemberCount).Append("\n"); + sb.Append(" World: ").Append(World).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -159,14 +159,14 @@ public bool Equals(GroupInstance input) (this.Location != null && this.Location.Equals(input.Location)) ) && + ( + this.MemberCount == input.MemberCount || + this.MemberCount.Equals(input.MemberCount) + ) && ( this.World == input.World || (this.World != null && this.World.Equals(input.World)) - ) && - ( - this.MemberCount == input.MemberCount || - this.MemberCount.Equals(input.MemberCount) ); } @@ -187,11 +187,11 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Location.GetHashCode(); } + hashCode = (hashCode * 59) + this.MemberCount.GetHashCode(); if (this.World != null) { hashCode = (hashCode * 59) + this.World.GetHashCode(); } - hashCode = (hashCode * 59) + this.MemberCount.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/GroupJoinRequestAction.cs b/src/VRChat.API/Model/GroupJoinRequestAction.cs index 9195bdbb..5e056f86 100644 --- a/src/VRChat.API/Model/GroupJoinRequestAction.cs +++ b/src/VRChat.API/Model/GroupJoinRequestAction.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupJoinState.cs b/src/VRChat.API/Model/GroupJoinState.cs index 1e1acdb2..a61bebb0 100644 --- a/src/VRChat.API/Model/GroupJoinState.cs +++ b/src/VRChat.API/Model/GroupJoinState.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -45,16 +45,16 @@ public enum GroupJoinState Invite = 2, /// - /// Enum Request for value: request + /// Enum Open for value: open /// - [EnumMember(Value = "request")] - Request = 3, + [EnumMember(Value = "open")] + Open = 3, /// - /// Enum Open for value: open + /// Enum Request for value: request /// - [EnumMember(Value = "open")] - Open = 4 + [EnumMember(Value = "request")] + Request = 4 } } diff --git a/src/VRChat.API/Model/GroupLimitedMember.cs b/src/VRChat.API/Model/GroupLimitedMember.cs index bf292785..a3dd1b26 100644 --- a/src/VRChat.API/Model/GroupLimitedMember.cs +++ b/src/VRChat.API/Model/GroupLimitedMember.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,50 +41,55 @@ public partial class GroupLimitedMember : IEquatable, IValid /// /// Initializes a new instance of the class. /// - /// id. + /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user.. + /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user.. /// groupId. - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + /// hasJoinedFromPurchase. + /// id. /// Whether the user is representing the group. This makes the group show up above the name tag in-game. (default to false). - /// roleIds. - /// mRoleIds. - /// joinedAt. - /// membershipStatus. - /// visibility. /// isSubscribedToAnnouncements (default to false). /// isSubscribedToEventAnnouncements. - /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user.. - /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user.. - /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user.. + /// joinedAt. /// lastPostReadAt. - /// hasJoinedFromPurchase. - public GroupLimitedMember(string id = default, string groupId = default, string userId = default, bool isRepresenting = false, List roleIds = default, List mRoleIds = default, DateTime? joinedAt = default, GroupMemberStatus? membershipStatus = default, string visibility = default, bool isSubscribedToAnnouncements = false, bool isSubscribedToEventAnnouncements = default, DateTime? createdAt = default, DateTime? bannedAt = default, string managerNotes = default, DateTime? lastPostReadAt = default, bool hasJoinedFromPurchase = default) + /// mRoleIds. + /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user.. + /// membershipStatus. + /// roleIds. + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + /// visibility. + public GroupLimitedMember(DateTime? bannedAt = default, DateTime? createdAt = default, string groupId = default, bool hasJoinedFromPurchase = default, string id = default, bool isRepresenting = false, bool isSubscribedToAnnouncements = false, bool isSubscribedToEventAnnouncements = default, DateTime? joinedAt = default, DateTime? lastPostReadAt = default, List mRoleIds = default, string managerNotes = default, GroupMemberStatus? membershipStatus = default, List roleIds = default, string userId = default, string visibility = default) { - this.Id = id; + this.BannedAt = bannedAt; + this.CreatedAt = createdAt; this.GroupId = groupId; - this.UserId = userId; + this.HasJoinedFromPurchase = hasJoinedFromPurchase; + this.Id = id; this.IsRepresenting = isRepresenting; - this.RoleIds = roleIds; - this.MRoleIds = mRoleIds; - this.JoinedAt = joinedAt; - this.MembershipStatus = membershipStatus; - this.Visibility = visibility; this.IsSubscribedToAnnouncements = isSubscribedToAnnouncements; this.IsSubscribedToEventAnnouncements = isSubscribedToEventAnnouncements; - this.CreatedAt = createdAt; - this.BannedAt = bannedAt; - this.ManagerNotes = managerNotes; + this.JoinedAt = joinedAt; this.LastPostReadAt = lastPostReadAt; - this.HasJoinedFromPurchase = hasJoinedFromPurchase; + this.MRoleIds = mRoleIds; + this.ManagerNotes = managerNotes; + this.MembershipStatus = membershipStatus; + this.RoleIds = roleIds; + this.UserId = userId; + this.Visibility = visibility; } /// - /// Gets or Sets Id + /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. /// - /* - gmem_95cdb3b4-4643-4eb6-bdab-46a4e1e5ce37 - */ - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. + [DataMember(Name = "bannedAt", EmitDefaultValue = true)] + public DateTime? BannedAt { get; set; } + + /// + /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. + /// + /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. + [DataMember(Name = "createdAt", EmitDefaultValue = true)] + public DateTime? CreatedAt { get; set; } /// /// Gets or Sets GroupId @@ -96,14 +101,19 @@ public GroupLimitedMember(string id = default, string groupId = default, string public string GroupId { get; set; } /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// Gets or Sets HasJoinedFromPurchase + /// + [DataMember(Name = "hasJoinedFromPurchase", EmitDefaultValue = true)] + public bool HasJoinedFromPurchase { get; set; } + + /// + /// Gets or Sets Id /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /* - usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + gmem_95cdb3b4-4643-4eb6-bdab-46a4e1e5ce37 */ - [DataMember(Name = "userId", EmitDefaultValue = false)] - public string UserId { get; set; } + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } /// /// Whether the user is representing the group. This makes the group show up above the name tag in-game. @@ -116,16 +126,16 @@ public GroupLimitedMember(string id = default, string groupId = default, string public bool IsRepresenting { get; set; } /// - /// Gets or Sets RoleIds + /// Gets or Sets IsSubscribedToAnnouncements /// - [DataMember(Name = "roleIds", EmitDefaultValue = false)] - public List RoleIds { get; set; } + [DataMember(Name = "isSubscribedToAnnouncements", EmitDefaultValue = true)] + public bool IsSubscribedToAnnouncements { get; set; } /// - /// Gets or Sets MRoleIds + /// Gets or Sets IsSubscribedToEventAnnouncements /// - [DataMember(Name = "mRoleIds", EmitDefaultValue = false)] - public List MRoleIds { get; set; } + [DataMember(Name = "isSubscribedToEventAnnouncements", EmitDefaultValue = true)] + public bool IsSubscribedToEventAnnouncements { get; set; } /// /// Gets or Sets JoinedAt @@ -134,58 +144,48 @@ public GroupLimitedMember(string id = default, string groupId = default, string public DateTime? JoinedAt { get; set; } /// - /// Gets or Sets Visibility - /// - /* - visible - */ - [DataMember(Name = "visibility", EmitDefaultValue = false)] - public string Visibility { get; set; } - - /// - /// Gets or Sets IsSubscribedToAnnouncements - /// - [DataMember(Name = "isSubscribedToAnnouncements", EmitDefaultValue = true)] - public bool IsSubscribedToAnnouncements { get; set; } - - /// - /// Gets or Sets IsSubscribedToEventAnnouncements + /// Gets or Sets LastPostReadAt /// - [DataMember(Name = "isSubscribedToEventAnnouncements", EmitDefaultValue = true)] - public bool IsSubscribedToEventAnnouncements { get; set; } + [DataMember(Name = "lastPostReadAt", EmitDefaultValue = true)] + public DateTime? LastPostReadAt { get; set; } /// - /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. + /// Gets or Sets MRoleIds /// - /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. - [DataMember(Name = "createdAt", EmitDefaultValue = true)] - public DateTime? CreatedAt { get; set; } + [DataMember(Name = "mRoleIds", EmitDefaultValue = false)] + public List MRoleIds { get; set; } /// /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. /// /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. - [DataMember(Name = "bannedAt", EmitDefaultValue = true)] - public DateTime? BannedAt { get; set; } + [DataMember(Name = "managerNotes", EmitDefaultValue = true)] + public string ManagerNotes { get; set; } /// - /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. + /// Gets or Sets RoleIds /// - /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. - [DataMember(Name = "managerNotes", EmitDefaultValue = true)] - public string ManagerNotes { get; set; } + [DataMember(Name = "roleIds", EmitDefaultValue = false)] + public List RoleIds { get; set; } /// - /// Gets or Sets LastPostReadAt + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// - [DataMember(Name = "lastPostReadAt", EmitDefaultValue = true)] - public DateTime? LastPostReadAt { get; set; } + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /* + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + */ + [DataMember(Name = "userId", EmitDefaultValue = false)] + public string UserId { get; set; } /// - /// Gets or Sets HasJoinedFromPurchase + /// Gets or Sets Visibility /// - [DataMember(Name = "hasJoinedFromPurchase", EmitDefaultValue = true)] - public bool HasJoinedFromPurchase { get; set; } + /* + visible + */ + [DataMember(Name = "visibility", EmitDefaultValue = false)] + public string Visibility { get; set; } /// /// Returns the string presentation of the object @@ -195,22 +195,22 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class GroupLimitedMember {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" BannedAt: ").Append(BannedAt).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" HasJoinedFromPurchase: ").Append(HasJoinedFromPurchase).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" IsRepresenting: ").Append(IsRepresenting).Append("\n"); - sb.Append(" RoleIds: ").Append(RoleIds).Append("\n"); - sb.Append(" MRoleIds: ").Append(MRoleIds).Append("\n"); - sb.Append(" JoinedAt: ").Append(JoinedAt).Append("\n"); - sb.Append(" MembershipStatus: ").Append(MembershipStatus).Append("\n"); - sb.Append(" Visibility: ").Append(Visibility).Append("\n"); sb.Append(" IsSubscribedToAnnouncements: ").Append(IsSubscribedToAnnouncements).Append("\n"); sb.Append(" IsSubscribedToEventAnnouncements: ").Append(IsSubscribedToEventAnnouncements).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" BannedAt: ").Append(BannedAt).Append("\n"); - sb.Append(" ManagerNotes: ").Append(ManagerNotes).Append("\n"); + sb.Append(" JoinedAt: ").Append(JoinedAt).Append("\n"); sb.Append(" LastPostReadAt: ").Append(LastPostReadAt).Append("\n"); - sb.Append(" HasJoinedFromPurchase: ").Append(HasJoinedFromPurchase).Append("\n"); + sb.Append(" MRoleIds: ").Append(MRoleIds).Append("\n"); + sb.Append(" ManagerNotes: ").Append(ManagerNotes).Append("\n"); + sb.Append(" MembershipStatus: ").Append(MembershipStatus).Append("\n"); + sb.Append(" RoleIds: ").Append(RoleIds).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" Visibility: ").Append(Visibility).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -247,9 +247,14 @@ public bool Equals(GroupLimitedMember input) } return ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) + this.BannedAt == input.BannedAt || + (this.BannedAt != null && + this.BannedAt.Equals(input.BannedAt)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) ) && ( this.GroupId == input.GroupId || @@ -257,25 +262,25 @@ public bool Equals(GroupLimitedMember input) this.GroupId.Equals(input.GroupId)) ) && ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) + this.HasJoinedFromPurchase == input.HasJoinedFromPurchase || + this.HasJoinedFromPurchase.Equals(input.HasJoinedFromPurchase) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.IsRepresenting == input.IsRepresenting || this.IsRepresenting.Equals(input.IsRepresenting) ) && ( - this.RoleIds == input.RoleIds || - this.RoleIds != null && - input.RoleIds != null && - this.RoleIds.SequenceEqual(input.RoleIds) + this.IsSubscribedToAnnouncements == input.IsSubscribedToAnnouncements || + this.IsSubscribedToAnnouncements.Equals(input.IsSubscribedToAnnouncements) ) && ( - this.MRoleIds == input.MRoleIds || - this.MRoleIds != null && - input.MRoleIds != null && - this.MRoleIds.SequenceEqual(input.MRoleIds) + this.IsSubscribedToEventAnnouncements == input.IsSubscribedToEventAnnouncements || + this.IsSubscribedToEventAnnouncements.Equals(input.IsSubscribedToEventAnnouncements) ) && ( this.JoinedAt == input.JoinedAt || @@ -283,45 +288,40 @@ public bool Equals(GroupLimitedMember input) this.JoinedAt.Equals(input.JoinedAt)) ) && ( - this.MembershipStatus == input.MembershipStatus || - this.MembershipStatus.Equals(input.MembershipStatus) - ) && - ( - this.Visibility == input.Visibility || - (this.Visibility != null && - this.Visibility.Equals(input.Visibility)) - ) && - ( - this.IsSubscribedToAnnouncements == input.IsSubscribedToAnnouncements || - this.IsSubscribedToAnnouncements.Equals(input.IsSubscribedToAnnouncements) + this.LastPostReadAt == input.LastPostReadAt || + (this.LastPostReadAt != null && + this.LastPostReadAt.Equals(input.LastPostReadAt)) ) && ( - this.IsSubscribedToEventAnnouncements == input.IsSubscribedToEventAnnouncements || - this.IsSubscribedToEventAnnouncements.Equals(input.IsSubscribedToEventAnnouncements) + this.MRoleIds == input.MRoleIds || + this.MRoleIds != null && + input.MRoleIds != null && + this.MRoleIds.SequenceEqual(input.MRoleIds) ) && ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) + this.ManagerNotes == input.ManagerNotes || + (this.ManagerNotes != null && + this.ManagerNotes.Equals(input.ManagerNotes)) ) && ( - this.BannedAt == input.BannedAt || - (this.BannedAt != null && - this.BannedAt.Equals(input.BannedAt)) + this.MembershipStatus == input.MembershipStatus || + this.MembershipStatus.Equals(input.MembershipStatus) ) && ( - this.ManagerNotes == input.ManagerNotes || - (this.ManagerNotes != null && - this.ManagerNotes.Equals(input.ManagerNotes)) + this.RoleIds == input.RoleIds || + this.RoleIds != null && + input.RoleIds != null && + this.RoleIds.SequenceEqual(input.RoleIds) ) && ( - this.LastPostReadAt == input.LastPostReadAt || - (this.LastPostReadAt != null && - this.LastPostReadAt.Equals(input.LastPostReadAt)) + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) ) && ( - this.HasJoinedFromPurchase == input.HasJoinedFromPurchase || - this.HasJoinedFromPurchase.Equals(input.HasJoinedFromPurchase) + this.Visibility == input.Visibility || + (this.Visibility != null && + this.Visibility.Equals(input.Visibility)) ); } @@ -334,55 +334,55 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) + if (this.BannedAt != null) { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + hashCode = (hashCode * 59) + this.BannedAt.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } if (this.GroupId != null) { hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); } - if (this.UserId != null) + hashCode = (hashCode * 59) + this.HasJoinedFromPurchase.GetHashCode(); + if (this.Id != null) { - hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } hashCode = (hashCode * 59) + this.IsRepresenting.GetHashCode(); - if (this.RoleIds != null) + hashCode = (hashCode * 59) + this.IsSubscribedToAnnouncements.GetHashCode(); + hashCode = (hashCode * 59) + this.IsSubscribedToEventAnnouncements.GetHashCode(); + if (this.JoinedAt != null) { - hashCode = (hashCode * 59) + this.RoleIds.GetHashCode(); + hashCode = (hashCode * 59) + this.JoinedAt.GetHashCode(); + } + if (this.LastPostReadAt != null) + { + hashCode = (hashCode * 59) + this.LastPostReadAt.GetHashCode(); } if (this.MRoleIds != null) { hashCode = (hashCode * 59) + this.MRoleIds.GetHashCode(); } - if (this.JoinedAt != null) + if (this.ManagerNotes != null) { - hashCode = (hashCode * 59) + this.JoinedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.ManagerNotes.GetHashCode(); } hashCode = (hashCode * 59) + this.MembershipStatus.GetHashCode(); - if (this.Visibility != null) - { - hashCode = (hashCode * 59) + this.Visibility.GetHashCode(); - } - hashCode = (hashCode * 59) + this.IsSubscribedToAnnouncements.GetHashCode(); - hashCode = (hashCode * 59) + this.IsSubscribedToEventAnnouncements.GetHashCode(); - if (this.CreatedAt != null) - { - hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); - } - if (this.BannedAt != null) + if (this.RoleIds != null) { - hashCode = (hashCode * 59) + this.BannedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.RoleIds.GetHashCode(); } - if (this.ManagerNotes != null) + if (this.UserId != null) { - hashCode = (hashCode * 59) + this.ManagerNotes.GetHashCode(); + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); } - if (this.LastPostReadAt != null) + if (this.Visibility != null) { - hashCode = (hashCode * 59) + this.LastPostReadAt.GetHashCode(); + hashCode = (hashCode * 59) + this.Visibility.GetHashCode(); } - hashCode = (hashCode * 59) + this.HasJoinedFromPurchase.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/GroupMember.cs b/src/VRChat.API/Model/GroupMember.cs index 21f71de1..db493f88 100644 --- a/src/VRChat.API/Model/GroupMember.cs +++ b/src/VRChat.API/Model/GroupMember.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -43,44 +43,44 @@ public partial class GroupMember : IEquatable, IValidatableObject /// /// acceptedByDisplayName. /// acceptedById. - /// id. + /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user.. + /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user.. /// groupId. - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + /// hasJoinedFromPurchase. + /// id. /// Whether the user is representing the group. This makes the group show up above the name tag in-game. (default to false). - /// user. - /// roleIds. - /// mRoleIds. - /// joinedAt. - /// membershipStatus. - /// visibility. /// isSubscribedToAnnouncements (default to false). /// isSubscribedToEventAnnouncements. - /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user.. - /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user.. - /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user.. + /// joinedAt. /// lastPostReadAt. - /// hasJoinedFromPurchase. - public GroupMember(string acceptedByDisplayName = default, string acceptedById = default, string id = default, string groupId = default, string userId = default, bool isRepresenting = false, GroupMemberLimitedUser user = default, List roleIds = default, List mRoleIds = default, DateTime? joinedAt = default, GroupMemberStatus? membershipStatus = default, string visibility = default, bool isSubscribedToAnnouncements = false, bool isSubscribedToEventAnnouncements = default, DateTime? createdAt = default, DateTime? bannedAt = default, string managerNotes = default, DateTime? lastPostReadAt = default, bool hasJoinedFromPurchase = default) + /// mRoleIds. + /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user.. + /// membershipStatus. + /// roleIds. + /// user. + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + /// visibility. + public GroupMember(string acceptedByDisplayName = default, string acceptedById = default, DateTime? bannedAt = default, DateTime? createdAt = default, string groupId = default, bool hasJoinedFromPurchase = default, string id = default, bool isRepresenting = false, bool isSubscribedToAnnouncements = false, bool isSubscribedToEventAnnouncements = default, DateTime? joinedAt = default, DateTime? lastPostReadAt = default, List mRoleIds = default, string managerNotes = default, GroupMemberStatus? membershipStatus = default, List roleIds = default, GroupMemberLimitedUser user = default, string userId = default, string visibility = default) { this.AcceptedByDisplayName = acceptedByDisplayName; this.AcceptedById = acceptedById; - this.Id = id; + this.BannedAt = bannedAt; + this.CreatedAt = createdAt; this.GroupId = groupId; - this.UserId = userId; + this.HasJoinedFromPurchase = hasJoinedFromPurchase; + this.Id = id; this.IsRepresenting = isRepresenting; - this.User = user; - this.RoleIds = roleIds; - this.MRoleIds = mRoleIds; - this.JoinedAt = joinedAt; - this.MembershipStatus = membershipStatus; - this.Visibility = visibility; this.IsSubscribedToAnnouncements = isSubscribedToAnnouncements; this.IsSubscribedToEventAnnouncements = isSubscribedToEventAnnouncements; - this.CreatedAt = createdAt; - this.BannedAt = bannedAt; - this.ManagerNotes = managerNotes; + this.JoinedAt = joinedAt; this.LastPostReadAt = lastPostReadAt; - this.HasJoinedFromPurchase = hasJoinedFromPurchase; + this.MRoleIds = mRoleIds; + this.ManagerNotes = managerNotes; + this.MembershipStatus = membershipStatus; + this.RoleIds = roleIds; + this.User = user; + this.UserId = userId; + this.Visibility = visibility; } /// @@ -96,13 +96,18 @@ public GroupMember(string acceptedByDisplayName = default, string acceptedById = public string AcceptedById { get; set; } /// - /// Gets or Sets Id + /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. /// - /* - gmem_95cdb3b4-4643-4eb6-bdab-46a4e1e5ce37 - */ - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. + [DataMember(Name = "bannedAt", EmitDefaultValue = true)] + public DateTime? BannedAt { get; set; } + + /// + /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. + /// + /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. + [DataMember(Name = "createdAt", EmitDefaultValue = true)] + public DateTime? CreatedAt { get; set; } /// /// Gets or Sets GroupId @@ -114,14 +119,19 @@ public GroupMember(string acceptedByDisplayName = default, string acceptedById = public string GroupId { get; set; } /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// Gets or Sets HasJoinedFromPurchase + /// + [DataMember(Name = "hasJoinedFromPurchase", EmitDefaultValue = true)] + public bool HasJoinedFromPurchase { get; set; } + + /// + /// Gets or Sets Id /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /* - usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + gmem_95cdb3b4-4643-4eb6-bdab-46a4e1e5ce37 */ - [DataMember(Name = "userId", EmitDefaultValue = false)] - public string UserId { get; set; } + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } /// /// Whether the user is representing the group. This makes the group show up above the name tag in-game. @@ -134,22 +144,16 @@ public GroupMember(string acceptedByDisplayName = default, string acceptedById = public bool IsRepresenting { get; set; } /// - /// Gets or Sets User - /// - [DataMember(Name = "user", EmitDefaultValue = false)] - public GroupMemberLimitedUser User { get; set; } - - /// - /// Gets or Sets RoleIds + /// Gets or Sets IsSubscribedToAnnouncements /// - [DataMember(Name = "roleIds", EmitDefaultValue = false)] - public List RoleIds { get; set; } + [DataMember(Name = "isSubscribedToAnnouncements", EmitDefaultValue = true)] + public bool IsSubscribedToAnnouncements { get; set; } /// - /// Gets or Sets MRoleIds + /// Gets or Sets IsSubscribedToEventAnnouncements /// - [DataMember(Name = "mRoleIds", EmitDefaultValue = false)] - public List MRoleIds { get; set; } + [DataMember(Name = "isSubscribedToEventAnnouncements", EmitDefaultValue = true)] + public bool IsSubscribedToEventAnnouncements { get; set; } /// /// Gets or Sets JoinedAt @@ -158,58 +162,54 @@ public GroupMember(string acceptedByDisplayName = default, string acceptedById = public DateTime? JoinedAt { get; set; } /// - /// Gets or Sets Visibility - /// - /* - visible - */ - [DataMember(Name = "visibility", EmitDefaultValue = false)] - public string Visibility { get; set; } - - /// - /// Gets or Sets IsSubscribedToAnnouncements + /// Gets or Sets LastPostReadAt /// - [DataMember(Name = "isSubscribedToAnnouncements", EmitDefaultValue = true)] - public bool IsSubscribedToAnnouncements { get; set; } + [DataMember(Name = "lastPostReadAt", EmitDefaultValue = true)] + public DateTime? LastPostReadAt { get; set; } /// - /// Gets or Sets IsSubscribedToEventAnnouncements + /// Gets or Sets MRoleIds /// - [DataMember(Name = "isSubscribedToEventAnnouncements", EmitDefaultValue = true)] - public bool IsSubscribedToEventAnnouncements { get; set; } + [DataMember(Name = "mRoleIds", EmitDefaultValue = false)] + public List MRoleIds { get; set; } /// /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. /// /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. - [DataMember(Name = "createdAt", EmitDefaultValue = true)] - public DateTime? CreatedAt { get; set; } + [DataMember(Name = "managerNotes", EmitDefaultValue = true)] + public string ManagerNotes { get; set; } /// - /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. + /// Gets or Sets RoleIds /// - /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. - [DataMember(Name = "bannedAt", EmitDefaultValue = true)] - public DateTime? BannedAt { get; set; } + [DataMember(Name = "roleIds", EmitDefaultValue = false)] + public List RoleIds { get; set; } /// - /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. + /// Gets or Sets User /// - /// Only visible via the /groups/:groupId/members endpoint, **not** when fetching a specific user. - [DataMember(Name = "managerNotes", EmitDefaultValue = true)] - public string ManagerNotes { get; set; } + [DataMember(Name = "user", EmitDefaultValue = false)] + public GroupMemberLimitedUser User { get; set; } /// - /// Gets or Sets LastPostReadAt + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// - [DataMember(Name = "lastPostReadAt", EmitDefaultValue = true)] - public DateTime? LastPostReadAt { get; set; } + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /* + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + */ + [DataMember(Name = "userId", EmitDefaultValue = false)] + public string UserId { get; set; } /// - /// Gets or Sets HasJoinedFromPurchase + /// Gets or Sets Visibility /// - [DataMember(Name = "hasJoinedFromPurchase", EmitDefaultValue = true)] - public bool HasJoinedFromPurchase { get; set; } + /* + visible + */ + [DataMember(Name = "visibility", EmitDefaultValue = false)] + public string Visibility { get; set; } /// /// Returns the string presentation of the object @@ -221,23 +221,23 @@ public override string ToString() sb.Append("class GroupMember {\n"); sb.Append(" AcceptedByDisplayName: ").Append(AcceptedByDisplayName).Append("\n"); sb.Append(" AcceptedById: ").Append(AcceptedById).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" BannedAt: ").Append(BannedAt).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" HasJoinedFromPurchase: ").Append(HasJoinedFromPurchase).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" IsRepresenting: ").Append(IsRepresenting).Append("\n"); - sb.Append(" User: ").Append(User).Append("\n"); - sb.Append(" RoleIds: ").Append(RoleIds).Append("\n"); - sb.Append(" MRoleIds: ").Append(MRoleIds).Append("\n"); - sb.Append(" JoinedAt: ").Append(JoinedAt).Append("\n"); - sb.Append(" MembershipStatus: ").Append(MembershipStatus).Append("\n"); - sb.Append(" Visibility: ").Append(Visibility).Append("\n"); sb.Append(" IsSubscribedToAnnouncements: ").Append(IsSubscribedToAnnouncements).Append("\n"); sb.Append(" IsSubscribedToEventAnnouncements: ").Append(IsSubscribedToEventAnnouncements).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" BannedAt: ").Append(BannedAt).Append("\n"); - sb.Append(" ManagerNotes: ").Append(ManagerNotes).Append("\n"); + sb.Append(" JoinedAt: ").Append(JoinedAt).Append("\n"); sb.Append(" LastPostReadAt: ").Append(LastPostReadAt).Append("\n"); - sb.Append(" HasJoinedFromPurchase: ").Append(HasJoinedFromPurchase).Append("\n"); + sb.Append(" MRoleIds: ").Append(MRoleIds).Append("\n"); + sb.Append(" ManagerNotes: ").Append(ManagerNotes).Append("\n"); + sb.Append(" MembershipStatus: ").Append(MembershipStatus).Append("\n"); + sb.Append(" RoleIds: ").Append(RoleIds).Append("\n"); + sb.Append(" User: ").Append(User).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" Visibility: ").Append(Visibility).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -284,9 +284,14 @@ public bool Equals(GroupMember input) this.AcceptedById.Equals(input.AcceptedById)) ) && ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) + this.BannedAt == input.BannedAt || + (this.BannedAt != null && + this.BannedAt.Equals(input.BannedAt)) + ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) ) && ( this.GroupId == input.GroupId || @@ -294,30 +299,25 @@ public bool Equals(GroupMember input) this.GroupId.Equals(input.GroupId)) ) && ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) + this.HasJoinedFromPurchase == input.HasJoinedFromPurchase || + this.HasJoinedFromPurchase.Equals(input.HasJoinedFromPurchase) ) && ( - this.IsRepresenting == input.IsRepresenting || - this.IsRepresenting.Equals(input.IsRepresenting) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.User == input.User || - (this.User != null && - this.User.Equals(input.User)) + this.IsRepresenting == input.IsRepresenting || + this.IsRepresenting.Equals(input.IsRepresenting) ) && ( - this.RoleIds == input.RoleIds || - this.RoleIds != null && - input.RoleIds != null && - this.RoleIds.SequenceEqual(input.RoleIds) + this.IsSubscribedToAnnouncements == input.IsSubscribedToAnnouncements || + this.IsSubscribedToAnnouncements.Equals(input.IsSubscribedToAnnouncements) ) && ( - this.MRoleIds == input.MRoleIds || - this.MRoleIds != null && - input.MRoleIds != null && - this.MRoleIds.SequenceEqual(input.MRoleIds) + this.IsSubscribedToEventAnnouncements == input.IsSubscribedToEventAnnouncements || + this.IsSubscribedToEventAnnouncements.Equals(input.IsSubscribedToEventAnnouncements) ) && ( this.JoinedAt == input.JoinedAt || @@ -325,45 +325,45 @@ public bool Equals(GroupMember input) this.JoinedAt.Equals(input.JoinedAt)) ) && ( - this.MembershipStatus == input.MembershipStatus || - this.MembershipStatus.Equals(input.MembershipStatus) - ) && - ( - this.Visibility == input.Visibility || - (this.Visibility != null && - this.Visibility.Equals(input.Visibility)) + this.LastPostReadAt == input.LastPostReadAt || + (this.LastPostReadAt != null && + this.LastPostReadAt.Equals(input.LastPostReadAt)) ) && ( - this.IsSubscribedToAnnouncements == input.IsSubscribedToAnnouncements || - this.IsSubscribedToAnnouncements.Equals(input.IsSubscribedToAnnouncements) + this.MRoleIds == input.MRoleIds || + this.MRoleIds != null && + input.MRoleIds != null && + this.MRoleIds.SequenceEqual(input.MRoleIds) ) && ( - this.IsSubscribedToEventAnnouncements == input.IsSubscribedToEventAnnouncements || - this.IsSubscribedToEventAnnouncements.Equals(input.IsSubscribedToEventAnnouncements) + this.ManagerNotes == input.ManagerNotes || + (this.ManagerNotes != null && + this.ManagerNotes.Equals(input.ManagerNotes)) ) && ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) + this.MembershipStatus == input.MembershipStatus || + this.MembershipStatus.Equals(input.MembershipStatus) ) && ( - this.BannedAt == input.BannedAt || - (this.BannedAt != null && - this.BannedAt.Equals(input.BannedAt)) + this.RoleIds == input.RoleIds || + this.RoleIds != null && + input.RoleIds != null && + this.RoleIds.SequenceEqual(input.RoleIds) ) && ( - this.ManagerNotes == input.ManagerNotes || - (this.ManagerNotes != null && - this.ManagerNotes.Equals(input.ManagerNotes)) + this.User == input.User || + (this.User != null && + this.User.Equals(input.User)) ) && ( - this.LastPostReadAt == input.LastPostReadAt || - (this.LastPostReadAt != null && - this.LastPostReadAt.Equals(input.LastPostReadAt)) + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) ) && ( - this.HasJoinedFromPurchase == input.HasJoinedFromPurchase || - this.HasJoinedFromPurchase.Equals(input.HasJoinedFromPurchase) + this.Visibility == input.Visibility || + (this.Visibility != null && + this.Visibility.Equals(input.Visibility)) ); } @@ -384,59 +384,59 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.AcceptedById.GetHashCode(); } - if (this.Id != null) + if (this.BannedAt != null) { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + hashCode = (hashCode * 59) + this.BannedAt.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } if (this.GroupId != null) { hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); } - if (this.UserId != null) + hashCode = (hashCode * 59) + this.HasJoinedFromPurchase.GetHashCode(); + if (this.Id != null) { - hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } hashCode = (hashCode * 59) + this.IsRepresenting.GetHashCode(); - if (this.User != null) + hashCode = (hashCode * 59) + this.IsSubscribedToAnnouncements.GetHashCode(); + hashCode = (hashCode * 59) + this.IsSubscribedToEventAnnouncements.GetHashCode(); + if (this.JoinedAt != null) { - hashCode = (hashCode * 59) + this.User.GetHashCode(); + hashCode = (hashCode * 59) + this.JoinedAt.GetHashCode(); } - if (this.RoleIds != null) + if (this.LastPostReadAt != null) { - hashCode = (hashCode * 59) + this.RoleIds.GetHashCode(); + hashCode = (hashCode * 59) + this.LastPostReadAt.GetHashCode(); } if (this.MRoleIds != null) { hashCode = (hashCode * 59) + this.MRoleIds.GetHashCode(); } - if (this.JoinedAt != null) + if (this.ManagerNotes != null) { - hashCode = (hashCode * 59) + this.JoinedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.ManagerNotes.GetHashCode(); } hashCode = (hashCode * 59) + this.MembershipStatus.GetHashCode(); - if (this.Visibility != null) - { - hashCode = (hashCode * 59) + this.Visibility.GetHashCode(); - } - hashCode = (hashCode * 59) + this.IsSubscribedToAnnouncements.GetHashCode(); - hashCode = (hashCode * 59) + this.IsSubscribedToEventAnnouncements.GetHashCode(); - if (this.CreatedAt != null) + if (this.RoleIds != null) { - hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.RoleIds.GetHashCode(); } - if (this.BannedAt != null) + if (this.User != null) { - hashCode = (hashCode * 59) + this.BannedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.User.GetHashCode(); } - if (this.ManagerNotes != null) + if (this.UserId != null) { - hashCode = (hashCode * 59) + this.ManagerNotes.GetHashCode(); + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); } - if (this.LastPostReadAt != null) + if (this.Visibility != null) { - hashCode = (hashCode * 59) + this.LastPostReadAt.GetHashCode(); + hashCode = (hashCode * 59) + this.Visibility.GetHashCode(); } - hashCode = (hashCode * 59) + this.HasJoinedFromPurchase.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/GroupMemberLimitedUser.cs b/src/VRChat.API/Model/GroupMemberLimitedUser.cs index 44191e6e..8ba08305 100644 --- a/src/VRChat.API/Model/GroupMemberLimitedUser.cs +++ b/src/VRChat.API/Model/GroupMemberLimitedUser.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,45 +35,41 @@ public partial class GroupMemberLimitedUser : IEquatable /// /// Initializes a new instance of the class. /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + /// currentAvatarTags. + /// currentAvatarThumbnailImageUrl. /// displayName. - /// thumbnailUrl. /// iconUrl. + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. /// profilePicOverride. - /// currentAvatarThumbnailImageUrl. - /// currentAvatarTags. - public GroupMemberLimitedUser(string id = default, string displayName = default, string thumbnailUrl = default, string iconUrl = default, string profilePicOverride = default, string currentAvatarThumbnailImageUrl = default, List currentAvatarTags = default) + /// thumbnailUrl. + public GroupMemberLimitedUser(List currentAvatarTags = default, string currentAvatarThumbnailImageUrl = default, string displayName = default, string iconUrl = default, string id = default, string profilePicOverride = default, string thumbnailUrl = default) { - this.Id = id; + this.CurrentAvatarTags = currentAvatarTags; + this.CurrentAvatarThumbnailImageUrl = currentAvatarThumbnailImageUrl; this.DisplayName = displayName; - this.ThumbnailUrl = thumbnailUrl; this.IconUrl = iconUrl; + this.Id = id; this.ProfilePicOverride = profilePicOverride; - this.CurrentAvatarThumbnailImageUrl = currentAvatarThumbnailImageUrl; - this.CurrentAvatarTags = currentAvatarTags; + this.ThumbnailUrl = thumbnailUrl; } /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// Gets or Sets CurrentAvatarTags /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - /* - usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 - */ - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + [DataMember(Name = "currentAvatarTags", EmitDefaultValue = false)] + public List CurrentAvatarTags { get; set; } /// - /// Gets or Sets DisplayName + /// Gets or Sets CurrentAvatarThumbnailImageUrl /// - [DataMember(Name = "displayName", EmitDefaultValue = false)] - public string DisplayName { get; set; } + [DataMember(Name = "currentAvatarThumbnailImageUrl", EmitDefaultValue = true)] + public string CurrentAvatarThumbnailImageUrl { get; set; } /// - /// Gets or Sets ThumbnailUrl + /// Gets or Sets DisplayName /// - [DataMember(Name = "thumbnailUrl", EmitDefaultValue = true)] - public string ThumbnailUrl { get; set; } + [DataMember(Name = "displayName", EmitDefaultValue = false)] + public string DisplayName { get; set; } /// /// Gets or Sets IconUrl @@ -82,22 +78,26 @@ public GroupMemberLimitedUser(string id = default, string displayName = default, public string IconUrl { get; set; } /// - /// Gets or Sets ProfilePicOverride + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// - [DataMember(Name = "profilePicOverride", EmitDefaultValue = false)] - public string ProfilePicOverride { get; set; } + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /* + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + */ + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } /// - /// Gets or Sets CurrentAvatarThumbnailImageUrl + /// Gets or Sets ProfilePicOverride /// - [DataMember(Name = "currentAvatarThumbnailImageUrl", EmitDefaultValue = true)] - public string CurrentAvatarThumbnailImageUrl { get; set; } + [DataMember(Name = "profilePicOverride", EmitDefaultValue = false)] + public string ProfilePicOverride { get; set; } /// - /// Gets or Sets CurrentAvatarTags + /// Gets or Sets ThumbnailUrl /// - [DataMember(Name = "currentAvatarTags", EmitDefaultValue = false)] - public List CurrentAvatarTags { get; set; } + [DataMember(Name = "thumbnailUrl", EmitDefaultValue = true)] + public string ThumbnailUrl { get; set; } /// /// Returns the string presentation of the object @@ -107,13 +107,13 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class GroupMemberLimitedUser {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" CurrentAvatarTags: ").Append(CurrentAvatarTags).Append("\n"); + sb.Append(" CurrentAvatarThumbnailImageUrl: ").Append(CurrentAvatarThumbnailImageUrl).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" ThumbnailUrl: ").Append(ThumbnailUrl).Append("\n"); sb.Append(" IconUrl: ").Append(IconUrl).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" ProfilePicOverride: ").Append(ProfilePicOverride).Append("\n"); - sb.Append(" CurrentAvatarThumbnailImageUrl: ").Append(CurrentAvatarThumbnailImageUrl).Append("\n"); - sb.Append(" CurrentAvatarTags: ").Append(CurrentAvatarTags).Append("\n"); + sb.Append(" ThumbnailUrl: ").Append(ThumbnailUrl).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -150,40 +150,40 @@ public bool Equals(GroupMemberLimitedUser input) } return ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) + this.CurrentAvatarTags == input.CurrentAvatarTags || + this.CurrentAvatarTags != null && + input.CurrentAvatarTags != null && + this.CurrentAvatarTags.SequenceEqual(input.CurrentAvatarTags) + ) && + ( + this.CurrentAvatarThumbnailImageUrl == input.CurrentAvatarThumbnailImageUrl || + (this.CurrentAvatarThumbnailImageUrl != null && + this.CurrentAvatarThumbnailImageUrl.Equals(input.CurrentAvatarThumbnailImageUrl)) ) && ( this.DisplayName == input.DisplayName || (this.DisplayName != null && this.DisplayName.Equals(input.DisplayName)) ) && - ( - this.ThumbnailUrl == input.ThumbnailUrl || - (this.ThumbnailUrl != null && - this.ThumbnailUrl.Equals(input.ThumbnailUrl)) - ) && ( this.IconUrl == input.IconUrl || (this.IconUrl != null && this.IconUrl.Equals(input.IconUrl)) ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && ( this.ProfilePicOverride == input.ProfilePicOverride || (this.ProfilePicOverride != null && this.ProfilePicOverride.Equals(input.ProfilePicOverride)) ) && ( - this.CurrentAvatarThumbnailImageUrl == input.CurrentAvatarThumbnailImageUrl || - (this.CurrentAvatarThumbnailImageUrl != null && - this.CurrentAvatarThumbnailImageUrl.Equals(input.CurrentAvatarThumbnailImageUrl)) - ) && - ( - this.CurrentAvatarTags == input.CurrentAvatarTags || - this.CurrentAvatarTags != null && - input.CurrentAvatarTags != null && - this.CurrentAvatarTags.SequenceEqual(input.CurrentAvatarTags) + this.ThumbnailUrl == input.ThumbnailUrl || + (this.ThumbnailUrl != null && + this.ThumbnailUrl.Equals(input.ThumbnailUrl)) ); } @@ -196,33 +196,33 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) + if (this.CurrentAvatarTags != null) { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + hashCode = (hashCode * 59) + this.CurrentAvatarTags.GetHashCode(); } - if (this.DisplayName != null) + if (this.CurrentAvatarThumbnailImageUrl != null) { - hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); + hashCode = (hashCode * 59) + this.CurrentAvatarThumbnailImageUrl.GetHashCode(); } - if (this.ThumbnailUrl != null) + if (this.DisplayName != null) { - hashCode = (hashCode * 59) + this.ThumbnailUrl.GetHashCode(); + hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); } if (this.IconUrl != null) { hashCode = (hashCode * 59) + this.IconUrl.GetHashCode(); } - if (this.ProfilePicOverride != null) + if (this.Id != null) { - hashCode = (hashCode * 59) + this.ProfilePicOverride.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } - if (this.CurrentAvatarThumbnailImageUrl != null) + if (this.ProfilePicOverride != null) { - hashCode = (hashCode * 59) + this.CurrentAvatarThumbnailImageUrl.GetHashCode(); + hashCode = (hashCode * 59) + this.ProfilePicOverride.GetHashCode(); } - if (this.CurrentAvatarTags != null) + if (this.ThumbnailUrl != null) { - hashCode = (hashCode * 59) + this.CurrentAvatarTags.GetHashCode(); + hashCode = (hashCode * 59) + this.ThumbnailUrl.GetHashCode(); } return hashCode; } diff --git a/src/VRChat.API/Model/GroupMemberStatus.cs b/src/VRChat.API/Model/GroupMemberStatus.cs index d1e08d9c..0373ec9b 100644 --- a/src/VRChat.API/Model/GroupMemberStatus.cs +++ b/src/VRChat.API/Model/GroupMemberStatus.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,34 +33,34 @@ namespace VRChat.API.Model public enum GroupMemberStatus { /// - /// Enum Inactive for value: inactive + /// Enum Banned for value: banned /// - [EnumMember(Value = "inactive")] - Inactive = 1, + [EnumMember(Value = "banned")] + Banned = 1, /// - /// Enum Member for value: member + /// Enum Inactive for value: inactive /// - [EnumMember(Value = "member")] - Member = 2, + [EnumMember(Value = "inactive")] + Inactive = 2, /// - /// Enum Requested for value: requested + /// Enum Invited for value: invited /// - [EnumMember(Value = "requested")] - Requested = 3, + [EnumMember(Value = "invited")] + Invited = 3, /// - /// Enum Invited for value: invited + /// Enum Member for value: member /// - [EnumMember(Value = "invited")] - Invited = 4, + [EnumMember(Value = "member")] + Member = 4, /// - /// Enum Banned for value: banned + /// Enum Requested for value: requested /// - [EnumMember(Value = "banned")] - Banned = 5, + [EnumMember(Value = "requested")] + Requested = 5, /// /// Enum Userblocked for value: userblocked diff --git a/src/VRChat.API/Model/GroupMyMember.cs b/src/VRChat.API/Model/GroupMyMember.cs index efd800e6..80ceeb7a 100644 --- a/src/VRChat.API/Model/GroupMyMember.cs +++ b/src/VRChat.API/Model/GroupMyMember.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,84 +35,50 @@ public partial class GroupMyMember : IEquatable, IValidatableObje /// /// Initializes a new instance of the class. /// - /// id. - /// groupId. - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. - /// roleIds. /// acceptedByDisplayName. /// acceptedById. + /// bannedAt. /// createdAt. - /// managerNotes. - /// membershipStatus. + /// groupId. + /// has2FA (default to false). + /// hasJoinedFromPurchase (default to false). + /// id. + /// isRepresenting (default to false). /// isSubscribedToAnnouncements (default to true). /// isSubscribedToEventAnnouncements. - /// visibility. - /// isRepresenting (default to false). /// joinedAt. - /// bannedAt. - /// has2FA (default to false). - /// hasJoinedFromPurchase (default to false). /// lastPostReadAt. /// mRoleIds. + /// managerNotes. + /// membershipStatus. /// permissions. - public GroupMyMember(string id = default, string groupId = default, string userId = default, List roleIds = default, string acceptedByDisplayName = default, string acceptedById = default, DateTime createdAt = default, string managerNotes = default, string membershipStatus = default, bool isSubscribedToAnnouncements = true, bool isSubscribedToEventAnnouncements = default, string visibility = default, bool isRepresenting = false, DateTime joinedAt = default, string bannedAt = default, bool has2FA = false, bool hasJoinedFromPurchase = false, DateTime? lastPostReadAt = default, List mRoleIds = default, List permissions = default) + /// roleIds. + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + /// visibility. + public GroupMyMember(string acceptedByDisplayName = default, string acceptedById = default, string bannedAt = default, DateTime createdAt = default, string groupId = default, bool has2FA = false, bool hasJoinedFromPurchase = false, string id = default, bool isRepresenting = false, bool isSubscribedToAnnouncements = true, bool isSubscribedToEventAnnouncements = default, DateTime joinedAt = default, DateTime? lastPostReadAt = default, List mRoleIds = default, string managerNotes = default, string membershipStatus = default, List permissions = default, List roleIds = default, string userId = default, string visibility = default) { - this.Id = id; - this.GroupId = groupId; - this.UserId = userId; - this.RoleIds = roleIds; this.AcceptedByDisplayName = acceptedByDisplayName; this.AcceptedById = acceptedById; + this.BannedAt = bannedAt; this.CreatedAt = createdAt; - this.ManagerNotes = managerNotes; - this.MembershipStatus = membershipStatus; + this.GroupId = groupId; + this.Has2FA = has2FA; + this.HasJoinedFromPurchase = hasJoinedFromPurchase; + this.Id = id; + this.IsRepresenting = isRepresenting; this.IsSubscribedToAnnouncements = isSubscribedToAnnouncements; this.IsSubscribedToEventAnnouncements = isSubscribedToEventAnnouncements; - this.Visibility = visibility; - this.IsRepresenting = isRepresenting; this.JoinedAt = joinedAt; - this.BannedAt = bannedAt; - this.Has2FA = has2FA; - this.HasJoinedFromPurchase = hasJoinedFromPurchase; this.LastPostReadAt = lastPostReadAt; this.MRoleIds = mRoleIds; + this.ManagerNotes = managerNotes; + this.MembershipStatus = membershipStatus; this.Permissions = permissions; + this.RoleIds = roleIds; + this.UserId = userId; + this.Visibility = visibility; } - /// - /// Gets or Sets Id - /// - /* - gmem_95cdb3b4-4643-4eb6-bdab-46a4e1e5ce37 - */ - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } - - /// - /// Gets or Sets GroupId - /// - /* - grp_71a7ff59-112c-4e78-a990-c7cc650776e5 - */ - [DataMember(Name = "groupId", EmitDefaultValue = false)] - public string GroupId { get; set; } - - /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - /* - usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 - */ - [DataMember(Name = "userId", EmitDefaultValue = false)] - public string UserId { get; set; } - - /// - /// Gets or Sets RoleIds - /// - [DataMember(Name = "roleIds", EmitDefaultValue = false)] - public List RoleIds { get; set; } - /// /// Gets or Sets AcceptedByDisplayName /// @@ -126,46 +92,46 @@ public GroupMyMember(string id = default, string groupId = default, string userI public string AcceptedById { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets BannedAt /// - [DataMember(Name = "createdAt", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "bannedAt", EmitDefaultValue = true)] + public string BannedAt { get; set; } /// - /// Gets or Sets ManagerNotes + /// Gets or Sets CreatedAt /// - [DataMember(Name = "managerNotes", EmitDefaultValue = false)] - public string ManagerNotes { get; set; } + [DataMember(Name = "createdAt", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } /// - /// Gets or Sets MembershipStatus + /// Gets or Sets GroupId /// /* - member + grp_71a7ff59-112c-4e78-a990-c7cc650776e5 */ - [DataMember(Name = "membershipStatus", EmitDefaultValue = false)] - public string MembershipStatus { get; set; } + [DataMember(Name = "groupId", EmitDefaultValue = false)] + public string GroupId { get; set; } /// - /// Gets or Sets IsSubscribedToAnnouncements + /// Gets or Sets Has2FA /// - [DataMember(Name = "isSubscribedToAnnouncements", EmitDefaultValue = true)] - public bool IsSubscribedToAnnouncements { get; set; } + [DataMember(Name = "has2FA", EmitDefaultValue = true)] + public bool Has2FA { get; set; } /// - /// Gets or Sets IsSubscribedToEventAnnouncements + /// Gets or Sets HasJoinedFromPurchase /// - [DataMember(Name = "isSubscribedToEventAnnouncements", EmitDefaultValue = true)] - public bool IsSubscribedToEventAnnouncements { get; set; } + [DataMember(Name = "hasJoinedFromPurchase", EmitDefaultValue = true)] + public bool HasJoinedFromPurchase { get; set; } /// - /// Gets or Sets Visibility + /// Gets or Sets Id /// /* - visible + gmem_95cdb3b4-4643-4eb6-bdab-46a4e1e5ce37 */ - [DataMember(Name = "visibility", EmitDefaultValue = false)] - public string Visibility { get; set; } + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } /// /// Gets or Sets IsRepresenting @@ -174,28 +140,22 @@ public GroupMyMember(string id = default, string groupId = default, string userI public bool IsRepresenting { get; set; } /// - /// Gets or Sets JoinedAt - /// - [DataMember(Name = "joinedAt", EmitDefaultValue = false)] - public DateTime JoinedAt { get; set; } - - /// - /// Gets or Sets BannedAt + /// Gets or Sets IsSubscribedToAnnouncements /// - [DataMember(Name = "bannedAt", EmitDefaultValue = true)] - public string BannedAt { get; set; } + [DataMember(Name = "isSubscribedToAnnouncements", EmitDefaultValue = true)] + public bool IsSubscribedToAnnouncements { get; set; } /// - /// Gets or Sets Has2FA + /// Gets or Sets IsSubscribedToEventAnnouncements /// - [DataMember(Name = "has2FA", EmitDefaultValue = true)] - public bool Has2FA { get; set; } + [DataMember(Name = "isSubscribedToEventAnnouncements", EmitDefaultValue = true)] + public bool IsSubscribedToEventAnnouncements { get; set; } /// - /// Gets or Sets HasJoinedFromPurchase + /// Gets or Sets JoinedAt /// - [DataMember(Name = "hasJoinedFromPurchase", EmitDefaultValue = true)] - public bool HasJoinedFromPurchase { get; set; } + [DataMember(Name = "joinedAt", EmitDefaultValue = false)] + public DateTime JoinedAt { get; set; } /// /// Gets or Sets LastPostReadAt @@ -209,12 +169,52 @@ public GroupMyMember(string id = default, string groupId = default, string userI [DataMember(Name = "mRoleIds", EmitDefaultValue = false)] public List MRoleIds { get; set; } + /// + /// Gets or Sets ManagerNotes + /// + [DataMember(Name = "managerNotes", EmitDefaultValue = false)] + public string ManagerNotes { get; set; } + + /// + /// Gets or Sets MembershipStatus + /// + /* + member + */ + [DataMember(Name = "membershipStatus", EmitDefaultValue = false)] + public string MembershipStatus { get; set; } + /// /// Gets or Sets Permissions /// [DataMember(Name = "permissions", EmitDefaultValue = false)] public List Permissions { get; set; } + /// + /// Gets or Sets RoleIds + /// + [DataMember(Name = "roleIds", EmitDefaultValue = false)] + public List RoleIds { get; set; } + + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /* + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + */ + [DataMember(Name = "userId", EmitDefaultValue = false)] + public string UserId { get; set; } + + /// + /// Gets or Sets Visibility + /// + /* + visible + */ + [DataMember(Name = "visibility", EmitDefaultValue = false)] + public string Visibility { get; set; } + /// /// Returns the string presentation of the object /// @@ -223,26 +223,26 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class GroupMyMember {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" RoleIds: ").Append(RoleIds).Append("\n"); sb.Append(" AcceptedByDisplayName: ").Append(AcceptedByDisplayName).Append("\n"); sb.Append(" AcceptedById: ").Append(AcceptedById).Append("\n"); + sb.Append(" BannedAt: ").Append(BannedAt).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" ManagerNotes: ").Append(ManagerNotes).Append("\n"); - sb.Append(" MembershipStatus: ").Append(MembershipStatus).Append("\n"); + sb.Append(" GroupId: ").Append(GroupId).Append("\n"); + sb.Append(" Has2FA: ").Append(Has2FA).Append("\n"); + sb.Append(" HasJoinedFromPurchase: ").Append(HasJoinedFromPurchase).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" IsRepresenting: ").Append(IsRepresenting).Append("\n"); sb.Append(" IsSubscribedToAnnouncements: ").Append(IsSubscribedToAnnouncements).Append("\n"); sb.Append(" IsSubscribedToEventAnnouncements: ").Append(IsSubscribedToEventAnnouncements).Append("\n"); - sb.Append(" Visibility: ").Append(Visibility).Append("\n"); - sb.Append(" IsRepresenting: ").Append(IsRepresenting).Append("\n"); sb.Append(" JoinedAt: ").Append(JoinedAt).Append("\n"); - sb.Append(" BannedAt: ").Append(BannedAt).Append("\n"); - sb.Append(" Has2FA: ").Append(Has2FA).Append("\n"); - sb.Append(" HasJoinedFromPurchase: ").Append(HasJoinedFromPurchase).Append("\n"); sb.Append(" LastPostReadAt: ").Append(LastPostReadAt).Append("\n"); sb.Append(" MRoleIds: ").Append(MRoleIds).Append("\n"); + sb.Append(" ManagerNotes: ").Append(ManagerNotes).Append("\n"); + sb.Append(" MembershipStatus: ").Append(MembershipStatus).Append("\n"); sb.Append(" Permissions: ").Append(Permissions).Append("\n"); + sb.Append(" RoleIds: ").Append(RoleIds).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); + sb.Append(" Visibility: ").Append(Visibility).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -278,27 +278,6 @@ public bool Equals(GroupMyMember input) return false; } return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && - ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) - ) && - ( - this.RoleIds == input.RoleIds || - this.RoleIds != null && - input.RoleIds != null && - this.RoleIds.SequenceEqual(input.RoleIds) - ) && ( this.AcceptedByDisplayName == input.AcceptedByDisplayName || (this.AcceptedByDisplayName != null && @@ -309,55 +288,50 @@ public bool Equals(GroupMyMember input) (this.AcceptedById != null && this.AcceptedById.Equals(input.AcceptedById)) ) && + ( + this.BannedAt == input.BannedAt || + (this.BannedAt != null && + this.BannedAt.Equals(input.BannedAt)) + ) && ( this.CreatedAt == input.CreatedAt || (this.CreatedAt != null && this.CreatedAt.Equals(input.CreatedAt)) ) && ( - this.ManagerNotes == input.ManagerNotes || - (this.ManagerNotes != null && - this.ManagerNotes.Equals(input.ManagerNotes)) - ) && - ( - this.MembershipStatus == input.MembershipStatus || - (this.MembershipStatus != null && - this.MembershipStatus.Equals(input.MembershipStatus)) + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) ) && ( - this.IsSubscribedToAnnouncements == input.IsSubscribedToAnnouncements || - this.IsSubscribedToAnnouncements.Equals(input.IsSubscribedToAnnouncements) + this.Has2FA == input.Has2FA || + this.Has2FA.Equals(input.Has2FA) ) && ( - this.IsSubscribedToEventAnnouncements == input.IsSubscribedToEventAnnouncements || - this.IsSubscribedToEventAnnouncements.Equals(input.IsSubscribedToEventAnnouncements) + this.HasJoinedFromPurchase == input.HasJoinedFromPurchase || + this.HasJoinedFromPurchase.Equals(input.HasJoinedFromPurchase) ) && ( - this.Visibility == input.Visibility || - (this.Visibility != null && - this.Visibility.Equals(input.Visibility)) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.IsRepresenting == input.IsRepresenting || this.IsRepresenting.Equals(input.IsRepresenting) ) && ( - this.JoinedAt == input.JoinedAt || - (this.JoinedAt != null && - this.JoinedAt.Equals(input.JoinedAt)) - ) && - ( - this.BannedAt == input.BannedAt || - (this.BannedAt != null && - this.BannedAt.Equals(input.BannedAt)) + this.IsSubscribedToAnnouncements == input.IsSubscribedToAnnouncements || + this.IsSubscribedToAnnouncements.Equals(input.IsSubscribedToAnnouncements) ) && ( - this.Has2FA == input.Has2FA || - this.Has2FA.Equals(input.Has2FA) + this.IsSubscribedToEventAnnouncements == input.IsSubscribedToEventAnnouncements || + this.IsSubscribedToEventAnnouncements.Equals(input.IsSubscribedToEventAnnouncements) ) && ( - this.HasJoinedFromPurchase == input.HasJoinedFromPurchase || - this.HasJoinedFromPurchase.Equals(input.HasJoinedFromPurchase) + this.JoinedAt == input.JoinedAt || + (this.JoinedAt != null && + this.JoinedAt.Equals(input.JoinedAt)) ) && ( this.LastPostReadAt == input.LastPostReadAt || @@ -370,11 +344,37 @@ public bool Equals(GroupMyMember input) input.MRoleIds != null && this.MRoleIds.SequenceEqual(input.MRoleIds) ) && + ( + this.ManagerNotes == input.ManagerNotes || + (this.ManagerNotes != null && + this.ManagerNotes.Equals(input.ManagerNotes)) + ) && + ( + this.MembershipStatus == input.MembershipStatus || + (this.MembershipStatus != null && + this.MembershipStatus.Equals(input.MembershipStatus)) + ) && ( this.Permissions == input.Permissions || this.Permissions != null && input.Permissions != null && this.Permissions.SequenceEqual(input.Permissions) + ) && + ( + this.RoleIds == input.RoleIds || + this.RoleIds != null && + input.RoleIds != null && + this.RoleIds.SequenceEqual(input.RoleIds) + ) && + ( + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) + ) && + ( + this.Visibility == input.Visibility || + (this.Visibility != null && + this.Visibility.Equals(input.Visibility)) ); } @@ -387,22 +387,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) - { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - } - if (this.GroupId != null) - { - hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); - } - if (this.UserId != null) - { - hashCode = (hashCode * 59) + this.UserId.GetHashCode(); - } - if (this.RoleIds != null) - { - hashCode = (hashCode * 59) + this.RoleIds.GetHashCode(); - } if (this.AcceptedByDisplayName != null) { hashCode = (hashCode * 59) + this.AcceptedByDisplayName.GetHashCode(); @@ -411,35 +395,31 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.AcceptedById.GetHashCode(); } + if (this.BannedAt != null) + { + hashCode = (hashCode * 59) + this.BannedAt.GetHashCode(); + } if (this.CreatedAt != null) { hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } - if (this.ManagerNotes != null) + if (this.GroupId != null) { - hashCode = (hashCode * 59) + this.ManagerNotes.GetHashCode(); + hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); } - if (this.MembershipStatus != null) + hashCode = (hashCode * 59) + this.Has2FA.GetHashCode(); + hashCode = (hashCode * 59) + this.HasJoinedFromPurchase.GetHashCode(); + if (this.Id != null) { - hashCode = (hashCode * 59) + this.MembershipStatus.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } + hashCode = (hashCode * 59) + this.IsRepresenting.GetHashCode(); hashCode = (hashCode * 59) + this.IsSubscribedToAnnouncements.GetHashCode(); hashCode = (hashCode * 59) + this.IsSubscribedToEventAnnouncements.GetHashCode(); - if (this.Visibility != null) - { - hashCode = (hashCode * 59) + this.Visibility.GetHashCode(); - } - hashCode = (hashCode * 59) + this.IsRepresenting.GetHashCode(); if (this.JoinedAt != null) { hashCode = (hashCode * 59) + this.JoinedAt.GetHashCode(); } - if (this.BannedAt != null) - { - hashCode = (hashCode * 59) + this.BannedAt.GetHashCode(); - } - hashCode = (hashCode * 59) + this.Has2FA.GetHashCode(); - hashCode = (hashCode * 59) + this.HasJoinedFromPurchase.GetHashCode(); if (this.LastPostReadAt != null) { hashCode = (hashCode * 59) + this.LastPostReadAt.GetHashCode(); @@ -448,10 +428,30 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.MRoleIds.GetHashCode(); } + if (this.ManagerNotes != null) + { + hashCode = (hashCode * 59) + this.ManagerNotes.GetHashCode(); + } + if (this.MembershipStatus != null) + { + hashCode = (hashCode * 59) + this.MembershipStatus.GetHashCode(); + } if (this.Permissions != null) { hashCode = (hashCode * 59) + this.Permissions.GetHashCode(); } + if (this.RoleIds != null) + { + hashCode = (hashCode * 59) + this.RoleIds.GetHashCode(); + } + if (this.UserId != null) + { + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + } + if (this.Visibility != null) + { + hashCode = (hashCode * 59) + this.Visibility.GetHashCode(); + } return hashCode; } } diff --git a/src/VRChat.API/Model/GroupPermission.cs b/src/VRChat.API/Model/GroupPermission.cs index d259a763..d1d20cf3 100644 --- a/src/VRChat.API/Model/GroupPermission.cs +++ b/src/VRChat.API/Model/GroupPermission.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,29 +35,29 @@ public partial class GroupPermission : IEquatable, IValidatable /// /// Initializes a new instance of the class. /// - /// The name of the permission.. + /// Whether the user is allowed to add this permission to a role. (default to false). /// The display name of the permission.. /// Human-readable description of the permission.. /// Whether this permission is a \"management\" permission. (default to false). - /// Whether the user is allowed to add this permission to a role. (default to false). - public GroupPermission(string name = default, string displayName = default, string help = default, bool isManagementPermission = false, bool allowedToAdd = false) + /// The name of the permission.. + public GroupPermission(bool allowedToAdd = false, string displayName = default, string help = default, bool isManagementPermission = false, string name = default) { - this.Name = name; + this.AllowedToAdd = allowedToAdd; this.DisplayName = displayName; this.Help = help; this.IsManagementPermission = isManagementPermission; - this.AllowedToAdd = allowedToAdd; + this.Name = name; } /// - /// The name of the permission. + /// Whether the user is allowed to add this permission to a role. /// - /// The name of the permission. + /// Whether the user is allowed to add this permission to a role. /* - group-data-manage + true */ - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + [DataMember(Name = "allowedToAdd", EmitDefaultValue = true)] + public bool AllowedToAdd { get; set; } /// /// The display name of the permission. @@ -90,14 +90,14 @@ public GroupPermission(string name = default, string displayName = default, stri public bool IsManagementPermission { get; set; } /// - /// Whether the user is allowed to add this permission to a role. + /// The name of the permission. /// - /// Whether the user is allowed to add this permission to a role. + /// The name of the permission. /* - true + group-data-manage */ - [DataMember(Name = "allowedToAdd", EmitDefaultValue = true)] - public bool AllowedToAdd { get; set; } + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } /// /// Returns the string presentation of the object @@ -107,11 +107,11 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class GroupPermission {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" AllowedToAdd: ").Append(AllowedToAdd).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); sb.Append(" Help: ").Append(Help).Append("\n"); sb.Append(" IsManagementPermission: ").Append(IsManagementPermission).Append("\n"); - sb.Append(" AllowedToAdd: ").Append(AllowedToAdd).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -148,9 +148,8 @@ public bool Equals(GroupPermission input) } return ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) + this.AllowedToAdd == input.AllowedToAdd || + this.AllowedToAdd.Equals(input.AllowedToAdd) ) && ( this.DisplayName == input.DisplayName || @@ -167,8 +166,9 @@ public bool Equals(GroupPermission input) this.IsManagementPermission.Equals(input.IsManagementPermission) ) && ( - this.AllowedToAdd == input.AllowedToAdd || - this.AllowedToAdd.Equals(input.AllowedToAdd) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ); } @@ -181,10 +181,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Name != null) - { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); - } + hashCode = (hashCode * 59) + this.AllowedToAdd.GetHashCode(); if (this.DisplayName != null) { hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); @@ -194,7 +191,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.Help.GetHashCode(); } hashCode = (hashCode * 59) + this.IsManagementPermission.GetHashCode(); - hashCode = (hashCode * 59) + this.AllowedToAdd.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } return hashCode; } } diff --git a/src/VRChat.API/Model/GroupPermissions.cs b/src/VRChat.API/Model/GroupPermissions.cs index 5586e880..db719c00 100644 --- a/src/VRChat.API/Model/GroupPermissions.cs +++ b/src/VRChat.API/Model/GroupPermissions.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -56,137 +56,137 @@ public enum GroupPermissions [EnumMember(Value = "group-bans-manage")] group_bans_manage = 4, + /// + /// Enum group_calendar_manage for value: group-calendar-manage + /// + [EnumMember(Value = "group-calendar-manage")] + group_calendar_manage = 5, + /// /// Enum group_data_manage for value: group-data-manage /// [EnumMember(Value = "group-data-manage")] - group_data_manage = 5, + group_data_manage = 6, /// /// Enum group_default_role_manage for value: group-default-role-manage /// [EnumMember(Value = "group-default-role-manage")] - group_default_role_manage = 6, + group_default_role_manage = 7, /// /// Enum group_galleries_manage for value: group-galleries-manage /// [EnumMember(Value = "group-galleries-manage")] - group_galleries_manage = 7, + group_galleries_manage = 8, /// /// Enum group_instance_age_gated_create for value: group-instance-age-gated-create /// [EnumMember(Value = "group-instance-age-gated-create")] - group_instance_age_gated_create = 8, + group_instance_age_gated_create = 9, + + /// + /// Enum group_instance_calendar_link for value: group-instance-calendar-link + /// + [EnumMember(Value = "group-instance-calendar-link")] + group_instance_calendar_link = 10, /// /// Enum group_instance_join for value: group-instance-join /// [EnumMember(Value = "group-instance-join")] - group_instance_join = 9, + group_instance_join = 11, /// /// Enum group_instance_manage for value: group-instance-manage /// [EnumMember(Value = "group-instance-manage")] - group_instance_manage = 10, + group_instance_manage = 12, /// /// Enum group_instance_moderate for value: group-instance-moderate /// [EnumMember(Value = "group-instance-moderate")] - group_instance_moderate = 11, + group_instance_moderate = 13, /// /// Enum group_instance_open_create for value: group-instance-open-create /// [EnumMember(Value = "group-instance-open-create")] - group_instance_open_create = 12, + group_instance_open_create = 14, /// /// Enum group_instance_plus_create for value: group-instance-plus-create /// [EnumMember(Value = "group-instance-plus-create")] - group_instance_plus_create = 13, + group_instance_plus_create = 15, /// /// Enum group_instance_plus_portal for value: group-instance-plus-portal /// [EnumMember(Value = "group-instance-plus-portal")] - group_instance_plus_portal = 14, + group_instance_plus_portal = 16, /// /// Enum group_instance_plus_portal_unlocked for value: group-instance-plus-portal-unlocked /// [EnumMember(Value = "group-instance-plus-portal-unlocked")] - group_instance_plus_portal_unlocked = 15, + group_instance_plus_portal_unlocked = 17, /// /// Enum group_instance_public_create for value: group-instance-public-create /// [EnumMember(Value = "group-instance-public-create")] - group_instance_public_create = 16, + group_instance_public_create = 18, /// /// Enum group_instance_queue_priority for value: group-instance-queue-priority /// [EnumMember(Value = "group-instance-queue-priority")] - group_instance_queue_priority = 17, + group_instance_queue_priority = 19, /// /// Enum group_instance_restricted_create for value: group-instance-restricted-create /// [EnumMember(Value = "group-instance-restricted-create")] - group_instance_restricted_create = 18, + group_instance_restricted_create = 20, /// /// Enum group_invites_manage for value: group-invites-manage /// [EnumMember(Value = "group-invites-manage")] - group_invites_manage = 19, + group_invites_manage = 21, /// /// Enum group_members_manage for value: group-members-manage /// [EnumMember(Value = "group-members-manage")] - group_members_manage = 20, + group_members_manage = 22, /// /// Enum group_members_remove for value: group-members-remove /// [EnumMember(Value = "group-members-remove")] - group_members_remove = 21, + group_members_remove = 23, /// /// Enum group_members_viewall for value: group-members-viewall /// [EnumMember(Value = "group-members-viewall")] - group_members_viewall = 22, + group_members_viewall = 24, /// /// Enum group_roles_assign for value: group-roles-assign /// [EnumMember(Value = "group-roles-assign")] - group_roles_assign = 23, + group_roles_assign = 25, /// /// Enum group_roles_manage for value: group-roles-manage /// [EnumMember(Value = "group-roles-manage")] - group_roles_manage = 24, - - /// - /// Enum group_calendar_manage for value: group-calendar-manage - /// - [EnumMember(Value = "group-calendar-manage")] - group_calendar_manage = 25, - - /// - /// Enum group_instance_calendar_link for value: group-instance-calendar-link - /// - [EnumMember(Value = "group-instance-calendar-link")] - group_instance_calendar_link = 26 + group_roles_manage = 26 } } diff --git a/src/VRChat.API/Model/GroupPost.cs b/src/VRChat.API/Model/GroupPost.cs index 6dd1520d..ac9ea00d 100644 --- a/src/VRChat.API/Model/GroupPost.cs +++ b/src/VRChat.API/Model/GroupPost.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,52 +41,34 @@ public partial class GroupPost : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// id. - /// groupId. /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + /// createdAt. /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. - /// visibility. - /// . - /// title. - /// text. + /// groupId. + /// id. /// imageId. /// imageUrl. - /// createdAt. + /// . + /// text. + /// title. /// updatedAt. - public GroupPost(string id = default, string groupId = default, string authorId = default, string editorId = default, GroupPostVisibility? visibility = default, List roleId = default, string title = default, string text = default, string imageId = default, string imageUrl = default, DateTime createdAt = default, DateTime updatedAt = default) + /// visibility. + public GroupPost(string authorId = default, DateTime createdAt = default, string editorId = default, string groupId = default, string id = default, string imageId = default, string imageUrl = default, List roleId = default, string text = default, string title = default, DateTime updatedAt = default, GroupPostVisibility? visibility = default) { - this.Id = id; - this.GroupId = groupId; this.AuthorId = authorId; + this.CreatedAt = createdAt; this.EditorId = editorId; - this.Visibility = visibility; - this.RoleId = roleId; - this.Title = title; - this.Text = text; + this.GroupId = groupId; + this.Id = id; this.ImageId = imageId; this.ImageUrl = imageUrl; - this.CreatedAt = createdAt; + this.RoleId = roleId; + this.Text = text; + this.Title = title; this.UpdatedAt = updatedAt; + this.Visibility = visibility; } - /// - /// Gets or Sets Id - /// - /* - not_00000000-0000-0000-0000-000000000000 - */ - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } - - /// - /// Gets or Sets GroupId - /// - /* - grp_71a7ff59-112c-4e78-a990-c7cc650776e5 - */ - [DataMember(Name = "groupId", EmitDefaultValue = false)] - public string GroupId { get; set; } - /// /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// @@ -97,6 +79,12 @@ public GroupPost(string id = default, string groupId = default, string authorId [DataMember(Name = "authorId", EmitDefaultValue = false)] public string AuthorId { get; set; } + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } + /// /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// @@ -108,23 +96,22 @@ public GroupPost(string id = default, string groupId = default, string authorId public string EditorId { get; set; } /// - /// - /// - /// - [DataMember(Name = "roleId", EmitDefaultValue = false)] - public List RoleId { get; set; } - - /// - /// Gets or Sets Title + /// Gets or Sets GroupId /// - [DataMember(Name = "title", EmitDefaultValue = false)] - public string Title { get; set; } + /* + grp_71a7ff59-112c-4e78-a990-c7cc650776e5 + */ + [DataMember(Name = "groupId", EmitDefaultValue = false)] + public string GroupId { get; set; } /// - /// Gets or Sets Text + /// Gets or Sets Id /// - [DataMember(Name = "text", EmitDefaultValue = false)] - public string Text { get; set; } + /* + not_00000000-0000-0000-0000-000000000000 + */ + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } /// /// Gets or Sets ImageId @@ -142,10 +129,23 @@ public GroupPost(string id = default, string groupId = default, string authorId public string ImageUrl { get; set; } /// - /// Gets or Sets CreatedAt + /// /// - [DataMember(Name = "createdAt", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + /// + [DataMember(Name = "roleId", EmitDefaultValue = false)] + public List RoleId { get; set; } + + /// + /// Gets or Sets Text + /// + [DataMember(Name = "text", EmitDefaultValue = false)] + public string Text { get; set; } + + /// + /// Gets or Sets Title + /// + [DataMember(Name = "title", EmitDefaultValue = false)] + public string Title { get; set; } /// /// Gets or Sets UpdatedAt @@ -161,18 +161,18 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class GroupPost {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); sb.Append(" AuthorId: ").Append(AuthorId).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" EditorId: ").Append(EditorId).Append("\n"); - sb.Append(" Visibility: ").Append(Visibility).Append("\n"); - sb.Append(" RoleId: ").Append(RoleId).Append("\n"); - sb.Append(" Title: ").Append(Title).Append("\n"); - sb.Append(" Text: ").Append(Text).Append("\n"); + sb.Append(" GroupId: ").Append(GroupId).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" ImageId: ").Append(ImageId).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" RoleId: ").Append(RoleId).Append("\n"); + sb.Append(" Text: ").Append(Text).Append("\n"); + sb.Append(" Title: ").Append(Title).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" Visibility: ").Append(Visibility).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -208,45 +208,30 @@ public bool Equals(GroupPost input) return false; } return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && ( this.AuthorId == input.AuthorId || (this.AuthorId != null && this.AuthorId.Equals(input.AuthorId)) ) && + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && ( this.EditorId == input.EditorId || (this.EditorId != null && this.EditorId.Equals(input.EditorId)) ) && ( - this.Visibility == input.Visibility || - this.Visibility.Equals(input.Visibility) - ) && - ( - this.RoleId == input.RoleId || - this.RoleId != null && - input.RoleId != null && - this.RoleId.SequenceEqual(input.RoleId) - ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) ) && ( - this.Text == input.Text || - (this.Text != null && - this.Text.Equals(input.Text)) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.ImageId == input.ImageId || @@ -259,14 +244,29 @@ public bool Equals(GroupPost input) this.ImageUrl.Equals(input.ImageUrl)) ) && ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) + this.RoleId == input.RoleId || + this.RoleId != null && + input.RoleId != null && + this.RoleId.SequenceEqual(input.RoleId) + ) && + ( + this.Text == input.Text || + (this.Text != null && + this.Text.Equals(input.Text)) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) ) && ( this.UpdatedAt == input.UpdatedAt || (this.UpdatedAt != null && this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.Visibility == input.Visibility || + this.Visibility.Equals(input.Visibility) ); } @@ -279,34 +279,25 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) - { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - } - if (this.GroupId != null) - { - hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); - } if (this.AuthorId != null) { hashCode = (hashCode * 59) + this.AuthorId.GetHashCode(); } - if (this.EditorId != null) + if (this.CreatedAt != null) { - hashCode = (hashCode * 59) + this.EditorId.GetHashCode(); + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } - hashCode = (hashCode * 59) + this.Visibility.GetHashCode(); - if (this.RoleId != null) + if (this.EditorId != null) { - hashCode = (hashCode * 59) + this.RoleId.GetHashCode(); + hashCode = (hashCode * 59) + this.EditorId.GetHashCode(); } - if (this.Title != null) + if (this.GroupId != null) { - hashCode = (hashCode * 59) + this.Title.GetHashCode(); + hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); } - if (this.Text != null) + if (this.Id != null) { - hashCode = (hashCode * 59) + this.Text.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } if (this.ImageId != null) { @@ -316,14 +307,23 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ImageUrl.GetHashCode(); } - if (this.CreatedAt != null) + if (this.RoleId != null) { - hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.RoleId.GetHashCode(); + } + if (this.Text != null) + { + hashCode = (hashCode * 59) + this.Text.GetHashCode(); + } + if (this.Title != null) + { + hashCode = (hashCode * 59) + this.Title.GetHashCode(); } if (this.UpdatedAt != null) { hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); } + hashCode = (hashCode * 59) + this.Visibility.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/GroupPostVisibility.cs b/src/VRChat.API/Model/GroupPostVisibility.cs index 27581f2d..7f991968 100644 --- a/src/VRChat.API/Model/GroupPostVisibility.cs +++ b/src/VRChat.API/Model/GroupPostVisibility.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupPrivacy.cs b/src/VRChat.API/Model/GroupPrivacy.cs index 327e2043..c330d329 100644 --- a/src/VRChat.API/Model/GroupPrivacy.cs +++ b/src/VRChat.API/Model/GroupPrivacy.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupRole.cs b/src/VRChat.API/Model/GroupRole.cs index 74e52fef..37176eed 100644 --- a/src/VRChat.API/Model/GroupRole.cs +++ b/src/VRChat.API/Model/GroupRole.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,42 +35,45 @@ public partial class GroupRole : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// id. - /// groupId. - /// name. + /// createdAt. /// description. + /// groupId. + /// id. + /// isManagementRole (default to false). /// isSelfAssignable (default to false). + /// name. + /// order. /// permissions. - /// isManagementRole (default to false). - /// requiresTwoFactor (default to false). /// requiresPurchase (default to false). - /// order. - /// createdAt. + /// requiresTwoFactor (default to false). /// updatedAt. - public GroupRole(string id = default, string groupId = default, string name = default, string description = default, bool isSelfAssignable = false, List permissions = default, bool isManagementRole = false, bool requiresTwoFactor = false, bool requiresPurchase = false, int order = default, DateTime createdAt = default, DateTime updatedAt = default) + public GroupRole(DateTime createdAt = default, string description = default, string groupId = default, string id = default, bool isManagementRole = false, bool isSelfAssignable = false, string name = default, int order = default, List permissions = default, bool requiresPurchase = false, bool requiresTwoFactor = false, DateTime updatedAt = default) { - this.Id = id; - this.GroupId = groupId; - this.Name = name; + this.CreatedAt = createdAt; this.Description = description; + this.GroupId = groupId; + this.Id = id; + this.IsManagementRole = isManagementRole; this.IsSelfAssignable = isSelfAssignable; + this.Name = name; + this.Order = order; this.Permissions = permissions; - this.IsManagementRole = isManagementRole; - this.RequiresTwoFactor = requiresTwoFactor; this.RequiresPurchase = requiresPurchase; - this.Order = order; - this.CreatedAt = createdAt; + this.RequiresTwoFactor = requiresTwoFactor; this.UpdatedAt = updatedAt; } /// - /// Gets or Sets Id + /// Gets or Sets CreatedAt /// - /* - grol_459d3911-f672-44bc-b84d-e54ffe7960fe - */ - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + [DataMember(Name = "createdAt", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } /// /// Gets or Sets GroupId @@ -82,16 +85,19 @@ public GroupRole(string id = default, string groupId = default, string name = de public string GroupId { get; set; } /// - /// Gets or Sets Name + /// Gets or Sets Id /// - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + /* + grol_459d3911-f672-44bc-b84d-e54ffe7960fe + */ + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } /// - /// Gets or Sets Description + /// Gets or Sets IsManagementRole /// - [DataMember(Name = "description", EmitDefaultValue = false)] - public string Description { get; set; } + [DataMember(Name = "isManagementRole", EmitDefaultValue = true)] + public bool IsManagementRole { get; set; } /// /// Gets or Sets IsSelfAssignable @@ -100,22 +106,22 @@ public GroupRole(string id = default, string groupId = default, string name = de public bool IsSelfAssignable { get; set; } /// - /// Gets or Sets Permissions + /// Gets or Sets Name /// - [DataMember(Name = "permissions", EmitDefaultValue = false)] - public List Permissions { get; set; } + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } /// - /// Gets or Sets IsManagementRole + /// Gets or Sets Order /// - [DataMember(Name = "isManagementRole", EmitDefaultValue = true)] - public bool IsManagementRole { get; set; } + [DataMember(Name = "order", EmitDefaultValue = false)] + public int Order { get; set; } /// - /// Gets or Sets RequiresTwoFactor + /// Gets or Sets Permissions /// - [DataMember(Name = "requiresTwoFactor", EmitDefaultValue = true)] - public bool RequiresTwoFactor { get; set; } + [DataMember(Name = "permissions", EmitDefaultValue = false)] + public List Permissions { get; set; } /// /// Gets or Sets RequiresPurchase @@ -124,16 +130,10 @@ public GroupRole(string id = default, string groupId = default, string name = de public bool RequiresPurchase { get; set; } /// - /// Gets or Sets Order - /// - [DataMember(Name = "order", EmitDefaultValue = false)] - public int Order { get; set; } - - /// - /// Gets or Sets CreatedAt + /// Gets or Sets RequiresTwoFactor /// - [DataMember(Name = "createdAt", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "requiresTwoFactor", EmitDefaultValue = true)] + public bool RequiresTwoFactor { get; set; } /// /// Gets or Sets UpdatedAt @@ -149,17 +149,17 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class GroupRole {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" GroupId: ").Append(GroupId).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" IsManagementRole: ").Append(IsManagementRole).Append("\n"); sb.Append(" IsSelfAssignable: ").Append(IsSelfAssignable).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Order: ").Append(Order).Append("\n"); sb.Append(" Permissions: ").Append(Permissions).Append("\n"); - sb.Append(" IsManagementRole: ").Append(IsManagementRole).Append("\n"); - sb.Append(" RequiresTwoFactor: ").Append(RequiresTwoFactor).Append("\n"); sb.Append(" RequiresPurchase: ").Append(RequiresPurchase).Append("\n"); - sb.Append(" Order: ").Append(Order).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" RequiresTwoFactor: ").Append(RequiresTwoFactor).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -197,9 +197,14 @@ public bool Equals(GroupRole input) } return ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) ) && ( this.GroupId == input.GroupId || @@ -207,45 +212,40 @@ public bool Equals(GroupRole input) this.GroupId.Equals(input.GroupId)) ) && ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) + this.IsManagementRole == input.IsManagementRole || + this.IsManagementRole.Equals(input.IsManagementRole) ) && ( this.IsSelfAssignable == input.IsSelfAssignable || this.IsSelfAssignable.Equals(input.IsSelfAssignable) ) && ( - this.Permissions == input.Permissions || - this.Permissions != null && - input.Permissions != null && - this.Permissions.SequenceEqual(input.Permissions) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( - this.IsManagementRole == input.IsManagementRole || - this.IsManagementRole.Equals(input.IsManagementRole) + this.Order == input.Order || + this.Order.Equals(input.Order) ) && ( - this.RequiresTwoFactor == input.RequiresTwoFactor || - this.RequiresTwoFactor.Equals(input.RequiresTwoFactor) + this.Permissions == input.Permissions || + this.Permissions != null && + input.Permissions != null && + this.Permissions.SequenceEqual(input.Permissions) ) && ( this.RequiresPurchase == input.RequiresPurchase || this.RequiresPurchase.Equals(input.RequiresPurchase) ) && ( - this.Order == input.Order || - this.Order.Equals(input.Order) - ) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) + this.RequiresTwoFactor == input.RequiresTwoFactor || + this.RequiresTwoFactor.Equals(input.RequiresTwoFactor) ) && ( this.UpdatedAt == input.UpdatedAt || @@ -263,35 +263,35 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) + if (this.CreatedAt != null) { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); } if (this.GroupId != null) { hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); } - if (this.Name != null) + if (this.Id != null) { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } - if (this.Description != null) + hashCode = (hashCode * 59) + this.IsManagementRole.GetHashCode(); + hashCode = (hashCode * 59) + this.IsSelfAssignable.GetHashCode(); + if (this.Name != null) { - hashCode = (hashCode * 59) + this.Description.GetHashCode(); + hashCode = (hashCode * 59) + this.Name.GetHashCode(); } - hashCode = (hashCode * 59) + this.IsSelfAssignable.GetHashCode(); + hashCode = (hashCode * 59) + this.Order.GetHashCode(); if (this.Permissions != null) { hashCode = (hashCode * 59) + this.Permissions.GetHashCode(); } - hashCode = (hashCode * 59) + this.IsManagementRole.GetHashCode(); - hashCode = (hashCode * 59) + this.RequiresTwoFactor.GetHashCode(); hashCode = (hashCode * 59) + this.RequiresPurchase.GetHashCode(); - hashCode = (hashCode * 59) + this.Order.GetHashCode(); - if (this.CreatedAt != null) - { - hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); - } + hashCode = (hashCode * 59) + this.RequiresTwoFactor.GetHashCode(); if (this.UpdatedAt != null) { hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); diff --git a/src/VRChat.API/Model/GroupRoleTemplate.cs b/src/VRChat.API/Model/GroupRoleTemplate.cs index 22bd817f..ba6e9ba0 100644 --- a/src/VRChat.API/Model/GroupRoleTemplate.cs +++ b/src/VRChat.API/Model/GroupRoleTemplate.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupRoleTemplateValues.cs b/src/VRChat.API/Model/GroupRoleTemplateValues.cs index 3c9de6ee..f84c7326 100644 --- a/src/VRChat.API/Model/GroupRoleTemplateValues.cs +++ b/src/VRChat.API/Model/GroupRoleTemplateValues.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupRoleTemplateValuesRoles.cs b/src/VRChat.API/Model/GroupRoleTemplateValuesRoles.cs index 44d2ead3..083d984b 100644 --- a/src/VRChat.API/Model/GroupRoleTemplateValuesRoles.cs +++ b/src/VRChat.API/Model/GroupRoleTemplateValuesRoles.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,30 +35,30 @@ public partial class GroupRoleTemplateValuesRoles : IEquatable /// Initializes a new instance of the class. /// - /// description. /// name. + /// description. /// basePermissions. /// isAddedOnJoin (default to false). - public GroupRoleTemplateValuesRoles(string description = default, string name = default, List basePermissions = default, bool isAddedOnJoin = false) + public GroupRoleTemplateValuesRoles(string name = default, string description = default, List basePermissions = default, bool isAddedOnJoin = false) { - this.Description = description; this.Name = name; + this.Description = description; this.BasePermissions = basePermissions; this.IsAddedOnJoin = isAddedOnJoin; } - /// - /// Gets or Sets Description - /// - [DataMember(Name = "description", EmitDefaultValue = false)] - public string Description { get; set; } - /// /// Gets or Sets Name /// [DataMember(Name = "name", EmitDefaultValue = false)] public string Name { get; set; } + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + /// /// Gets or Sets BasePermissions /// @@ -79,8 +79,8 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class GroupRoleTemplateValuesRoles {\n"); - sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" BasePermissions: ").Append(BasePermissions).Append("\n"); sb.Append(" IsAddedOnJoin: ").Append(IsAddedOnJoin).Append("\n"); sb.Append("}\n"); @@ -118,16 +118,16 @@ public bool Equals(GroupRoleTemplateValuesRoles input) return false; } return - ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) - ) && ( this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) + ) && ( this.BasePermissions == input.BasePermissions || this.BasePermissions != null && @@ -149,14 +149,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Description != null) - { - hashCode = (hashCode * 59) + this.Description.GetHashCode(); - } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); + } if (this.BasePermissions != null) { hashCode = (hashCode * 59) + this.BasePermissions.GetHashCode(); diff --git a/src/VRChat.API/Model/GroupSearchSort.cs b/src/VRChat.API/Model/GroupSearchSort.cs index b05ad855..fdf08738 100644 --- a/src/VRChat.API/Model/GroupSearchSort.cs +++ b/src/VRChat.API/Model/GroupSearchSort.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupUserVisibility.cs b/src/VRChat.API/Model/GroupUserVisibility.cs index c5af51de..74272df9 100644 --- a/src/VRChat.API/Model/GroupUserVisibility.cs +++ b/src/VRChat.API/Model/GroupUserVisibility.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,10 +33,10 @@ namespace VRChat.API.Model public enum GroupUserVisibility { /// - /// Enum Visible for value: visible + /// Enum Friends for value: friends /// - [EnumMember(Value = "visible")] - Visible = 1, + [EnumMember(Value = "friends")] + Friends = 1, /// /// Enum Hidden for value: hidden @@ -45,10 +45,10 @@ public enum GroupUserVisibility Hidden = 2, /// - /// Enum Friends for value: friends + /// Enum Visible for value: visible /// - [EnumMember(Value = "friends")] - Friends = 3 + [EnumMember(Value = "visible")] + Visible = 3 } } diff --git a/src/VRChat.API/Model/InfoPush.cs b/src/VRChat.API/Model/InfoPush.cs index 50eb83ef..b42fe250 100644 --- a/src/VRChat.API/Model/InfoPush.cs +++ b/src/VRChat.API/Model/InfoPush.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,19 +46,32 @@ protected InfoPush() { } /// /// Initializes a new instance of the class. /// + /// createdAt (required). + /// data (required). + /// endDate. + /// Unknown usage, MD5 (required). /// id (required). /// isEnabled (required) (default to true). - /// releaseStatus (required). /// priority (required). + /// releaseStatus (required). + /// startDate. /// (required). - /// data (required). - /// Unknown usage, MD5 (required). - /// createdAt (required). /// updatedAt (required). - /// startDate. - /// endDate. - public InfoPush(string id = default, bool isEnabled = true, ReleaseStatus releaseStatus = default, int priority = default, List tags = default, InfoPushData data = default, string hash = default, DateTime createdAt = default, DateTime updatedAt = default, DateTime startDate = default, DateTime endDate = default) + public InfoPush(DateTime createdAt = default, InfoPushData data = default, DateTime endDate = default, string hash = default, string id = default, bool isEnabled = true, int priority = default, ReleaseStatus releaseStatus = default, DateTime startDate = default, List tags = default, DateTime updatedAt = default) { + this.CreatedAt = createdAt; + // to ensure "data" is required (not null) + if (data == null) + { + throw new ArgumentNullException("data is a required property for InfoPush and cannot be null"); + } + this.Data = data; + // to ensure "hash" is required (not null) + if (hash == null) + { + throw new ArgumentNullException("hash is a required property for InfoPush and cannot be null"); + } + this.Hash = hash; // to ensure "id" is required (not null) if (id == null) { @@ -66,32 +79,44 @@ public InfoPush(string id = default, bool isEnabled = true, ReleaseStatus releas } this.Id = id; this.IsEnabled = isEnabled; - this.ReleaseStatus = releaseStatus; this.Priority = priority; + this.ReleaseStatus = releaseStatus; // to ensure "tags" is required (not null) if (tags == null) { throw new ArgumentNullException("tags is a required property for InfoPush and cannot be null"); } this.Tags = tags; - // to ensure "data" is required (not null) - if (data == null) - { - throw new ArgumentNullException("data is a required property for InfoPush and cannot be null"); - } - this.Data = data; - // to ensure "hash" is required (not null) - if (hash == null) - { - throw new ArgumentNullException("hash is a required property for InfoPush and cannot be null"); - } - this.Hash = hash; - this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; - this.StartDate = startDate; this.EndDate = endDate; + this.StartDate = startDate; } + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Data + /// + [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = true)] + public InfoPushData Data { get; set; } + + /// + /// Gets or Sets EndDate + /// + [DataMember(Name = "endDate", EmitDefaultValue = false)] + public DateTime EndDate { get; set; } + + /// + /// Unknown usage, MD5 + /// + /// Unknown usage, MD5 + [DataMember(Name = "hash", IsRequired = true, EmitDefaultValue = true)] + public string Hash { get; set; } + /// /// Gets or Sets Id /// @@ -113,6 +138,12 @@ public InfoPush(string id = default, bool isEnabled = true, ReleaseStatus releas [DataMember(Name = "priority", IsRequired = true, EmitDefaultValue = true)] public int Priority { get; set; } + /// + /// Gets or Sets StartDate + /// + [DataMember(Name = "startDate", EmitDefaultValue = false)] + public DateTime StartDate { get; set; } + /// /// /// @@ -120,43 +151,12 @@ public InfoPush(string id = default, bool isEnabled = true, ReleaseStatus releas [DataMember(Name = "tags", IsRequired = true, EmitDefaultValue = true)] public List Tags { get; set; } - /// - /// Gets or Sets Data - /// - [DataMember(Name = "data", IsRequired = true, EmitDefaultValue = true)] - public InfoPushData Data { get; set; } - - /// - /// Unknown usage, MD5 - /// - /// Unknown usage, MD5 - [DataMember(Name = "hash", IsRequired = true, EmitDefaultValue = true)] - public string Hash { get; set; } - - /// - /// Gets or Sets CreatedAt - /// - [DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)] - public DateTime CreatedAt { get; set; } - /// /// Gets or Sets UpdatedAt /// [DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)] public DateTime UpdatedAt { get; set; } - /// - /// Gets or Sets StartDate - /// - [DataMember(Name = "startDate", EmitDefaultValue = false)] - public DateTime StartDate { get; set; } - - /// - /// Gets or Sets EndDate - /// - [DataMember(Name = "endDate", EmitDefaultValue = false)] - public DateTime EndDate { get; set; } - /// /// Returns the string presentation of the object /// @@ -165,17 +165,17 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class InfoPush {\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); + sb.Append(" EndDate: ").Append(EndDate).Append("\n"); + sb.Append(" Hash: ").Append(Hash).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" IsEnabled: ").Append(IsEnabled).Append("\n"); - sb.Append(" ReleaseStatus: ").Append(ReleaseStatus).Append("\n"); sb.Append(" Priority: ").Append(Priority).Append("\n"); + sb.Append(" ReleaseStatus: ").Append(ReleaseStatus).Append("\n"); + sb.Append(" StartDate: ").Append(StartDate).Append("\n"); sb.Append(" Tags: ").Append(Tags).Append("\n"); - sb.Append(" Data: ").Append(Data).Append("\n"); - sb.Append(" Hash: ").Append(Hash).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -211,6 +211,26 @@ public bool Equals(InfoPush input) return false; } return + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) + ) && + ( + this.EndDate == input.EndDate || + (this.EndDate != null && + this.EndDate.Equals(input.EndDate)) + ) && + ( + this.Hash == input.Hash || + (this.Hash != null && + this.Hash.Equals(input.Hash)) + ) && ( this.Id == input.Id || (this.Id != null && @@ -220,13 +240,18 @@ public bool Equals(InfoPush input) this.IsEnabled == input.IsEnabled || this.IsEnabled.Equals(input.IsEnabled) ) && + ( + this.Priority == input.Priority || + this.Priority.Equals(input.Priority) + ) && ( this.ReleaseStatus == input.ReleaseStatus || this.ReleaseStatus.Equals(input.ReleaseStatus) ) && ( - this.Priority == input.Priority || - this.Priority.Equals(input.Priority) + this.StartDate == input.StartDate || + (this.StartDate != null && + this.StartDate.Equals(input.StartDate)) ) && ( this.Tags == input.Tags || @@ -234,35 +259,10 @@ public bool Equals(InfoPush input) input.Tags != null && this.Tags.SequenceEqual(input.Tags) ) && - ( - this.Data == input.Data || - (this.Data != null && - this.Data.Equals(input.Data)) - ) && - ( - this.Hash == input.Hash || - (this.Hash != null && - this.Hash.Equals(input.Hash)) - ) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && ( this.UpdatedAt == input.UpdatedAt || (this.UpdatedAt != null && this.UpdatedAt.Equals(input.UpdatedAt)) - ) && - ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) - ) && - ( - this.EndDate == input.EndDate || - (this.EndDate != null && - this.EndDate.Equals(input.EndDate)) ); } @@ -275,40 +275,40 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) - { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - } - hashCode = (hashCode * 59) + this.IsEnabled.GetHashCode(); - hashCode = (hashCode * 59) + this.ReleaseStatus.GetHashCode(); - hashCode = (hashCode * 59) + this.Priority.GetHashCode(); - if (this.Tags != null) + if (this.CreatedAt != null) { - hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } if (this.Data != null) { hashCode = (hashCode * 59) + this.Data.GetHashCode(); } - if (this.Hash != null) + if (this.EndDate != null) { - hashCode = (hashCode * 59) + this.Hash.GetHashCode(); + hashCode = (hashCode * 59) + this.EndDate.GetHashCode(); } - if (this.CreatedAt != null) + if (this.Hash != null) { - hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.Hash.GetHashCode(); } - if (this.UpdatedAt != null) + if (this.Id != null) { - hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } + hashCode = (hashCode * 59) + this.IsEnabled.GetHashCode(); + hashCode = (hashCode * 59) + this.Priority.GetHashCode(); + hashCode = (hashCode * 59) + this.ReleaseStatus.GetHashCode(); if (this.StartDate != null) { hashCode = (hashCode * 59) + this.StartDate.GetHashCode(); } - if (this.EndDate != null) + if (this.Tags != null) { - hashCode = (hashCode * 59) + this.EndDate.GetHashCode(); + hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); } return hashCode; } @@ -321,18 +321,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) minLength - if (this.Id != null && this.Id.Length < 1) - { - yield return new ValidationResult("Invalid value for Id, length must be greater than 1.", new [] { "Id" }); - } - // Hash (string) minLength if (this.Hash != null && this.Hash.Length < 1) { yield return new ValidationResult("Invalid value for Hash, length must be greater than 1.", new [] { "Hash" }); } + // Id (string) minLength + if (this.Id != null && this.Id.Length < 1) + { + yield return new ValidationResult("Invalid value for Id, length must be greater than 1.", new [] { "Id" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/InfoPushData.cs b/src/VRChat.API/Model/InfoPushData.cs index 26527361..cad8005c 100644 --- a/src/VRChat.API/Model/InfoPushData.cs +++ b/src/VRChat.API/Model/InfoPushData.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,6 +35,7 @@ public partial class InfoPushData : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// + /// article. /// contentList. /// description. /// imageUrl. @@ -42,9 +43,9 @@ public partial class InfoPushData : IEquatable, IValidatableObject /// onPressed. /// template. /// varVersion. - /// article. - public InfoPushData(DynamicContentRow contentList = default, string description = default, string imageUrl = default, string name = default, InfoPushDataClickable onPressed = default, string template = default, string varVersion = default, InfoPushDataArticle article = default) + public InfoPushData(InfoPushDataArticle article = default, DynamicContentRow contentList = default, string description = default, string imageUrl = default, string name = default, InfoPushDataClickable onPressed = default, string template = default, string varVersion = default) { + this.Article = article; this.ContentList = contentList; this.Description = description; this.ImageUrl = imageUrl; @@ -52,9 +53,14 @@ public InfoPushData(DynamicContentRow contentList = default, string description this.OnPressed = onPressed; this.Template = template; this.VarVersion = varVersion; - this.Article = article; } + /// + /// Gets or Sets Article + /// + [DataMember(Name = "article", EmitDefaultValue = false)] + public InfoPushDataArticle Article { get; set; } + /// /// Gets or Sets ContentList /// @@ -100,12 +106,6 @@ public InfoPushData(DynamicContentRow contentList = default, string description [DataMember(Name = "version", EmitDefaultValue = false)] public string VarVersion { get; set; } - /// - /// Gets or Sets Article - /// - [DataMember(Name = "article", EmitDefaultValue = false)] - public InfoPushDataArticle Article { get; set; } - /// /// Returns the string presentation of the object /// @@ -114,6 +114,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class InfoPushData {\n"); + sb.Append(" Article: ").Append(Article).Append("\n"); sb.Append(" ContentList: ").Append(ContentList).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); @@ -121,7 +122,6 @@ public override string ToString() sb.Append(" OnPressed: ").Append(OnPressed).Append("\n"); sb.Append(" Template: ").Append(Template).Append("\n"); sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); - sb.Append(" Article: ").Append(Article).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -157,6 +157,11 @@ public bool Equals(InfoPushData input) return false; } return + ( + this.Article == input.Article || + (this.Article != null && + this.Article.Equals(input.Article)) + ) && ( this.ContentList == input.ContentList || (this.ContentList != null && @@ -191,11 +196,6 @@ public bool Equals(InfoPushData input) this.VarVersion == input.VarVersion || (this.VarVersion != null && this.VarVersion.Equals(input.VarVersion)) - ) && - ( - this.Article == input.Article || - (this.Article != null && - this.Article.Equals(input.Article)) ); } @@ -208,6 +208,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.Article != null) + { + hashCode = (hashCode * 59) + this.Article.GetHashCode(); + } if (this.ContentList != null) { hashCode = (hashCode * 59) + this.ContentList.GetHashCode(); @@ -236,10 +240,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.VarVersion.GetHashCode(); } - if (this.Article != null) - { - hashCode = (hashCode * 59) + this.Article.GetHashCode(); - } return hashCode; } } diff --git a/src/VRChat.API/Model/InfoPushDataArticle.cs b/src/VRChat.API/Model/InfoPushDataArticle.cs index df4b9d8b..c74ef8d5 100644 --- a/src/VRChat.API/Model/InfoPushDataArticle.cs +++ b/src/VRChat.API/Model/InfoPushDataArticle.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InfoPushDataArticleContent.cs b/src/VRChat.API/Model/InfoPushDataArticleContent.cs index a659361e..2bd6acbf 100644 --- a/src/VRChat.API/Model/InfoPushDataArticleContent.cs +++ b/src/VRChat.API/Model/InfoPushDataArticleContent.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,22 +35,16 @@ public partial class InfoPushDataArticleContent : IEquatable /// Initializes a new instance of the class. /// - /// text. /// imageUrl. /// onPressed. - public InfoPushDataArticleContent(string text = default, string imageUrl = default, InfoPushDataClickable onPressed = default) + /// text. + public InfoPushDataArticleContent(string imageUrl = default, InfoPushDataClickable onPressed = default, string text = default) { - this.Text = text; this.ImageUrl = imageUrl; this.OnPressed = onPressed; + this.Text = text; } - /// - /// Gets or Sets Text - /// - [DataMember(Name = "text", EmitDefaultValue = false)] - public string Text { get; set; } - /// /// Gets or Sets ImageUrl /// @@ -63,6 +57,12 @@ public InfoPushDataArticleContent(string text = default, string imageUrl = defau [DataMember(Name = "onPressed", EmitDefaultValue = false)] public InfoPushDataClickable OnPressed { get; set; } + /// + /// Gets or Sets Text + /// + [DataMember(Name = "text", EmitDefaultValue = false)] + public string Text { get; set; } + /// /// Returns the string presentation of the object /// @@ -71,9 +71,9 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class InfoPushDataArticleContent {\n"); - sb.Append(" Text: ").Append(Text).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); sb.Append(" OnPressed: ").Append(OnPressed).Append("\n"); + sb.Append(" Text: ").Append(Text).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -109,11 +109,6 @@ public bool Equals(InfoPushDataArticleContent input) return false; } return - ( - this.Text == input.Text || - (this.Text != null && - this.Text.Equals(input.Text)) - ) && ( this.ImageUrl == input.ImageUrl || (this.ImageUrl != null && @@ -123,6 +118,11 @@ public bool Equals(InfoPushDataArticleContent input) this.OnPressed == input.OnPressed || (this.OnPressed != null && this.OnPressed.Equals(input.OnPressed)) + ) && + ( + this.Text == input.Text || + (this.Text != null && + this.Text.Equals(input.Text)) ); } @@ -135,10 +135,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Text != null) - { - hashCode = (hashCode * 59) + this.Text.GetHashCode(); - } if (this.ImageUrl != null) { hashCode = (hashCode * 59) + this.ImageUrl.GetHashCode(); @@ -147,6 +143,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.OnPressed.GetHashCode(); } + if (this.Text != null) + { + hashCode = (hashCode * 59) + this.Text.GetHashCode(); + } return hashCode; } } diff --git a/src/VRChat.API/Model/InfoPushDataClickable.cs b/src/VRChat.API/Model/InfoPushDataClickable.cs index b4f250b7..bbdb83ba 100644 --- a/src/VRChat.API/Model/InfoPushDataClickable.cs +++ b/src/VRChat.API/Model/InfoPushDataClickable.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,28 +39,28 @@ public partial class InfoPushDataClickable : IEquatable, public enum CommandEnum { /// - /// Enum OpenURL for value: OpenURL + /// Enum CannedWorldSearch for value: CannedWorldSearch /// - [EnumMember(Value = "OpenURL")] - OpenURL = 1, + [EnumMember(Value = "CannedWorldSearch")] + CannedWorldSearch = 1, /// - /// Enum OpenVRCPlusMenu for value: OpenVRCPlusMenu + /// Enum OpenSafetyMenu for value: OpenSafetyMenu /// - [EnumMember(Value = "OpenVRCPlusMenu")] - OpenVRCPlusMenu = 2, + [EnumMember(Value = "OpenSafetyMenu")] + OpenSafetyMenu = 2, /// - /// Enum OpenSafetyMenu for value: OpenSafetyMenu + /// Enum OpenURL for value: OpenURL /// - [EnumMember(Value = "OpenSafetyMenu")] - OpenSafetyMenu = 3, + [EnumMember(Value = "OpenURL")] + OpenURL = 3, /// - /// Enum CannedWorldSearch for value: CannedWorldSearch + /// Enum OpenVRCPlusMenu for value: OpenVRCPlusMenu /// - [EnumMember(Value = "CannedWorldSearch")] - CannedWorldSearch = 4 + [EnumMember(Value = "OpenVRCPlusMenu")] + OpenVRCPlusMenu = 4 } @@ -80,9 +80,9 @@ protected InfoPushDataClickable() { } /// /// Initializes a new instance of the class. /// - /// command (required). /// In case of OpenURL, this would contain the link.. - public InfoPushDataClickable(CommandEnum command = default, List parameters = default) + /// command (required). + public InfoPushDataClickable(List parameters = default, CommandEnum command = default) { this.Command = command; this.Parameters = parameters; @@ -103,8 +103,8 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class InfoPushDataClickable {\n"); - sb.Append(" Command: ").Append(Command).Append("\n"); sb.Append(" Parameters: ").Append(Parameters).Append("\n"); + sb.Append(" Command: ").Append(Command).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -140,15 +140,15 @@ public bool Equals(InfoPushDataClickable input) return false; } return - ( - this.Command == input.Command || - this.Command.Equals(input.Command) - ) && ( this.Parameters == input.Parameters || this.Parameters != null && input.Parameters != null && this.Parameters.SequenceEqual(input.Parameters) + ) && + ( + this.Command == input.Command || + this.Command.Equals(input.Command) ); } @@ -161,11 +161,11 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Command.GetHashCode(); if (this.Parameters != null) { hashCode = (hashCode * 59) + this.Parameters.GetHashCode(); } + hashCode = (hashCode * 59) + this.Command.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/Instance.cs b/src/VRChat.API/Model/Instance.cs index 2481d6e8..705d5eaf 100644 --- a/src/VRChat.API/Model/Instance.cs +++ b/src/VRChat.API/Model/Instance.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,6 +33,12 @@ namespace VRChat.API.Model public partial class Instance : IEquatable, IValidatableObject { + /// + /// Gets or Sets GroupAccessType + /// + [DataMember(Name = "groupAccessType", EmitDefaultValue = false)] + public GroupAccessType? GroupAccessType { get; set; } + /// /// Gets or Sets PhotonRegion /// @@ -50,12 +56,6 @@ public partial class Instance : IEquatable, IValidatableObject /// [DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)] public InstanceType Type { get; set; } - - /// - /// Gets or Sets GroupAccessType - /// - [DataMember(Name = "groupAccessType", EmitDefaultValue = false)] - public GroupAccessType? GroupAccessType { get; set; } /// /// Initializes a new instance of the class. /// @@ -69,44 +69,44 @@ protected Instance() { } /// canRequestInvite (required) (default to true). /// capacity (required). /// Always returns \"unknown\". (required). + /// closedAt. /// contentSettings. /// displayName. + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. /// full (required) (default to false). /// gameServerVersion. + /// groupAccessType. + /// hardClose. + /// hasCapacityForYou. + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. /// InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. (required). /// InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. (required). /// instancePersistenceEnabled. /// Represents a unique location, consisting of a world identifier and an instance identifier, or \"offline\" if the user is not on your friends list. (required). /// nUsers (required). /// name (required). + /// nonce. /// A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise. /// permanent (required) (default to false). /// photonRegion (required). /// platforms (required). /// playerPersistenceEnabled. - /// region (required). - /// secureName (required). - /// shortName. - /// The tags array on Instances usually contain the language tags of the people in the instance. (required). - /// type (required). - /// WorldID be \"offline\" on User profiles if you are not friends with that user. (required). - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. /// queueEnabled (required). /// queueSize (required). /// recommendedCapacity (required). + /// region (required). /// roleRestricted. + /// secureName (required). + /// shortName. /// strict (required). + /// The tags array on Instances usually contain the language tags of the people in the instance. (required). + /// type (required). /// userCount (required). - /// world (required). /// The users field is present on instances created by the requesting user.. - /// groupAccessType. - /// hasCapacityForYou. - /// nonce. - /// closedAt. - /// hardClose. - public Instance(bool active = true, bool? ageGate = default, bool canRequestInvite = true, int capacity = default, string clientNumber = default, InstanceContentSettings contentSettings = default, string displayName = default, bool full = false, int gameServerVersion = default, string id = default, string instanceId = default, string instancePersistenceEnabled = default, string location = default, int nUsers = default, string name = default, string ownerId = default, bool permanent = false, Region photonRegion = default, InstancePlatforms platforms = default, bool? playerPersistenceEnabled = default, InstanceRegion region = default, string secureName = default, string shortName = default, List tags = default, InstanceType type = default, string worldId = default, string hidden = default, string friends = default, string varPrivate = default, bool queueEnabled = default, int queueSize = default, int recommendedCapacity = default, bool roleRestricted = default, bool strict = default, int userCount = default, World world = default, List users = default, GroupAccessType? groupAccessType = default, bool hasCapacityForYou = default, string nonce = default, DateTime? closedAt = default, bool? hardClose = default) + /// world (required). + /// WorldID be \"offline\" on User profiles if you are not friends with that user. (required). + public Instance(bool active = true, bool? ageGate = default, bool canRequestInvite = true, int capacity = default, string clientNumber = default, DateTime? closedAt = default, InstanceContentSettings contentSettings = default, string displayName = default, string friends = default, bool full = false, int gameServerVersion = default, GroupAccessType? groupAccessType = default, bool? hardClose = default, bool hasCapacityForYou = default, string hidden = default, string id = default, string instanceId = default, string instancePersistenceEnabled = default, string location = default, int nUsers = default, string name = default, string nonce = default, string ownerId = default, bool permanent = false, Region photonRegion = default, InstancePlatforms platforms = default, bool? playerPersistenceEnabled = default, string varPrivate = default, bool queueEnabled = default, int queueSize = default, int recommendedCapacity = default, InstanceRegion region = default, bool roleRestricted = default, string secureName = default, string shortName = default, bool strict = default, List tags = default, InstanceType type = default, int userCount = default, List users = default, World world = default, string worldId = default) { this.Active = active; this.CanRequestInvite = canRequestInvite; @@ -151,6 +151,9 @@ public Instance(bool active = true, bool? ageGate = default, bool canRequestInvi throw new ArgumentNullException("platforms is a required property for Instance and cannot be null"); } this.Platforms = platforms; + this.QueueEnabled = queueEnabled; + this.QueueSize = queueSize; + this.RecommendedCapacity = recommendedCapacity; this.Region = region; // to ensure "secureName" is required (not null) if (secureName == null) @@ -158,6 +161,7 @@ public Instance(bool active = true, bool? ageGate = default, bool canRequestInvi throw new ArgumentNullException("secureName is a required property for Instance and cannot be null"); } this.SecureName = secureName; + this.Strict = strict; // to ensure "tags" is required (not null) if (tags == null) { @@ -165,16 +169,6 @@ public Instance(bool active = true, bool? ageGate = default, bool canRequestInvi } this.Tags = tags; this.Type = type; - // to ensure "worldId" is required (not null) - if (worldId == null) - { - throw new ArgumentNullException("worldId is a required property for Instance and cannot be null"); - } - this.WorldId = worldId; - this.QueueEnabled = queueEnabled; - this.QueueSize = queueSize; - this.RecommendedCapacity = recommendedCapacity; - this.Strict = strict; this.UserCount = userCount; // to ensure "world" is required (not null) if (world == null) @@ -182,24 +176,30 @@ public Instance(bool active = true, bool? ageGate = default, bool canRequestInvi throw new ArgumentNullException("world is a required property for Instance and cannot be null"); } this.World = world; + // to ensure "worldId" is required (not null) + if (worldId == null) + { + throw new ArgumentNullException("worldId is a required property for Instance and cannot be null"); + } + this.WorldId = worldId; this.AgeGate = ageGate; + this.ClosedAt = closedAt; this.ContentSettings = contentSettings; this.DisplayName = displayName; + this.Friends = friends; this.GameServerVersion = gameServerVersion; + this.GroupAccessType = groupAccessType; + this.HardClose = hardClose; + this.HasCapacityForYou = hasCapacityForYou; + this.Hidden = hidden; this.InstancePersistenceEnabled = instancePersistenceEnabled; + this.Nonce = nonce; this.OwnerId = ownerId; this.PlayerPersistenceEnabled = playerPersistenceEnabled; - this.ShortName = shortName; - this.Hidden = hidden; - this.Friends = friends; this.Private = varPrivate; this.RoleRestricted = roleRestricted; + this.ShortName = shortName; this.Users = users; - this.GroupAccessType = groupAccessType; - this.HasCapacityForYou = hasCapacityForYou; - this.Nonce = nonce; - this.ClosedAt = closedAt; - this.HardClose = hardClose; } /// @@ -243,6 +243,12 @@ public Instance(bool active = true, bool? ageGate = default, bool canRequestInvi [Obsolete] public string ClientNumber { get; set; } + /// + /// Gets or Sets ClosedAt + /// + [DataMember(Name = "closedAt", EmitDefaultValue = true)] + public DateTime? ClosedAt { get; set; } + /// /// Gets or Sets ContentSettings /// @@ -255,6 +261,16 @@ public Instance(bool active = true, bool? ageGate = default, bool canRequestInvi [DataMember(Name = "displayName", EmitDefaultValue = true)] public string DisplayName { get; set; } + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /* + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + */ + [DataMember(Name = "friends", EmitDefaultValue = false)] + public string Friends { get; set; } + /// /// Gets or Sets Full /// @@ -267,6 +283,28 @@ public Instance(bool active = true, bool? ageGate = default, bool canRequestInvi [DataMember(Name = "gameServerVersion", EmitDefaultValue = false)] public int GameServerVersion { get; set; } + /// + /// Gets or Sets HardClose + /// + [DataMember(Name = "hardClose", EmitDefaultValue = true)] + public bool? HardClose { get; set; } + + /// + /// Gets or Sets HasCapacityForYou + /// + [DataMember(Name = "hasCapacityForYou", EmitDefaultValue = true)] + public bool HasCapacityForYou { get; set; } + + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /* + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + */ + [DataMember(Name = "hidden", EmitDefaultValue = false)] + public string Hidden { get; set; } + /// /// InstanceID can be \"offline\" on User profiles if you are not friends with that user and \"private\" if you are friends and user is in private instance. /// @@ -321,6 +359,12 @@ public Instance(bool active = true, bool? ageGate = default, bool canRequestInvi [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// + /// Gets or Sets Nonce + /// + [DataMember(Name = "nonce", EmitDefaultValue = false)] + public string Nonce { get; set; } + /// /// A groupId if the instance type is \"group\", null if instance type is public, or a userId otherwise /// @@ -349,64 +393,6 @@ public Instance(bool active = true, bool? ageGate = default, bool canRequestInvi [DataMember(Name = "playerPersistenceEnabled", EmitDefaultValue = true)] public bool? PlayerPersistenceEnabled { get; set; } - /// - /// Gets or Sets SecureName - /// - /* - 7eavhhng - */ - [DataMember(Name = "secureName", IsRequired = true, EmitDefaultValue = true)] - public string SecureName { get; set; } - - /// - /// Gets or Sets ShortName - /// - /* - 02u7yz8j - */ - [DataMember(Name = "shortName", EmitDefaultValue = true)] - public string ShortName { get; set; } - - /// - /// The tags array on Instances usually contain the language tags of the people in the instance. - /// - /// The tags array on Instances usually contain the language tags of the people in the instance. - /* - ["show_social_rank","language_eng","language_jpn"] - */ - [DataMember(Name = "tags", IsRequired = true, EmitDefaultValue = true)] - public List Tags { get; set; } - - /// - /// WorldID be \"offline\" on User profiles if you are not friends with that user. - /// - /// WorldID be \"offline\" on User profiles if you are not friends with that user. - /* - wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd - */ - [DataMember(Name = "worldId", IsRequired = true, EmitDefaultValue = true)] - public string WorldId { get; set; } - - /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - /* - usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 - */ - [DataMember(Name = "hidden", EmitDefaultValue = false)] - public string Hidden { get; set; } - - /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - /* - usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 - */ - [DataMember(Name = "friends", EmitDefaultValue = false)] - public string Friends { get; set; } - /// /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// @@ -447,12 +433,40 @@ public Instance(bool active = true, bool? ageGate = default, bool canRequestInvi [DataMember(Name = "roleRestricted", EmitDefaultValue = true)] public bool RoleRestricted { get; set; } + /// + /// Gets or Sets SecureName + /// + /* + 7eavhhng + */ + [DataMember(Name = "secureName", IsRequired = true, EmitDefaultValue = true)] + public string SecureName { get; set; } + + /// + /// Gets or Sets ShortName + /// + /* + 02u7yz8j + */ + [DataMember(Name = "shortName", EmitDefaultValue = true)] + public string ShortName { get; set; } + /// /// Gets or Sets Strict /// [DataMember(Name = "strict", IsRequired = true, EmitDefaultValue = true)] public bool Strict { get; set; } + /// + /// The tags array on Instances usually contain the language tags of the people in the instance. + /// + /// The tags array on Instances usually contain the language tags of the people in the instance. + /* + ["language_eng","language_jpn","show_social_rank"] + */ + [DataMember(Name = "tags", IsRequired = true, EmitDefaultValue = true)] + public List Tags { get; set; } + /// /// Gets or Sets UserCount /// @@ -462,12 +476,6 @@ public Instance(bool active = true, bool? ageGate = default, bool canRequestInvi [DataMember(Name = "userCount", IsRequired = true, EmitDefaultValue = true)] public int UserCount { get; set; } - /// - /// Gets or Sets World - /// - [DataMember(Name = "world", IsRequired = true, EmitDefaultValue = true)] - public World World { get; set; } - /// /// The users field is present on instances created by the requesting user. /// @@ -476,28 +484,20 @@ public Instance(bool active = true, bool? ageGate = default, bool canRequestInvi public List Users { get; set; } /// - /// Gets or Sets HasCapacityForYou - /// - [DataMember(Name = "hasCapacityForYou", EmitDefaultValue = true)] - public bool HasCapacityForYou { get; set; } - - /// - /// Gets or Sets Nonce - /// - [DataMember(Name = "nonce", EmitDefaultValue = false)] - public string Nonce { get; set; } - - /// - /// Gets or Sets ClosedAt + /// Gets or Sets World /// - [DataMember(Name = "closedAt", EmitDefaultValue = true)] - public DateTime? ClosedAt { get; set; } + [DataMember(Name = "world", IsRequired = true, EmitDefaultValue = true)] + public World World { get; set; } /// - /// Gets or Sets HardClose + /// WorldID be \"offline\" on User profiles if you are not friends with that user. /// - [DataMember(Name = "hardClose", EmitDefaultValue = true)] - public bool? HardClose { get; set; } + /// WorldID be \"offline\" on User profiles if you are not friends with that user. + /* + wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd + */ + [DataMember(Name = "worldId", IsRequired = true, EmitDefaultValue = true)] + public string WorldId { get; set; } /// /// Returns the string presentation of the object @@ -512,43 +512,43 @@ public override string ToString() sb.Append(" CanRequestInvite: ").Append(CanRequestInvite).Append("\n"); sb.Append(" Capacity: ").Append(Capacity).Append("\n"); sb.Append(" ClientNumber: ").Append(ClientNumber).Append("\n"); + sb.Append(" ClosedAt: ").Append(ClosedAt).Append("\n"); sb.Append(" ContentSettings: ").Append(ContentSettings).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append(" Friends: ").Append(Friends).Append("\n"); sb.Append(" Full: ").Append(Full).Append("\n"); sb.Append(" GameServerVersion: ").Append(GameServerVersion).Append("\n"); + sb.Append(" GroupAccessType: ").Append(GroupAccessType).Append("\n"); + sb.Append(" HardClose: ").Append(HardClose).Append("\n"); + sb.Append(" HasCapacityForYou: ").Append(HasCapacityForYou).Append("\n"); + sb.Append(" Hidden: ").Append(Hidden).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" InstanceId: ").Append(InstanceId).Append("\n"); sb.Append(" InstancePersistenceEnabled: ").Append(InstancePersistenceEnabled).Append("\n"); sb.Append(" Location: ").Append(Location).Append("\n"); sb.Append(" NUsers: ").Append(NUsers).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Nonce: ").Append(Nonce).Append("\n"); sb.Append(" OwnerId: ").Append(OwnerId).Append("\n"); sb.Append(" Permanent: ").Append(Permanent).Append("\n"); sb.Append(" PhotonRegion: ").Append(PhotonRegion).Append("\n"); sb.Append(" Platforms: ").Append(Platforms).Append("\n"); sb.Append(" PlayerPersistenceEnabled: ").Append(PlayerPersistenceEnabled).Append("\n"); - sb.Append(" Region: ").Append(Region).Append("\n"); - sb.Append(" SecureName: ").Append(SecureName).Append("\n"); - sb.Append(" ShortName: ").Append(ShortName).Append("\n"); - sb.Append(" Tags: ").Append(Tags).Append("\n"); - sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" WorldId: ").Append(WorldId).Append("\n"); - sb.Append(" Hidden: ").Append(Hidden).Append("\n"); - sb.Append(" Friends: ").Append(Friends).Append("\n"); sb.Append(" Private: ").Append(Private).Append("\n"); sb.Append(" QueueEnabled: ").Append(QueueEnabled).Append("\n"); sb.Append(" QueueSize: ").Append(QueueSize).Append("\n"); sb.Append(" RecommendedCapacity: ").Append(RecommendedCapacity).Append("\n"); + sb.Append(" Region: ").Append(Region).Append("\n"); sb.Append(" RoleRestricted: ").Append(RoleRestricted).Append("\n"); + sb.Append(" SecureName: ").Append(SecureName).Append("\n"); + sb.Append(" ShortName: ").Append(ShortName).Append("\n"); sb.Append(" Strict: ").Append(Strict).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" UserCount: ").Append(UserCount).Append("\n"); - sb.Append(" World: ").Append(World).Append("\n"); sb.Append(" Users: ").Append(Users).Append("\n"); - sb.Append(" GroupAccessType: ").Append(GroupAccessType).Append("\n"); - sb.Append(" HasCapacityForYou: ").Append(HasCapacityForYou).Append("\n"); - sb.Append(" Nonce: ").Append(Nonce).Append("\n"); - sb.Append(" ClosedAt: ").Append(ClosedAt).Append("\n"); - sb.Append(" HardClose: ").Append(HardClose).Append("\n"); + sb.Append(" World: ").Append(World).Append("\n"); + sb.Append(" WorldId: ").Append(WorldId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -606,6 +606,11 @@ public bool Equals(Instance input) (this.ClientNumber != null && this.ClientNumber.Equals(input.ClientNumber)) ) && + ( + this.ClosedAt == input.ClosedAt || + (this.ClosedAt != null && + this.ClosedAt.Equals(input.ClosedAt)) + ) && ( this.ContentSettings == input.ContentSettings || (this.ContentSettings != null && @@ -616,6 +621,11 @@ public bool Equals(Instance input) (this.DisplayName != null && this.DisplayName.Equals(input.DisplayName)) ) && + ( + this.Friends == input.Friends || + (this.Friends != null && + this.Friends.Equals(input.Friends)) + ) && ( this.Full == input.Full || this.Full.Equals(input.Full) @@ -624,6 +634,24 @@ public bool Equals(Instance input) this.GameServerVersion == input.GameServerVersion || this.GameServerVersion.Equals(input.GameServerVersion) ) && + ( + this.GroupAccessType == input.GroupAccessType || + this.GroupAccessType.Equals(input.GroupAccessType) + ) && + ( + this.HardClose == input.HardClose || + (this.HardClose != null && + this.HardClose.Equals(input.HardClose)) + ) && + ( + this.HasCapacityForYou == input.HasCapacityForYou || + this.HasCapacityForYou.Equals(input.HasCapacityForYou) + ) && + ( + this.Hidden == input.Hidden || + (this.Hidden != null && + this.Hidden.Equals(input.Hidden)) + ) && ( this.Id == input.Id || (this.Id != null && @@ -653,6 +681,11 @@ public bool Equals(Instance input) (this.Name != null && this.Name.Equals(input.Name)) ) && + ( + this.Nonce == input.Nonce || + (this.Nonce != null && + this.Nonce.Equals(input.Nonce)) + ) && ( this.OwnerId == input.OwnerId || (this.OwnerId != null && @@ -676,45 +709,6 @@ public bool Equals(Instance input) (this.PlayerPersistenceEnabled != null && this.PlayerPersistenceEnabled.Equals(input.PlayerPersistenceEnabled)) ) && - ( - this.Region == input.Region || - this.Region.Equals(input.Region) - ) && - ( - this.SecureName == input.SecureName || - (this.SecureName != null && - this.SecureName.Equals(input.SecureName)) - ) && - ( - this.ShortName == input.ShortName || - (this.ShortName != null && - this.ShortName.Equals(input.ShortName)) - ) && - ( - this.Tags == input.Tags || - this.Tags != null && - input.Tags != null && - this.Tags.SequenceEqual(input.Tags) - ) && - ( - this.Type == input.Type || - this.Type.Equals(input.Type) - ) && - ( - this.WorldId == input.WorldId || - (this.WorldId != null && - this.WorldId.Equals(input.WorldId)) - ) && - ( - this.Hidden == input.Hidden || - (this.Hidden != null && - this.Hidden.Equals(input.Hidden)) - ) && - ( - this.Friends == input.Friends || - (this.Friends != null && - this.Friends.Equals(input.Friends)) - ) && ( this.Private == input.Private || (this.Private != null && @@ -732,51 +726,57 @@ public bool Equals(Instance input) this.RecommendedCapacity == input.RecommendedCapacity || this.RecommendedCapacity.Equals(input.RecommendedCapacity) ) && + ( + this.Region == input.Region || + this.Region.Equals(input.Region) + ) && ( this.RoleRestricted == input.RoleRestricted || this.RoleRestricted.Equals(input.RoleRestricted) ) && ( - this.Strict == input.Strict || - this.Strict.Equals(input.Strict) + this.SecureName == input.SecureName || + (this.SecureName != null && + this.SecureName.Equals(input.SecureName)) ) && ( - this.UserCount == input.UserCount || - this.UserCount.Equals(input.UserCount) + this.ShortName == input.ShortName || + (this.ShortName != null && + this.ShortName.Equals(input.ShortName)) ) && ( - this.World == input.World || - (this.World != null && - this.World.Equals(input.World)) + this.Strict == input.Strict || + this.Strict.Equals(input.Strict) ) && ( - this.Users == input.Users || - this.Users != null && - input.Users != null && - this.Users.SequenceEqual(input.Users) + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) ) && ( - this.GroupAccessType == input.GroupAccessType || - this.GroupAccessType.Equals(input.GroupAccessType) + this.Type == input.Type || + this.Type.Equals(input.Type) ) && ( - this.HasCapacityForYou == input.HasCapacityForYou || - this.HasCapacityForYou.Equals(input.HasCapacityForYou) + this.UserCount == input.UserCount || + this.UserCount.Equals(input.UserCount) ) && ( - this.Nonce == input.Nonce || - (this.Nonce != null && - this.Nonce.Equals(input.Nonce)) + this.Users == input.Users || + this.Users != null && + input.Users != null && + this.Users.SequenceEqual(input.Users) ) && ( - this.ClosedAt == input.ClosedAt || - (this.ClosedAt != null && - this.ClosedAt.Equals(input.ClosedAt)) + this.World == input.World || + (this.World != null && + this.World.Equals(input.World)) ) && ( - this.HardClose == input.HardClose || - (this.HardClose != null && - this.HardClose.Equals(input.HardClose)) + this.WorldId == input.WorldId || + (this.WorldId != null && + this.WorldId.Equals(input.WorldId)) ); } @@ -800,6 +800,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ClientNumber.GetHashCode(); } + if (this.ClosedAt != null) + { + hashCode = (hashCode * 59) + this.ClosedAt.GetHashCode(); + } if (this.ContentSettings != null) { hashCode = (hashCode * 59) + this.ContentSettings.GetHashCode(); @@ -808,8 +812,22 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); } + if (this.Friends != null) + { + hashCode = (hashCode * 59) + this.Friends.GetHashCode(); + } hashCode = (hashCode * 59) + this.Full.GetHashCode(); hashCode = (hashCode * 59) + this.GameServerVersion.GetHashCode(); + hashCode = (hashCode * 59) + this.GroupAccessType.GetHashCode(); + if (this.HardClose != null) + { + hashCode = (hashCode * 59) + this.HardClose.GetHashCode(); + } + hashCode = (hashCode * 59) + this.HasCapacityForYou.GetHashCode(); + if (this.Hidden != null) + { + hashCode = (hashCode * 59) + this.Hidden.GetHashCode(); + } if (this.Id != null) { hashCode = (hashCode * 59) + this.Id.GetHashCode(); @@ -831,6 +849,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Name.GetHashCode(); } + if (this.Nonce != null) + { + hashCode = (hashCode * 59) + this.Nonce.GetHashCode(); + } if (this.OwnerId != null) { hashCode = (hashCode * 59) + this.OwnerId.GetHashCode(); @@ -845,7 +867,15 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.PlayerPersistenceEnabled.GetHashCode(); } + if (this.Private != null) + { + hashCode = (hashCode * 59) + this.Private.GetHashCode(); + } + hashCode = (hashCode * 59) + this.QueueEnabled.GetHashCode(); + hashCode = (hashCode * 59) + this.QueueSize.GetHashCode(); + hashCode = (hashCode * 59) + this.RecommendedCapacity.GetHashCode(); hashCode = (hashCode * 59) + this.Region.GetHashCode(); + hashCode = (hashCode * 59) + this.RoleRestricted.GetHashCode(); if (this.SecureName != null) { hashCode = (hashCode * 59) + this.SecureName.GetHashCode(); @@ -854,54 +884,24 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ShortName.GetHashCode(); } + hashCode = (hashCode * 59) + this.Strict.GetHashCode(); if (this.Tags != null) { hashCode = (hashCode * 59) + this.Tags.GetHashCode(); } hashCode = (hashCode * 59) + this.Type.GetHashCode(); - if (this.WorldId != null) - { - hashCode = (hashCode * 59) + this.WorldId.GetHashCode(); - } - if (this.Hidden != null) - { - hashCode = (hashCode * 59) + this.Hidden.GetHashCode(); - } - if (this.Friends != null) - { - hashCode = (hashCode * 59) + this.Friends.GetHashCode(); - } - if (this.Private != null) - { - hashCode = (hashCode * 59) + this.Private.GetHashCode(); - } - hashCode = (hashCode * 59) + this.QueueEnabled.GetHashCode(); - hashCode = (hashCode * 59) + this.QueueSize.GetHashCode(); - hashCode = (hashCode * 59) + this.RecommendedCapacity.GetHashCode(); - hashCode = (hashCode * 59) + this.RoleRestricted.GetHashCode(); - hashCode = (hashCode * 59) + this.Strict.GetHashCode(); hashCode = (hashCode * 59) + this.UserCount.GetHashCode(); - if (this.World != null) - { - hashCode = (hashCode * 59) + this.World.GetHashCode(); - } if (this.Users != null) { hashCode = (hashCode * 59) + this.Users.GetHashCode(); } - hashCode = (hashCode * 59) + this.GroupAccessType.GetHashCode(); - hashCode = (hashCode * 59) + this.HasCapacityForYou.GetHashCode(); - if (this.Nonce != null) - { - hashCode = (hashCode * 59) + this.Nonce.GetHashCode(); - } - if (this.ClosedAt != null) + if (this.World != null) { - hashCode = (hashCode * 59) + this.ClosedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.World.GetHashCode(); } - if (this.HardClose != null) + if (this.WorldId != null) { - hashCode = (hashCode * 59) + this.HardClose.GetHashCode(); + hashCode = (hashCode * 59) + this.WorldId.GetHashCode(); } return hashCode; } @@ -938,18 +938,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); } - // SecureName (string) minLength - if (this.SecureName != null && this.SecureName.Length < 1) - { - yield return new ValidationResult("Invalid value for SecureName, length must be greater than 1.", new [] { "SecureName" }); - } - - // ShortName (string) minLength - if (this.ShortName != null && this.ShortName.Length < 1) - { - yield return new ValidationResult("Invalid value for ShortName, length must be greater than 1.", new [] { "ShortName" }); - } - // QueueSize (int) minimum if (this.QueueSize < (int)0) { @@ -962,6 +950,18 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for RecommendedCapacity, must be a value greater than or equal to 0.", new [] { "RecommendedCapacity" }); } + // SecureName (string) minLength + if (this.SecureName != null && this.SecureName.Length < 1) + { + yield return new ValidationResult("Invalid value for SecureName, length must be greater than 1.", new [] { "SecureName" }); + } + + // ShortName (string) minLength + if (this.ShortName != null && this.ShortName.Length < 1) + { + yield return new ValidationResult("Invalid value for ShortName, length must be greater than 1.", new [] { "ShortName" }); + } + // UserCount (int) minimum if (this.UserCount < (int)0) { diff --git a/src/VRChat.API/Model/InstanceContentSettings.cs b/src/VRChat.API/Model/InstanceContentSettings.cs index 1e0a4b30..ff758b02 100644 --- a/src/VRChat.API/Model/InstanceContentSettings.cs +++ b/src/VRChat.API/Model/InstanceContentSettings.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,16 +39,16 @@ public partial class InstanceContentSettings : IEquatableemoji (default to true). /// pedestals (default to true). /// prints (default to true). - /// stickers (default to true). /// props (default to true). - public InstanceContentSettings(bool drones = true, bool emoji = true, bool pedestals = true, bool prints = true, bool stickers = true, bool props = true) + /// stickers (default to true). + public InstanceContentSettings(bool drones = true, bool emoji = true, bool pedestals = true, bool prints = true, bool props = true, bool stickers = true) { this.Drones = drones; this.Emoji = emoji; this.Pedestals = pedestals; this.Prints = prints; - this.Stickers = stickers; this.Props = props; + this.Stickers = stickers; } /// @@ -75,18 +75,18 @@ public InstanceContentSettings(bool drones = true, bool emoji = true, bool pedes [DataMember(Name = "prints", EmitDefaultValue = true)] public bool Prints { get; set; } - /// - /// Gets or Sets Stickers - /// - [DataMember(Name = "stickers", EmitDefaultValue = true)] - public bool Stickers { get; set; } - /// /// Gets or Sets Props /// [DataMember(Name = "props", EmitDefaultValue = true)] public bool Props { get; set; } + /// + /// Gets or Sets Stickers + /// + [DataMember(Name = "stickers", EmitDefaultValue = true)] + public bool Stickers { get; set; } + /// /// Returns the string presentation of the object /// @@ -99,8 +99,8 @@ public override string ToString() sb.Append(" Emoji: ").Append(Emoji).Append("\n"); sb.Append(" Pedestals: ").Append(Pedestals).Append("\n"); sb.Append(" Prints: ").Append(Prints).Append("\n"); - sb.Append(" Stickers: ").Append(Stickers).Append("\n"); sb.Append(" Props: ").Append(Props).Append("\n"); + sb.Append(" Stickers: ").Append(Stickers).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -152,13 +152,13 @@ public bool Equals(InstanceContentSettings input) this.Prints == input.Prints || this.Prints.Equals(input.Prints) ) && - ( - this.Stickers == input.Stickers || - this.Stickers.Equals(input.Stickers) - ) && ( this.Props == input.Props || this.Props.Equals(input.Props) + ) && + ( + this.Stickers == input.Stickers || + this.Stickers.Equals(input.Stickers) ); } @@ -175,8 +175,8 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.Emoji.GetHashCode(); hashCode = (hashCode * 59) + this.Pedestals.GetHashCode(); hashCode = (hashCode * 59) + this.Prints.GetHashCode(); - hashCode = (hashCode * 59) + this.Stickers.GetHashCode(); hashCode = (hashCode * 59) + this.Props.GetHashCode(); + hashCode = (hashCode * 59) + this.Stickers.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/InstancePlatforms.cs b/src/VRChat.API/Model/InstancePlatforms.cs index 9e2f6641..6fc9bbba 100644 --- a/src/VRChat.API/Model/InstancePlatforms.cs +++ b/src/VRChat.API/Model/InstancePlatforms.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InstanceRegion.cs b/src/VRChat.API/Model/InstanceRegion.cs index 2decfc60..7abe60f2 100644 --- a/src/VRChat.API/Model/InstanceRegion.cs +++ b/src/VRChat.API/Model/InstanceRegion.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,35 +33,35 @@ namespace VRChat.API.Model [JsonConverter(typeof(StringEnumConverter))] public enum InstanceRegion { - /// - /// Enum Us for value: us - /// - [EnumMember(Value = "us")] - Us = 1, - - /// - /// Enum Use for value: use - /// - [EnumMember(Value = "use")] - Use = 2, - /// /// Enum Eu for value: eu /// [EnumMember(Value = "eu")] - Eu = 3, + Eu = 1, /// /// Enum Jp for value: jp /// [EnumMember(Value = "jp")] - Jp = 4, + Jp = 2, /// /// Enum Unknown for value: unknown /// [EnumMember(Value = "unknown")] - Unknown = 5 + Unknown = 3, + + /// + /// Enum Us for value: us + /// + [EnumMember(Value = "us")] + Us = 4, + + /// + /// Enum Use for value: use + /// + [EnumMember(Value = "use")] + Use = 5 } } diff --git a/src/VRChat.API/Model/InstanceShortNameResponse.cs b/src/VRChat.API/Model/InstanceShortNameResponse.cs index 843097d5..da266b81 100644 --- a/src/VRChat.API/Model/InstanceShortNameResponse.cs +++ b/src/VRChat.API/Model/InstanceShortNameResponse.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InstanceType.cs b/src/VRChat.API/Model/InstanceType.cs index 5753fbec..408f71c2 100644 --- a/src/VRChat.API/Model/InstanceType.cs +++ b/src/VRChat.API/Model/InstanceType.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,22 +33,22 @@ namespace VRChat.API.Model public enum InstanceType { /// - /// Enum Public for value: public + /// Enum Friends for value: friends /// - [EnumMember(Value = "public")] - Public = 1, + [EnumMember(Value = "friends")] + Friends = 1, /// - /// Enum Hidden for value: hidden + /// Enum Group for value: group /// - [EnumMember(Value = "hidden")] - Hidden = 2, + [EnumMember(Value = "group")] + Group = 2, /// - /// Enum Friends for value: friends + /// Enum Hidden for value: hidden /// - [EnumMember(Value = "friends")] - Friends = 3, + [EnumMember(Value = "hidden")] + Hidden = 3, /// /// Enum Private for value: private @@ -57,10 +57,10 @@ public enum InstanceType Private = 4, /// - /// Enum Group for value: group + /// Enum Public for value: public /// - [EnumMember(Value = "group")] - Group = 5 + [EnumMember(Value = "public")] + Public = 5 } } diff --git a/src/VRChat.API/Model/Inventory.cs b/src/VRChat.API/Model/Inventory.cs index c202f69b..92cab17e 100644 --- a/src/VRChat.API/Model/Inventory.cs +++ b/src/VRChat.API/Model/Inventory.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InventoryConsumptionResults.cs b/src/VRChat.API/Model/InventoryConsumptionResults.cs new file mode 100644 index 00000000..4737e5ec --- /dev/null +++ b/src/VRChat.API/Model/InventoryConsumptionResults.cs @@ -0,0 +1,178 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.20.7-nightly.3 + * Contact: vrchatapi.lpv0t@aries.fyi + * 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 FileParameter = VRChat.API.Client.FileParameter; +using OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// InventoryConsumptionResults + /// + [DataContract(Name = "InventoryConsumptionResults")] + public partial class InventoryConsumptionResults : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected InventoryConsumptionResults() { } + /// + /// Initializes a new instance of the class. + /// + /// errors (required). + /// inventoryItems (required). + /// inventoryItemsCreated (required). + public InventoryConsumptionResults(List errors = default, List inventoryItems = default, int inventoryItemsCreated = default) + { + // to ensure "errors" is required (not null) + if (errors == null) + { + throw new ArgumentNullException("errors is a required property for InventoryConsumptionResults and cannot be null"); + } + this.Errors = errors; + // to ensure "inventoryItems" is required (not null) + if (inventoryItems == null) + { + throw new ArgumentNullException("inventoryItems is a required property for InventoryConsumptionResults and cannot be null"); + } + this.InventoryItems = inventoryItems; + this.InventoryItemsCreated = inventoryItemsCreated; + } + + /// + /// Gets or Sets Errors + /// + [DataMember(Name = "errors", IsRequired = true, EmitDefaultValue = true)] + public List Errors { get; set; } + + /// + /// Gets or Sets InventoryItems + /// + [DataMember(Name = "inventoryItems", IsRequired = true, EmitDefaultValue = true)] + public List InventoryItems { get; set; } + + /// + /// Gets or Sets InventoryItemsCreated + /// + [DataMember(Name = "inventoryItemsCreated", IsRequired = true, EmitDefaultValue = true)] + public int InventoryItemsCreated { 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 InventoryConsumptionResults {\n"); + sb.Append(" Errors: ").Append(Errors).Append("\n"); + sb.Append(" InventoryItems: ").Append(InventoryItems).Append("\n"); + sb.Append(" InventoryItemsCreated: ").Append(InventoryItemsCreated).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as InventoryConsumptionResults); + } + + /// + /// Returns true if InventoryConsumptionResults instances are equal + /// + /// Instance of InventoryConsumptionResults to be compared + /// Boolean + public bool Equals(InventoryConsumptionResults input) + { + if (input == null) + { + return false; + } + return + ( + this.Errors == input.Errors || + this.Errors != null && + input.Errors != null && + this.Errors.SequenceEqual(input.Errors) + ) && + ( + this.InventoryItems == input.InventoryItems || + this.InventoryItems != null && + input.InventoryItems != null && + this.InventoryItems.SequenceEqual(input.InventoryItems) + ) && + ( + this.InventoryItemsCreated == input.InventoryItemsCreated || + this.InventoryItemsCreated.Equals(input.InventoryItemsCreated) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Errors != null) + { + hashCode = (hashCode * 59) + this.Errors.GetHashCode(); + } + if (this.InventoryItems != null) + { + hashCode = (hashCode * 59) + this.InventoryItems.GetHashCode(); + } + hashCode = (hashCode * 59) + this.InventoryItemsCreated.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/VRChat.API/Model/InventoryDefaultAttributesValue.cs b/src/VRChat.API/Model/InventoryDefaultAttributesValue.cs index f16ab8dc..75592a43 100644 --- a/src/VRChat.API/Model/InventoryDefaultAttributesValue.cs +++ b/src/VRChat.API/Model/InventoryDefaultAttributesValue.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InventoryDefaultAttributesValueValidator.cs b/src/VRChat.API/Model/InventoryDefaultAttributesValueValidator.cs index c493e4fc..07cba4e9 100644 --- a/src/VRChat.API/Model/InventoryDefaultAttributesValueValidator.cs +++ b/src/VRChat.API/Model/InventoryDefaultAttributesValueValidator.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InventoryDrop.cs b/src/VRChat.API/Model/InventoryDrop.cs index 5439c3ad..0f28bd62 100644 --- a/src/VRChat.API/Model/InventoryDrop.cs +++ b/src/VRChat.API/Model/InventoryDrop.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InventoryEquipSlot.cs b/src/VRChat.API/Model/InventoryEquipSlot.cs index 5b22334a..e377e5c7 100644 --- a/src/VRChat.API/Model/InventoryEquipSlot.cs +++ b/src/VRChat.API/Model/InventoryEquipSlot.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -48,7 +48,13 @@ public enum InventoryEquipSlot /// Enum Portal for value: portal /// [EnumMember(Value = "portal")] - Portal = 3 + Portal = 3, + + /// + /// Enum Warp for value: warp + /// + [EnumMember(Value = "warp")] + Warp = 4 } } diff --git a/src/VRChat.API/Model/InventoryFlag.cs b/src/VRChat.API/Model/InventoryFlag.cs index 52e93466..5e26a652 100644 --- a/src/VRChat.API/Model/InventoryFlag.cs +++ b/src/VRChat.API/Model/InventoryFlag.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,16 +33,16 @@ namespace VRChat.API.Model public enum InventoryFlag { /// - /// Enum Instantiatable for value: instantiatable + /// Enum Archivable for value: archivable /// - [EnumMember(Value = "instantiatable")] - Instantiatable = 1, + [EnumMember(Value = "archivable")] + Archivable = 1, /// - /// Enum Archivable for value: archivable + /// Enum Cloneable for value: cloneable /// - [EnumMember(Value = "archivable")] - Archivable = 2, + [EnumMember(Value = "cloneable")] + Cloneable = 2, /// /// Enum Consumable for value: consumable @@ -51,28 +51,28 @@ public enum InventoryFlag Consumable = 3, /// - /// Enum Trashable for value: trashable + /// Enum Equippable for value: equippable /// - [EnumMember(Value = "trashable")] - Trashable = 4, + [EnumMember(Value = "equippable")] + Equippable = 4, /// - /// Enum Cloneable for value: cloneable + /// Enum Instantiatable for value: instantiatable /// - [EnumMember(Value = "cloneable")] - Cloneable = 5, + [EnumMember(Value = "instantiatable")] + Instantiatable = 5, /// - /// Enum Ugc for value: ugc + /// Enum Trashable for value: trashable /// - [EnumMember(Value = "ugc")] - Ugc = 6, + [EnumMember(Value = "trashable")] + Trashable = 6, /// - /// Enum Equippable for value: equippable + /// Enum Ugc for value: ugc /// - [EnumMember(Value = "equippable")] - Equippable = 7, + [EnumMember(Value = "ugc")] + Ugc = 7, /// /// Enum Unique for value: unique diff --git a/src/VRChat.API/Model/InventoryItem.cs b/src/VRChat.API/Model/InventoryItem.cs index a79278c2..db09e2a1 100644 --- a/src/VRChat.API/Model/InventoryItem.cs +++ b/src/VRChat.API/Model/InventoryItem.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InventoryItemType.cs b/src/VRChat.API/Model/InventoryItemType.cs index 7d0eb45a..455ed4ed 100644 --- a/src/VRChat.API/Model/InventoryItemType.cs +++ b/src/VRChat.API/Model/InventoryItemType.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,10 +39,10 @@ public enum InventoryItemType Bundle = 1, /// - /// Enum Prop for value: prop + /// Enum Droneskin for value: droneskin /// - [EnumMember(Value = "prop")] - Prop = 2, + [EnumMember(Value = "droneskin")] + Droneskin = 2, /// /// Enum Emoji for value: emoji @@ -51,22 +51,28 @@ public enum InventoryItemType Emoji = 3, /// - /// Enum Sticker for value: sticker + /// Enum Portalskin for value: portalskin /// - [EnumMember(Value = "sticker")] - Sticker = 4, + [EnumMember(Value = "portalskin")] + Portalskin = 4, /// - /// Enum Droneskin for value: droneskin + /// Enum Prop for value: prop /// - [EnumMember(Value = "droneskin")] - Droneskin = 5, + [EnumMember(Value = "prop")] + Prop = 5, /// - /// Enum Portalskin for value: portalskin + /// Enum Sticker for value: sticker /// - [EnumMember(Value = "portalskin")] - Portalskin = 6 + [EnumMember(Value = "sticker")] + Sticker = 6, + + /// + /// Enum Warpeffect for value: warpeffect + /// + [EnumMember(Value = "warpeffect")] + Warpeffect = 7 } } diff --git a/src/VRChat.API/Model/InventoryMetadata.cs b/src/VRChat.API/Model/InventoryMetadata.cs index 16e1e4ed..257fd2e3 100644 --- a/src/VRChat.API/Model/InventoryMetadata.cs +++ b/src/VRChat.API/Model/InventoryMetadata.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,33 +35,26 @@ public partial class InventoryMetadata : IEquatable, IValidat /// /// Initializes a new instance of the class. /// - /// Only in bundles. /// animated. /// animationStyle. /// assetBundleId. /// fileId. /// imageUrl. + /// Only in bundles. /// maskTag. /// propId. - public InventoryMetadata(List inventoryItemsToInstantiate = default, bool animated = default, string animationStyle = default, string assetBundleId = default, string fileId = default, string imageUrl = default, string maskTag = default, string propId = default) + public InventoryMetadata(bool animated = default, string animationStyle = default, string assetBundleId = default, string fileId = default, string imageUrl = default, List inventoryItemsToInstantiate = default, string maskTag = default, string propId = default) { - this.InventoryItemsToInstantiate = inventoryItemsToInstantiate; this.Animated = animated; this.AnimationStyle = animationStyle; this.AssetBundleId = assetBundleId; this.FileId = fileId; this.ImageUrl = imageUrl; + this.InventoryItemsToInstantiate = inventoryItemsToInstantiate; this.MaskTag = maskTag; this.PropId = propId; } - /// - /// Only in bundles - /// - /// Only in bundles - [DataMember(Name = "inventoryItemsToInstantiate", EmitDefaultValue = false)] - public List InventoryItemsToInstantiate { get; set; } - /// /// Gets or Sets Animated /// @@ -92,6 +85,13 @@ public InventoryMetadata(List inventoryItemsToInstantiate = default, boo [DataMember(Name = "imageUrl", EmitDefaultValue = false)] public string ImageUrl { get; set; } + /// + /// Only in bundles + /// + /// Only in bundles + [DataMember(Name = "inventoryItemsToInstantiate", EmitDefaultValue = false)] + public List InventoryItemsToInstantiate { get; set; } + /// /// Gets or Sets MaskTag /// @@ -115,12 +115,12 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class InventoryMetadata {\n"); - sb.Append(" InventoryItemsToInstantiate: ").Append(InventoryItemsToInstantiate).Append("\n"); sb.Append(" Animated: ").Append(Animated).Append("\n"); sb.Append(" AnimationStyle: ").Append(AnimationStyle).Append("\n"); sb.Append(" AssetBundleId: ").Append(AssetBundleId).Append("\n"); sb.Append(" FileId: ").Append(FileId).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" InventoryItemsToInstantiate: ").Append(InventoryItemsToInstantiate).Append("\n"); sb.Append(" MaskTag: ").Append(MaskTag).Append("\n"); sb.Append(" PropId: ").Append(PropId).Append("\n"); sb.Append("}\n"); @@ -158,12 +158,6 @@ public bool Equals(InventoryMetadata input) return false; } return - ( - this.InventoryItemsToInstantiate == input.InventoryItemsToInstantiate || - this.InventoryItemsToInstantiate != null && - input.InventoryItemsToInstantiate != null && - this.InventoryItemsToInstantiate.SequenceEqual(input.InventoryItemsToInstantiate) - ) && ( this.Animated == input.Animated || this.Animated.Equals(input.Animated) @@ -188,6 +182,12 @@ public bool Equals(InventoryMetadata input) (this.ImageUrl != null && this.ImageUrl.Equals(input.ImageUrl)) ) && + ( + this.InventoryItemsToInstantiate == input.InventoryItemsToInstantiate || + this.InventoryItemsToInstantiate != null && + input.InventoryItemsToInstantiate != null && + this.InventoryItemsToInstantiate.SequenceEqual(input.InventoryItemsToInstantiate) + ) && ( this.MaskTag == input.MaskTag || (this.MaskTag != null && @@ -209,10 +209,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.InventoryItemsToInstantiate != null) - { - hashCode = (hashCode * 59) + this.InventoryItemsToInstantiate.GetHashCode(); - } hashCode = (hashCode * 59) + this.Animated.GetHashCode(); if (this.AnimationStyle != null) { @@ -230,6 +226,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ImageUrl.GetHashCode(); } + if (this.InventoryItemsToInstantiate != null) + { + hashCode = (hashCode * 59) + this.InventoryItemsToInstantiate.GetHashCode(); + } if (this.MaskTag != null) { hashCode = (hashCode * 59) + this.MaskTag.GetHashCode(); diff --git a/src/VRChat.API/Model/InventoryNotificationDetails.cs b/src/VRChat.API/Model/InventoryNotificationDetails.cs index 0a53debd..3c25e517 100644 --- a/src/VRChat.API/Model/InventoryNotificationDetails.cs +++ b/src/VRChat.API/Model/InventoryNotificationDetails.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InventorySpawn.cs b/src/VRChat.API/Model/InventorySpawn.cs index fd25edbf..6fdded59 100644 --- a/src/VRChat.API/Model/InventorySpawn.cs +++ b/src/VRChat.API/Model/InventorySpawn.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InventoryTemplate.cs b/src/VRChat.API/Model/InventoryTemplate.cs index 0dbf17a0..8a61a41c 100644 --- a/src/VRChat.API/Model/InventoryTemplate.cs +++ b/src/VRChat.API/Model/InventoryTemplate.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InventoryUserAttributes.cs b/src/VRChat.API/Model/InventoryUserAttributes.cs index 65282e59..bd1c014e 100644 --- a/src/VRChat.API/Model/InventoryUserAttributes.cs +++ b/src/VRChat.API/Model/InventoryUserAttributes.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InviteMessage.cs b/src/VRChat.API/Model/InviteMessage.cs index 9d97b8d1..39a2c5a4 100644 --- a/src/VRChat.API/Model/InviteMessage.cs +++ b/src/VRChat.API/Model/InviteMessage.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InviteMessageType.cs b/src/VRChat.API/Model/InviteMessageType.cs index dcd1b737..dce8795f 100644 --- a/src/VRChat.API/Model/InviteMessageType.cs +++ b/src/VRChat.API/Model/InviteMessageType.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -38,23 +38,23 @@ public enum InviteMessageType [EnumMember(Value = "message")] Message = 1, - /// - /// Enum Response for value: response - /// - [EnumMember(Value = "response")] - Response = 2, - /// /// Enum Request for value: request /// [EnumMember(Value = "request")] - Request = 3, + Request = 2, /// /// Enum RequestResponse for value: requestResponse /// [EnumMember(Value = "requestResponse")] - RequestResponse = 4 + RequestResponse = 3, + + /// + /// Enum Response for value: response + /// + [EnumMember(Value = "response")] + Response = 4 } } diff --git a/src/VRChat.API/Model/InviteRequest.cs b/src/VRChat.API/Model/InviteRequest.cs index 82e097b3..f956ad12 100644 --- a/src/VRChat.API/Model/InviteRequest.cs +++ b/src/VRChat.API/Model/InviteRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InviteResponse.cs b/src/VRChat.API/Model/InviteResponse.cs index cc57b45e..15e2319d 100644 --- a/src/VRChat.API/Model/InviteResponse.cs +++ b/src/VRChat.API/Model/InviteResponse.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Jam.cs b/src/VRChat.API/Model/Jam.cs index 4a165344..0bd09a10 100644 --- a/src/VRChat.API/Model/Jam.cs +++ b/src/VRChat.API/Model/Jam.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/JamStateChangeDates.cs b/src/VRChat.API/Model/JamStateChangeDates.cs index a7c7da68..858f793a 100644 --- a/src/VRChat.API/Model/JamStateChangeDates.cs +++ b/src/VRChat.API/Model/JamStateChangeDates.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/License.cs b/src/VRChat.API/Model/License.cs index 4c847da2..f79af8b0 100644 --- a/src/VRChat.API/Model/License.cs +++ b/src/VRChat.API/Model/License.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,17 +33,17 @@ namespace VRChat.API.Model public partial class License : IEquatable, IValidatableObject { - /// - /// Gets or Sets ForType - /// - [DataMember(Name = "forType", IsRequired = true, EmitDefaultValue = true)] - public LicenseType ForType { get; set; } - /// /// Gets or Sets ForAction /// [DataMember(Name = "forAction", IsRequired = true, EmitDefaultValue = true)] public LicenseAction ForAction { get; set; } + + /// + /// Gets or Sets ForType + /// + [DataMember(Name = "forType", IsRequired = true, EmitDefaultValue = true)] + public LicenseType ForType { get; set; } /// /// Initializes a new instance of the class. /// @@ -52,26 +52,26 @@ protected License() { } /// /// Initializes a new instance of the class. /// + /// forAction (required). /// Either a AvatarID, LicenseGroupID, PermissionID or ProductID. This depends on the `forType` field. (required). - /// forType (required). /// forName (required). - /// forAction (required). - public License(string forId = default, LicenseType forType = default, string forName = default, LicenseAction forAction = default) + /// forType (required). + public License(LicenseAction forAction = default, string forId = default, string forName = default, LicenseType forType = default) { + this.ForAction = forAction; // to ensure "forId" is required (not null) if (forId == null) { throw new ArgumentNullException("forId is a required property for License and cannot be null"); } this.ForId = forId; - this.ForType = forType; // to ensure "forName" is required (not null) if (forName == null) { throw new ArgumentNullException("forName is a required property for License and cannot be null"); } this.ForName = forName; - this.ForAction = forAction; + this.ForType = forType; } /// @@ -95,10 +95,10 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class License {\n"); + sb.Append(" ForAction: ").Append(ForAction).Append("\n"); sb.Append(" ForId: ").Append(ForId).Append("\n"); - sb.Append(" ForType: ").Append(ForType).Append("\n"); sb.Append(" ForName: ").Append(ForName).Append("\n"); - sb.Append(" ForAction: ").Append(ForAction).Append("\n"); + sb.Append(" ForType: ").Append(ForType).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -134,23 +134,23 @@ public bool Equals(License input) return false; } return + ( + this.ForAction == input.ForAction || + this.ForAction.Equals(input.ForAction) + ) && ( this.ForId == input.ForId || (this.ForId != null && this.ForId.Equals(input.ForId)) ) && - ( - this.ForType == input.ForType || - this.ForType.Equals(input.ForType) - ) && ( this.ForName == input.ForName || (this.ForName != null && this.ForName.Equals(input.ForName)) ) && ( - this.ForAction == input.ForAction || - this.ForAction.Equals(input.ForAction) + this.ForType == input.ForType || + this.ForType.Equals(input.ForType) ); } @@ -163,16 +163,16 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + hashCode = (hashCode * 59) + this.ForAction.GetHashCode(); if (this.ForId != null) { hashCode = (hashCode * 59) + this.ForId.GetHashCode(); } - hashCode = (hashCode * 59) + this.ForType.GetHashCode(); if (this.ForName != null) { hashCode = (hashCode * 59) + this.ForName.GetHashCode(); } - hashCode = (hashCode * 59) + this.ForAction.GetHashCode(); + hashCode = (hashCode * 59) + this.ForType.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/LicenseAction.cs b/src/VRChat.API/Model/LicenseAction.cs index 8acda95e..fb236bb7 100644 --- a/src/VRChat.API/Model/LicenseAction.cs +++ b/src/VRChat.API/Model/LicenseAction.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,16 +33,16 @@ namespace VRChat.API.Model public enum LicenseAction { /// - /// Enum Wear for value: wear + /// Enum Have for value: have /// - [EnumMember(Value = "wear")] - Wear = 1, + [EnumMember(Value = "have")] + Have = 1, /// - /// Enum Have for value: have + /// Enum Wear for value: wear /// - [EnumMember(Value = "have")] - Have = 2 + [EnumMember(Value = "wear")] + Wear = 2 } } diff --git a/src/VRChat.API/Model/LicenseGroup.cs b/src/VRChat.API/Model/LicenseGroup.cs index aced09d6..73d1aa13 100644 --- a/src/VRChat.API/Model/LicenseGroup.cs +++ b/src/VRChat.API/Model/LicenseGroup.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,38 +40,44 @@ protected LicenseGroup() { } /// /// Initializes a new instance of the class. /// - /// id (required). - /// name (required). /// description (required). + /// id (required). /// licenses (required). - public LicenseGroup(string id = default, string name = default, string description = default, List licenses = default) + /// name (required). + public LicenseGroup(string description = default, string id = default, List licenses = default, string name = default) { - // to ensure "id" is required (not null) - if (id == null) - { - throw new ArgumentNullException("id is a required property for LicenseGroup and cannot be null"); - } - this.Id = id; - // to ensure "name" is required (not null) - if (name == null) - { - throw new ArgumentNullException("name is a required property for LicenseGroup and cannot be null"); - } - this.Name = name; // to ensure "description" is required (not null) if (description == null) { throw new ArgumentNullException("description is a required property for LicenseGroup and cannot be null"); } this.Description = description; + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for LicenseGroup and cannot be null"); + } + this.Id = id; // to ensure "licenses" is required (not null) if (licenses == null) { throw new ArgumentNullException("licenses is a required property for LicenseGroup and cannot be null"); } this.Licenses = licenses; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for LicenseGroup and cannot be null"); + } + this.Name = name; } + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + /// /// Gets or Sets Id /// @@ -81,24 +87,18 @@ public LicenseGroup(string id = default, string name = default, string descripti [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } - /// - /// Gets or Sets Name - /// - [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] - public string Name { get; set; } - - /// - /// Gets or Sets Description - /// - [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] - public string Description { get; set; } - /// /// Gets or Sets Licenses /// [DataMember(Name = "licenses", IsRequired = true, EmitDefaultValue = true)] public List Licenses { get; set; } + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + /// /// Returns the string presentation of the object /// @@ -107,10 +107,10 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class LicenseGroup {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Licenses: ").Append(Licenses).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -146,26 +146,26 @@ public bool Equals(LicenseGroup input) return false; } return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && ( this.Description == input.Description || (this.Description != null && this.Description.Equals(input.Description)) ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && ( this.Licenses == input.Licenses || this.Licenses != null && input.Licenses != null && this.Licenses.SequenceEqual(input.Licenses) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ); } @@ -178,22 +178,22 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) - { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - } - if (this.Name != null) - { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); - } if (this.Description != null) { hashCode = (hashCode * 59) + this.Description.GetHashCode(); } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.Licenses != null) { hashCode = (hashCode * 59) + this.Licenses.GetHashCode(); } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } return hashCode; } } diff --git a/src/VRChat.API/Model/LicenseType.cs b/src/VRChat.API/Model/LicenseType.cs index 4ad98929..e9bcc727 100644 --- a/src/VRChat.API/Model/LicenseType.cs +++ b/src/VRChat.API/Model/LicenseType.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/LimitedGroup.cs b/src/VRChat.API/Model/LimitedGroup.cs index be46e466..0edf09af 100644 --- a/src/VRChat.API/Model/LimitedGroup.cs +++ b/src/VRChat.API/Model/LimitedGroup.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,82 +41,89 @@ public partial class LimitedGroup : IEquatable, IValidatableObject /// /// Initializes a new instance of the class. /// - /// id. - /// name. - /// shortCode. - /// discriminator. + /// bannerId. + /// bannerUrl. + /// createdAt. /// description. + /// discriminator. + /// . + /// iconId. /// iconUrl. - /// bannerUrl. + /// id. + /// isSearchable. + /// memberCount. + /// membershipStatus. + /// name. /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. /// rules. - /// iconId. - /// bannerId. - /// memberCount. + /// shortCode. /// . - /// createdAt. - /// membershipStatus. - /// isSearchable. - /// . - public LimitedGroup(string id = default, string name = default, string shortCode = default, string discriminator = default, string description = default, string iconUrl = default, string bannerUrl = default, string ownerId = default, string rules = default, string iconId = default, string bannerId = default, int memberCount = default, List tags = default, DateTime createdAt = default, GroupMemberStatus? membershipStatus = default, bool isSearchable = default, List galleries = default) + public LimitedGroup(string bannerId = default, string bannerUrl = default, DateTime createdAt = default, string description = default, string discriminator = default, List galleries = default, string iconId = default, string iconUrl = default, string id = default, bool isSearchable = default, int memberCount = default, GroupMemberStatus? membershipStatus = default, string name = default, string ownerId = default, string rules = default, string shortCode = default, List tags = default) { - this.Id = id; - this.Name = name; - this.ShortCode = shortCode; - this.Discriminator = discriminator; + this.BannerId = bannerId; + this.BannerUrl = bannerUrl; + this.CreatedAt = createdAt; this.Description = description; + this.Discriminator = discriminator; + this.Galleries = galleries; + this.IconId = iconId; this.IconUrl = iconUrl; - this.BannerUrl = bannerUrl; + this.Id = id; + this.IsSearchable = isSearchable; + this.MemberCount = memberCount; + this.MembershipStatus = membershipStatus; + this.Name = name; this.OwnerId = ownerId; this.Rules = rules; - this.IconId = iconId; - this.BannerId = bannerId; - this.MemberCount = memberCount; + this.ShortCode = shortCode; this.Tags = tags; - this.CreatedAt = createdAt; - this.MembershipStatus = membershipStatus; - this.IsSearchable = isSearchable; - this.Galleries = galleries; } /// - /// Gets or Sets Id + /// Gets or Sets BannerId /// - /* - grp_71a7ff59-112c-4e78-a990-c7cc650776e5 - */ - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + [DataMember(Name = "bannerId", EmitDefaultValue = true)] + public string BannerId { get; set; } /// - /// Gets or Sets Name + /// Gets or Sets BannerUrl /// - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + [DataMember(Name = "bannerUrl", EmitDefaultValue = true)] + public string BannerUrl { get; set; } /// - /// Gets or Sets ShortCode + /// Gets or Sets CreatedAt /// - /* - ABC123 - */ - [DataMember(Name = "shortCode", EmitDefaultValue = false)] - public string ShortCode { get; set; } + [DataMember(Name = "createdAt", EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } /// /// Gets or Sets Discriminator /// /* - 1234 + 0000 */ [DataMember(Name = "discriminator", EmitDefaultValue = false)] public string Discriminator { get; set; } /// - /// Gets or Sets Description + /// /// - [DataMember(Name = "description", EmitDefaultValue = false)] - public string Description { get; set; } + /// + [DataMember(Name = "galleries", EmitDefaultValue = false)] + public List Galleries { get; set; } + + /// + /// Gets or Sets IconId + /// + [DataMember(Name = "iconId", EmitDefaultValue = true)] + public string IconId { get; set; } /// /// Gets or Sets IconUrl @@ -125,10 +132,31 @@ public LimitedGroup(string id = default, string name = default, string shortCode public string IconUrl { get; set; } /// - /// Gets or Sets BannerUrl + /// Gets or Sets Id /// - [DataMember(Name = "bannerUrl", EmitDefaultValue = true)] - public string BannerUrl { get; set; } + /* + grp_71a7ff59-112c-4e78-a990-c7cc650776e5 + */ + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets IsSearchable + /// + [DataMember(Name = "isSearchable", EmitDefaultValue = true)] + public bool IsSearchable { get; set; } + + /// + /// Gets or Sets MemberCount + /// + [DataMember(Name = "memberCount", EmitDefaultValue = false)] + public int MemberCount { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } /// /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. @@ -147,22 +175,13 @@ public LimitedGroup(string id = default, string name = default, string shortCode public string Rules { get; set; } /// - /// Gets or Sets IconId - /// - [DataMember(Name = "iconId", EmitDefaultValue = true)] - public string IconId { get; set; } - - /// - /// Gets or Sets BannerId - /// - [DataMember(Name = "bannerId", EmitDefaultValue = true)] - public string BannerId { get; set; } - - /// - /// Gets or Sets MemberCount + /// Gets or Sets ShortCode /// - [DataMember(Name = "memberCount", EmitDefaultValue = false)] - public int MemberCount { get; set; } + /* + VRCHAT + */ + [DataMember(Name = "shortCode", EmitDefaultValue = false)] + public string ShortCode { get; set; } /// /// @@ -171,25 +190,6 @@ public LimitedGroup(string id = default, string name = default, string shortCode [DataMember(Name = "tags", EmitDefaultValue = false)] public List Tags { get; set; } - /// - /// Gets or Sets CreatedAt - /// - [DataMember(Name = "createdAt", EmitDefaultValue = false)] - public DateTime CreatedAt { get; set; } - - /// - /// Gets or Sets IsSearchable - /// - [DataMember(Name = "isSearchable", EmitDefaultValue = true)] - public bool IsSearchable { get; set; } - - /// - /// - /// - /// - [DataMember(Name = "galleries", EmitDefaultValue = false)] - public List Galleries { get; set; } - /// /// Returns the string presentation of the object /// @@ -198,23 +198,23 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class LimitedGroup {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ShortCode: ").Append(ShortCode).Append("\n"); - sb.Append(" Discriminator: ").Append(Discriminator).Append("\n"); + sb.Append(" BannerId: ").Append(BannerId).Append("\n"); + sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Discriminator: ").Append(Discriminator).Append("\n"); + sb.Append(" Galleries: ").Append(Galleries).Append("\n"); + sb.Append(" IconId: ").Append(IconId).Append("\n"); sb.Append(" IconUrl: ").Append(IconUrl).Append("\n"); - sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" IsSearchable: ").Append(IsSearchable).Append("\n"); + sb.Append(" MemberCount: ").Append(MemberCount).Append("\n"); + sb.Append(" MembershipStatus: ").Append(MembershipStatus).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" OwnerId: ").Append(OwnerId).Append("\n"); sb.Append(" Rules: ").Append(Rules).Append("\n"); - sb.Append(" IconId: ").Append(IconId).Append("\n"); - sb.Append(" BannerId: ").Append(BannerId).Append("\n"); - sb.Append(" MemberCount: ").Append(MemberCount).Append("\n"); + sb.Append(" ShortCode: ").Append(ShortCode).Append("\n"); sb.Append(" Tags: ").Append(Tags).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" MembershipStatus: ").Append(MembershipStatus).Append("\n"); - sb.Append(" IsSearchable: ").Append(IsSearchable).Append("\n"); - sb.Append(" Galleries: ").Append(Galleries).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -251,19 +251,24 @@ public bool Equals(LimitedGroup input) } return ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) + this.BannerId == input.BannerId || + (this.BannerId != null && + this.BannerId.Equals(input.BannerId)) ) && ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) + this.BannerUrl == input.BannerUrl || + (this.BannerUrl != null && + this.BannerUrl.Equals(input.BannerUrl)) ) && ( - this.ShortCode == input.ShortCode || - (this.ShortCode != null && - this.ShortCode.Equals(input.ShortCode)) + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) ) && ( this.Discriminator == input.Discriminator || @@ -271,9 +276,15 @@ public bool Equals(LimitedGroup input) this.Discriminator.Equals(input.Discriminator)) ) && ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) + this.Galleries == input.Galleries || + this.Galleries != null && + input.Galleries != null && + this.Galleries.SequenceEqual(input.Galleries) + ) && + ( + this.IconId == input.IconId || + (this.IconId != null && + this.IconId.Equals(input.IconId)) ) && ( this.IconUrl == input.IconUrl || @@ -281,9 +292,26 @@ public bool Equals(LimitedGroup input) this.IconUrl.Equals(input.IconUrl)) ) && ( - this.BannerUrl == input.BannerUrl || - (this.BannerUrl != null && - this.BannerUrl.Equals(input.BannerUrl)) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.IsSearchable == input.IsSearchable || + this.IsSearchable.Equals(input.IsSearchable) + ) && + ( + this.MemberCount == input.MemberCount || + this.MemberCount.Equals(input.MemberCount) + ) && + ( + this.MembershipStatus == input.MembershipStatus || + this.MembershipStatus.Equals(input.MembershipStatus) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( this.OwnerId == input.OwnerId || @@ -296,43 +324,15 @@ public bool Equals(LimitedGroup input) this.Rules.Equals(input.Rules)) ) && ( - this.IconId == input.IconId || - (this.IconId != null && - this.IconId.Equals(input.IconId)) - ) && - ( - this.BannerId == input.BannerId || - (this.BannerId != null && - this.BannerId.Equals(input.BannerId)) - ) && - ( - this.MemberCount == input.MemberCount || - this.MemberCount.Equals(input.MemberCount) + this.ShortCode == input.ShortCode || + (this.ShortCode != null && + this.ShortCode.Equals(input.ShortCode)) ) && ( this.Tags == input.Tags || this.Tags != null && input.Tags != null && this.Tags.SequenceEqual(input.Tags) - ) && - ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) - ) && - ( - this.MembershipStatus == input.MembershipStatus || - this.MembershipStatus.Equals(input.MembershipStatus) - ) && - ( - this.IsSearchable == input.IsSearchable || - this.IsSearchable.Equals(input.IsSearchable) - ) && - ( - this.Galleries == input.Galleries || - this.Galleries != null && - input.Galleries != null && - this.Galleries.SequenceEqual(input.Galleries) ); } @@ -345,33 +345,48 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) + if (this.BannerId != null) { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + hashCode = (hashCode * 59) + this.BannerId.GetHashCode(); } - if (this.Name != null) + if (this.BannerUrl != null) { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + hashCode = (hashCode * 59) + this.BannerUrl.GetHashCode(); } - if (this.ShortCode != null) + if (this.CreatedAt != null) { - hashCode = (hashCode * 59) + this.ShortCode.GetHashCode(); + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); } if (this.Discriminator != null) { hashCode = (hashCode * 59) + this.Discriminator.GetHashCode(); } - if (this.Description != null) + if (this.Galleries != null) { - hashCode = (hashCode * 59) + this.Description.GetHashCode(); + hashCode = (hashCode * 59) + this.Galleries.GetHashCode(); + } + if (this.IconId != null) + { + hashCode = (hashCode * 59) + this.IconId.GetHashCode(); } if (this.IconUrl != null) { hashCode = (hashCode * 59) + this.IconUrl.GetHashCode(); } - if (this.BannerUrl != null) + if (this.Id != null) { - hashCode = (hashCode * 59) + this.BannerUrl.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IsSearchable.GetHashCode(); + hashCode = (hashCode * 59) + this.MemberCount.GetHashCode(); + hashCode = (hashCode * 59) + this.MembershipStatus.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); } if (this.OwnerId != null) { @@ -381,29 +396,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Rules.GetHashCode(); } - if (this.IconId != null) - { - hashCode = (hashCode * 59) + this.IconId.GetHashCode(); - } - if (this.BannerId != null) + if (this.ShortCode != null) { - hashCode = (hashCode * 59) + this.BannerId.GetHashCode(); + hashCode = (hashCode * 59) + this.ShortCode.GetHashCode(); } - hashCode = (hashCode * 59) + this.MemberCount.GetHashCode(); if (this.Tags != null) { hashCode = (hashCode * 59) + this.Tags.GetHashCode(); } - if (this.CreatedAt != null) - { - hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); - } - hashCode = (hashCode * 59) + this.MembershipStatus.GetHashCode(); - hashCode = (hashCode * 59) + this.IsSearchable.GetHashCode(); - if (this.Galleries != null) - { - hashCode = (hashCode * 59) + this.Galleries.GetHashCode(); - } return hashCode; } } diff --git a/src/VRChat.API/Model/LimitedUnityPackage.cs b/src/VRChat.API/Model/LimitedUnityPackage.cs index 16e335c6..b7d7f504 100644 --- a/src/VRChat.API/Model/LimitedUnityPackage.cs +++ b/src/VRChat.API/Model/LimitedUnityPackage.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/LimitedUserFriend.cs b/src/VRChat.API/Model/LimitedUserFriend.cs index 22900cf1..7a3c2515 100644 --- a/src/VRChat.API/Model/LimitedUserFriend.cs +++ b/src/VRChat.API/Model/LimitedUserFriend.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -55,19 +55,19 @@ protected LimitedUserFriend() { } /// bio. /// . /// When profilePicOverride is not empty, use it instead.. - /// When profilePicOverride is not empty, use it instead.. /// currentAvatarTags. + /// When profilePicOverride is not empty, use it instead.. /// developerType (required). /// displayName (required). /// friendKey (required). /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). - /// isFriend (required). /// imageUrl (required). - /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. (required). - /// location (required). - /// lastLogin (required). + /// isFriend (required). /// lastActivity (required). + /// lastLogin (required). /// lastMobile (required). + /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. (required). + /// location (required). /// platform (required). /// profilePicOverride. /// profilePicOverrideThumbnail. @@ -75,7 +75,7 @@ protected LimitedUserFriend() { } /// statusDescription (required). /// <- Always empty. (required). /// userIcon. - public LimitedUserFriend(string bio = default, List bioLinks = default, string currentAvatarImageUrl = default, string currentAvatarThumbnailImageUrl = default, List currentAvatarTags = default, DeveloperType developerType = default, string displayName = default, string friendKey = default, string id = default, bool isFriend = default, string imageUrl = default, string lastPlatform = default, string location = default, DateTime? lastLogin = default, DateTime? lastActivity = default, DateTime? lastMobile = default, string platform = default, string profilePicOverride = default, string profilePicOverrideThumbnail = default, UserStatus status = default, string statusDescription = default, List tags = default, string userIcon = default) + public LimitedUserFriend(string bio = default, List bioLinks = default, string currentAvatarImageUrl = default, List currentAvatarTags = default, string currentAvatarThumbnailImageUrl = default, DeveloperType developerType = default, string displayName = default, string friendKey = default, string id = default, string imageUrl = default, bool isFriend = default, DateTime? lastActivity = default, DateTime? lastLogin = default, DateTime? lastMobile = default, string lastPlatform = default, string location = default, string platform = default, string profilePicOverride = default, string profilePicOverrideThumbnail = default, UserStatus status = default, string statusDescription = default, List tags = default, string userIcon = default) { this.DeveloperType = developerType; // to ensure "displayName" is required (not null) @@ -96,43 +96,43 @@ public LimitedUserFriend(string bio = default, List bioLinks = default, throw new ArgumentNullException("id is a required property for LimitedUserFriend and cannot be null"); } this.Id = id; - this.IsFriend = isFriend; // to ensure "imageUrl" is required (not null) if (imageUrl == null) { throw new ArgumentNullException("imageUrl is a required property for LimitedUserFriend and cannot be null"); } this.ImageUrl = imageUrl; - // to ensure "lastPlatform" is required (not null) - if (lastPlatform == null) - { - throw new ArgumentNullException("lastPlatform is a required property for LimitedUserFriend and cannot be null"); - } - this.LastPlatform = lastPlatform; - // to ensure "location" is required (not null) - if (location == null) + this.IsFriend = isFriend; + // to ensure "lastActivity" is required (not null) + if (lastActivity == null) { - throw new ArgumentNullException("location is a required property for LimitedUserFriend and cannot be null"); + throw new ArgumentNullException("lastActivity is a required property for LimitedUserFriend and cannot be null"); } - this.Location = location; + this.LastActivity = lastActivity; // to ensure "lastLogin" is required (not null) if (lastLogin == null) { throw new ArgumentNullException("lastLogin is a required property for LimitedUserFriend and cannot be null"); } this.LastLogin = lastLogin; - // to ensure "lastActivity" is required (not null) - if (lastActivity == null) - { - throw new ArgumentNullException("lastActivity is a required property for LimitedUserFriend and cannot be null"); - } - this.LastActivity = lastActivity; // to ensure "lastMobile" is required (not null) if (lastMobile == null) { throw new ArgumentNullException("lastMobile is a required property for LimitedUserFriend and cannot be null"); } this.LastMobile = lastMobile; + // to ensure "lastPlatform" is required (not null) + if (lastPlatform == null) + { + throw new ArgumentNullException("lastPlatform is a required property for LimitedUserFriend and cannot be null"); + } + this.LastPlatform = lastPlatform; + // to ensure "location" is required (not null) + if (location == null) + { + throw new ArgumentNullException("location is a required property for LimitedUserFriend and cannot be null"); + } + this.Location = location; // to ensure "platform" is required (not null) if (platform == null) { @@ -155,8 +155,8 @@ public LimitedUserFriend(string bio = default, List bioLinks = default, this.Bio = bio; this.BioLinks = bioLinks; this.CurrentAvatarImageUrl = currentAvatarImageUrl; - this.CurrentAvatarThumbnailImageUrl = currentAvatarThumbnailImageUrl; this.CurrentAvatarTags = currentAvatarTags; + this.CurrentAvatarThumbnailImageUrl = currentAvatarThumbnailImageUrl; this.ProfilePicOverride = profilePicOverride; this.ProfilePicOverrideThumbnail = profilePicOverrideThumbnail; this.UserIcon = userIcon; @@ -185,6 +185,12 @@ public LimitedUserFriend(string bio = default, List bioLinks = default, [DataMember(Name = "currentAvatarImageUrl", EmitDefaultValue = false)] public string CurrentAvatarImageUrl { get; set; } + /// + /// Gets or Sets CurrentAvatarTags + /// + [DataMember(Name = "currentAvatarTags", EmitDefaultValue = false)] + public List CurrentAvatarTags { get; set; } + /// /// When profilePicOverride is not empty, use it instead. /// @@ -195,12 +201,6 @@ public LimitedUserFriend(string bio = default, List bioLinks = default, [DataMember(Name = "currentAvatarThumbnailImageUrl", EmitDefaultValue = false)] public string CurrentAvatarThumbnailImageUrl { get; set; } - /// - /// Gets or Sets CurrentAvatarTags - /// - [DataMember(Name = "currentAvatarTags", EmitDefaultValue = false)] - public List CurrentAvatarTags { get; set; } - /// /// Gets or Sets DisplayName /// @@ -223,6 +223,12 @@ public LimitedUserFriend(string bio = default, List bioLinks = default, [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } + /// + /// Gets or Sets ImageUrl + /// + [DataMember(Name = "imageUrl", IsRequired = true, EmitDefaultValue = true)] + public string ImageUrl { get; set; } + /// /// Gets or Sets IsFriend /// @@ -230,10 +236,22 @@ public LimitedUserFriend(string bio = default, List bioLinks = default, public bool IsFriend { get; set; } /// - /// Gets or Sets ImageUrl + /// Gets or Sets LastActivity /// - [DataMember(Name = "imageUrl", IsRequired = true, EmitDefaultValue = true)] - public string ImageUrl { get; set; } + [DataMember(Name = "last_activity", IsRequired = true, EmitDefaultValue = true)] + public DateTime? LastActivity { get; set; } + + /// + /// Gets or Sets LastLogin + /// + [DataMember(Name = "last_login", IsRequired = true, EmitDefaultValue = true)] + public DateTime? LastLogin { get; set; } + + /// + /// Gets or Sets LastMobile + /// + [DataMember(Name = "last_mobile", IsRequired = true, EmitDefaultValue = true)] + public DateTime? LastMobile { get; set; } /// /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. @@ -251,24 +269,6 @@ public LimitedUserFriend(string bio = default, List bioLinks = default, [DataMember(Name = "location", IsRequired = true, EmitDefaultValue = true)] public string Location { get; set; } - /// - /// Gets or Sets LastLogin - /// - [DataMember(Name = "last_login", IsRequired = true, EmitDefaultValue = true)] - public DateTime? LastLogin { get; set; } - - /// - /// Gets or Sets LastActivity - /// - [DataMember(Name = "last_activity", IsRequired = true, EmitDefaultValue = true)] - public DateTime? LastActivity { get; set; } - - /// - /// Gets or Sets LastMobile - /// - [DataMember(Name = "last_mobile", IsRequired = true, EmitDefaultValue = true)] - public DateTime? LastMobile { get; set; } - /// /// Gets or Sets Platform /// @@ -317,19 +317,19 @@ public override string ToString() sb.Append(" Bio: ").Append(Bio).Append("\n"); sb.Append(" BioLinks: ").Append(BioLinks).Append("\n"); sb.Append(" CurrentAvatarImageUrl: ").Append(CurrentAvatarImageUrl).Append("\n"); - sb.Append(" CurrentAvatarThumbnailImageUrl: ").Append(CurrentAvatarThumbnailImageUrl).Append("\n"); sb.Append(" CurrentAvatarTags: ").Append(CurrentAvatarTags).Append("\n"); + sb.Append(" CurrentAvatarThumbnailImageUrl: ").Append(CurrentAvatarThumbnailImageUrl).Append("\n"); sb.Append(" DeveloperType: ").Append(DeveloperType).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); sb.Append(" FriendKey: ").Append(FriendKey).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IsFriend: ").Append(IsFriend).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); - sb.Append(" LastPlatform: ").Append(LastPlatform).Append("\n"); - sb.Append(" Location: ").Append(Location).Append("\n"); - sb.Append(" LastLogin: ").Append(LastLogin).Append("\n"); + sb.Append(" IsFriend: ").Append(IsFriend).Append("\n"); sb.Append(" LastActivity: ").Append(LastActivity).Append("\n"); + sb.Append(" LastLogin: ").Append(LastLogin).Append("\n"); sb.Append(" LastMobile: ").Append(LastMobile).Append("\n"); + sb.Append(" LastPlatform: ").Append(LastPlatform).Append("\n"); + sb.Append(" Location: ").Append(Location).Append("\n"); sb.Append(" Platform: ").Append(Platform).Append("\n"); sb.Append(" ProfilePicOverride: ").Append(ProfilePicOverride).Append("\n"); sb.Append(" ProfilePicOverrideThumbnail: ").Append(ProfilePicOverrideThumbnail).Append("\n"); @@ -388,17 +388,17 @@ public bool Equals(LimitedUserFriend input) (this.CurrentAvatarImageUrl != null && this.CurrentAvatarImageUrl.Equals(input.CurrentAvatarImageUrl)) ) && - ( - this.CurrentAvatarThumbnailImageUrl == input.CurrentAvatarThumbnailImageUrl || - (this.CurrentAvatarThumbnailImageUrl != null && - this.CurrentAvatarThumbnailImageUrl.Equals(input.CurrentAvatarThumbnailImageUrl)) - ) && ( this.CurrentAvatarTags == input.CurrentAvatarTags || this.CurrentAvatarTags != null && input.CurrentAvatarTags != null && this.CurrentAvatarTags.SequenceEqual(input.CurrentAvatarTags) ) && + ( + this.CurrentAvatarThumbnailImageUrl == input.CurrentAvatarThumbnailImageUrl || + (this.CurrentAvatarThumbnailImageUrl != null && + this.CurrentAvatarThumbnailImageUrl.Equals(input.CurrentAvatarThumbnailImageUrl)) + ) && ( this.DeveloperType == input.DeveloperType || this.DeveloperType.Equals(input.DeveloperType) @@ -418,40 +418,40 @@ public bool Equals(LimitedUserFriend input) (this.Id != null && this.Id.Equals(input.Id)) ) && - ( - this.IsFriend == input.IsFriend || - this.IsFriend.Equals(input.IsFriend) - ) && ( this.ImageUrl == input.ImageUrl || (this.ImageUrl != null && this.ImageUrl.Equals(input.ImageUrl)) ) && ( - this.LastPlatform == input.LastPlatform || - (this.LastPlatform != null && - this.LastPlatform.Equals(input.LastPlatform)) + this.IsFriend == input.IsFriend || + this.IsFriend.Equals(input.IsFriend) ) && ( - this.Location == input.Location || - (this.Location != null && - this.Location.Equals(input.Location)) + this.LastActivity == input.LastActivity || + (this.LastActivity != null && + this.LastActivity.Equals(input.LastActivity)) ) && ( this.LastLogin == input.LastLogin || (this.LastLogin != null && this.LastLogin.Equals(input.LastLogin)) ) && - ( - this.LastActivity == input.LastActivity || - (this.LastActivity != null && - this.LastActivity.Equals(input.LastActivity)) - ) && ( this.LastMobile == input.LastMobile || (this.LastMobile != null && this.LastMobile.Equals(input.LastMobile)) ) && + ( + this.LastPlatform == input.LastPlatform || + (this.LastPlatform != null && + this.LastPlatform.Equals(input.LastPlatform)) + ) && + ( + this.Location == input.Location || + (this.Location != null && + this.Location.Equals(input.Location)) + ) && ( this.Platform == input.Platform || (this.Platform != null && @@ -510,14 +510,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CurrentAvatarImageUrl.GetHashCode(); } - if (this.CurrentAvatarThumbnailImageUrl != null) - { - hashCode = (hashCode * 59) + this.CurrentAvatarThumbnailImageUrl.GetHashCode(); - } if (this.CurrentAvatarTags != null) { hashCode = (hashCode * 59) + this.CurrentAvatarTags.GetHashCode(); } + if (this.CurrentAvatarThumbnailImageUrl != null) + { + hashCode = (hashCode * 59) + this.CurrentAvatarThumbnailImageUrl.GetHashCode(); + } hashCode = (hashCode * 59) + this.DeveloperType.GetHashCode(); if (this.DisplayName != null) { @@ -531,31 +531,31 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Id.GetHashCode(); } - hashCode = (hashCode * 59) + this.IsFriend.GetHashCode(); if (this.ImageUrl != null) { hashCode = (hashCode * 59) + this.ImageUrl.GetHashCode(); } - if (this.LastPlatform != null) - { - hashCode = (hashCode * 59) + this.LastPlatform.GetHashCode(); - } - if (this.Location != null) + hashCode = (hashCode * 59) + this.IsFriend.GetHashCode(); + if (this.LastActivity != null) { - hashCode = (hashCode * 59) + this.Location.GetHashCode(); + hashCode = (hashCode * 59) + this.LastActivity.GetHashCode(); } if (this.LastLogin != null) { hashCode = (hashCode * 59) + this.LastLogin.GetHashCode(); } - if (this.LastActivity != null) - { - hashCode = (hashCode * 59) + this.LastActivity.GetHashCode(); - } if (this.LastMobile != null) { hashCode = (hashCode * 59) + this.LastMobile.GetHashCode(); } + if (this.LastPlatform != null) + { + hashCode = (hashCode * 59) + this.LastPlatform.GetHashCode(); + } + if (this.Location != null) + { + hashCode = (hashCode * 59) + this.Location.GetHashCode(); + } if (this.Platform != null) { hashCode = (hashCode * 59) + this.Platform.GetHashCode(); diff --git a/src/VRChat.API/Model/LimitedUserGroups.cs b/src/VRChat.API/Model/LimitedUserGroups.cs index ec939996..e0b41a37 100644 --- a/src/VRChat.API/Model/LimitedUserGroups.cs +++ b/src/VRChat.API/Model/LimitedUserGroups.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,84 +35,81 @@ public partial class LimitedUserGroups : IEquatable, IValidat /// /// Initializes a new instance of the class. /// - /// id. - /// name. - /// shortCode. - /// discriminator. + /// bannerId. + /// bannerUrl. /// description. + /// discriminator. + /// groupId. /// iconId. /// iconUrl. - /// bannerId. - /// bannerUrl. - /// privacy. + /// id. + /// isRepresenting. /// lastPostCreatedAt. - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + /// lastPostReadAt. /// memberCount. - /// groupId. /// memberVisibility. - /// isRepresenting. /// mutualGroup. - /// lastPostReadAt. - public LimitedUserGroups(string id = default, string name = default, string shortCode = default, string discriminator = default, string description = default, string iconId = default, string iconUrl = default, string bannerId = default, string bannerUrl = default, string privacy = default, DateTime? lastPostCreatedAt = default, string ownerId = default, int memberCount = default, string groupId = default, string memberVisibility = default, bool isRepresenting = default, bool mutualGroup = default, DateTime? lastPostReadAt = default) + /// name. + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + /// privacy. + /// shortCode. + public LimitedUserGroups(string bannerId = default, string bannerUrl = default, string description = default, string discriminator = default, string groupId = default, string iconId = default, string iconUrl = default, string id = default, bool isRepresenting = default, DateTime? lastPostCreatedAt = default, DateTime? lastPostReadAt = default, int memberCount = default, string memberVisibility = default, bool mutualGroup = default, string name = default, string ownerId = default, string privacy = default, string shortCode = default) { - this.Id = id; - this.Name = name; - this.ShortCode = shortCode; - this.Discriminator = discriminator; + this.BannerId = bannerId; + this.BannerUrl = bannerUrl; this.Description = description; + this.Discriminator = discriminator; + this.GroupId = groupId; this.IconId = iconId; this.IconUrl = iconUrl; - this.BannerId = bannerId; - this.BannerUrl = bannerUrl; - this.Privacy = privacy; + this.Id = id; + this.IsRepresenting = isRepresenting; this.LastPostCreatedAt = lastPostCreatedAt; - this.OwnerId = ownerId; + this.LastPostReadAt = lastPostReadAt; this.MemberCount = memberCount; - this.GroupId = groupId; this.MemberVisibility = memberVisibility; - this.IsRepresenting = isRepresenting; this.MutualGroup = mutualGroup; - this.LastPostReadAt = lastPostReadAt; + this.Name = name; + this.OwnerId = ownerId; + this.Privacy = privacy; + this.ShortCode = shortCode; } /// - /// Gets or Sets Id + /// Gets or Sets BannerId /// - /* - gmem_95cdb3b4-4643-4eb6-bdab-46a4e1e5ce37 - */ - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + [DataMember(Name = "bannerId", EmitDefaultValue = true)] + public string BannerId { get; set; } /// - /// Gets or Sets Name + /// Gets or Sets BannerUrl /// - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + [DataMember(Name = "bannerUrl", EmitDefaultValue = true)] + public string BannerUrl { get; set; } /// - /// Gets or Sets ShortCode + /// Gets or Sets Description /// - /* - ABC123 - */ - [DataMember(Name = "shortCode", EmitDefaultValue = false)] - public string ShortCode { get; set; } + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } /// /// Gets or Sets Discriminator /// /* - 1234 + 0000 */ [DataMember(Name = "discriminator", EmitDefaultValue = false)] public string Discriminator { get; set; } /// - /// Gets or Sets Description + /// Gets or Sets GroupId /// - [DataMember(Name = "description", EmitDefaultValue = false)] - public string Description { get; set; } + /* + grp_71a7ff59-112c-4e78-a990-c7cc650776e5 + */ + [DataMember(Name = "groupId", EmitDefaultValue = false)] + public string GroupId { get; set; } /// /// Gets or Sets IconId @@ -127,22 +124,19 @@ public LimitedUserGroups(string id = default, string name = default, string shor public string IconUrl { get; set; } /// - /// Gets or Sets BannerId - /// - [DataMember(Name = "bannerId", EmitDefaultValue = true)] - public string BannerId { get; set; } - - /// - /// Gets or Sets BannerUrl + /// Gets or Sets Id /// - [DataMember(Name = "bannerUrl", EmitDefaultValue = true)] - public string BannerUrl { get; set; } + /* + gmem_95cdb3b4-4643-4eb6-bdab-46a4e1e5ce37 + */ + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } /// - /// Gets or Sets Privacy + /// Gets or Sets IsRepresenting /// - [DataMember(Name = "privacy", EmitDefaultValue = false)] - public string Privacy { get; set; } + [DataMember(Name = "isRepresenting", EmitDefaultValue = true)] + public bool IsRepresenting { get; set; } /// /// Gets or Sets LastPostCreatedAt @@ -151,14 +145,10 @@ public LimitedUserGroups(string id = default, string name = default, string shor public DateTime? LastPostCreatedAt { get; set; } /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// Gets or Sets LastPostReadAt /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - /* - usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 - */ - [DataMember(Name = "ownerId", EmitDefaultValue = false)] - public string OwnerId { get; set; } + [DataMember(Name = "lastPostReadAt", EmitDefaultValue = true)] + public DateTime? LastPostReadAt { get; set; } /// /// Gets or Sets MemberCount @@ -166,27 +156,12 @@ public LimitedUserGroups(string id = default, string name = default, string shor [DataMember(Name = "memberCount", EmitDefaultValue = false)] public int MemberCount { get; set; } - /// - /// Gets or Sets GroupId - /// - /* - grp_71a7ff59-112c-4e78-a990-c7cc650776e5 - */ - [DataMember(Name = "groupId", EmitDefaultValue = false)] - public string GroupId { get; set; } - /// /// Gets or Sets MemberVisibility /// [DataMember(Name = "memberVisibility", EmitDefaultValue = false)] public string MemberVisibility { get; set; } - /// - /// Gets or Sets IsRepresenting - /// - [DataMember(Name = "isRepresenting", EmitDefaultValue = true)] - public bool IsRepresenting { get; set; } - /// /// Gets or Sets MutualGroup /// @@ -194,10 +169,35 @@ public LimitedUserGroups(string id = default, string name = default, string shor public bool MutualGroup { get; set; } /// - /// Gets or Sets LastPostReadAt + /// Gets or Sets Name /// - [DataMember(Name = "lastPostReadAt", EmitDefaultValue = true)] - public DateTime? LastPostReadAt { get; set; } + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /* + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + */ + [DataMember(Name = "ownerId", EmitDefaultValue = false)] + public string OwnerId { get; set; } + + /// + /// Gets or Sets Privacy + /// + [DataMember(Name = "privacy", EmitDefaultValue = false)] + public string Privacy { get; set; } + + /// + /// Gets or Sets ShortCode + /// + /* + VRCHAT + */ + [DataMember(Name = "shortCode", EmitDefaultValue = false)] + public string ShortCode { get; set; } /// /// Returns the string presentation of the object @@ -207,24 +207,24 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class LimitedUserGroups {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ShortCode: ").Append(ShortCode).Append("\n"); - sb.Append(" Discriminator: ").Append(Discriminator).Append("\n"); + sb.Append(" BannerId: ").Append(BannerId).Append("\n"); + sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Discriminator: ").Append(Discriminator).Append("\n"); + sb.Append(" GroupId: ").Append(GroupId).Append("\n"); sb.Append(" IconId: ").Append(IconId).Append("\n"); sb.Append(" IconUrl: ").Append(IconUrl).Append("\n"); - sb.Append(" BannerId: ").Append(BannerId).Append("\n"); - sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n"); - sb.Append(" Privacy: ").Append(Privacy).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" IsRepresenting: ").Append(IsRepresenting).Append("\n"); sb.Append(" LastPostCreatedAt: ").Append(LastPostCreatedAt).Append("\n"); - sb.Append(" OwnerId: ").Append(OwnerId).Append("\n"); + sb.Append(" LastPostReadAt: ").Append(LastPostReadAt).Append("\n"); sb.Append(" MemberCount: ").Append(MemberCount).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); sb.Append(" MemberVisibility: ").Append(MemberVisibility).Append("\n"); - sb.Append(" IsRepresenting: ").Append(IsRepresenting).Append("\n"); sb.Append(" MutualGroup: ").Append(MutualGroup).Append("\n"); - sb.Append(" LastPostReadAt: ").Append(LastPostReadAt).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" OwnerId: ").Append(OwnerId).Append("\n"); + sb.Append(" Privacy: ").Append(Privacy).Append("\n"); + sb.Append(" ShortCode: ").Append(ShortCode).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -261,19 +261,19 @@ public bool Equals(LimitedUserGroups input) } return ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) + this.BannerId == input.BannerId || + (this.BannerId != null && + this.BannerId.Equals(input.BannerId)) ) && ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) + this.BannerUrl == input.BannerUrl || + (this.BannerUrl != null && + this.BannerUrl.Equals(input.BannerUrl)) ) && ( - this.ShortCode == input.ShortCode || - (this.ShortCode != null && - this.ShortCode.Equals(input.ShortCode)) + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) ) && ( this.Discriminator == input.Discriminator || @@ -281,9 +281,9 @@ public bool Equals(LimitedUserGroups input) this.Discriminator.Equals(input.Discriminator)) ) && ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) ) && ( this.IconId == input.IconId || @@ -296,19 +296,13 @@ public bool Equals(LimitedUserGroups input) this.IconUrl.Equals(input.IconUrl)) ) && ( - this.BannerId == input.BannerId || - (this.BannerId != null && - this.BannerId.Equals(input.BannerId)) - ) && - ( - this.BannerUrl == input.BannerUrl || - (this.BannerUrl != null && - this.BannerUrl.Equals(input.BannerUrl)) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Privacy == input.Privacy || - (this.Privacy != null && - this.Privacy.Equals(input.Privacy)) + this.IsRepresenting == input.IsRepresenting || + this.IsRepresenting.Equals(input.IsRepresenting) ) && ( this.LastPostCreatedAt == input.LastPostCreatedAt || @@ -316,36 +310,42 @@ public bool Equals(LimitedUserGroups input) this.LastPostCreatedAt.Equals(input.LastPostCreatedAt)) ) && ( - this.OwnerId == input.OwnerId || - (this.OwnerId != null && - this.OwnerId.Equals(input.OwnerId)) + this.LastPostReadAt == input.LastPostReadAt || + (this.LastPostReadAt != null && + this.LastPostReadAt.Equals(input.LastPostReadAt)) ) && ( this.MemberCount == input.MemberCount || this.MemberCount.Equals(input.MemberCount) ) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && ( this.MemberVisibility == input.MemberVisibility || (this.MemberVisibility != null && this.MemberVisibility.Equals(input.MemberVisibility)) ) && - ( - this.IsRepresenting == input.IsRepresenting || - this.IsRepresenting.Equals(input.IsRepresenting) - ) && ( this.MutualGroup == input.MutualGroup || this.MutualGroup.Equals(input.MutualGroup) ) && ( - this.LastPostReadAt == input.LastPostReadAt || - (this.LastPostReadAt != null && - this.LastPostReadAt.Equals(input.LastPostReadAt)) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.OwnerId == input.OwnerId || + (this.OwnerId != null && + this.OwnerId.Equals(input.OwnerId)) + ) && + ( + this.Privacy == input.Privacy || + (this.Privacy != null && + this.Privacy.Equals(input.Privacy)) + ) && + ( + this.ShortCode == input.ShortCode || + (this.ShortCode != null && + this.ShortCode.Equals(input.ShortCode)) ); } @@ -358,25 +358,25 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) + if (this.BannerId != null) { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + hashCode = (hashCode * 59) + this.BannerId.GetHashCode(); } - if (this.Name != null) + if (this.BannerUrl != null) { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + hashCode = (hashCode * 59) + this.BannerUrl.GetHashCode(); } - if (this.ShortCode != null) + if (this.Description != null) { - hashCode = (hashCode * 59) + this.ShortCode.GetHashCode(); + hashCode = (hashCode * 59) + this.Description.GetHashCode(); } if (this.Discriminator != null) { hashCode = (hashCode * 59) + this.Discriminator.GetHashCode(); } - if (this.Description != null) + if (this.GroupId != null) { - hashCode = (hashCode * 59) + this.Description.GetHashCode(); + hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); } if (this.IconId != null) { @@ -386,40 +386,40 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.IconUrl.GetHashCode(); } - if (this.BannerId != null) - { - hashCode = (hashCode * 59) + this.BannerId.GetHashCode(); - } - if (this.BannerUrl != null) - { - hashCode = (hashCode * 59) + this.BannerUrl.GetHashCode(); - } - if (this.Privacy != null) + if (this.Id != null) { - hashCode = (hashCode * 59) + this.Privacy.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } + hashCode = (hashCode * 59) + this.IsRepresenting.GetHashCode(); if (this.LastPostCreatedAt != null) { hashCode = (hashCode * 59) + this.LastPostCreatedAt.GetHashCode(); } - if (this.OwnerId != null) + if (this.LastPostReadAt != null) { - hashCode = (hashCode * 59) + this.OwnerId.GetHashCode(); + hashCode = (hashCode * 59) + this.LastPostReadAt.GetHashCode(); } hashCode = (hashCode * 59) + this.MemberCount.GetHashCode(); - if (this.GroupId != null) - { - hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); - } if (this.MemberVisibility != null) { hashCode = (hashCode * 59) + this.MemberVisibility.GetHashCode(); } - hashCode = (hashCode * 59) + this.IsRepresenting.GetHashCode(); hashCode = (hashCode * 59) + this.MutualGroup.GetHashCode(); - if (this.LastPostReadAt != null) + if (this.Name != null) { - hashCode = (hashCode * 59) + this.LastPostReadAt.GetHashCode(); + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.OwnerId != null) + { + hashCode = (hashCode * 59) + this.OwnerId.GetHashCode(); + } + if (this.Privacy != null) + { + hashCode = (hashCode * 59) + this.Privacy.GetHashCode(); + } + if (this.ShortCode != null) + { + hashCode = (hashCode * 59) + this.ShortCode.GetHashCode(); } return hashCode; } diff --git a/src/VRChat.API/Model/LimitedUserInstance.cs b/src/VRChat.API/Model/LimitedUserInstance.cs index cadd8b37..5d0efb61 100644 --- a/src/VRChat.API/Model/LimitedUserInstance.cs +++ b/src/VRChat.API/Model/LimitedUserInstance.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -70,18 +70,18 @@ protected LimitedUserInstance() { } /// bio. /// . /// When profilePicOverride is not empty, use it instead. (required). - /// When profilePicOverride is not empty, use it instead. (required). /// currentAvatarTags (required). + /// When profilePicOverride is not empty, use it instead. (required). /// dateJoined (required). /// developerType (required). /// displayName (required). /// friendKey (required). /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). - /// isFriend (required). /// imageUrl. - /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. (required). + /// isFriend (required). /// lastActivity (required). /// lastMobile (required). + /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. (required). /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`.. /// profilePicOverride. /// profilePicOverrideThumbnail. @@ -91,7 +91,7 @@ protected LimitedUserInstance() { } /// statusDescription (required). /// tags (required). /// userIcon. - public LimitedUserInstance(AgeVerificationStatus ageVerificationStatus = default, bool ageVerified = default, bool allowAvatarCopying = default, string bio = default, List bioLinks = default, string currentAvatarImageUrl = default, string currentAvatarThumbnailImageUrl = default, List currentAvatarTags = default, DateTime? dateJoined = default, DeveloperType developerType = default, string displayName = default, string friendKey = default, string id = default, bool isFriend = default, string imageUrl = default, string lastPlatform = default, DateTime? lastActivity = default, DateTime? lastMobile = default, string platform = default, string profilePicOverride = default, string profilePicOverrideThumbnail = default, string pronouns = default, UserState state = default, UserStatus status = default, string statusDescription = default, List tags = default, string userIcon = default) + public LimitedUserInstance(AgeVerificationStatus ageVerificationStatus = default, bool ageVerified = default, bool allowAvatarCopying = default, string bio = default, List bioLinks = default, string currentAvatarImageUrl = default, List currentAvatarTags = default, string currentAvatarThumbnailImageUrl = default, DateTime? dateJoined = default, DeveloperType developerType = default, string displayName = default, string friendKey = default, string id = default, string imageUrl = default, bool isFriend = default, DateTime? lastActivity = default, DateTime? lastMobile = default, string lastPlatform = default, string platform = default, string profilePicOverride = default, string profilePicOverrideThumbnail = default, string pronouns = default, UserState state = default, UserStatus status = default, string statusDescription = default, List tags = default, string userIcon = default) { this.AgeVerificationStatus = ageVerificationStatus; this.AgeVerified = ageVerified; @@ -102,18 +102,18 @@ public LimitedUserInstance(AgeVerificationStatus ageVerificationStatus = default throw new ArgumentNullException("currentAvatarImageUrl is a required property for LimitedUserInstance and cannot be null"); } this.CurrentAvatarImageUrl = currentAvatarImageUrl; - // to ensure "currentAvatarThumbnailImageUrl" is required (not null) - if (currentAvatarThumbnailImageUrl == null) - { - throw new ArgumentNullException("currentAvatarThumbnailImageUrl is a required property for LimitedUserInstance and cannot be null"); - } - this.CurrentAvatarThumbnailImageUrl = currentAvatarThumbnailImageUrl; // to ensure "currentAvatarTags" is required (not null) if (currentAvatarTags == null) { throw new ArgumentNullException("currentAvatarTags is a required property for LimitedUserInstance and cannot be null"); } this.CurrentAvatarTags = currentAvatarTags; + // to ensure "currentAvatarThumbnailImageUrl" is required (not null) + if (currentAvatarThumbnailImageUrl == null) + { + throw new ArgumentNullException("currentAvatarThumbnailImageUrl is a required property for LimitedUserInstance and cannot be null"); + } + this.CurrentAvatarThumbnailImageUrl = currentAvatarThumbnailImageUrl; // to ensure "dateJoined" is required (not null) if (dateJoined == null) { @@ -140,12 +140,6 @@ public LimitedUserInstance(AgeVerificationStatus ageVerificationStatus = default } this.Id = id; this.IsFriend = isFriend; - // to ensure "lastPlatform" is required (not null) - if (lastPlatform == null) - { - throw new ArgumentNullException("lastPlatform is a required property for LimitedUserInstance and cannot be null"); - } - this.LastPlatform = lastPlatform; // to ensure "lastActivity" is required (not null) if (lastActivity == null) { @@ -158,6 +152,12 @@ public LimitedUserInstance(AgeVerificationStatus ageVerificationStatus = default throw new ArgumentNullException("lastMobile is a required property for LimitedUserInstance and cannot be null"); } this.LastMobile = lastMobile; + // to ensure "lastPlatform" is required (not null) + if (lastPlatform == null) + { + throw new ArgumentNullException("lastPlatform is a required property for LimitedUserInstance and cannot be null"); + } + this.LastPlatform = lastPlatform; // to ensure "pronouns" is required (not null) if (pronouns == null) { @@ -223,6 +223,12 @@ public LimitedUserInstance(AgeVerificationStatus ageVerificationStatus = default [DataMember(Name = "currentAvatarImageUrl", IsRequired = true, EmitDefaultValue = true)] public string CurrentAvatarImageUrl { get; set; } + /// + /// Gets or Sets CurrentAvatarTags + /// + [DataMember(Name = "currentAvatarTags", IsRequired = true, EmitDefaultValue = true)] + public List CurrentAvatarTags { get; set; } + /// /// When profilePicOverride is not empty, use it instead. /// @@ -233,12 +239,6 @@ public LimitedUserInstance(AgeVerificationStatus ageVerificationStatus = default [DataMember(Name = "currentAvatarThumbnailImageUrl", IsRequired = true, EmitDefaultValue = true)] public string CurrentAvatarThumbnailImageUrl { get; set; } - /// - /// Gets or Sets CurrentAvatarTags - /// - [DataMember(Name = "currentAvatarTags", IsRequired = true, EmitDefaultValue = true)] - public List CurrentAvatarTags { get; set; } - /// /// Gets or Sets DateJoined /// @@ -267,12 +267,6 @@ public LimitedUserInstance(AgeVerificationStatus ageVerificationStatus = default [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } - /// - /// Gets or Sets IsFriend - /// - [DataMember(Name = "isFriend", IsRequired = true, EmitDefaultValue = true)] - public bool IsFriend { get; set; } - /// /// Gets or Sets ImageUrl /// @@ -280,14 +274,10 @@ public LimitedUserInstance(AgeVerificationStatus ageVerificationStatus = default public string ImageUrl { get; set; } /// - /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// Gets or Sets IsFriend /// - /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. - /* - standalonewindows - */ - [DataMember(Name = "last_platform", IsRequired = true, EmitDefaultValue = true)] - public string LastPlatform { get; set; } + [DataMember(Name = "isFriend", IsRequired = true, EmitDefaultValue = true)] + public bool IsFriend { get; set; } /// /// Gets or Sets LastActivity @@ -301,6 +291,16 @@ public LimitedUserInstance(AgeVerificationStatus ageVerificationStatus = default [DataMember(Name = "last_mobile", IsRequired = true, EmitDefaultValue = true)] public DateTime? LastMobile { get; set; } + /// + /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /// + /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. + /* + standalonewindows + */ + [DataMember(Name = "last_platform", IsRequired = true, EmitDefaultValue = true)] + public string LastPlatform { get; set; } + /// /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. /// @@ -361,18 +361,18 @@ public override string ToString() sb.Append(" Bio: ").Append(Bio).Append("\n"); sb.Append(" BioLinks: ").Append(BioLinks).Append("\n"); sb.Append(" CurrentAvatarImageUrl: ").Append(CurrentAvatarImageUrl).Append("\n"); - sb.Append(" CurrentAvatarThumbnailImageUrl: ").Append(CurrentAvatarThumbnailImageUrl).Append("\n"); sb.Append(" CurrentAvatarTags: ").Append(CurrentAvatarTags).Append("\n"); + sb.Append(" CurrentAvatarThumbnailImageUrl: ").Append(CurrentAvatarThumbnailImageUrl).Append("\n"); sb.Append(" DateJoined: ").Append(DateJoined).Append("\n"); sb.Append(" DeveloperType: ").Append(DeveloperType).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); sb.Append(" FriendKey: ").Append(FriendKey).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" IsFriend: ").Append(IsFriend).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); - sb.Append(" LastPlatform: ").Append(LastPlatform).Append("\n"); + sb.Append(" IsFriend: ").Append(IsFriend).Append("\n"); sb.Append(" LastActivity: ").Append(LastActivity).Append("\n"); sb.Append(" LastMobile: ").Append(LastMobile).Append("\n"); + sb.Append(" LastPlatform: ").Append(LastPlatform).Append("\n"); sb.Append(" Platform: ").Append(Platform).Append("\n"); sb.Append(" ProfilePicOverride: ").Append(ProfilePicOverride).Append("\n"); sb.Append(" ProfilePicOverrideThumbnail: ").Append(ProfilePicOverrideThumbnail).Append("\n"); @@ -445,17 +445,17 @@ public bool Equals(LimitedUserInstance input) (this.CurrentAvatarImageUrl != null && this.CurrentAvatarImageUrl.Equals(input.CurrentAvatarImageUrl)) ) && - ( - this.CurrentAvatarThumbnailImageUrl == input.CurrentAvatarThumbnailImageUrl || - (this.CurrentAvatarThumbnailImageUrl != null && - this.CurrentAvatarThumbnailImageUrl.Equals(input.CurrentAvatarThumbnailImageUrl)) - ) && ( this.CurrentAvatarTags == input.CurrentAvatarTags || this.CurrentAvatarTags != null && input.CurrentAvatarTags != null && this.CurrentAvatarTags.SequenceEqual(input.CurrentAvatarTags) ) && + ( + this.CurrentAvatarThumbnailImageUrl == input.CurrentAvatarThumbnailImageUrl || + (this.CurrentAvatarThumbnailImageUrl != null && + this.CurrentAvatarThumbnailImageUrl.Equals(input.CurrentAvatarThumbnailImageUrl)) + ) && ( this.DateJoined == input.DateJoined || (this.DateJoined != null && @@ -480,19 +480,14 @@ public bool Equals(LimitedUserInstance input) (this.Id != null && this.Id.Equals(input.Id)) ) && - ( - this.IsFriend == input.IsFriend || - this.IsFriend.Equals(input.IsFriend) - ) && ( this.ImageUrl == input.ImageUrl || (this.ImageUrl != null && this.ImageUrl.Equals(input.ImageUrl)) ) && ( - this.LastPlatform == input.LastPlatform || - (this.LastPlatform != null && - this.LastPlatform.Equals(input.LastPlatform)) + this.IsFriend == input.IsFriend || + this.IsFriend.Equals(input.IsFriend) ) && ( this.LastActivity == input.LastActivity || @@ -504,6 +499,11 @@ public bool Equals(LimitedUserInstance input) (this.LastMobile != null && this.LastMobile.Equals(input.LastMobile)) ) && + ( + this.LastPlatform == input.LastPlatform || + (this.LastPlatform != null && + this.LastPlatform.Equals(input.LastPlatform)) + ) && ( this.Platform == input.Platform || (this.Platform != null && @@ -574,14 +574,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CurrentAvatarImageUrl.GetHashCode(); } - if (this.CurrentAvatarThumbnailImageUrl != null) - { - hashCode = (hashCode * 59) + this.CurrentAvatarThumbnailImageUrl.GetHashCode(); - } if (this.CurrentAvatarTags != null) { hashCode = (hashCode * 59) + this.CurrentAvatarTags.GetHashCode(); } + if (this.CurrentAvatarThumbnailImageUrl != null) + { + hashCode = (hashCode * 59) + this.CurrentAvatarThumbnailImageUrl.GetHashCode(); + } if (this.DateJoined != null) { hashCode = (hashCode * 59) + this.DateJoined.GetHashCode(); @@ -599,15 +599,11 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Id.GetHashCode(); } - hashCode = (hashCode * 59) + this.IsFriend.GetHashCode(); if (this.ImageUrl != null) { hashCode = (hashCode * 59) + this.ImageUrl.GetHashCode(); } - if (this.LastPlatform != null) - { - hashCode = (hashCode * 59) + this.LastPlatform.GetHashCode(); - } + hashCode = (hashCode * 59) + this.IsFriend.GetHashCode(); if (this.LastActivity != null) { hashCode = (hashCode * 59) + this.LastActivity.GetHashCode(); @@ -616,6 +612,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.LastMobile.GetHashCode(); } + if (this.LastPlatform != null) + { + hashCode = (hashCode * 59) + this.LastPlatform.GetHashCode(); + } if (this.Platform != null) { hashCode = (hashCode * 59) + this.Platform.GetHashCode(); diff --git a/src/VRChat.API/Model/LimitedUserSearch.cs b/src/VRChat.API/Model/LimitedUserSearch.cs index f78a4992..ffaf42e2 100644 --- a/src/VRChat.API/Model/LimitedUserSearch.cs +++ b/src/VRChat.API/Model/LimitedUserSearch.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -55,8 +55,8 @@ protected LimitedUserSearch() { } /// bio. /// . /// When profilePicOverride is not empty, use it instead. (required). - /// When profilePicOverride is not empty, use it instead. (required). /// currentAvatarTags (required). + /// When profilePicOverride is not empty, use it instead. (required). /// developerType (required). /// displayName (required). /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). @@ -68,7 +68,7 @@ protected LimitedUserSearch() { } /// statusDescription (required). /// <- Always empty. (required). /// userIcon. - public LimitedUserSearch(string bio = default, List bioLinks = default, string currentAvatarImageUrl = default, string currentAvatarThumbnailImageUrl = default, List currentAvatarTags = default, DeveloperType developerType = default, string displayName = default, string id = default, bool isFriend = default, string lastPlatform = default, string profilePicOverride = default, string pronouns = default, UserStatus status = default, string statusDescription = default, List tags = default, string userIcon = default) + public LimitedUserSearch(string bio = default, List bioLinks = default, string currentAvatarImageUrl = default, List currentAvatarTags = default, string currentAvatarThumbnailImageUrl = default, DeveloperType developerType = default, string displayName = default, string id = default, bool isFriend = default, string lastPlatform = default, string profilePicOverride = default, string pronouns = default, UserStatus status = default, string statusDescription = default, List tags = default, string userIcon = default) { // to ensure "currentAvatarImageUrl" is required (not null) if (currentAvatarImageUrl == null) @@ -76,18 +76,18 @@ public LimitedUserSearch(string bio = default, List bioLinks = default, throw new ArgumentNullException("currentAvatarImageUrl is a required property for LimitedUserSearch and cannot be null"); } this.CurrentAvatarImageUrl = currentAvatarImageUrl; - // to ensure "currentAvatarThumbnailImageUrl" is required (not null) - if (currentAvatarThumbnailImageUrl == null) - { - throw new ArgumentNullException("currentAvatarThumbnailImageUrl is a required property for LimitedUserSearch and cannot be null"); - } - this.CurrentAvatarThumbnailImageUrl = currentAvatarThumbnailImageUrl; // to ensure "currentAvatarTags" is required (not null) if (currentAvatarTags == null) { throw new ArgumentNullException("currentAvatarTags is a required property for LimitedUserSearch and cannot be null"); } this.CurrentAvatarTags = currentAvatarTags; + // to ensure "currentAvatarThumbnailImageUrl" is required (not null) + if (currentAvatarThumbnailImageUrl == null) + { + throw new ArgumentNullException("currentAvatarThumbnailImageUrl is a required property for LimitedUserSearch and cannot be null"); + } + this.CurrentAvatarThumbnailImageUrl = currentAvatarThumbnailImageUrl; this.DeveloperType = developerType; // to ensure "displayName" is required (not null) if (displayName == null) @@ -151,6 +151,12 @@ public LimitedUserSearch(string bio = default, List bioLinks = default, [DataMember(Name = "currentAvatarImageUrl", IsRequired = true, EmitDefaultValue = true)] public string CurrentAvatarImageUrl { get; set; } + /// + /// Gets or Sets CurrentAvatarTags + /// + [DataMember(Name = "currentAvatarTags", IsRequired = true, EmitDefaultValue = true)] + public List CurrentAvatarTags { get; set; } + /// /// When profilePicOverride is not empty, use it instead. /// @@ -161,12 +167,6 @@ public LimitedUserSearch(string bio = default, List bioLinks = default, [DataMember(Name = "currentAvatarThumbnailImageUrl", IsRequired = true, EmitDefaultValue = true)] public string CurrentAvatarThumbnailImageUrl { get; set; } - /// - /// Gets or Sets CurrentAvatarTags - /// - [DataMember(Name = "currentAvatarTags", IsRequired = true, EmitDefaultValue = true)] - public List CurrentAvatarTags { get; set; } - /// /// Gets or Sets DisplayName /// @@ -241,8 +241,8 @@ public override string ToString() sb.Append(" Bio: ").Append(Bio).Append("\n"); sb.Append(" BioLinks: ").Append(BioLinks).Append("\n"); sb.Append(" CurrentAvatarImageUrl: ").Append(CurrentAvatarImageUrl).Append("\n"); - sb.Append(" CurrentAvatarThumbnailImageUrl: ").Append(CurrentAvatarThumbnailImageUrl).Append("\n"); sb.Append(" CurrentAvatarTags: ").Append(CurrentAvatarTags).Append("\n"); + sb.Append(" CurrentAvatarThumbnailImageUrl: ").Append(CurrentAvatarThumbnailImageUrl).Append("\n"); sb.Append(" DeveloperType: ").Append(DeveloperType).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); @@ -305,17 +305,17 @@ public bool Equals(LimitedUserSearch input) (this.CurrentAvatarImageUrl != null && this.CurrentAvatarImageUrl.Equals(input.CurrentAvatarImageUrl)) ) && - ( - this.CurrentAvatarThumbnailImageUrl == input.CurrentAvatarThumbnailImageUrl || - (this.CurrentAvatarThumbnailImageUrl != null && - this.CurrentAvatarThumbnailImageUrl.Equals(input.CurrentAvatarThumbnailImageUrl)) - ) && ( this.CurrentAvatarTags == input.CurrentAvatarTags || this.CurrentAvatarTags != null && input.CurrentAvatarTags != null && this.CurrentAvatarTags.SequenceEqual(input.CurrentAvatarTags) ) && + ( + this.CurrentAvatarThumbnailImageUrl == input.CurrentAvatarThumbnailImageUrl || + (this.CurrentAvatarThumbnailImageUrl != null && + this.CurrentAvatarThumbnailImageUrl.Equals(input.CurrentAvatarThumbnailImageUrl)) + ) && ( this.DeveloperType == input.DeveloperType || this.DeveloperType.Equals(input.DeveloperType) @@ -392,14 +392,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CurrentAvatarImageUrl.GetHashCode(); } - if (this.CurrentAvatarThumbnailImageUrl != null) - { - hashCode = (hashCode * 59) + this.CurrentAvatarThumbnailImageUrl.GetHashCode(); - } if (this.CurrentAvatarTags != null) { hashCode = (hashCode * 59) + this.CurrentAvatarTags.GetHashCode(); } + if (this.CurrentAvatarThumbnailImageUrl != null) + { + hashCode = (hashCode * 59) + this.CurrentAvatarThumbnailImageUrl.GetHashCode(); + } hashCode = (hashCode * 59) + this.DeveloperType.GetHashCode(); if (this.DisplayName != null) { diff --git a/src/VRChat.API/Model/LimitedWorld.cs b/src/VRChat.API/Model/LimitedWorld.cs index e88a87cc..a9f34bde 100644 --- a/src/VRChat.API/Model/LimitedWorld.cs +++ b/src/VRChat.API/Model/LimitedWorld.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -49,11 +49,9 @@ protected LimitedWorld() { } /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). /// authorName (required). /// capacity (required). - /// recommendedCapacity. /// createdAt (required). /// defaultContentSettings. /// favorites (required) (default to 0). - /// visits (default to 0). /// heat (required) (default to 0). /// WorldID be \"offline\" on User profiles if you are not friends with that user. (required). /// imageUrl (required). @@ -64,14 +62,16 @@ protected LimitedWorld() { } /// popularity (required) (default to 0). /// previewYoutubeId. /// publicationDate (required). + /// recommendedCapacity. /// releaseStatus (required). /// storeId. /// (required). /// thumbnailImageUrl (required). + /// udonProducts. /// (required). /// updatedAt (required). - /// udonProducts. - public LimitedWorld(string authorId = default, string authorName = default, int capacity = default, int recommendedCapacity = default, DateTime createdAt = default, InstanceContentSettings defaultContentSettings = default, int favorites = 0, int visits = 0, int heat = 0, string id = default, string imageUrl = default, string labsPublicationDate = default, string name = default, int occupants = 0, string organization = @"vrchat", int popularity = 0, string previewYoutubeId = default, string publicationDate = default, ReleaseStatus releaseStatus = default, string storeId = default, List tags = default, string thumbnailImageUrl = default, List unityPackages = default, DateTime updatedAt = default, List udonProducts = default) + /// visits (default to 0). + public LimitedWorld(string authorId = default, string authorName = default, int capacity = default, DateTime createdAt = default, InstanceContentSettings defaultContentSettings = default, int favorites = 0, int heat = 0, string id = default, string imageUrl = default, string labsPublicationDate = default, string name = default, int occupants = 0, string organization = @"vrchat", int popularity = 0, string previewYoutubeId = default, string publicationDate = default, int recommendedCapacity = default, ReleaseStatus releaseStatus = default, string storeId = default, List tags = default, string thumbnailImageUrl = default, List udonProducts = default, List unityPackages = default, DateTime updatedAt = default, int visits = 0) { // to ensure "authorId" is required (not null) if (authorId == null) @@ -147,12 +147,12 @@ public LimitedWorld(string authorId = default, string authorName = default, int } this.UnityPackages = unityPackages; this.UpdatedAt = updatedAt; - this.RecommendedCapacity = recommendedCapacity; this.DefaultContentSettings = defaultContentSettings; - this.Visits = visits; this.PreviewYoutubeId = previewYoutubeId; + this.RecommendedCapacity = recommendedCapacity; this.StoreId = storeId; this.UdonProducts = udonProducts; + this.Visits = visits; } /// @@ -180,15 +180,6 @@ public LimitedWorld(string authorId = default, string authorName = default, int [DataMember(Name = "capacity", IsRequired = true, EmitDefaultValue = true)] public int Capacity { get; set; } - /// - /// Gets or Sets RecommendedCapacity - /// - /* - 16 - */ - [DataMember(Name = "recommendedCapacity", EmitDefaultValue = false)] - public int RecommendedCapacity { get; set; } - /// /// Gets or Sets CreatedAt /// @@ -210,15 +201,6 @@ public LimitedWorld(string authorId = default, string authorName = default, int [DataMember(Name = "favorites", IsRequired = true, EmitDefaultValue = true)] public int Favorites { get; set; } - /// - /// Gets or Sets Visits - /// - /* - 9988675 - */ - [DataMember(Name = "visits", EmitDefaultValue = false)] - public int Visits { get; set; } - /// /// Gets or Sets Heat /// @@ -298,6 +280,15 @@ public LimitedWorld(string authorId = default, string authorName = default, int [DataMember(Name = "publicationDate", IsRequired = true, EmitDefaultValue = true)] public string PublicationDate { get; set; } + /// + /// Gets or Sets RecommendedCapacity + /// + /* + 16 + */ + [DataMember(Name = "recommendedCapacity", EmitDefaultValue = false)] + public int RecommendedCapacity { get; set; } + /// /// Gets or Sets StoreId /// @@ -320,6 +311,12 @@ public LimitedWorld(string authorId = default, string authorName = default, int [DataMember(Name = "thumbnailImageUrl", IsRequired = true, EmitDefaultValue = true)] public string ThumbnailImageUrl { get; set; } + /// + /// Gets or Sets UdonProducts + /// + [DataMember(Name = "udonProducts", EmitDefaultValue = false)] + public List UdonProducts { get; set; } + /// /// /// @@ -334,10 +331,13 @@ public LimitedWorld(string authorId = default, string authorName = default, int public DateTime UpdatedAt { get; set; } /// - /// Gets or Sets UdonProducts + /// Gets or Sets Visits /// - [DataMember(Name = "udonProducts", EmitDefaultValue = false)] - public List UdonProducts { get; set; } + /* + 9988675 + */ + [DataMember(Name = "visits", EmitDefaultValue = false)] + public int Visits { get; set; } /// /// Returns the string presentation of the object @@ -350,11 +350,9 @@ public override string ToString() sb.Append(" AuthorId: ").Append(AuthorId).Append("\n"); sb.Append(" AuthorName: ").Append(AuthorName).Append("\n"); sb.Append(" Capacity: ").Append(Capacity).Append("\n"); - sb.Append(" RecommendedCapacity: ").Append(RecommendedCapacity).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" DefaultContentSettings: ").Append(DefaultContentSettings).Append("\n"); sb.Append(" Favorites: ").Append(Favorites).Append("\n"); - sb.Append(" Visits: ").Append(Visits).Append("\n"); sb.Append(" Heat: ").Append(Heat).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); @@ -365,13 +363,15 @@ public override string ToString() sb.Append(" Popularity: ").Append(Popularity).Append("\n"); sb.Append(" PreviewYoutubeId: ").Append(PreviewYoutubeId).Append("\n"); sb.Append(" PublicationDate: ").Append(PublicationDate).Append("\n"); + sb.Append(" RecommendedCapacity: ").Append(RecommendedCapacity).Append("\n"); sb.Append(" ReleaseStatus: ").Append(ReleaseStatus).Append("\n"); sb.Append(" StoreId: ").Append(StoreId).Append("\n"); sb.Append(" Tags: ").Append(Tags).Append("\n"); sb.Append(" ThumbnailImageUrl: ").Append(ThumbnailImageUrl).Append("\n"); + sb.Append(" UdonProducts: ").Append(UdonProducts).Append("\n"); sb.Append(" UnityPackages: ").Append(UnityPackages).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" UdonProducts: ").Append(UdonProducts).Append("\n"); + sb.Append(" Visits: ").Append(Visits).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -421,10 +421,6 @@ public bool Equals(LimitedWorld input) this.Capacity == input.Capacity || this.Capacity.Equals(input.Capacity) ) && - ( - this.RecommendedCapacity == input.RecommendedCapacity || - this.RecommendedCapacity.Equals(input.RecommendedCapacity) - ) && ( this.CreatedAt == input.CreatedAt || (this.CreatedAt != null && @@ -439,10 +435,6 @@ public bool Equals(LimitedWorld input) this.Favorites == input.Favorites || this.Favorites.Equals(input.Favorites) ) && - ( - this.Visits == input.Visits || - this.Visits.Equals(input.Visits) - ) && ( this.Heat == input.Heat || this.Heat.Equals(input.Heat) @@ -490,6 +482,10 @@ public bool Equals(LimitedWorld input) (this.PublicationDate != null && this.PublicationDate.Equals(input.PublicationDate)) ) && + ( + this.RecommendedCapacity == input.RecommendedCapacity || + this.RecommendedCapacity.Equals(input.RecommendedCapacity) + ) && ( this.ReleaseStatus == input.ReleaseStatus || this.ReleaseStatus.Equals(input.ReleaseStatus) @@ -510,6 +506,12 @@ public bool Equals(LimitedWorld input) (this.ThumbnailImageUrl != null && this.ThumbnailImageUrl.Equals(input.ThumbnailImageUrl)) ) && + ( + this.UdonProducts == input.UdonProducts || + this.UdonProducts != null && + input.UdonProducts != null && + this.UdonProducts.SequenceEqual(input.UdonProducts) + ) && ( this.UnityPackages == input.UnityPackages || this.UnityPackages != null && @@ -522,10 +524,8 @@ public bool Equals(LimitedWorld input) this.UpdatedAt.Equals(input.UpdatedAt)) ) && ( - this.UdonProducts == input.UdonProducts || - this.UdonProducts != null && - input.UdonProducts != null && - this.UdonProducts.SequenceEqual(input.UdonProducts) + this.Visits == input.Visits || + this.Visits.Equals(input.Visits) ); } @@ -547,7 +547,6 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.AuthorName.GetHashCode(); } hashCode = (hashCode * 59) + this.Capacity.GetHashCode(); - hashCode = (hashCode * 59) + this.RecommendedCapacity.GetHashCode(); if (this.CreatedAt != null) { hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); @@ -557,7 +556,6 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.DefaultContentSettings.GetHashCode(); } hashCode = (hashCode * 59) + this.Favorites.GetHashCode(); - hashCode = (hashCode * 59) + this.Visits.GetHashCode(); hashCode = (hashCode * 59) + this.Heat.GetHashCode(); if (this.Id != null) { @@ -589,6 +587,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.PublicationDate.GetHashCode(); } + hashCode = (hashCode * 59) + this.RecommendedCapacity.GetHashCode(); hashCode = (hashCode * 59) + this.ReleaseStatus.GetHashCode(); if (this.StoreId != null) { @@ -602,6 +601,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ThumbnailImageUrl.GetHashCode(); } + if (this.UdonProducts != null) + { + hashCode = (hashCode * 59) + this.UdonProducts.GetHashCode(); + } if (this.UnityPackages != null) { hashCode = (hashCode * 59) + this.UnityPackages.GetHashCode(); @@ -610,10 +613,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); } - if (this.UdonProducts != null) - { - hashCode = (hashCode * 59) + this.UdonProducts.GetHashCode(); - } + hashCode = (hashCode * 59) + this.Visits.GetHashCode(); return hashCode; } } @@ -637,12 +637,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Favorites, must be a value greater than or equal to 0.", new [] { "Favorites" }); } - // Visits (int) minimum - if (this.Visits < (int)0) - { - yield return new ValidationResult("Invalid value for Visits, must be a value greater than or equal to 0.", new [] { "Visits" }); - } - // Heat (int) minimum if (this.Heat < (int)0) { @@ -697,6 +691,12 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for ThumbnailImageUrl, length must be greater than 1.", new [] { "ThumbnailImageUrl" }); } + // Visits (int) minimum + if (this.Visits < (int)0) + { + yield return new ValidationResult("Invalid value for Visits, must be a value greater than or equal to 0.", new [] { "Visits" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/MIMEType.cs b/src/VRChat.API/Model/MIMEType.cs index a6038fb1..874d8bc0 100644 --- a/src/VRChat.API/Model/MIMEType.cs +++ b/src/VRChat.API/Model/MIMEType.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,88 +33,88 @@ namespace VRChat.API.Model public enum MIMEType { /// - /// Enum ImageJpeg for value: image/jpeg + /// Enum ApplicationGzip for value: application/gzip /// - [EnumMember(Value = "image/jpeg")] - ImageJpeg = 1, + [EnumMember(Value = "application/gzip")] + ApplicationGzip = 1, /// - /// Enum ImageJpg for value: image/jpg + /// Enum ApplicationOctetStream for value: application/octet-stream /// - [EnumMember(Value = "image/jpg")] - ImageJpg = 2, + [EnumMember(Value = "application/octet-stream")] + ApplicationOctetStream = 2, /// - /// Enum ImagePng for value: image/png + /// Enum ApplicationXAvatar for value: application/x-avatar /// - [EnumMember(Value = "image/png")] - ImagePng = 3, + [EnumMember(Value = "application/x-avatar")] + ApplicationXAvatar = 3, /// - /// Enum ImageWebp for value: image/webp + /// Enum ApplicationXRsyncDelta for value: application/x-rsync-delta /// - [EnumMember(Value = "image/webp")] - ImageWebp = 4, + [EnumMember(Value = "application/x-rsync-delta")] + ApplicationXRsyncDelta = 4, /// - /// Enum ImageGif for value: image/gif + /// Enum ApplicationXRsyncSignature for value: application/x-rsync-signature /// - [EnumMember(Value = "image/gif")] - ImageGif = 5, + [EnumMember(Value = "application/x-rsync-signature")] + ApplicationXRsyncSignature = 5, /// - /// Enum ImageBmp for value: image/bmp + /// Enum ApplicationXWorld for value: application/x-world /// - [EnumMember(Value = "image/bmp")] - ImageBmp = 6, + [EnumMember(Value = "application/x-world")] + ApplicationXWorld = 6, /// - /// Enum ImageSvgxml for value: image/svg+xml + /// Enum ImageBmp for value: image/bmp /// - [EnumMember(Value = "image/svg+xml")] - ImageSvgxml = 7, + [EnumMember(Value = "image/bmp")] + ImageBmp = 7, /// - /// Enum ImageTiff for value: image/tiff + /// Enum ImageGif for value: image/gif /// - [EnumMember(Value = "image/tiff")] - ImageTiff = 8, + [EnumMember(Value = "image/gif")] + ImageGif = 8, /// - /// Enum ApplicationXAvatar for value: application/x-avatar + /// Enum ImageJpeg for value: image/jpeg /// - [EnumMember(Value = "application/x-avatar")] - ApplicationXAvatar = 9, + [EnumMember(Value = "image/jpeg")] + ImageJpeg = 9, /// - /// Enum ApplicationXWorld for value: application/x-world + /// Enum ImageJpg for value: image/jpg /// - [EnumMember(Value = "application/x-world")] - ApplicationXWorld = 10, + [EnumMember(Value = "image/jpg")] + ImageJpg = 10, /// - /// Enum ApplicationGzip for value: application/gzip + /// Enum ImagePng for value: image/png /// - [EnumMember(Value = "application/gzip")] - ApplicationGzip = 11, + [EnumMember(Value = "image/png")] + ImagePng = 11, /// - /// Enum ApplicationXRsyncSignature for value: application/x-rsync-signature + /// Enum ImageSvgxml for value: image/svg+xml /// - [EnumMember(Value = "application/x-rsync-signature")] - ApplicationXRsyncSignature = 12, + [EnumMember(Value = "image/svg+xml")] + ImageSvgxml = 12, /// - /// Enum ApplicationXRsyncDelta for value: application/x-rsync-delta + /// Enum ImageTiff for value: image/tiff /// - [EnumMember(Value = "application/x-rsync-delta")] - ApplicationXRsyncDelta = 13, + [EnumMember(Value = "image/tiff")] + ImageTiff = 13, /// - /// Enum ApplicationOctetStream for value: application/octet-stream + /// Enum ImageWebp for value: image/webp /// - [EnumMember(Value = "application/octet-stream")] - ApplicationOctetStream = 14 + [EnumMember(Value = "image/webp")] + ImageWebp = 14 } } diff --git a/src/VRChat.API/Model/ModerateUserRequest.cs b/src/VRChat.API/Model/ModerateUserRequest.cs index fef04c9c..af9d24f4 100644 --- a/src/VRChat.API/Model/ModerateUserRequest.cs +++ b/src/VRChat.API/Model/ModerateUserRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/MutualFriend.cs b/src/VRChat.API/Model/MutualFriend.cs new file mode 100644 index 00000000..30faa46b --- /dev/null +++ b/src/VRChat.API/Model/MutualFriend.cs @@ -0,0 +1,334 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.20.7-nightly.3 + * Contact: vrchatapi.lpv0t@aries.fyi + * 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 FileParameter = VRChat.API.Client.FileParameter; +using OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// User object received when querying mutual friends + /// + [DataContract(Name = "MutualFriend")] + public partial class MutualFriend : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets Status + /// + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public UserStatus Status { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected MutualFriend() { } + /// + /// Initializes a new instance of the class. + /// + /// When profilePicOverride is not empty, use it instead.. + /// When profilePicOverride is not empty, use it instead. (required). + /// currentAvatarTags. + /// When profilePicOverride is not empty, use it instead.. + /// displayName (required). + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). + /// imageUrl (required). + /// profilePicOverride. + /// status (required). + /// statusDescription (required). + public MutualFriend(string avatarThumbnail = default, string currentAvatarImageUrl = default, List currentAvatarTags = default, string currentAvatarThumbnailImageUrl = default, string displayName = default, string id = default, string imageUrl = default, string profilePicOverride = default, UserStatus status = default, string statusDescription = default) + { + // to ensure "currentAvatarImageUrl" is required (not null) + if (currentAvatarImageUrl == null) + { + throw new ArgumentNullException("currentAvatarImageUrl is a required property for MutualFriend and cannot be null"); + } + this.CurrentAvatarImageUrl = currentAvatarImageUrl; + // to ensure "displayName" is required (not null) + if (displayName == null) + { + throw new ArgumentNullException("displayName is a required property for MutualFriend and cannot be null"); + } + this.DisplayName = displayName; + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for MutualFriend and cannot be null"); + } + this.Id = id; + // to ensure "imageUrl" is required (not null) + if (imageUrl == null) + { + throw new ArgumentNullException("imageUrl is a required property for MutualFriend and cannot be null"); + } + this.ImageUrl = imageUrl; + this.Status = status; + // to ensure "statusDescription" is required (not null) + if (statusDescription == null) + { + throw new ArgumentNullException("statusDescription is a required property for MutualFriend and cannot be null"); + } + this.StatusDescription = statusDescription; + this.AvatarThumbnail = avatarThumbnail; + this.CurrentAvatarTags = currentAvatarTags; + this.CurrentAvatarThumbnailImageUrl = currentAvatarThumbnailImageUrl; + this.ProfilePicOverride = profilePicOverride; + } + + /// + /// When profilePicOverride is not empty, use it instead. + /// + /// When profilePicOverride is not empty, use it instead. + /* + https://api.vrchat.cloud/api/1/image/file_aae83ed9-d42d-4d72-9f4b-9f1e41ed17e1/1/256 + */ + [DataMember(Name = "avatarThumbnail", EmitDefaultValue = false)] + public string AvatarThumbnail { get; set; } + + /// + /// When profilePicOverride is not empty, use it instead. + /// + /// When profilePicOverride is not empty, use it instead. + /* + https://api.vrchat.cloud/api/1/file/file_ae46d521-7281-4b38-b365-804b32a1d6a7/1/file + */ + [DataMember(Name = "currentAvatarImageUrl", IsRequired = true, EmitDefaultValue = true)] + public string CurrentAvatarImageUrl { get; set; } + + /// + /// Gets or Sets CurrentAvatarTags + /// + [DataMember(Name = "currentAvatarTags", EmitDefaultValue = false)] + public List CurrentAvatarTags { get; set; } + + /// + /// When profilePicOverride is not empty, use it instead. + /// + /// When profilePicOverride is not empty, use it instead. + /* + https://api.vrchat.cloud/api/1/image/file_aae83ed9-d42d-4d72-9f4b-9f1e41ed17e1/1/256 + */ + [DataMember(Name = "currentAvatarThumbnailImageUrl", EmitDefaultValue = false)] + public string CurrentAvatarThumbnailImageUrl { get; set; } + + /// + /// Gets or Sets DisplayName + /// + [DataMember(Name = "displayName", IsRequired = true, EmitDefaultValue = true)] + public string DisplayName { get; set; } + + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /* + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + */ + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Gets or Sets ImageUrl + /// + [DataMember(Name = "imageUrl", IsRequired = true, EmitDefaultValue = true)] + public string ImageUrl { get; set; } + + /// + /// Gets or Sets ProfilePicOverride + /// + [DataMember(Name = "profilePicOverride", EmitDefaultValue = false)] + public string ProfilePicOverride { get; set; } + + /// + /// Gets or Sets StatusDescription + /// + [DataMember(Name = "statusDescription", IsRequired = true, EmitDefaultValue = true)] + public string StatusDescription { 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 MutualFriend {\n"); + sb.Append(" AvatarThumbnail: ").Append(AvatarThumbnail).Append("\n"); + sb.Append(" CurrentAvatarImageUrl: ").Append(CurrentAvatarImageUrl).Append("\n"); + sb.Append(" CurrentAvatarTags: ").Append(CurrentAvatarTags).Append("\n"); + sb.Append(" CurrentAvatarThumbnailImageUrl: ").Append(CurrentAvatarThumbnailImageUrl).Append("\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" ProfilePicOverride: ").Append(ProfilePicOverride).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" StatusDescription: ").Append(StatusDescription).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as MutualFriend); + } + + /// + /// Returns true if MutualFriend instances are equal + /// + /// Instance of MutualFriend to be compared + /// Boolean + public bool Equals(MutualFriend input) + { + if (input == null) + { + return false; + } + return + ( + this.AvatarThumbnail == input.AvatarThumbnail || + (this.AvatarThumbnail != null && + this.AvatarThumbnail.Equals(input.AvatarThumbnail)) + ) && + ( + this.CurrentAvatarImageUrl == input.CurrentAvatarImageUrl || + (this.CurrentAvatarImageUrl != null && + this.CurrentAvatarImageUrl.Equals(input.CurrentAvatarImageUrl)) + ) && + ( + this.CurrentAvatarTags == input.CurrentAvatarTags || + this.CurrentAvatarTags != null && + input.CurrentAvatarTags != null && + this.CurrentAvatarTags.SequenceEqual(input.CurrentAvatarTags) + ) && + ( + this.CurrentAvatarThumbnailImageUrl == input.CurrentAvatarThumbnailImageUrl || + (this.CurrentAvatarThumbnailImageUrl != null && + this.CurrentAvatarThumbnailImageUrl.Equals(input.CurrentAvatarThumbnailImageUrl)) + ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) + ) && + ( + this.ProfilePicOverride == input.ProfilePicOverride || + (this.ProfilePicOverride != null && + this.ProfilePicOverride.Equals(input.ProfilePicOverride)) + ) && + ( + this.Status == input.Status || + this.Status.Equals(input.Status) + ) && + ( + this.StatusDescription == input.StatusDescription || + (this.StatusDescription != null && + this.StatusDescription.Equals(input.StatusDescription)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AvatarThumbnail != null) + { + hashCode = (hashCode * 59) + this.AvatarThumbnail.GetHashCode(); + } + if (this.CurrentAvatarImageUrl != null) + { + hashCode = (hashCode * 59) + this.CurrentAvatarImageUrl.GetHashCode(); + } + if (this.CurrentAvatarTags != null) + { + hashCode = (hashCode * 59) + this.CurrentAvatarTags.GetHashCode(); + } + if (this.CurrentAvatarThumbnailImageUrl != null) + { + hashCode = (hashCode * 59) + this.CurrentAvatarThumbnailImageUrl.GetHashCode(); + } + if (this.DisplayName != null) + { + hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.ImageUrl != null) + { + hashCode = (hashCode * 59) + this.ImageUrl.GetHashCode(); + } + if (this.ProfilePicOverride != null) + { + hashCode = (hashCode * 59) + this.ProfilePicOverride.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + if (this.StatusDescription != null) + { + hashCode = (hashCode * 59) + this.StatusDescription.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/VRChat.API/Model/UpdatePermissionRequest.cs b/src/VRChat.API/Model/Mutuals.cs similarity index 52% rename from src/VRChat.API/Model/UpdatePermissionRequest.cs rename to src/VRChat.API/Model/Mutuals.cs index da375031..bb988a2a 100644 --- a/src/VRChat.API/Model/UpdatePermissionRequest.cs +++ b/src/VRChat.API/Model/Mutuals.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,37 +27,38 @@ namespace VRChat.API.Model { /// - /// UpdatePermissionRequest + /// Mutuals /// - [DataContract(Name = "updatePermission_request")] - public partial class UpdatePermissionRequest : IEquatable, IValidatableObject + [DataContract(Name = "Mutuals")] + public partial class Mutuals : IEquatable, IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// name. - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. - public UpdatePermissionRequest(string name = default, string ownerId = default) + [JsonConstructorAttribute] + protected Mutuals() { } + /// + /// Initializes a new instance of the class. + /// + /// friends (required) (default to 0). + /// groups (required) (default to 0). + public Mutuals(int friends = 0, int groups = 0) { - this.Name = name; - this.OwnerId = ownerId; + this.Friends = friends; + this.Groups = groups; } /// - /// Gets or Sets Name + /// Gets or Sets Friends /// - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + [DataMember(Name = "friends", IsRequired = true, EmitDefaultValue = true)] + public int Friends { get; set; } /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// Gets or Sets Groups /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - /* - usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 - */ - [DataMember(Name = "ownerId", EmitDefaultValue = false)] - public string OwnerId { get; set; } + [DataMember(Name = "groups", IsRequired = true, EmitDefaultValue = true)] + public int Groups { get; set; } /// /// Returns the string presentation of the object @@ -66,9 +67,9 @@ public UpdatePermissionRequest(string name = default, string ownerId = default) public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class UpdatePermissionRequest {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" OwnerId: ").Append(OwnerId).Append("\n"); + sb.Append("class Mutuals {\n"); + sb.Append(" Friends: ").Append(Friends).Append("\n"); + sb.Append(" Groups: ").Append(Groups).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -89,15 +90,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as UpdatePermissionRequest); + return this.Equals(input as Mutuals); } /// - /// Returns true if UpdatePermissionRequest instances are equal + /// Returns true if Mutuals instances are equal /// - /// Instance of UpdatePermissionRequest to be compared + /// Instance of Mutuals to be compared /// Boolean - public bool Equals(UpdatePermissionRequest input) + public bool Equals(Mutuals input) { if (input == null) { @@ -105,14 +106,12 @@ public bool Equals(UpdatePermissionRequest input) } return ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) + this.Friends == input.Friends || + this.Friends.Equals(input.Friends) ) && ( - this.OwnerId == input.OwnerId || - (this.OwnerId != null && - this.OwnerId.Equals(input.OwnerId)) + this.Groups == input.Groups || + this.Groups.Equals(input.Groups) ); } @@ -125,14 +124,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Name != null) - { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); - } - if (this.OwnerId != null) - { - hashCode = (hashCode * 59) + this.OwnerId.GetHashCode(); - } + hashCode = (hashCode * 59) + this.Friends.GetHashCode(); + hashCode = (hashCode * 59) + this.Groups.GetHashCode(); return hashCode; } } @@ -144,6 +137,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { + // Friends (int) minimum + if (this.Friends < (int)0) + { + yield return new ValidationResult("Invalid value for Friends, must be a value greater than or equal to 0.", new [] { "Friends" }); + } + + // Groups (int) minimum + if (this.Groups < (int)0) + { + yield return new ValidationResult("Invalid value for Groups, must be a value greater than or equal to 0.", new [] { "Groups" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/Notification.cs b/src/VRChat.API/Model/Notification.cs index 20de5f36..83f46af8 100644 --- a/src/VRChat.API/Model/Notification.cs +++ b/src/VRChat.API/Model/Notification.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -50,12 +50,12 @@ protected Notification() { } /// **NOTICE:** This is not a JSON object when received from the REST API, but it is when received from the Websocket API. When received from the REST API, this is a json **encoded** object, meaning you have to json-de-encode to get the NotificationDetail object depending on the NotificationType. (required) (default to "{}"). /// id (required). /// message (required). - /// Not included in notification objects received from the Websocket API (default to false). /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + /// Not included in notification objects received from the Websocket API (default to false). /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). /// -| **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429).. /// type (required). - public Notification(DateTime createdAt = default, string details = @"{}", string id = default, string message = default, bool seen = false, string receiverUserId = default, string senderUserId = default, string senderUsername = default, NotificationType type = default) + public Notification(DateTime createdAt = default, string details = @"{}", string id = default, string message = default, string receiverUserId = default, bool seen = false, string senderUserId = default, string senderUsername = default, NotificationType type = default) { this.CreatedAt = createdAt; // to ensure "details" is required (not null) @@ -83,8 +83,8 @@ public Notification(DateTime createdAt = default, string details = @"{}", string } this.SenderUserId = senderUserId; this.Type = type; - this.Seen = seen; this.ReceiverUserId = receiverUserId; + this.Seen = seen; this.SenderUsername = senderUsername; } @@ -99,7 +99,7 @@ public Notification(DateTime createdAt = default, string details = @"{}", string /// /// **NOTICE:** This is not a JSON object when received from the REST API, but it is when received from the Websocket API. When received from the REST API, this is a json **encoded** object, meaning you have to json-de-encode to get the NotificationDetail object depending on the NotificationType. /* - OneOf: {}, NotificationDetailInvite, NotificationDetailInviteResponse, NotificationDetailRequestInvite, NotificationDetailRequestInviteResponse, NotificationDetailVoteToKick + OneOf: {}, NotificationDetailBoop, NotificationDetailInvite, NotificationDetailInviteResponse, NotificationDetailRequestInvite, NotificationDetailRequestInviteResponse, NotificationDetailVoteToKick */ [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] public string Details { get; set; } @@ -119,13 +119,6 @@ public Notification(DateTime createdAt = default, string details = @"{}", string [DataMember(Name = "message", IsRequired = true, EmitDefaultValue = true)] public string Message { get; set; } - /// - /// Not included in notification objects received from the Websocket API - /// - /// Not included in notification objects received from the Websocket API - [DataMember(Name = "seen", EmitDefaultValue = true)] - public bool Seen { get; set; } - /// /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// @@ -136,6 +129,13 @@ public Notification(DateTime createdAt = default, string details = @"{}", string [DataMember(Name = "receiverUserId", EmitDefaultValue = false)] public string ReceiverUserId { get; set; } + /// + /// Not included in notification objects received from the Websocket API + /// + /// Not included in notification objects received from the Websocket API + [DataMember(Name = "seen", EmitDefaultValue = true)] + public bool Seen { get; set; } + /// /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// @@ -166,8 +166,8 @@ public override string ToString() sb.Append(" Details: ").Append(Details).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Message: ").Append(Message).Append("\n"); - sb.Append(" Seen: ").Append(Seen).Append("\n"); sb.Append(" ReceiverUserId: ").Append(ReceiverUserId).Append("\n"); + sb.Append(" Seen: ").Append(Seen).Append("\n"); sb.Append(" SenderUserId: ").Append(SenderUserId).Append("\n"); sb.Append(" SenderUsername: ").Append(SenderUsername).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); @@ -226,15 +226,15 @@ public bool Equals(Notification input) (this.Message != null && this.Message.Equals(input.Message)) ) && - ( - this.Seen == input.Seen || - this.Seen.Equals(input.Seen) - ) && ( this.ReceiverUserId == input.ReceiverUserId || (this.ReceiverUserId != null && this.ReceiverUserId.Equals(input.ReceiverUserId)) ) && + ( + this.Seen == input.Seen || + this.Seen.Equals(input.Seen) + ) && ( this.SenderUserId == input.SenderUserId || (this.SenderUserId != null && @@ -276,11 +276,11 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Message.GetHashCode(); } - hashCode = (hashCode * 59) + this.Seen.GetHashCode(); if (this.ReceiverUserId != null) { hashCode = (hashCode * 59) + this.ReceiverUserId.GetHashCode(); } + hashCode = (hashCode * 59) + this.Seen.GetHashCode(); if (this.SenderUserId != null) { hashCode = (hashCode * 59) + this.SenderUserId.GetHashCode(); diff --git a/src/VRChat.API/Model/NotificationDetailInvite.cs b/src/VRChat.API/Model/NotificationDetailInvite.cs index 4cd4bfbe..955630ae 100644 --- a/src/VRChat.API/Model/NotificationDetailInvite.cs +++ b/src/VRChat.API/Model/NotificationDetailInvite.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/NotificationDetailInviteResponse.cs b/src/VRChat.API/Model/NotificationDetailInviteResponse.cs index cf302eed..74eccb84 100644 --- a/src/VRChat.API/Model/NotificationDetailInviteResponse.cs +++ b/src/VRChat.API/Model/NotificationDetailInviteResponse.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/NotificationDetailRequestInvite.cs b/src/VRChat.API/Model/NotificationDetailRequestInvite.cs index a0def9ff..0443e560 100644 --- a/src/VRChat.API/Model/NotificationDetailRequestInvite.cs +++ b/src/VRChat.API/Model/NotificationDetailRequestInvite.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/NotificationDetailRequestInviteResponse.cs b/src/VRChat.API/Model/NotificationDetailRequestInviteResponse.cs index 7d26e85b..765d5dc9 100644 --- a/src/VRChat.API/Model/NotificationDetailRequestInviteResponse.cs +++ b/src/VRChat.API/Model/NotificationDetailRequestInviteResponse.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/NotificationDetailVoteToKick.cs b/src/VRChat.API/Model/NotificationDetailVoteToKick.cs index b5ba0336..6b26c7ee 100644 --- a/src/VRChat.API/Model/NotificationDetailVoteToKick.cs +++ b/src/VRChat.API/Model/NotificationDetailVoteToKick.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/NotificationType.cs b/src/VRChat.API/Model/NotificationType.cs index 8e0318ac..d3d4a942 100644 --- a/src/VRChat.API/Model/NotificationType.cs +++ b/src/VRChat.API/Model/NotificationType.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,47 +32,53 @@ namespace VRChat.API.Model [JsonConverter(typeof(StringEnumConverter))] public enum NotificationType { + /// + /// Enum Boop for value: boop + /// + [EnumMember(Value = "boop")] + Boop = 1, + /// /// Enum FriendRequest for value: friendRequest /// [EnumMember(Value = "friendRequest")] - FriendRequest = 1, + FriendRequest = 2, /// /// Enum Invite for value: invite /// [EnumMember(Value = "invite")] - Invite = 2, + Invite = 3, /// /// Enum InviteResponse for value: inviteResponse /// [EnumMember(Value = "inviteResponse")] - InviteResponse = 3, + InviteResponse = 4, /// /// Enum Message for value: message /// [EnumMember(Value = "message")] - Message = 4, + Message = 5, /// /// Enum RequestInvite for value: requestInvite /// [EnumMember(Value = "requestInvite")] - RequestInvite = 5, + RequestInvite = 6, /// /// Enum RequestInviteResponse for value: requestInviteResponse /// [EnumMember(Value = "requestInviteResponse")] - RequestInviteResponse = 6, + RequestInviteResponse = 7, /// /// Enum Votetokick for value: votetokick /// [EnumMember(Value = "votetokick")] - Votetokick = 7 + Votetokick = 8 } } diff --git a/src/VRChat.API/Model/OkStatus.cs b/src/VRChat.API/Model/OkStatus.cs index 704d2638..c1664cfa 100644 --- a/src/VRChat.API/Model/OkStatus.cs +++ b/src/VRChat.API/Model/OkStatus.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/OkStatus2.cs b/src/VRChat.API/Model/OkStatus2.cs index b9d2cd5e..db82130c 100644 --- a/src/VRChat.API/Model/OkStatus2.cs +++ b/src/VRChat.API/Model/OkStatus2.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/OrderOption.cs b/src/VRChat.API/Model/OrderOption.cs index 97a50153..25f9a4d5 100644 --- a/src/VRChat.API/Model/OrderOption.cs +++ b/src/VRChat.API/Model/OrderOption.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/OrderOptionShort.cs b/src/VRChat.API/Model/OrderOptionShort.cs new file mode 100644 index 00000000..5156e10d --- /dev/null +++ b/src/VRChat.API/Model/OrderOptionShort.cs @@ -0,0 +1,48 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.20.7-nightly.3 + * Contact: vrchatapi.lpv0t@aries.fyi + * 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 FileParameter = VRChat.API.Client.FileParameter; +using OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// Defines OrderOptionShort + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum OrderOptionShort + { + /// + /// Enum Asc for value: asc + /// + [EnumMember(Value = "asc")] + Asc = 1, + + /// + /// Enum Desc for value: desc + /// + [EnumMember(Value = "desc")] + Desc = 2 + } + +} diff --git a/src/VRChat.API/Model/PaginatedCalendarEventList.cs b/src/VRChat.API/Model/PaginatedCalendarEventList.cs index 7f58baad..a58a256e 100644 --- a/src/VRChat.API/Model/PaginatedCalendarEventList.cs +++ b/src/VRChat.API/Model/PaginatedCalendarEventList.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace VRChat.API.Model { /// - /// PaginatedCalendarEventList + /// An offset-based list of CalendarEvents /// [DataContract(Name = "PaginatedCalendarEventList")] public partial class PaginatedCalendarEventList : IEquatable, IValidatableObject @@ -35,16 +35,23 @@ public partial class PaginatedCalendarEventList : IEquatable /// Initializes a new instance of the class. /// + /// Whether there are more results after this page.. /// . /// The total number of results that the query would return if there were no pagination.. - /// Whether there are more results after this page.. - public PaginatedCalendarEventList(List results = default, int totalCount = default, bool hasNext = default) + public PaginatedCalendarEventList(bool hasNext = default, List results = default, int totalCount = default) { + this.HasNext = hasNext; this.Results = results; this.TotalCount = totalCount; - this.HasNext = hasNext; } + /// + /// Whether there are more results after this page. + /// + /// Whether there are more results after this page. + [DataMember(Name = "hasNext", EmitDefaultValue = true)] + public bool HasNext { get; set; } + /// /// /// @@ -59,13 +66,6 @@ public PaginatedCalendarEventList(List results = default, int tot [DataMember(Name = "totalCount", EmitDefaultValue = false)] public int TotalCount { get; set; } - /// - /// Whether there are more results after this page. - /// - /// Whether there are more results after this page. - [DataMember(Name = "hasNext", EmitDefaultValue = true)] - public bool HasNext { get; set; } - /// /// Returns the string presentation of the object /// @@ -74,9 +74,9 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class PaginatedCalendarEventList {\n"); + sb.Append(" HasNext: ").Append(HasNext).Append("\n"); sb.Append(" Results: ").Append(Results).Append("\n"); sb.Append(" TotalCount: ").Append(TotalCount).Append("\n"); - sb.Append(" HasNext: ").Append(HasNext).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -112,6 +112,10 @@ public bool Equals(PaginatedCalendarEventList input) return false; } return + ( + this.HasNext == input.HasNext || + this.HasNext.Equals(input.HasNext) + ) && ( this.Results == input.Results || this.Results != null && @@ -121,10 +125,6 @@ public bool Equals(PaginatedCalendarEventList input) ( this.TotalCount == input.TotalCount || this.TotalCount.Equals(input.TotalCount) - ) && - ( - this.HasNext == input.HasNext || - this.HasNext.Equals(input.HasNext) ); } @@ -137,12 +137,12 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + hashCode = (hashCode * 59) + this.HasNext.GetHashCode(); if (this.Results != null) { hashCode = (hashCode * 59) + this.Results.GetHashCode(); } hashCode = (hashCode * 59) + this.TotalCount.GetHashCode(); - hashCode = (hashCode * 59) + this.HasNext.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/PaginatedGroupAuditLogEntryList.cs b/src/VRChat.API/Model/PaginatedGroupAuditLogEntryList.cs index 16184b23..b712195e 100644 --- a/src/VRChat.API/Model/PaginatedGroupAuditLogEntryList.cs +++ b/src/VRChat.API/Model/PaginatedGroupAuditLogEntryList.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,16 +35,23 @@ public partial class PaginatedGroupAuditLogEntryList : IEquatable /// Initializes a new instance of the class. /// + /// Whether there are more results after this page.. /// . /// The total number of results that the query would return if there were no pagination.. - /// Whether there are more results after this page.. - public PaginatedGroupAuditLogEntryList(List results = default, int totalCount = default, bool hasNext = default) + public PaginatedGroupAuditLogEntryList(bool hasNext = default, List results = default, int totalCount = default) { + this.HasNext = hasNext; this.Results = results; this.TotalCount = totalCount; - this.HasNext = hasNext; } + /// + /// Whether there are more results after this page. + /// + /// Whether there are more results after this page. + [DataMember(Name = "hasNext", EmitDefaultValue = true)] + public bool HasNext { get; set; } + /// /// /// @@ -59,13 +66,6 @@ public PaginatedGroupAuditLogEntryList(List results = defaul [DataMember(Name = "totalCount", EmitDefaultValue = false)] public int TotalCount { get; set; } - /// - /// Whether there are more results after this page. - /// - /// Whether there are more results after this page. - [DataMember(Name = "hasNext", EmitDefaultValue = true)] - public bool HasNext { get; set; } - /// /// Returns the string presentation of the object /// @@ -74,9 +74,9 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class PaginatedGroupAuditLogEntryList {\n"); + sb.Append(" HasNext: ").Append(HasNext).Append("\n"); sb.Append(" Results: ").Append(Results).Append("\n"); sb.Append(" TotalCount: ").Append(TotalCount).Append("\n"); - sb.Append(" HasNext: ").Append(HasNext).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -112,6 +112,10 @@ public bool Equals(PaginatedGroupAuditLogEntryList input) return false; } return + ( + this.HasNext == input.HasNext || + this.HasNext.Equals(input.HasNext) + ) && ( this.Results == input.Results || this.Results != null && @@ -121,10 +125,6 @@ public bool Equals(PaginatedGroupAuditLogEntryList input) ( this.TotalCount == input.TotalCount || this.TotalCount.Equals(input.TotalCount) - ) && - ( - this.HasNext == input.HasNext || - this.HasNext.Equals(input.HasNext) ); } @@ -137,12 +137,12 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + hashCode = (hashCode * 59) + this.HasNext.GetHashCode(); if (this.Results != null) { hashCode = (hashCode * 59) + this.Results.GetHashCode(); } hashCode = (hashCode * 59) + this.TotalCount.GetHashCode(); - hashCode = (hashCode * 59) + this.HasNext.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/PastDisplayName.cs b/src/VRChat.API/Model/PastDisplayName.cs index d5cd770c..8faf842b 100644 --- a/src/VRChat.API/Model/PastDisplayName.cs +++ b/src/VRChat.API/Model/PastDisplayName.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Pending2FAResult.cs b/src/VRChat.API/Model/Pending2FAResult.cs index f2c1a592..63dccad1 100644 --- a/src/VRChat.API/Model/Pending2FAResult.cs +++ b/src/VRChat.API/Model/Pending2FAResult.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/PerformanceLimiterInfo.cs b/src/VRChat.API/Model/PerformanceLimiterInfo.cs index 3829d0b0..5482d45e 100644 --- a/src/VRChat.API/Model/PerformanceLimiterInfo.cs +++ b/src/VRChat.API/Model/PerformanceLimiterInfo.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/PerformanceRatings.cs b/src/VRChat.API/Model/PerformanceRatings.cs index d5ae744f..467615bd 100644 --- a/src/VRChat.API/Model/PerformanceRatings.cs +++ b/src/VRChat.API/Model/PerformanceRatings.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,29 +33,29 @@ namespace VRChat.API.Model [JsonConverter(typeof(StringEnumConverter))] public enum PerformanceRatings { - /// - /// Enum None for value: None - /// - [EnumMember(Value = "None")] - None = 1, - /// /// Enum Excellent for value: Excellent /// [EnumMember(Value = "Excellent")] - Excellent = 2, + Excellent = 1, /// /// Enum Good for value: Good /// [EnumMember(Value = "Good")] - Good = 3, + Good = 2, /// /// Enum Medium for value: Medium /// [EnumMember(Value = "Medium")] - Medium = 4, + Medium = 3, + + /// + /// Enum None for value: None + /// + [EnumMember(Value = "None")] + None = 4, /// /// Enum Poor for value: Poor diff --git a/src/VRChat.API/Model/Permission.cs b/src/VRChat.API/Model/Permission.cs index a5f115a5..7a43d072 100644 --- a/src/VRChat.API/Model/Permission.cs +++ b/src/VRChat.API/Model/Permission.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,15 +40,15 @@ protected Permission() { } /// /// Initializes a new instance of the class. /// - /// displayName. + /// data. /// description. + /// displayName. /// id (required). - /// ownerDisplayName (required). /// name (required). + /// ownerDisplayName (required). /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). /// type. - /// data. - public Permission(string displayName = default, string description = default, string id = default, string ownerDisplayName = default, string name = default, string ownerId = default, string type = default, Object data = default) + public Permission(Object data = default, string description = default, string displayName = default, string id = default, string name = default, string ownerDisplayName = default, string ownerId = default, string type = default) { // to ensure "id" is required (not null) if (id == null) @@ -56,35 +56,35 @@ public Permission(string displayName = default, string description = default, st throw new ArgumentNullException("id is a required property for Permission and cannot be null"); } this.Id = id; - // to ensure "ownerDisplayName" is required (not null) - if (ownerDisplayName == null) - { - throw new ArgumentNullException("ownerDisplayName is a required property for Permission and cannot be null"); - } - this.OwnerDisplayName = ownerDisplayName; // to ensure "name" is required (not null) if (name == null) { throw new ArgumentNullException("name is a required property for Permission and cannot be null"); } this.Name = name; + // to ensure "ownerDisplayName" is required (not null) + if (ownerDisplayName == null) + { + throw new ArgumentNullException("ownerDisplayName is a required property for Permission and cannot be null"); + } + this.OwnerDisplayName = ownerDisplayName; // to ensure "ownerId" is required (not null) if (ownerId == null) { throw new ArgumentNullException("ownerId is a required property for Permission and cannot be null"); } this.OwnerId = ownerId; - this.DisplayName = displayName; + this.Data = data; this.Description = description; + this.DisplayName = displayName; this.Type = type; - this.Data = data; } /// - /// Gets or Sets DisplayName + /// Gets or Sets Data /// - [DataMember(Name = "displayName", EmitDefaultValue = false)] - public string DisplayName { get; set; } + [DataMember(Name = "data", EmitDefaultValue = false)] + public Object Data { get; set; } /// /// Gets or Sets Description @@ -92,6 +92,12 @@ public Permission(string displayName = default, string description = default, st [DataMember(Name = "description", EmitDefaultValue = false)] public string Description { get; set; } + /// + /// Gets or Sets DisplayName + /// + [DataMember(Name = "displayName", EmitDefaultValue = false)] + public string DisplayName { get; set; } + /// /// Gets or Sets Id /// @@ -101,12 +107,6 @@ public Permission(string displayName = default, string description = default, st [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } - /// - /// Gets or Sets OwnerDisplayName - /// - [DataMember(Name = "ownerDisplayName", IsRequired = true, EmitDefaultValue = true)] - public string OwnerDisplayName { get; set; } - /// /// Gets or Sets Name /// @@ -116,6 +116,12 @@ public Permission(string displayName = default, string description = default, st [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] public string Name { get; set; } + /// + /// Gets or Sets OwnerDisplayName + /// + [DataMember(Name = "ownerDisplayName", IsRequired = true, EmitDefaultValue = true)] + public string OwnerDisplayName { get; set; } + /// /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// @@ -132,12 +138,6 @@ public Permission(string displayName = default, string description = default, st [DataMember(Name = "type", EmitDefaultValue = false)] public string Type { get; set; } - /// - /// Gets or Sets Data - /// - [DataMember(Name = "data", EmitDefaultValue = false)] - public Object Data { get; set; } - /// /// Returns the string presentation of the object /// @@ -146,14 +146,14 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class Permission {\n"); - sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" OwnerDisplayName: ").Append(OwnerDisplayName).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" OwnerDisplayName: ").Append(OwnerDisplayName).Append("\n"); sb.Append(" OwnerId: ").Append(OwnerId).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); - sb.Append(" Data: ").Append(Data).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -190,30 +190,35 @@ public bool Equals(Permission input) } return ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) + this.Data == input.Data || + (this.Data != null && + this.Data.Equals(input.Data)) ) && ( this.Description == input.Description || (this.Description != null && this.Description.Equals(input.Description)) ) && + ( + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) + ) && ( this.Id == input.Id || (this.Id != null && this.Id.Equals(input.Id)) ) && - ( - this.OwnerDisplayName == input.OwnerDisplayName || - (this.OwnerDisplayName != null && - this.OwnerDisplayName.Equals(input.OwnerDisplayName)) - ) && ( this.Name == input.Name || (this.Name != null && this.Name.Equals(input.Name)) ) && + ( + this.OwnerDisplayName == input.OwnerDisplayName || + (this.OwnerDisplayName != null && + this.OwnerDisplayName.Equals(input.OwnerDisplayName)) + ) && ( this.OwnerId == input.OwnerId || (this.OwnerId != null && @@ -223,11 +228,6 @@ public bool Equals(Permission input) this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) - ) && - ( - this.Data == input.Data || - (this.Data != null && - this.Data.Equals(input.Data)) ); } @@ -240,26 +240,30 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.DisplayName != null) + if (this.Data != null) { - hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); + hashCode = (hashCode * 59) + this.Data.GetHashCode(); } if (this.Description != null) { hashCode = (hashCode * 59) + this.Description.GetHashCode(); } - if (this.Id != null) + if (this.DisplayName != null) { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); } - if (this.OwnerDisplayName != null) + if (this.Id != null) { - hashCode = (hashCode * 59) + this.OwnerDisplayName.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); } + if (this.OwnerDisplayName != null) + { + hashCode = (hashCode * 59) + this.OwnerDisplayName.GetHashCode(); + } if (this.OwnerId != null) { hashCode = (hashCode * 59) + this.OwnerId.GetHashCode(); @@ -268,10 +272,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Type.GetHashCode(); } - if (this.Data != null) - { - hashCode = (hashCode * 59) + this.Data.GetHashCode(); - } return hashCode; } } diff --git a/src/VRChat.API/Model/PlatformBuildInfo.cs b/src/VRChat.API/Model/PlatformBuildInfo.cs index b22a3960..2853c88b 100644 --- a/src/VRChat.API/Model/PlatformBuildInfo.cs +++ b/src/VRChat.API/Model/PlatformBuildInfo.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/PlayerModeration.cs b/src/VRChat.API/Model/PlayerModeration.cs index 503b2200..05ee2c91 100644 --- a/src/VRChat.API/Model/PlayerModeration.cs +++ b/src/VRChat.API/Model/PlayerModeration.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/PlayerModerationType.cs b/src/VRChat.API/Model/PlayerModerationType.cs index 92813b3d..26ca7e94 100644 --- a/src/VRChat.API/Model/PlayerModerationType.cs +++ b/src/VRChat.API/Model/PlayerModerationType.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,34 +39,34 @@ public enum PlayerModerationType Block = 1, /// - /// Enum Mute for value: mute + /// Enum HideAvatar for value: hideAvatar /// - [EnumMember(Value = "mute")] - Mute = 2, + [EnumMember(Value = "hideAvatar")] + HideAvatar = 2, /// - /// Enum MuteChat for value: muteChat + /// Enum InteractOff for value: interactOff /// - [EnumMember(Value = "muteChat")] - MuteChat = 3, + [EnumMember(Value = "interactOff")] + InteractOff = 3, /// - /// Enum Unmute for value: unmute + /// Enum InteractOn for value: interactOn /// - [EnumMember(Value = "unmute")] - Unmute = 4, + [EnumMember(Value = "interactOn")] + InteractOn = 4, /// - /// Enum UnmuteChat for value: unmuteChat + /// Enum Mute for value: mute /// - [EnumMember(Value = "unmuteChat")] - UnmuteChat = 5, + [EnumMember(Value = "mute")] + Mute = 5, /// - /// Enum HideAvatar for value: hideAvatar + /// Enum MuteChat for value: muteChat /// - [EnumMember(Value = "hideAvatar")] - HideAvatar = 6, + [EnumMember(Value = "muteChat")] + MuteChat = 6, /// /// Enum ShowAvatar for value: showAvatar @@ -75,16 +75,16 @@ public enum PlayerModerationType ShowAvatar = 7, /// - /// Enum InteractOn for value: interactOn + /// Enum Unmute for value: unmute /// - [EnumMember(Value = "interactOn")] - InteractOn = 8, + [EnumMember(Value = "unmute")] + Unmute = 8, /// - /// Enum InteractOff for value: interactOff + /// Enum UnmuteChat for value: unmuteChat /// - [EnumMember(Value = "interactOff")] - InteractOff = 9 + [EnumMember(Value = "unmuteChat")] + UnmuteChat = 9 } } diff --git a/src/VRChat.API/Model/Print.cs b/src/VRChat.API/Model/Print.cs index 33216f95..bbf35af0 100644 --- a/src/VRChat.API/Model/Print.cs +++ b/src/VRChat.API/Model/Print.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/PrintFiles.cs b/src/VRChat.API/Model/PrintFiles.cs index 82e0e8db..5e6bfac3 100644 --- a/src/VRChat.API/Model/PrintFiles.cs +++ b/src/VRChat.API/Model/PrintFiles.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Product.cs b/src/VRChat.API/Model/Product.cs index 180c099a..022e3333 100644 --- a/src/VRChat.API/Model/Product.cs +++ b/src/VRChat.API/Model/Product.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/ProductListing.cs b/src/VRChat.API/Model/ProductListing.cs index f8d7364b..cbcc6016 100644 --- a/src/VRChat.API/Model/ProductListing.cs +++ b/src/VRChat.API/Model/ProductListing.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/ProductListingType.cs b/src/VRChat.API/Model/ProductListingType.cs index 8ba7dd2f..61472869 100644 --- a/src/VRChat.API/Model/ProductListingType.cs +++ b/src/VRChat.API/Model/ProductListingType.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,11 +32,23 @@ namespace VRChat.API.Model [JsonConverter(typeof(StringEnumConverter))] public enum ProductListingType { + /// + /// Enum Duration for value: duration + /// + [EnumMember(Value = "duration")] + Duration = 1, + + /// + /// Enum Permanent for value: permanent + /// + [EnumMember(Value = "permanent")] + Permanent = 2, + /// /// Enum Subscription for value: subscription /// [EnumMember(Value = "subscription")] - Subscription = 1 + Subscription = 3 } } diff --git a/src/VRChat.API/Model/ProductListingVariant.cs b/src/VRChat.API/Model/ProductListingVariant.cs index 3b28f4ce..5b991730 100644 --- a/src/VRChat.API/Model/ProductListingVariant.cs +++ b/src/VRChat.API/Model/ProductListingVariant.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/ProductPurchase.cs b/src/VRChat.API/Model/ProductPurchase.cs new file mode 100644 index 00000000..51288f50 --- /dev/null +++ b/src/VRChat.API/Model/ProductPurchase.cs @@ -0,0 +1,816 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.20.7-nightly.3 + * Contact: vrchatapi.lpv0t@aries.fyi + * 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 FileParameter = VRChat.API.Client.FileParameter; +using OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// ProductPurchase + /// + [DataContract(Name = "ProductPurchase")] + public partial class ProductPurchase : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets ListingType + /// + [DataMember(Name = "listingType", IsRequired = true, EmitDefaultValue = true)] + public ProductListingType ListingType { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ProductPurchase() { } + /// + /// Initializes a new instance of the class. + /// + /// buyerDisplayName (required). + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). + /// firstParty. + /// isBuyer (required). + /// isGift (required). + /// isReceiver (required). + /// isSeller (required). + /// listingCurrentlyAvailable (required). + /// listingDisplayName (required). + /// listingId (required). + /// listingImageId (required). + /// listingSubtitle (required). + /// listingType (required). + /// products (required). + /// purchaseActive (required). + /// purchaseContext (required). + /// purchaseCurrentStatus (required). + /// purchaseDate (required). + /// purchaseDuration. + /// purchaseDurationType. + /// purchaseEndDate (required). + /// purchaseId (required). + /// purchaseLatest (required). + /// purchasePrice (required). + /// purchaseQuantity (required). + /// purchaseStartDate (required). + /// purchaseToken (required). + /// purchaseType (required). + /// purchaseUnitPrice (required). + /// receiverDisplayName (required). + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). + /// recurrable (required). + /// refundable (required). + /// sellerDisplayName (required). + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). + /// stackable (required). + /// willRecur (required). + public ProductPurchase(string buyerDisplayName = default, string buyerId = default, bool firstParty = default, bool isBuyer = default, bool isGift = default, bool isReceiver = default, bool isSeller = default, bool listingCurrentlyAvailable = default, string listingDisplayName = default, string listingId = default, string listingImageId = default, string listingSubtitle = default, ProductListingType listingType = default, List products = default, bool purchaseActive = default, ProductPurchasePurchaseContext purchaseContext = default, string purchaseCurrentStatus = default, DateTime purchaseDate = default, int purchaseDuration = default, string purchaseDurationType = default, DateTime purchaseEndDate = default, string purchaseId = default, bool purchaseLatest = default, int purchasePrice = default, int purchaseQuantity = default, DateTime purchaseStartDate = default, Object purchaseToken = default, string purchaseType = default, int purchaseUnitPrice = default, string receiverDisplayName = default, string receiverId = default, bool recurrable = default, bool refundable = default, string sellerDisplayName = default, string sellerId = default, bool stackable = default, bool willRecur = default) + { + // to ensure "buyerDisplayName" is required (not null) + if (buyerDisplayName == null) + { + throw new ArgumentNullException("buyerDisplayName is a required property for ProductPurchase and cannot be null"); + } + this.BuyerDisplayName = buyerDisplayName; + // to ensure "buyerId" is required (not null) + if (buyerId == null) + { + throw new ArgumentNullException("buyerId is a required property for ProductPurchase and cannot be null"); + } + this.BuyerId = buyerId; + this.IsBuyer = isBuyer; + this.IsGift = isGift; + this.IsReceiver = isReceiver; + this.IsSeller = isSeller; + this.ListingCurrentlyAvailable = listingCurrentlyAvailable; + // to ensure "listingDisplayName" is required (not null) + if (listingDisplayName == null) + { + throw new ArgumentNullException("listingDisplayName is a required property for ProductPurchase and cannot be null"); + } + this.ListingDisplayName = listingDisplayName; + // to ensure "listingId" is required (not null) + if (listingId == null) + { + throw new ArgumentNullException("listingId is a required property for ProductPurchase and cannot be null"); + } + this.ListingId = listingId; + // to ensure "listingImageId" is required (not null) + if (listingImageId == null) + { + throw new ArgumentNullException("listingImageId is a required property for ProductPurchase and cannot be null"); + } + this.ListingImageId = listingImageId; + // to ensure "listingSubtitle" is required (not null) + if (listingSubtitle == null) + { + throw new ArgumentNullException("listingSubtitle is a required property for ProductPurchase and cannot be null"); + } + this.ListingSubtitle = listingSubtitle; + this.ListingType = listingType; + // to ensure "products" is required (not null) + if (products == null) + { + throw new ArgumentNullException("products is a required property for ProductPurchase and cannot be null"); + } + this.Products = products; + this.PurchaseActive = purchaseActive; + // to ensure "purchaseContext" is required (not null) + if (purchaseContext == null) + { + throw new ArgumentNullException("purchaseContext is a required property for ProductPurchase and cannot be null"); + } + this.PurchaseContext = purchaseContext; + // to ensure "purchaseCurrentStatus" is required (not null) + if (purchaseCurrentStatus == null) + { + throw new ArgumentNullException("purchaseCurrentStatus is a required property for ProductPurchase and cannot be null"); + } + this.PurchaseCurrentStatus = purchaseCurrentStatus; + this.PurchaseDate = purchaseDate; + this.PurchaseEndDate = purchaseEndDate; + // to ensure "purchaseId" is required (not null) + if (purchaseId == null) + { + throw new ArgumentNullException("purchaseId is a required property for ProductPurchase and cannot be null"); + } + this.PurchaseId = purchaseId; + this.PurchaseLatest = purchaseLatest; + this.PurchasePrice = purchasePrice; + this.PurchaseQuantity = purchaseQuantity; + this.PurchaseStartDate = purchaseStartDate; + // to ensure "purchaseToken" is required (not null) + if (purchaseToken == null) + { + throw new ArgumentNullException("purchaseToken is a required property for ProductPurchase and cannot be null"); + } + this.PurchaseToken = purchaseToken; + // to ensure "purchaseType" is required (not null) + if (purchaseType == null) + { + throw new ArgumentNullException("purchaseType is a required property for ProductPurchase and cannot be null"); + } + this.PurchaseType = purchaseType; + this.PurchaseUnitPrice = purchaseUnitPrice; + // to ensure "receiverDisplayName" is required (not null) + if (receiverDisplayName == null) + { + throw new ArgumentNullException("receiverDisplayName is a required property for ProductPurchase and cannot be null"); + } + this.ReceiverDisplayName = receiverDisplayName; + // to ensure "receiverId" is required (not null) + if (receiverId == null) + { + throw new ArgumentNullException("receiverId is a required property for ProductPurchase and cannot be null"); + } + this.ReceiverId = receiverId; + this.Recurrable = recurrable; + this.Refundable = refundable; + // to ensure "sellerDisplayName" is required (not null) + if (sellerDisplayName == null) + { + throw new ArgumentNullException("sellerDisplayName is a required property for ProductPurchase and cannot be null"); + } + this.SellerDisplayName = sellerDisplayName; + // to ensure "sellerId" is required (not null) + if (sellerId == null) + { + throw new ArgumentNullException("sellerId is a required property for ProductPurchase and cannot be null"); + } + this.SellerId = sellerId; + this.Stackable = stackable; + this.WillRecur = willRecur; + this.FirstParty = firstParty; + this.PurchaseDuration = purchaseDuration; + this.PurchaseDurationType = purchaseDurationType; + } + + /// + /// Gets or Sets BuyerDisplayName + /// + [DataMember(Name = "buyerDisplayName", IsRequired = true, EmitDefaultValue = true)] + public string BuyerDisplayName { get; set; } + + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /* + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + */ + [DataMember(Name = "buyerId", IsRequired = true, EmitDefaultValue = true)] + public string BuyerId { get; set; } + + /// + /// Gets or Sets FirstParty + /// + [DataMember(Name = "firstParty", EmitDefaultValue = true)] + public bool FirstParty { get; set; } + + /// + /// Gets or Sets IsBuyer + /// + [DataMember(Name = "isBuyer", IsRequired = true, EmitDefaultValue = true)] + public bool IsBuyer { get; set; } + + /// + /// Gets or Sets IsGift + /// + [DataMember(Name = "isGift", IsRequired = true, EmitDefaultValue = true)] + public bool IsGift { get; set; } + + /// + /// Gets or Sets IsReceiver + /// + [DataMember(Name = "isReceiver", IsRequired = true, EmitDefaultValue = true)] + public bool IsReceiver { get; set; } + + /// + /// Gets or Sets IsSeller + /// + [DataMember(Name = "isSeller", IsRequired = true, EmitDefaultValue = true)] + public bool IsSeller { get; set; } + + /// + /// Gets or Sets ListingCurrentlyAvailable + /// + [DataMember(Name = "listingCurrentlyAvailable", IsRequired = true, EmitDefaultValue = true)] + public bool ListingCurrentlyAvailable { get; set; } + + /// + /// Gets or Sets ListingDisplayName + /// + [DataMember(Name = "listingDisplayName", IsRequired = true, EmitDefaultValue = true)] + public string ListingDisplayName { get; set; } + + /// + /// Gets or Sets ListingId + /// + /* + prod_bfbc2315-247a-44d7-bfea-5237f8d56cb4 + */ + [DataMember(Name = "listingId", IsRequired = true, EmitDefaultValue = true)] + public string ListingId { get; set; } + + /// + /// Gets or Sets ListingImageId + /// + /* + file_ce35d830-e20a-4df0-a6d4-5aaef4508044 + */ + [DataMember(Name = "listingImageId", IsRequired = true, EmitDefaultValue = true)] + public string ListingImageId { get; set; } + + /// + /// Gets or Sets ListingSubtitle + /// + [DataMember(Name = "listingSubtitle", IsRequired = true, EmitDefaultValue = true)] + public string ListingSubtitle { get; set; } + + /// + /// Gets or Sets Products + /// + [DataMember(Name = "products", IsRequired = true, EmitDefaultValue = true)] + public List Products { get; set; } + + /// + /// Gets or Sets PurchaseActive + /// + [DataMember(Name = "purchaseActive", IsRequired = true, EmitDefaultValue = true)] + public bool PurchaseActive { get; set; } + + /// + /// Gets or Sets PurchaseContext + /// + [DataMember(Name = "purchaseContext", IsRequired = true, EmitDefaultValue = true)] + public ProductPurchasePurchaseContext PurchaseContext { get; set; } + + /// + /// Gets or Sets PurchaseCurrentStatus + /// + [DataMember(Name = "purchaseCurrentStatus", IsRequired = true, EmitDefaultValue = true)] + public string PurchaseCurrentStatus { get; set; } + + /// + /// Gets or Sets PurchaseDate + /// + [DataMember(Name = "purchaseDate", IsRequired = true, EmitDefaultValue = true)] + public DateTime PurchaseDate { get; set; } + + /// + /// Gets or Sets PurchaseDuration + /// + [DataMember(Name = "purchaseDuration", EmitDefaultValue = false)] + public int PurchaseDuration { get; set; } + + /// + /// Gets or Sets PurchaseDurationType + /// + [DataMember(Name = "purchaseDurationType", EmitDefaultValue = false)] + public string PurchaseDurationType { get; set; } + + /// + /// Gets or Sets PurchaseEndDate + /// + [DataMember(Name = "purchaseEndDate", IsRequired = true, EmitDefaultValue = true)] + public DateTime PurchaseEndDate { get; set; } + + /// + /// Gets or Sets PurchaseId + /// + /* + pur_f0446b91-e0f7-403e-8932-609d5057898c + */ + [DataMember(Name = "purchaseId", IsRequired = true, EmitDefaultValue = true)] + public string PurchaseId { get; set; } + + /// + /// Gets or Sets PurchaseLatest + /// + [DataMember(Name = "purchaseLatest", IsRequired = true, EmitDefaultValue = true)] + public bool PurchaseLatest { get; set; } + + /// + /// Gets or Sets PurchasePrice + /// + [DataMember(Name = "purchasePrice", IsRequired = true, EmitDefaultValue = true)] + public int PurchasePrice { get; set; } + + /// + /// Gets or Sets PurchaseQuantity + /// + [DataMember(Name = "purchaseQuantity", IsRequired = true, EmitDefaultValue = true)] + public int PurchaseQuantity { get; set; } + + /// + /// Gets or Sets PurchaseStartDate + /// + [DataMember(Name = "purchaseStartDate", IsRequired = true, EmitDefaultValue = true)] + public DateTime PurchaseStartDate { get; set; } + + /// + /// Gets or Sets PurchaseToken + /// + [DataMember(Name = "purchaseToken", IsRequired = true, EmitDefaultValue = true)] + public Object PurchaseToken { get; set; } + + /// + /// Gets or Sets PurchaseType + /// + [DataMember(Name = "purchaseType", IsRequired = true, EmitDefaultValue = true)] + public string PurchaseType { get; set; } + + /// + /// Gets or Sets PurchaseUnitPrice + /// + [DataMember(Name = "purchaseUnitPrice", IsRequired = true, EmitDefaultValue = true)] + public int PurchaseUnitPrice { get; set; } + + /// + /// Gets or Sets ReceiverDisplayName + /// + [DataMember(Name = "receiverDisplayName", IsRequired = true, EmitDefaultValue = true)] + public string ReceiverDisplayName { get; set; } + + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /* + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + */ + [DataMember(Name = "receiverId", IsRequired = true, EmitDefaultValue = true)] + public string ReceiverId { get; set; } + + /// + /// Gets or Sets Recurrable + /// + [DataMember(Name = "recurrable", IsRequired = true, EmitDefaultValue = true)] + public bool Recurrable { get; set; } + + /// + /// Gets or Sets Refundable + /// + [DataMember(Name = "refundable", IsRequired = true, EmitDefaultValue = true)] + public bool Refundable { get; set; } + + /// + /// Gets or Sets SellerDisplayName + /// + [DataMember(Name = "sellerDisplayName", IsRequired = true, EmitDefaultValue = true)] + public string SellerDisplayName { get; set; } + + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /* + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + */ + [DataMember(Name = "sellerId", IsRequired = true, EmitDefaultValue = true)] + public string SellerId { get; set; } + + /// + /// Gets or Sets Stackable + /// + [DataMember(Name = "stackable", IsRequired = true, EmitDefaultValue = true)] + public bool Stackable { get; set; } + + /// + /// Gets or Sets WillRecur + /// + [DataMember(Name = "willRecur", IsRequired = true, EmitDefaultValue = true)] + public bool WillRecur { 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 ProductPurchase {\n"); + sb.Append(" BuyerDisplayName: ").Append(BuyerDisplayName).Append("\n"); + sb.Append(" BuyerId: ").Append(BuyerId).Append("\n"); + sb.Append(" FirstParty: ").Append(FirstParty).Append("\n"); + sb.Append(" IsBuyer: ").Append(IsBuyer).Append("\n"); + sb.Append(" IsGift: ").Append(IsGift).Append("\n"); + sb.Append(" IsReceiver: ").Append(IsReceiver).Append("\n"); + sb.Append(" IsSeller: ").Append(IsSeller).Append("\n"); + sb.Append(" ListingCurrentlyAvailable: ").Append(ListingCurrentlyAvailable).Append("\n"); + sb.Append(" ListingDisplayName: ").Append(ListingDisplayName).Append("\n"); + sb.Append(" ListingId: ").Append(ListingId).Append("\n"); + sb.Append(" ListingImageId: ").Append(ListingImageId).Append("\n"); + sb.Append(" ListingSubtitle: ").Append(ListingSubtitle).Append("\n"); + sb.Append(" ListingType: ").Append(ListingType).Append("\n"); + sb.Append(" Products: ").Append(Products).Append("\n"); + sb.Append(" PurchaseActive: ").Append(PurchaseActive).Append("\n"); + sb.Append(" PurchaseContext: ").Append(PurchaseContext).Append("\n"); + sb.Append(" PurchaseCurrentStatus: ").Append(PurchaseCurrentStatus).Append("\n"); + sb.Append(" PurchaseDate: ").Append(PurchaseDate).Append("\n"); + sb.Append(" PurchaseDuration: ").Append(PurchaseDuration).Append("\n"); + sb.Append(" PurchaseDurationType: ").Append(PurchaseDurationType).Append("\n"); + sb.Append(" PurchaseEndDate: ").Append(PurchaseEndDate).Append("\n"); + sb.Append(" PurchaseId: ").Append(PurchaseId).Append("\n"); + sb.Append(" PurchaseLatest: ").Append(PurchaseLatest).Append("\n"); + sb.Append(" PurchasePrice: ").Append(PurchasePrice).Append("\n"); + sb.Append(" PurchaseQuantity: ").Append(PurchaseQuantity).Append("\n"); + sb.Append(" PurchaseStartDate: ").Append(PurchaseStartDate).Append("\n"); + sb.Append(" PurchaseToken: ").Append(PurchaseToken).Append("\n"); + sb.Append(" PurchaseType: ").Append(PurchaseType).Append("\n"); + sb.Append(" PurchaseUnitPrice: ").Append(PurchaseUnitPrice).Append("\n"); + sb.Append(" ReceiverDisplayName: ").Append(ReceiverDisplayName).Append("\n"); + sb.Append(" ReceiverId: ").Append(ReceiverId).Append("\n"); + sb.Append(" Recurrable: ").Append(Recurrable).Append("\n"); + sb.Append(" Refundable: ").Append(Refundable).Append("\n"); + sb.Append(" SellerDisplayName: ").Append(SellerDisplayName).Append("\n"); + sb.Append(" SellerId: ").Append(SellerId).Append("\n"); + sb.Append(" Stackable: ").Append(Stackable).Append("\n"); + sb.Append(" WillRecur: ").Append(WillRecur).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProductPurchase); + } + + /// + /// Returns true if ProductPurchase instances are equal + /// + /// Instance of ProductPurchase to be compared + /// Boolean + public bool Equals(ProductPurchase input) + { + if (input == null) + { + return false; + } + return + ( + this.BuyerDisplayName == input.BuyerDisplayName || + (this.BuyerDisplayName != null && + this.BuyerDisplayName.Equals(input.BuyerDisplayName)) + ) && + ( + this.BuyerId == input.BuyerId || + (this.BuyerId != null && + this.BuyerId.Equals(input.BuyerId)) + ) && + ( + this.FirstParty == input.FirstParty || + this.FirstParty.Equals(input.FirstParty) + ) && + ( + this.IsBuyer == input.IsBuyer || + this.IsBuyer.Equals(input.IsBuyer) + ) && + ( + this.IsGift == input.IsGift || + this.IsGift.Equals(input.IsGift) + ) && + ( + this.IsReceiver == input.IsReceiver || + this.IsReceiver.Equals(input.IsReceiver) + ) && + ( + this.IsSeller == input.IsSeller || + this.IsSeller.Equals(input.IsSeller) + ) && + ( + this.ListingCurrentlyAvailable == input.ListingCurrentlyAvailable || + this.ListingCurrentlyAvailable.Equals(input.ListingCurrentlyAvailable) + ) && + ( + this.ListingDisplayName == input.ListingDisplayName || + (this.ListingDisplayName != null && + this.ListingDisplayName.Equals(input.ListingDisplayName)) + ) && + ( + this.ListingId == input.ListingId || + (this.ListingId != null && + this.ListingId.Equals(input.ListingId)) + ) && + ( + this.ListingImageId == input.ListingImageId || + (this.ListingImageId != null && + this.ListingImageId.Equals(input.ListingImageId)) + ) && + ( + this.ListingSubtitle == input.ListingSubtitle || + (this.ListingSubtitle != null && + this.ListingSubtitle.Equals(input.ListingSubtitle)) + ) && + ( + this.ListingType == input.ListingType || + this.ListingType.Equals(input.ListingType) + ) && + ( + this.Products == input.Products || + this.Products != null && + input.Products != null && + this.Products.SequenceEqual(input.Products) + ) && + ( + this.PurchaseActive == input.PurchaseActive || + this.PurchaseActive.Equals(input.PurchaseActive) + ) && + ( + this.PurchaseContext == input.PurchaseContext || + (this.PurchaseContext != null && + this.PurchaseContext.Equals(input.PurchaseContext)) + ) && + ( + this.PurchaseCurrentStatus == input.PurchaseCurrentStatus || + (this.PurchaseCurrentStatus != null && + this.PurchaseCurrentStatus.Equals(input.PurchaseCurrentStatus)) + ) && + ( + this.PurchaseDate == input.PurchaseDate || + (this.PurchaseDate != null && + this.PurchaseDate.Equals(input.PurchaseDate)) + ) && + ( + this.PurchaseDuration == input.PurchaseDuration || + this.PurchaseDuration.Equals(input.PurchaseDuration) + ) && + ( + this.PurchaseDurationType == input.PurchaseDurationType || + (this.PurchaseDurationType != null && + this.PurchaseDurationType.Equals(input.PurchaseDurationType)) + ) && + ( + this.PurchaseEndDate == input.PurchaseEndDate || + (this.PurchaseEndDate != null && + this.PurchaseEndDate.Equals(input.PurchaseEndDate)) + ) && + ( + this.PurchaseId == input.PurchaseId || + (this.PurchaseId != null && + this.PurchaseId.Equals(input.PurchaseId)) + ) && + ( + this.PurchaseLatest == input.PurchaseLatest || + this.PurchaseLatest.Equals(input.PurchaseLatest) + ) && + ( + this.PurchasePrice == input.PurchasePrice || + this.PurchasePrice.Equals(input.PurchasePrice) + ) && + ( + this.PurchaseQuantity == input.PurchaseQuantity || + this.PurchaseQuantity.Equals(input.PurchaseQuantity) + ) && + ( + this.PurchaseStartDate == input.PurchaseStartDate || + (this.PurchaseStartDate != null && + this.PurchaseStartDate.Equals(input.PurchaseStartDate)) + ) && + ( + this.PurchaseToken == input.PurchaseToken || + (this.PurchaseToken != null && + this.PurchaseToken.Equals(input.PurchaseToken)) + ) && + ( + this.PurchaseType == input.PurchaseType || + (this.PurchaseType != null && + this.PurchaseType.Equals(input.PurchaseType)) + ) && + ( + this.PurchaseUnitPrice == input.PurchaseUnitPrice || + this.PurchaseUnitPrice.Equals(input.PurchaseUnitPrice) + ) && + ( + this.ReceiverDisplayName == input.ReceiverDisplayName || + (this.ReceiverDisplayName != null && + this.ReceiverDisplayName.Equals(input.ReceiverDisplayName)) + ) && + ( + this.ReceiverId == input.ReceiverId || + (this.ReceiverId != null && + this.ReceiverId.Equals(input.ReceiverId)) + ) && + ( + this.Recurrable == input.Recurrable || + this.Recurrable.Equals(input.Recurrable) + ) && + ( + this.Refundable == input.Refundable || + this.Refundable.Equals(input.Refundable) + ) && + ( + this.SellerDisplayName == input.SellerDisplayName || + (this.SellerDisplayName != null && + this.SellerDisplayName.Equals(input.SellerDisplayName)) + ) && + ( + this.SellerId == input.SellerId || + (this.SellerId != null && + this.SellerId.Equals(input.SellerId)) + ) && + ( + this.Stackable == input.Stackable || + this.Stackable.Equals(input.Stackable) + ) && + ( + this.WillRecur == input.WillRecur || + this.WillRecur.Equals(input.WillRecur) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.BuyerDisplayName != null) + { + hashCode = (hashCode * 59) + this.BuyerDisplayName.GetHashCode(); + } + if (this.BuyerId != null) + { + hashCode = (hashCode * 59) + this.BuyerId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.FirstParty.GetHashCode(); + hashCode = (hashCode * 59) + this.IsBuyer.GetHashCode(); + hashCode = (hashCode * 59) + this.IsGift.GetHashCode(); + hashCode = (hashCode * 59) + this.IsReceiver.GetHashCode(); + hashCode = (hashCode * 59) + this.IsSeller.GetHashCode(); + hashCode = (hashCode * 59) + this.ListingCurrentlyAvailable.GetHashCode(); + if (this.ListingDisplayName != null) + { + hashCode = (hashCode * 59) + this.ListingDisplayName.GetHashCode(); + } + if (this.ListingId != null) + { + hashCode = (hashCode * 59) + this.ListingId.GetHashCode(); + } + if (this.ListingImageId != null) + { + hashCode = (hashCode * 59) + this.ListingImageId.GetHashCode(); + } + if (this.ListingSubtitle != null) + { + hashCode = (hashCode * 59) + this.ListingSubtitle.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ListingType.GetHashCode(); + if (this.Products != null) + { + hashCode = (hashCode * 59) + this.Products.GetHashCode(); + } + hashCode = (hashCode * 59) + this.PurchaseActive.GetHashCode(); + if (this.PurchaseContext != null) + { + hashCode = (hashCode * 59) + this.PurchaseContext.GetHashCode(); + } + if (this.PurchaseCurrentStatus != null) + { + hashCode = (hashCode * 59) + this.PurchaseCurrentStatus.GetHashCode(); + } + if (this.PurchaseDate != null) + { + hashCode = (hashCode * 59) + this.PurchaseDate.GetHashCode(); + } + hashCode = (hashCode * 59) + this.PurchaseDuration.GetHashCode(); + if (this.PurchaseDurationType != null) + { + hashCode = (hashCode * 59) + this.PurchaseDurationType.GetHashCode(); + } + if (this.PurchaseEndDate != null) + { + hashCode = (hashCode * 59) + this.PurchaseEndDate.GetHashCode(); + } + if (this.PurchaseId != null) + { + hashCode = (hashCode * 59) + this.PurchaseId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.PurchaseLatest.GetHashCode(); + hashCode = (hashCode * 59) + this.PurchasePrice.GetHashCode(); + hashCode = (hashCode * 59) + this.PurchaseQuantity.GetHashCode(); + if (this.PurchaseStartDate != null) + { + hashCode = (hashCode * 59) + this.PurchaseStartDate.GetHashCode(); + } + if (this.PurchaseToken != null) + { + hashCode = (hashCode * 59) + this.PurchaseToken.GetHashCode(); + } + if (this.PurchaseType != null) + { + hashCode = (hashCode * 59) + this.PurchaseType.GetHashCode(); + } + hashCode = (hashCode * 59) + this.PurchaseUnitPrice.GetHashCode(); + if (this.ReceiverDisplayName != null) + { + hashCode = (hashCode * 59) + this.ReceiverDisplayName.GetHashCode(); + } + if (this.ReceiverId != null) + { + hashCode = (hashCode * 59) + this.ReceiverId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Recurrable.GetHashCode(); + hashCode = (hashCode * 59) + this.Refundable.GetHashCode(); + if (this.SellerDisplayName != null) + { + hashCode = (hashCode * 59) + this.SellerDisplayName.GetHashCode(); + } + if (this.SellerId != null) + { + hashCode = (hashCode * 59) + this.SellerId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Stackable.GetHashCode(); + hashCode = (hashCode * 59) + this.WillRecur.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/VRChat.API/Model/ProductPurchasePurchaseContext.cs b/src/VRChat.API/Model/ProductPurchasePurchaseContext.cs new file mode 100644 index 00000000..dace6e2f --- /dev/null +++ b/src/VRChat.API/Model/ProductPurchasePurchaseContext.cs @@ -0,0 +1,132 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.20.7-nightly.3 + * Contact: vrchatapi.lpv0t@aries.fyi + * 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 FileParameter = VRChat.API.Client.FileParameter; +using OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// ProductPurchasePurchaseContext + /// + [DataContract(Name = "ProductPurchase_purchaseContext")] + public partial class ProductPurchasePurchaseContext : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// locationType. + public ProductPurchasePurchaseContext(string locationType = default) + { + this.LocationType = locationType; + } + + /// + /// Gets or Sets LocationType + /// + /* + undefined + */ + [DataMember(Name = "locationType", EmitDefaultValue = false)] + public string LocationType { 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 ProductPurchasePurchaseContext {\n"); + sb.Append(" LocationType: ").Append(LocationType).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ProductPurchasePurchaseContext); + } + + /// + /// Returns true if ProductPurchasePurchaseContext instances are equal + /// + /// Instance of ProductPurchasePurchaseContext to be compared + /// Boolean + public bool Equals(ProductPurchasePurchaseContext input) + { + if (input == null) + { + return false; + } + return + ( + this.LocationType == input.LocationType || + (this.LocationType != null && + this.LocationType.Equals(input.LocationType)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.LocationType != null) + { + hashCode = (hashCode * 59) + this.LocationType.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/VRChat.API/Model/ProductType.cs b/src/VRChat.API/Model/ProductType.cs index 6b8af887..44f046a6 100644 --- a/src/VRChat.API/Model/ProductType.cs +++ b/src/VRChat.API/Model/ProductType.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,23 +32,29 @@ namespace VRChat.API.Model [JsonConverter(typeof(StringEnumConverter))] public enum ProductType { + /// + /// Enum Inventory for value: inventory + /// + [EnumMember(Value = "inventory")] + Inventory = 1, + /// /// Enum Listing for value: listing /// [EnumMember(Value = "listing")] - Listing = 1, + Listing = 2, /// /// Enum Role for value: role /// [EnumMember(Value = "role")] - Role = 2, + Role = 3, /// /// Enum Udon for value: udon /// [EnumMember(Value = "udon")] - Udon = 3 + Udon = 4 } } diff --git a/src/VRChat.API/Model/Prop.cs b/src/VRChat.API/Model/Prop.cs index 5400f635..69187a90 100644 --- a/src/VRChat.API/Model/Prop.cs +++ b/src/VRChat.API/Model/Prop.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/PropUnityPackage.cs b/src/VRChat.API/Model/PropUnityPackage.cs index 5ac92e38..0166c2a8 100644 --- a/src/VRChat.API/Model/PropUnityPackage.cs +++ b/src/VRChat.API/Model/PropUnityPackage.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -42,11 +42,11 @@ protected PropUnityPackage() { } /// /// assetUrl (required). /// assetVersion (required). - /// propSignature (required). /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. (required). + /// propSignature (required). /// unityVersion (required) (default to "2022.3.22f1"). /// variant (required). - public PropUnityPackage(string assetUrl = default, int assetVersion = default, string propSignature = default, string platform = default, string unityVersion = @"2022.3.22f1", string variant = default) + public PropUnityPackage(string assetUrl = default, int assetVersion = default, string platform = default, string propSignature = default, string unityVersion = @"2022.3.22f1", string variant = default) { // to ensure "assetUrl" is required (not null) if (assetUrl == null) @@ -55,18 +55,18 @@ public PropUnityPackage(string assetUrl = default, int assetVersion = default, s } this.AssetUrl = assetUrl; this.AssetVersion = assetVersion; - // to ensure "propSignature" is required (not null) - if (propSignature == null) - { - throw new ArgumentNullException("propSignature is a required property for PropUnityPackage and cannot be null"); - } - this.PropSignature = propSignature; // to ensure "platform" is required (not null) if (platform == null) { throw new ArgumentNullException("platform is a required property for PropUnityPackage and cannot be null"); } this.Platform = platform; + // to ensure "propSignature" is required (not null) + if (propSignature == null) + { + throw new ArgumentNullException("propSignature is a required property for PropUnityPackage and cannot be null"); + } + this.PropSignature = propSignature; // to ensure "unityVersion" is required (not null) if (unityVersion == null) { @@ -99,12 +99,6 @@ public PropUnityPackage(string assetUrl = default, int assetVersion = default, s [DataMember(Name = "assetVersion", IsRequired = true, EmitDefaultValue = true)] public int AssetVersion { get; set; } - /// - /// Gets or Sets PropSignature - /// - [DataMember(Name = "propSignature", IsRequired = true, EmitDefaultValue = true)] - public string PropSignature { get; set; } - /// /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. /// @@ -115,6 +109,12 @@ public PropUnityPackage(string assetUrl = default, int assetVersion = default, s [DataMember(Name = "platform", IsRequired = true, EmitDefaultValue = true)] public string Platform { get; set; } + /// + /// Gets or Sets PropSignature + /// + [DataMember(Name = "propSignature", IsRequired = true, EmitDefaultValue = true)] + public string PropSignature { get; set; } + /// /// Gets or Sets UnityVersion /// @@ -140,8 +140,8 @@ public override string ToString() sb.Append("class PropUnityPackage {\n"); sb.Append(" AssetUrl: ").Append(AssetUrl).Append("\n"); sb.Append(" AssetVersion: ").Append(AssetVersion).Append("\n"); - sb.Append(" PropSignature: ").Append(PropSignature).Append("\n"); sb.Append(" Platform: ").Append(Platform).Append("\n"); + sb.Append(" PropSignature: ").Append(PropSignature).Append("\n"); sb.Append(" UnityVersion: ").Append(UnityVersion).Append("\n"); sb.Append(" Variant: ").Append(Variant).Append("\n"); sb.Append("}\n"); @@ -188,16 +188,16 @@ public bool Equals(PropUnityPackage input) this.AssetVersion == input.AssetVersion || this.AssetVersion.Equals(input.AssetVersion) ) && - ( - this.PropSignature == input.PropSignature || - (this.PropSignature != null && - this.PropSignature.Equals(input.PropSignature)) - ) && ( this.Platform == input.Platform || (this.Platform != null && this.Platform.Equals(input.Platform)) ) && + ( + this.PropSignature == input.PropSignature || + (this.PropSignature != null && + this.PropSignature.Equals(input.PropSignature)) + ) && ( this.UnityVersion == input.UnityVersion || (this.UnityVersion != null && @@ -224,14 +224,14 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.AssetUrl.GetHashCode(); } hashCode = (hashCode * 59) + this.AssetVersion.GetHashCode(); - if (this.PropSignature != null) - { - hashCode = (hashCode * 59) + this.PropSignature.GetHashCode(); - } if (this.Platform != null) { hashCode = (hashCode * 59) + this.Platform.GetHashCode(); } + if (this.PropSignature != null) + { + hashCode = (hashCode * 59) + this.PropSignature.GetHashCode(); + } if (this.UnityVersion != null) { hashCode = (hashCode * 59) + this.UnityVersion.GetHashCode(); diff --git a/src/VRChat.API/Model/PurchaseProductListingRequest.cs b/src/VRChat.API/Model/PurchaseProductListingRequest.cs new file mode 100644 index 00000000..46011f85 --- /dev/null +++ b/src/VRChat.API/Model/PurchaseProductListingRequest.cs @@ -0,0 +1,188 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.20.7-nightly.3 + * Contact: vrchatapi.lpv0t@aries.fyi + * 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 FileParameter = VRChat.API.Client.FileParameter; +using OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// PurchaseProductListingRequest + /// + [DataContract(Name = "PurchaseProductListingRequest")] + public partial class PurchaseProductListingRequest : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected PurchaseProductListingRequest() { } + /// + /// Initializes a new instance of the class. + /// + /// listingId (required). + /// quantity (required) (default to 1). + /// totalPrice (required). + public PurchaseProductListingRequest(string listingId = default, int quantity = 1, int totalPrice = default) + { + // to ensure "listingId" is required (not null) + if (listingId == null) + { + throw new ArgumentNullException("listingId is a required property for PurchaseProductListingRequest and cannot be null"); + } + this.ListingId = listingId; + this.Quantity = quantity; + this.TotalPrice = totalPrice; + } + + /// + /// Gets or Sets ListingId + /// + /* + prod_bfbc2315-247a-44d7-bfea-5237f8d56cb4 + */ + [DataMember(Name = "listingId", IsRequired = true, EmitDefaultValue = true)] + public string ListingId { get; set; } + + /// + /// Gets or Sets Quantity + /// + [DataMember(Name = "quantity", IsRequired = true, EmitDefaultValue = true)] + public int Quantity { get; set; } + + /// + /// Gets or Sets TotalPrice + /// + [DataMember(Name = "totalPrice", IsRequired = true, EmitDefaultValue = true)] + public int TotalPrice { 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 PurchaseProductListingRequest {\n"); + sb.Append(" ListingId: ").Append(ListingId).Append("\n"); + sb.Append(" Quantity: ").Append(Quantity).Append("\n"); + sb.Append(" TotalPrice: ").Append(TotalPrice).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); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as PurchaseProductListingRequest); + } + + /// + /// Returns true if PurchaseProductListingRequest instances are equal + /// + /// Instance of PurchaseProductListingRequest to be compared + /// Boolean + public bool Equals(PurchaseProductListingRequest input) + { + if (input == null) + { + return false; + } + return + ( + this.ListingId == input.ListingId || + (this.ListingId != null && + this.ListingId.Equals(input.ListingId)) + ) && + ( + this.Quantity == input.Quantity || + this.Quantity.Equals(input.Quantity) + ) && + ( + this.TotalPrice == input.TotalPrice || + this.TotalPrice.Equals(input.TotalPrice) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ListingId != null) + { + hashCode = (hashCode * 59) + this.ListingId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Quantity.GetHashCode(); + hashCode = (hashCode * 59) + this.TotalPrice.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + IEnumerable IValidatableObject.Validate(ValidationContext validationContext) + { + // Quantity (int) maximum + if (this.Quantity > (int)99) + { + yield return new ValidationResult("Invalid value for Quantity, must be a value less than or equal to 99.", new [] { "Quantity" }); + } + + // Quantity (int) minimum + if (this.Quantity < (int)1) + { + yield return new ValidationResult("Invalid value for Quantity, must be a value greater than or equal to 1.", new [] { "Quantity" }); + } + + // TotalPrice (int) minimum + if (this.TotalPrice < (int)0) + { + yield return new ValidationResult("Invalid value for TotalPrice, must be a value greater than or equal to 0.", new [] { "TotalPrice" }); + } + + yield break; + } + } + +} diff --git a/src/VRChat.API/Model/Region.cs b/src/VRChat.API/Model/Region.cs index 2e7972ea..d36fe880 100644 --- a/src/VRChat.API/Model/Region.cs +++ b/src/VRChat.API/Model/Region.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -34,46 +34,46 @@ namespace VRChat.API.Model public enum Region { /// - /// Enum Us for value: us + /// Enum Eu for value: eu /// - [EnumMember(Value = "us")] - Us = 1, + [EnumMember(Value = "eu")] + Eu = 1, /// - /// Enum Use for value: use + /// Enum Jp for value: jp /// - [EnumMember(Value = "use")] - Use = 2, + [EnumMember(Value = "jp")] + Jp = 2, /// - /// Enum Usw for value: usw + /// Enum Unknown for value: unknown /// - [EnumMember(Value = "usw")] - Usw = 3, + [EnumMember(Value = "unknown")] + Unknown = 3, /// - /// Enum Usx for value: usx + /// Enum Us for value: us /// - [EnumMember(Value = "usx")] - Usx = 4, + [EnumMember(Value = "us")] + Us = 4, /// - /// Enum Eu for value: eu + /// Enum Use for value: use /// - [EnumMember(Value = "eu")] - Eu = 5, + [EnumMember(Value = "use")] + Use = 5, /// - /// Enum Jp for value: jp + /// Enum Usw for value: usw /// - [EnumMember(Value = "jp")] - Jp = 6, + [EnumMember(Value = "usw")] + Usw = 6, /// - /// Enum Unknown for value: unknown + /// Enum Usx for value: usx /// - [EnumMember(Value = "unknown")] - Unknown = 7 + [EnumMember(Value = "usx")] + Usx = 7 } } diff --git a/src/VRChat.API/Model/RegisterUserAccountRequest.cs b/src/VRChat.API/Model/RegisterUserAccountRequest.cs index b259c291..3f9852e2 100644 --- a/src/VRChat.API/Model/RegisterUserAccountRequest.cs +++ b/src/VRChat.API/Model/RegisterUserAccountRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,76 +40,83 @@ protected RegisterUserAccountRequest() { } /// /// Initializes a new instance of the class. /// - /// Display Name / Username (Username is a sanitized version) (required). - /// Password (required). + /// The most recent version of the TOS (required). + /// Captcha code (required). + /// Birth day of month (required). /// Email address (required). - /// Birth year (required). /// Birth month of year (required). - /// Birth day of month (required). - /// Captcha code (required). + /// Password (required). /// Whether to recieve promotional emails (required). - /// The most recent version of the TOS (required). - public RegisterUserAccountRequest(string username = default, string password = default, string email = default, string year = default, string month = default, string day = default, string captchaCode = default, bool subscribe = default, int acceptedTOSVersion = default) + /// Display Name / Username (Username is a sanitized version) (required). + /// Birth year (required). + public RegisterUserAccountRequest(int acceptedTOSVersion = default, string captchaCode = default, string day = default, string email = default, string month = default, string password = default, bool subscribe = default, string username = default, string year = default) { - // to ensure "username" is required (not null) - if (username == null) + this.AcceptedTOSVersion = acceptedTOSVersion; + // to ensure "captchaCode" is required (not null) + if (captchaCode == null) { - throw new ArgumentNullException("username is a required property for RegisterUserAccountRequest and cannot be null"); + throw new ArgumentNullException("captchaCode is a required property for RegisterUserAccountRequest and cannot be null"); } - this.Username = username; - // to ensure "password" is required (not null) - if (password == null) + this.CaptchaCode = captchaCode; + // to ensure "day" is required (not null) + if (day == null) { - throw new ArgumentNullException("password is a required property for RegisterUserAccountRequest and cannot be null"); + throw new ArgumentNullException("day is a required property for RegisterUserAccountRequest and cannot be null"); } - this.Password = password; + this.Day = day; // to ensure "email" is required (not null) if (email == null) { throw new ArgumentNullException("email is a required property for RegisterUserAccountRequest and cannot be null"); } this.Email = email; - // to ensure "year" is required (not null) - if (year == null) - { - throw new ArgumentNullException("year is a required property for RegisterUserAccountRequest and cannot be null"); - } - this.Year = year; // to ensure "month" is required (not null) if (month == null) { throw new ArgumentNullException("month is a required property for RegisterUserAccountRequest and cannot be null"); } this.Month = month; - // to ensure "day" is required (not null) - if (day == null) + // to ensure "password" is required (not null) + if (password == null) { - throw new ArgumentNullException("day is a required property for RegisterUserAccountRequest and cannot be null"); + throw new ArgumentNullException("password is a required property for RegisterUserAccountRequest and cannot be null"); } - this.Day = day; - // to ensure "captchaCode" is required (not null) - if (captchaCode == null) + this.Password = password; + this.Subscribe = subscribe; + // to ensure "username" is required (not null) + if (username == null) { - throw new ArgumentNullException("captchaCode is a required property for RegisterUserAccountRequest and cannot be null"); + throw new ArgumentNullException("username is a required property for RegisterUserAccountRequest and cannot be null"); } - this.CaptchaCode = captchaCode; - this.Subscribe = subscribe; - this.AcceptedTOSVersion = acceptedTOSVersion; + this.Username = username; + // to ensure "year" is required (not null) + if (year == null) + { + throw new ArgumentNullException("year is a required property for RegisterUserAccountRequest and cannot be null"); + } + this.Year = year; } /// - /// Display Name / Username (Username is a sanitized version) + /// The most recent version of the TOS /// - /// Display Name / Username (Username is a sanitized version) - [DataMember(Name = "username", IsRequired = true, EmitDefaultValue = true)] - public string Username { get; set; } + /// The most recent version of the TOS + [DataMember(Name = "acceptedTOSVersion", IsRequired = true, EmitDefaultValue = true)] + public int AcceptedTOSVersion { get; set; } /// - /// Password + /// Captcha code /// - /// Password - [DataMember(Name = "password", IsRequired = true, EmitDefaultValue = true)] - public string Password { get; set; } + /// Captcha code + [DataMember(Name = "captchaCode", IsRequired = true, EmitDefaultValue = true)] + public string CaptchaCode { get; set; } + + /// + /// Birth day of month + /// + /// Birth day of month + [DataMember(Name = "day", IsRequired = true, EmitDefaultValue = true)] + public string Day { get; set; } /// /// Email address @@ -118,13 +125,6 @@ public RegisterUserAccountRequest(string username = default, string password = d [DataMember(Name = "email", IsRequired = true, EmitDefaultValue = true)] public string Email { get; set; } - /// - /// Birth year - /// - /// Birth year - [DataMember(Name = "year", IsRequired = true, EmitDefaultValue = true)] - public string Year { get; set; } - /// /// Birth month of year /// @@ -133,18 +133,11 @@ public RegisterUserAccountRequest(string username = default, string password = d public string Month { get; set; } /// - /// Birth day of month - /// - /// Birth day of month - [DataMember(Name = "day", IsRequired = true, EmitDefaultValue = true)] - public string Day { get; set; } - - /// - /// Captcha code + /// Password /// - /// Captcha code - [DataMember(Name = "captchaCode", IsRequired = true, EmitDefaultValue = true)] - public string CaptchaCode { get; set; } + /// Password + [DataMember(Name = "password", IsRequired = true, EmitDefaultValue = true)] + public string Password { get; set; } /// /// Whether to recieve promotional emails @@ -154,11 +147,18 @@ public RegisterUserAccountRequest(string username = default, string password = d public bool Subscribe { get; set; } /// - /// The most recent version of the TOS + /// Display Name / Username (Username is a sanitized version) /// - /// The most recent version of the TOS - [DataMember(Name = "acceptedTOSVersion", IsRequired = true, EmitDefaultValue = true)] - public int AcceptedTOSVersion { get; set; } + /// Display Name / Username (Username is a sanitized version) + [DataMember(Name = "username", IsRequired = true, EmitDefaultValue = true)] + public string Username { get; set; } + + /// + /// Birth year + /// + /// Birth year + [DataMember(Name = "year", IsRequired = true, EmitDefaultValue = true)] + public string Year { get; set; } /// /// Returns the string presentation of the object @@ -168,15 +168,15 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class RegisterUserAccountRequest {\n"); - sb.Append(" Username: ").Append(Username).Append("\n"); - sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" AcceptedTOSVersion: ").Append(AcceptedTOSVersion).Append("\n"); + sb.Append(" CaptchaCode: ").Append(CaptchaCode).Append("\n"); + sb.Append(" Day: ").Append(Day).Append("\n"); sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Year: ").Append(Year).Append("\n"); sb.Append(" Month: ").Append(Month).Append("\n"); - sb.Append(" Day: ").Append(Day).Append("\n"); - sb.Append(" CaptchaCode: ").Append(CaptchaCode).Append("\n"); + sb.Append(" Password: ").Append(Password).Append("\n"); sb.Append(" Subscribe: ").Append(Subscribe).Append("\n"); - sb.Append(" AcceptedTOSVersion: ").Append(AcceptedTOSVersion).Append("\n"); + sb.Append(" Username: ").Append(Username).Append("\n"); + sb.Append(" Year: ").Append(Year).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -213,47 +213,47 @@ public bool Equals(RegisterUserAccountRequest input) } return ( - this.Username == input.Username || - (this.Username != null && - this.Username.Equals(input.Username)) + this.AcceptedTOSVersion == input.AcceptedTOSVersion || + this.AcceptedTOSVersion.Equals(input.AcceptedTOSVersion) ) && ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) + this.CaptchaCode == input.CaptchaCode || + (this.CaptchaCode != null && + this.CaptchaCode.Equals(input.CaptchaCode)) + ) && + ( + this.Day == input.Day || + (this.Day != null && + this.Day.Equals(input.Day)) ) && ( this.Email == input.Email || (this.Email != null && this.Email.Equals(input.Email)) ) && - ( - this.Year == input.Year || - (this.Year != null && - this.Year.Equals(input.Year)) - ) && ( this.Month == input.Month || (this.Month != null && this.Month.Equals(input.Month)) ) && ( - this.Day == input.Day || - (this.Day != null && - this.Day.Equals(input.Day)) - ) && - ( - this.CaptchaCode == input.CaptchaCode || - (this.CaptchaCode != null && - this.CaptchaCode.Equals(input.CaptchaCode)) + this.Password == input.Password || + (this.Password != null && + this.Password.Equals(input.Password)) ) && ( this.Subscribe == input.Subscribe || this.Subscribe.Equals(input.Subscribe) ) && ( - this.AcceptedTOSVersion == input.AcceptedTOSVersion || - this.AcceptedTOSVersion.Equals(input.AcceptedTOSVersion) + this.Username == input.Username || + (this.Username != null && + this.Username.Equals(input.Username)) + ) && + ( + this.Year == input.Year || + (this.Year != null && + this.Year.Equals(input.Year)) ); } @@ -266,36 +266,36 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Username != null) + hashCode = (hashCode * 59) + this.AcceptedTOSVersion.GetHashCode(); + if (this.CaptchaCode != null) { - hashCode = (hashCode * 59) + this.Username.GetHashCode(); + hashCode = (hashCode * 59) + this.CaptchaCode.GetHashCode(); } - if (this.Password != null) + if (this.Day != null) { - hashCode = (hashCode * 59) + this.Password.GetHashCode(); + hashCode = (hashCode * 59) + this.Day.GetHashCode(); } if (this.Email != null) { hashCode = (hashCode * 59) + this.Email.GetHashCode(); } - if (this.Year != null) - { - hashCode = (hashCode * 59) + this.Year.GetHashCode(); - } if (this.Month != null) { hashCode = (hashCode * 59) + this.Month.GetHashCode(); } - if (this.Day != null) + if (this.Password != null) { - hashCode = (hashCode * 59) + this.Day.GetHashCode(); + hashCode = (hashCode * 59) + this.Password.GetHashCode(); } - if (this.CaptchaCode != null) + hashCode = (hashCode * 59) + this.Subscribe.GetHashCode(); + if (this.Username != null) { - hashCode = (hashCode * 59) + this.CaptchaCode.GetHashCode(); + hashCode = (hashCode * 59) + this.Username.GetHashCode(); + } + if (this.Year != null) + { + hashCode = (hashCode * 59) + this.Year.GetHashCode(); } - hashCode = (hashCode * 59) + this.Subscribe.GetHashCode(); - hashCode = (hashCode * 59) + this.AcceptedTOSVersion.GetHashCode(); return hashCode; } } @@ -307,6 +307,12 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { + // Password (string) minLength + if (this.Password != null && this.Password.Length < 8) + { + yield return new ValidationResult("Invalid value for Password, length must be greater than 8.", new [] { "Password" }); + } + // Username (string) maxLength if (this.Username != null && this.Username.Length > 15) { @@ -319,12 +325,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Username, length must be greater than 4.", new [] { "Username" }); } - // Password (string) minLength - if (this.Password != null && this.Password.Length < 8) - { - yield return new ValidationResult("Invalid value for Password, length must be greater than 8.", new [] { "Password" }); - } - yield break; } } diff --git a/src/VRChat.API/Model/ReleaseStatus.cs b/src/VRChat.API/Model/ReleaseStatus.cs index 1217f4e9..37021a13 100644 --- a/src/VRChat.API/Model/ReleaseStatus.cs +++ b/src/VRChat.API/Model/ReleaseStatus.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,28 +33,28 @@ namespace VRChat.API.Model public enum ReleaseStatus { /// - /// Enum Public for value: public + /// Enum All for value: all /// - [EnumMember(Value = "public")] - Public = 1, + [EnumMember(Value = "all")] + All = 1, /// - /// Enum Private for value: private + /// Enum Hidden for value: hidden /// - [EnumMember(Value = "private")] - Private = 2, + [EnumMember(Value = "hidden")] + Hidden = 2, /// - /// Enum Hidden for value: hidden + /// Enum Private for value: private /// - [EnumMember(Value = "hidden")] - Hidden = 3, + [EnumMember(Value = "private")] + Private = 3, /// - /// Enum All for value: all + /// Enum Public for value: public /// - [EnumMember(Value = "all")] - All = 4 + [EnumMember(Value = "public")] + Public = 4 } } diff --git a/src/VRChat.API/Model/ReportCategory.cs b/src/VRChat.API/Model/ReportCategory.cs index e32ae8ca..3c00c65f 100644 --- a/src/VRChat.API/Model/ReportCategory.cs +++ b/src/VRChat.API/Model/ReportCategory.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,10 +41,10 @@ protected ReportCategory() { } /// Initializes a new instance of the class. /// /// The description of the report category. - /// The title of the report category. /// The label of the report category (required). + /// The title of the report category. /// The tooltip that describes the category (required). - public ReportCategory(string description = default, string title = default, string text = default, string tooltip = default) + public ReportCategory(string description = default, string text = default, string title = default, string tooltip = default) { // to ensure "text" is required (not null) if (text == null) @@ -69,13 +69,6 @@ public ReportCategory(string description = default, string title = default, stri [DataMember(Name = "description", EmitDefaultValue = false)] public string Description { get; set; } - /// - /// The title of the report category - /// - /// The title of the report category - [DataMember(Name = "title", EmitDefaultValue = false)] - public string Title { get; set; } - /// /// The label of the report category /// @@ -83,6 +76,13 @@ public ReportCategory(string description = default, string title = default, stri [DataMember(Name = "text", IsRequired = true, EmitDefaultValue = true)] public string Text { get; set; } + /// + /// The title of the report category + /// + /// The title of the report category + [DataMember(Name = "title", EmitDefaultValue = false)] + public string Title { get; set; } + /// /// The tooltip that describes the category /// @@ -99,8 +99,8 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class ReportCategory {\n"); sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Title: ").Append(Title).Append("\n"); sb.Append(" Text: ").Append(Text).Append("\n"); + sb.Append(" Title: ").Append(Title).Append("\n"); sb.Append(" Tooltip: ").Append(Tooltip).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -142,16 +142,16 @@ public bool Equals(ReportCategory input) (this.Description != null && this.Description.Equals(input.Description)) ) && - ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) - ) && ( this.Text == input.Text || (this.Text != null && this.Text.Equals(input.Text)) ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && ( this.Tooltip == input.Tooltip || (this.Tooltip != null && @@ -172,14 +172,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Description.GetHashCode(); } - if (this.Title != null) - { - hashCode = (hashCode * 59) + this.Title.GetHashCode(); - } if (this.Text != null) { hashCode = (hashCode * 59) + this.Text.GetHashCode(); } + if (this.Title != null) + { + hashCode = (hashCode * 59) + this.Title.GetHashCode(); + } if (this.Tooltip != null) { hashCode = (hashCode * 59) + this.Tooltip.GetHashCode(); diff --git a/src/VRChat.API/Model/ReportReason.cs b/src/VRChat.API/Model/ReportReason.cs index aa825486..f82aa625 100644 --- a/src/VRChat.API/Model/ReportReason.cs +++ b/src/VRChat.API/Model/ReportReason.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/RepresentedGroup.cs b/src/VRChat.API/Model/RepresentedGroup.cs index 5980f650..d86f46d9 100644 --- a/src/VRChat.API/Model/RepresentedGroup.cs +++ b/src/VRChat.API/Model/RepresentedGroup.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,81 +33,87 @@ namespace VRChat.API.Model public partial class RepresentedGroup : IEquatable, IValidatableObject { - /// - /// Gets or Sets Privacy - /// - [DataMember(Name = "privacy", EmitDefaultValue = false)] - public GroupPrivacy? Privacy { get; set; } - /// /// Gets or Sets MemberVisibility /// [DataMember(Name = "memberVisibility", EmitDefaultValue = false)] public GroupUserVisibility? MemberVisibility { get; set; } + + /// + /// Gets or Sets Privacy + /// + [DataMember(Name = "privacy", EmitDefaultValue = false)] + public GroupPrivacy? Privacy { get; set; } /// /// Initializes a new instance of the class. /// - /// name. - /// shortCode. - /// discriminator. + /// bannerId. + /// bannerUrl. /// description. + /// discriminator. + /// groupId. /// iconId. /// iconUrl. - /// bannerId. - /// bannerUrl. - /// privacy. - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + /// isRepresenting. /// memberCount. - /// groupId. /// memberVisibility. - /// isRepresenting. - public RepresentedGroup(string name = default, string shortCode = default, string discriminator = default, string description = default, string iconId = default, string iconUrl = default, string bannerId = default, string bannerUrl = default, GroupPrivacy? privacy = default, string ownerId = default, int memberCount = default, string groupId = default, GroupUserVisibility? memberVisibility = default, bool isRepresenting = default) + /// name. + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + /// privacy. + /// shortCode. + public RepresentedGroup(string bannerId = default, string bannerUrl = default, string description = default, string discriminator = default, string groupId = default, string iconId = default, string iconUrl = default, bool isRepresenting = default, int memberCount = default, GroupUserVisibility? memberVisibility = default, string name = default, string ownerId = default, GroupPrivacy? privacy = default, string shortCode = default) { - this.Name = name; - this.ShortCode = shortCode; - this.Discriminator = discriminator; + this.BannerId = bannerId; + this.BannerUrl = bannerUrl; this.Description = description; + this.Discriminator = discriminator; + this.GroupId = groupId; this.IconId = iconId; this.IconUrl = iconUrl; - this.BannerId = bannerId; - this.BannerUrl = bannerUrl; - this.Privacy = privacy; - this.OwnerId = ownerId; + this.IsRepresenting = isRepresenting; this.MemberCount = memberCount; - this.GroupId = groupId; this.MemberVisibility = memberVisibility; - this.IsRepresenting = isRepresenting; + this.Name = name; + this.OwnerId = ownerId; + this.Privacy = privacy; + this.ShortCode = shortCode; } /// - /// Gets or Sets Name + /// Gets or Sets BannerId /// - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + [DataMember(Name = "bannerId", EmitDefaultValue = true)] + public string BannerId { get; set; } /// - /// Gets or Sets ShortCode + /// Gets or Sets BannerUrl /// - /* - ABC123 - */ - [DataMember(Name = "shortCode", EmitDefaultValue = false)] - public string ShortCode { get; set; } + [DataMember(Name = "bannerUrl", EmitDefaultValue = true)] + public string BannerUrl { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } /// /// Gets or Sets Discriminator /// /* - 1234 + 0000 */ [DataMember(Name = "discriminator", EmitDefaultValue = false)] public string Discriminator { get; set; } /// - /// Gets or Sets Description + /// Gets or Sets GroupId /// - [DataMember(Name = "description", EmitDefaultValue = false)] - public string Description { get; set; } + /* + grp_71a7ff59-112c-4e78-a990-c7cc650776e5 + */ + [DataMember(Name = "groupId", EmitDefaultValue = false)] + public string GroupId { get; set; } /// /// Gets or Sets IconId @@ -122,16 +128,22 @@ public RepresentedGroup(string name = default, string shortCode = default, strin public string IconUrl { get; set; } /// - /// Gets or Sets BannerId + /// Gets or Sets IsRepresenting /// - [DataMember(Name = "bannerId", EmitDefaultValue = true)] - public string BannerId { get; set; } + [DataMember(Name = "isRepresenting", EmitDefaultValue = true)] + public bool IsRepresenting { get; set; } /// - /// Gets or Sets BannerUrl + /// Gets or Sets MemberCount /// - [DataMember(Name = "bannerUrl", EmitDefaultValue = true)] - public string BannerUrl { get; set; } + [DataMember(Name = "memberCount", EmitDefaultValue = false)] + public int MemberCount { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } /// /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. @@ -144,25 +156,13 @@ public RepresentedGroup(string name = default, string shortCode = default, strin public string OwnerId { get; set; } /// - /// Gets or Sets MemberCount - /// - [DataMember(Name = "memberCount", EmitDefaultValue = false)] - public int MemberCount { get; set; } - - /// - /// Gets or Sets GroupId + /// Gets or Sets ShortCode /// /* - grp_71a7ff59-112c-4e78-a990-c7cc650776e5 + VRCHAT */ - [DataMember(Name = "groupId", EmitDefaultValue = false)] - public string GroupId { get; set; } - - /// - /// Gets or Sets IsRepresenting - /// - [DataMember(Name = "isRepresenting", EmitDefaultValue = true)] - public bool IsRepresenting { get; set; } + [DataMember(Name = "shortCode", EmitDefaultValue = false)] + public string ShortCode { get; set; } /// /// Returns the string presentation of the object @@ -172,20 +172,20 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class RepresentedGroup {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ShortCode: ").Append(ShortCode).Append("\n"); - sb.Append(" Discriminator: ").Append(Discriminator).Append("\n"); + sb.Append(" BannerId: ").Append(BannerId).Append("\n"); + sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Discriminator: ").Append(Discriminator).Append("\n"); + sb.Append(" GroupId: ").Append(GroupId).Append("\n"); sb.Append(" IconId: ").Append(IconId).Append("\n"); sb.Append(" IconUrl: ").Append(IconUrl).Append("\n"); - sb.Append(" BannerId: ").Append(BannerId).Append("\n"); - sb.Append(" BannerUrl: ").Append(BannerUrl).Append("\n"); - sb.Append(" Privacy: ").Append(Privacy).Append("\n"); - sb.Append(" OwnerId: ").Append(OwnerId).Append("\n"); + sb.Append(" IsRepresenting: ").Append(IsRepresenting).Append("\n"); sb.Append(" MemberCount: ").Append(MemberCount).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); sb.Append(" MemberVisibility: ").Append(MemberVisibility).Append("\n"); - sb.Append(" IsRepresenting: ").Append(IsRepresenting).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" OwnerId: ").Append(OwnerId).Append("\n"); + sb.Append(" Privacy: ").Append(Privacy).Append("\n"); + sb.Append(" ShortCode: ").Append(ShortCode).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -222,14 +222,19 @@ public bool Equals(RepresentedGroup input) } return ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) + this.BannerId == input.BannerId || + (this.BannerId != null && + this.BannerId.Equals(input.BannerId)) ) && ( - this.ShortCode == input.ShortCode || - (this.ShortCode != null && - this.ShortCode.Equals(input.ShortCode)) + this.BannerUrl == input.BannerUrl || + (this.BannerUrl != null && + this.BannerUrl.Equals(input.BannerUrl)) + ) && + ( + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) ) && ( this.Discriminator == input.Discriminator || @@ -237,9 +242,9 @@ public bool Equals(RepresentedGroup input) this.Discriminator.Equals(input.Discriminator)) ) && ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) ) && ( this.IconId == input.IconId || @@ -252,18 +257,21 @@ public bool Equals(RepresentedGroup input) this.IconUrl.Equals(input.IconUrl)) ) && ( - this.BannerId == input.BannerId || - (this.BannerId != null && - this.BannerId.Equals(input.BannerId)) + this.IsRepresenting == input.IsRepresenting || + this.IsRepresenting.Equals(input.IsRepresenting) ) && ( - this.BannerUrl == input.BannerUrl || - (this.BannerUrl != null && - this.BannerUrl.Equals(input.BannerUrl)) + this.MemberCount == input.MemberCount || + this.MemberCount.Equals(input.MemberCount) ) && ( - this.Privacy == input.Privacy || - this.Privacy.Equals(input.Privacy) + this.MemberVisibility == input.MemberVisibility || + this.MemberVisibility.Equals(input.MemberVisibility) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( this.OwnerId == input.OwnerId || @@ -271,21 +279,13 @@ public bool Equals(RepresentedGroup input) this.OwnerId.Equals(input.OwnerId)) ) && ( - this.MemberCount == input.MemberCount || - this.MemberCount.Equals(input.MemberCount) - ) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && - ( - this.MemberVisibility == input.MemberVisibility || - this.MemberVisibility.Equals(input.MemberVisibility) + this.Privacy == input.Privacy || + this.Privacy.Equals(input.Privacy) ) && ( - this.IsRepresenting == input.IsRepresenting || - this.IsRepresenting.Equals(input.IsRepresenting) + this.ShortCode == input.ShortCode || + (this.ShortCode != null && + this.ShortCode.Equals(input.ShortCode)) ); } @@ -298,21 +298,25 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Name != null) + if (this.BannerId != null) { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + hashCode = (hashCode * 59) + this.BannerId.GetHashCode(); } - if (this.ShortCode != null) + if (this.BannerUrl != null) { - hashCode = (hashCode * 59) + this.ShortCode.GetHashCode(); + hashCode = (hashCode * 59) + this.BannerUrl.GetHashCode(); + } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); } if (this.Discriminator != null) { hashCode = (hashCode * 59) + this.Discriminator.GetHashCode(); } - if (this.Description != null) + if (this.GroupId != null) { - hashCode = (hashCode * 59) + this.Description.GetHashCode(); + hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); } if (this.IconId != null) { @@ -322,26 +326,22 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.IconUrl.GetHashCode(); } - if (this.BannerId != null) - { - hashCode = (hashCode * 59) + this.BannerId.GetHashCode(); - } - if (this.BannerUrl != null) + hashCode = (hashCode * 59) + this.IsRepresenting.GetHashCode(); + hashCode = (hashCode * 59) + this.MemberCount.GetHashCode(); + hashCode = (hashCode * 59) + this.MemberVisibility.GetHashCode(); + if (this.Name != null) { - hashCode = (hashCode * 59) + this.BannerUrl.GetHashCode(); + hashCode = (hashCode * 59) + this.Name.GetHashCode(); } - hashCode = (hashCode * 59) + this.Privacy.GetHashCode(); if (this.OwnerId != null) { hashCode = (hashCode * 59) + this.OwnerId.GetHashCode(); } - hashCode = (hashCode * 59) + this.MemberCount.GetHashCode(); - if (this.GroupId != null) + hashCode = (hashCode * 59) + this.Privacy.GetHashCode(); + if (this.ShortCode != null) { - hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); + hashCode = (hashCode * 59) + this.ShortCode.GetHashCode(); } - hashCode = (hashCode * 59) + this.MemberVisibility.GetHashCode(); - hashCode = (hashCode * 59) + this.IsRepresenting.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/RequestInviteRequest.cs b/src/VRChat.API/Model/RequestInviteRequest.cs index f71585d5..c3314c1e 100644 --- a/src/VRChat.API/Model/RequestInviteRequest.cs +++ b/src/VRChat.API/Model/RequestInviteRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/RespondGroupJoinRequest.cs b/src/VRChat.API/Model/RespondGroupJoinRequest.cs index 3cab1cb2..c1b614a7 100644 --- a/src/VRChat.API/Model/RespondGroupJoinRequest.cs +++ b/src/VRChat.API/Model/RespondGroupJoinRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Response.cs b/src/VRChat.API/Model/Response.cs index 5ec7b524..51a3a7ca 100644 --- a/src/VRChat.API/Model/Response.cs +++ b/src/VRChat.API/Model/Response.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/SentNotification.cs b/src/VRChat.API/Model/SentNotification.cs index 51eccce3..61e36de4 100644 --- a/src/VRChat.API/Model/SentNotification.cs +++ b/src/VRChat.API/Model/SentNotification.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -101,7 +101,7 @@ public SentNotification(DateTime createdAt = default, Object details = default, /// Gets or Sets Details /// /* - {"OneOf":[{},"NotificationDetailInvite","NotificationDetailInviteResponse","NotificationDetailRequestInvite","NotificationDetailRequestInviteResponse","NotificationDetailVoteToKick"]} + {"OneOf":[{},"NotificationDetailBoop","NotificationDetailInvite","NotificationDetailInviteResponse","NotificationDetailRequestInvite","NotificationDetailRequestInviteResponse","NotificationDetailVoteToKick"]} */ [DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)] public Object Details { get; set; } diff --git a/src/VRChat.API/Model/ServiceQueueStats.cs b/src/VRChat.API/Model/ServiceQueueStats.cs index 193c3f60..7226d5c2 100644 --- a/src/VRChat.API/Model/ServiceQueueStats.cs +++ b/src/VRChat.API/Model/ServiceQueueStats.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/ServiceStatus.cs b/src/VRChat.API/Model/ServiceStatus.cs index 43377b63..f4e5f81f 100644 --- a/src/VRChat.API/Model/ServiceStatus.cs +++ b/src/VRChat.API/Model/ServiceStatus.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/ShareInventoryItemDirectRequest.cs b/src/VRChat.API/Model/ShareInventoryItemDirectRequest.cs index 0d7379a0..c24aa066 100644 --- a/src/VRChat.API/Model/ShareInventoryItemDirectRequest.cs +++ b/src/VRChat.API/Model/ShareInventoryItemDirectRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/SortOption.cs b/src/VRChat.API/Model/SortOption.cs index a24f32f0..1a885faa 100644 --- a/src/VRChat.API/Model/SortOption.cs +++ b/src/VRChat.API/Model/SortOption.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,112 +33,112 @@ namespace VRChat.API.Model public enum SortOption { /// - /// Enum Popularity for value: popularity + /// Enum CreatedAt for value: _created_at /// - [EnumMember(Value = "popularity")] - Popularity = 1, + [EnumMember(Value = "_created_at")] + CreatedAt = 1, /// - /// Enum Heat for value: heat + /// Enum UpdatedAt for value: _updated_at /// - [EnumMember(Value = "heat")] - Heat = 2, + [EnumMember(Value = "_updated_at")] + UpdatedAt = 2, /// - /// Enum Trust for value: trust + /// Enum Created for value: created /// - [EnumMember(Value = "trust")] - Trust = 3, + [EnumMember(Value = "created")] + Created = 3, /// - /// Enum Shuffle for value: shuffle + /// Enum Favorites for value: favorites /// - [EnumMember(Value = "shuffle")] - Shuffle = 4, + [EnumMember(Value = "favorites")] + Favorites = 4, /// - /// Enum Random for value: random + /// Enum Heat for value: heat /// - [EnumMember(Value = "random")] - Random = 5, + [EnumMember(Value = "heat")] + Heat = 5, /// - /// Enum Favorites for value: favorites + /// Enum LabsPublicationDate for value: labsPublicationDate /// - [EnumMember(Value = "favorites")] - Favorites = 6, + [EnumMember(Value = "labsPublicationDate")] + LabsPublicationDate = 6, /// - /// Enum ReportScore for value: reportScore + /// Enum Magic for value: magic /// - [EnumMember(Value = "reportScore")] - ReportScore = 7, + [EnumMember(Value = "magic")] + Magic = 7, /// - /// Enum ReportCount for value: reportCount + /// Enum Name for value: name /// - [EnumMember(Value = "reportCount")] - ReportCount = 8, + [EnumMember(Value = "name")] + Name = 8, /// - /// Enum PublicationDate for value: publicationDate + /// Enum Order for value: order /// - [EnumMember(Value = "publicationDate")] - PublicationDate = 9, + [EnumMember(Value = "order")] + Order = 9, /// - /// Enum LabsPublicationDate for value: labsPublicationDate + /// Enum Popularity for value: popularity /// - [EnumMember(Value = "labsPublicationDate")] - LabsPublicationDate = 10, + [EnumMember(Value = "popularity")] + Popularity = 10, /// - /// Enum Created for value: created + /// Enum PublicationDate for value: publicationDate /// - [EnumMember(Value = "created")] - Created = 11, + [EnumMember(Value = "publicationDate")] + PublicationDate = 11, /// - /// Enum CreatedAt for value: _created_at + /// Enum Random for value: random /// - [EnumMember(Value = "_created_at")] - CreatedAt = 12, + [EnumMember(Value = "random")] + Random = 12, /// - /// Enum Updated for value: updated + /// Enum Relevance for value: relevance /// - [EnumMember(Value = "updated")] - Updated = 13, + [EnumMember(Value = "relevance")] + Relevance = 13, /// - /// Enum UpdatedAt for value: _updated_at + /// Enum ReportCount for value: reportCount /// - [EnumMember(Value = "_updated_at")] - UpdatedAt = 14, + [EnumMember(Value = "reportCount")] + ReportCount = 14, /// - /// Enum Order for value: order + /// Enum ReportScore for value: reportScore /// - [EnumMember(Value = "order")] - Order = 15, + [EnumMember(Value = "reportScore")] + ReportScore = 15, /// - /// Enum Relevance for value: relevance + /// Enum Shuffle for value: shuffle /// - [EnumMember(Value = "relevance")] - Relevance = 16, + [EnumMember(Value = "shuffle")] + Shuffle = 16, /// - /// Enum Magic for value: magic + /// Enum Trust for value: trust /// - [EnumMember(Value = "magic")] - Magic = 17, + [EnumMember(Value = "trust")] + Trust = 17, /// - /// Enum Name for value: name + /// Enum Updated for value: updated /// - [EnumMember(Value = "name")] - Name = 18 + [EnumMember(Value = "updated")] + Updated = 18 } } diff --git a/src/VRChat.API/Model/SortOptionProductPurchase.cs b/src/VRChat.API/Model/SortOptionProductPurchase.cs new file mode 100644 index 00000000..9d35a47c --- /dev/null +++ b/src/VRChat.API/Model/SortOptionProductPurchase.cs @@ -0,0 +1,42 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.20.7-nightly.3 + * Contact: vrchatapi.lpv0t@aries.fyi + * 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 FileParameter = VRChat.API.Client.FileParameter; +using OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// Defines SortOptionProductPurchase + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum SortOptionProductPurchase + { + /// + /// Enum PurchaseDate for value: purchaseDate + /// + [EnumMember(Value = "purchaseDate")] + PurchaseDate = 1 + } + +} diff --git a/src/VRChat.API/Model/Store.cs b/src/VRChat.API/Model/Store.cs index dc75baeb..401ba0f7 100644 --- a/src/VRChat.API/Model/Store.cs +++ b/src/VRChat.API/Model/Store.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -48,19 +48,19 @@ protected Store() { } /// /// description (required). /// displayName (required). + /// groupId. /// id (required). + /// Only for store type world and group. + /// Only for store type world and group. /// sellerDisplayName (required). /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). + /// Only for store type house. + /// Only for store type house. /// storeId (required). /// storeType (required). /// tags (required). - /// Only for store type world and group. - /// Only for store type world and group. /// WorldID be \"offline\" on User profiles if you are not friends with that user.. - /// groupId. - /// Only for store type house. - /// Only for store type house. - public Store(string description = default, string displayName = default, string id = default, string sellerDisplayName = default, string sellerId = default, string storeId = default, StoreType storeType = default, List tags = default, List listingIds = default, List listings = default, string worldId = default, string groupId = default, List shelfIds = default, List shelves = default) + public Store(string description = default, string displayName = default, string groupId = default, string id = default, List listingIds = default, List listings = default, string sellerDisplayName = default, string sellerId = default, List shelfIds = default, List shelves = default, string storeId = default, StoreType storeType = default, List tags = default, string worldId = default) { // to ensure "description" is required (not null) if (description == null) @@ -105,12 +105,12 @@ public Store(string description = default, string displayName = default, string throw new ArgumentNullException("tags is a required property for Store and cannot be null"); } this.Tags = tags; + this.GroupId = groupId; this.ListingIds = listingIds; this.Listings = listings; - this.WorldId = worldId; - this.GroupId = groupId; this.ShelfIds = shelfIds; this.Shelves = shelves; + this.WorldId = worldId; } /// @@ -125,6 +125,15 @@ public Store(string description = default, string displayName = default, string [DataMember(Name = "displayName", IsRequired = true, EmitDefaultValue = true)] public string DisplayName { get; set; } + /// + /// Gets or Sets GroupId + /// + /* + grp_71a7ff59-112c-4e78-a990-c7cc650776e5 + */ + [DataMember(Name = "groupId", EmitDefaultValue = false)] + public string GroupId { get; set; } + /// /// Gets or Sets Id /// @@ -134,6 +143,20 @@ public Store(string description = default, string displayName = default, string [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] public string Id { get; set; } + /// + /// Only for store type world and group + /// + /// Only for store type world and group + [DataMember(Name = "listingIds", EmitDefaultValue = false)] + public List ListingIds { get; set; } + + /// + /// Only for store type world and group + /// + /// Only for store type world and group + [DataMember(Name = "listings", EmitDefaultValue = false)] + public List Listings { get; set; } + /// /// Gets or Sets SellerDisplayName /// @@ -150,6 +173,20 @@ public Store(string description = default, string displayName = default, string [DataMember(Name = "sellerId", IsRequired = true, EmitDefaultValue = true)] public string SellerId { get; set; } + /// + /// Only for store type house + /// + /// Only for store type house + [DataMember(Name = "shelfIds", EmitDefaultValue = false)] + public List ShelfIds { get; set; } + + /// + /// Only for store type house + /// + /// Only for store type house + [DataMember(Name = "shelves", EmitDefaultValue = false)] + public List Shelves { get; set; } + /// /// Gets or Sets StoreId /// @@ -165,20 +202,6 @@ public Store(string description = default, string displayName = default, string [DataMember(Name = "tags", IsRequired = true, EmitDefaultValue = true)] public List Tags { get; set; } - /// - /// Only for store type world and group - /// - /// Only for store type world and group - [DataMember(Name = "listingIds", EmitDefaultValue = false)] - public List ListingIds { get; set; } - - /// - /// Only for store type world and group - /// - /// Only for store type world and group - [DataMember(Name = "listings", EmitDefaultValue = false)] - public List Listings { get; set; } - /// /// WorldID be \"offline\" on User profiles if you are not friends with that user. /// @@ -189,29 +212,6 @@ public Store(string description = default, string displayName = default, string [DataMember(Name = "worldId", EmitDefaultValue = false)] public string WorldId { get; set; } - /// - /// Gets or Sets GroupId - /// - /* - grp_71a7ff59-112c-4e78-a990-c7cc650776e5 - */ - [DataMember(Name = "groupId", EmitDefaultValue = false)] - public string GroupId { get; set; } - - /// - /// Only for store type house - /// - /// Only for store type house - [DataMember(Name = "shelfIds", EmitDefaultValue = false)] - public List ShelfIds { get; set; } - - /// - /// Only for store type house - /// - /// Only for store type house - [DataMember(Name = "shelves", EmitDefaultValue = false)] - public List Shelves { get; set; } - /// /// Returns the string presentation of the object /// @@ -222,18 +222,18 @@ public override string ToString() sb.Append("class Store {\n"); sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); + sb.Append(" GroupId: ").Append(GroupId).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" ListingIds: ").Append(ListingIds).Append("\n"); + sb.Append(" Listings: ").Append(Listings).Append("\n"); sb.Append(" SellerDisplayName: ").Append(SellerDisplayName).Append("\n"); sb.Append(" SellerId: ").Append(SellerId).Append("\n"); + sb.Append(" ShelfIds: ").Append(ShelfIds).Append("\n"); + sb.Append(" Shelves: ").Append(Shelves).Append("\n"); sb.Append(" StoreId: ").Append(StoreId).Append("\n"); sb.Append(" StoreType: ").Append(StoreType).Append("\n"); sb.Append(" Tags: ").Append(Tags).Append("\n"); - sb.Append(" ListingIds: ").Append(ListingIds).Append("\n"); - sb.Append(" Listings: ").Append(Listings).Append("\n"); sb.Append(" WorldId: ").Append(WorldId).Append("\n"); - sb.Append(" GroupId: ").Append(GroupId).Append("\n"); - sb.Append(" ShelfIds: ").Append(ShelfIds).Append("\n"); - sb.Append(" Shelves: ").Append(Shelves).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -279,11 +279,28 @@ public bool Equals(Store input) (this.DisplayName != null && this.DisplayName.Equals(input.DisplayName)) ) && + ( + this.GroupId == input.GroupId || + (this.GroupId != null && + this.GroupId.Equals(input.GroupId)) + ) && ( this.Id == input.Id || (this.Id != null && this.Id.Equals(input.Id)) ) && + ( + this.ListingIds == input.ListingIds || + this.ListingIds != null && + input.ListingIds != null && + this.ListingIds.SequenceEqual(input.ListingIds) + ) && + ( + this.Listings == input.Listings || + this.Listings != null && + input.Listings != null && + this.Listings.SequenceEqual(input.Listings) + ) && ( this.SellerDisplayName == input.SellerDisplayName || (this.SellerDisplayName != null && @@ -294,6 +311,18 @@ public bool Equals(Store input) (this.SellerId != null && this.SellerId.Equals(input.SellerId)) ) && + ( + this.ShelfIds == input.ShelfIds || + this.ShelfIds != null && + input.ShelfIds != null && + this.ShelfIds.SequenceEqual(input.ShelfIds) + ) && + ( + this.Shelves == input.Shelves || + this.Shelves != null && + input.Shelves != null && + this.Shelves.SequenceEqual(input.Shelves) + ) && ( this.StoreId == input.StoreId || (this.StoreId != null && @@ -309,39 +338,10 @@ public bool Equals(Store input) input.Tags != null && this.Tags.SequenceEqual(input.Tags) ) && - ( - this.ListingIds == input.ListingIds || - this.ListingIds != null && - input.ListingIds != null && - this.ListingIds.SequenceEqual(input.ListingIds) - ) && - ( - this.Listings == input.Listings || - this.Listings != null && - input.Listings != null && - this.Listings.SequenceEqual(input.Listings) - ) && ( this.WorldId == input.WorldId || (this.WorldId != null && this.WorldId.Equals(input.WorldId)) - ) && - ( - this.GroupId == input.GroupId || - (this.GroupId != null && - this.GroupId.Equals(input.GroupId)) - ) && - ( - this.ShelfIds == input.ShelfIds || - this.ShelfIds != null && - input.ShelfIds != null && - this.ShelfIds.SequenceEqual(input.ShelfIds) - ) && - ( - this.Shelves == input.Shelves || - this.Shelves != null && - input.Shelves != null && - this.Shelves.SequenceEqual(input.Shelves) ); } @@ -362,10 +362,22 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); } + if (this.GroupId != null) + { + hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); + } if (this.Id != null) { hashCode = (hashCode * 59) + this.Id.GetHashCode(); } + if (this.ListingIds != null) + { + hashCode = (hashCode * 59) + this.ListingIds.GetHashCode(); + } + if (this.Listings != null) + { + hashCode = (hashCode * 59) + this.Listings.GetHashCode(); + } if (this.SellerDisplayName != null) { hashCode = (hashCode * 59) + this.SellerDisplayName.GetHashCode(); @@ -374,6 +386,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SellerId.GetHashCode(); } + if (this.ShelfIds != null) + { + hashCode = (hashCode * 59) + this.ShelfIds.GetHashCode(); + } + if (this.Shelves != null) + { + hashCode = (hashCode * 59) + this.Shelves.GetHashCode(); + } if (this.StoreId != null) { hashCode = (hashCode * 59) + this.StoreId.GetHashCode(); @@ -383,30 +403,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Tags.GetHashCode(); } - if (this.ListingIds != null) - { - hashCode = (hashCode * 59) + this.ListingIds.GetHashCode(); - } - if (this.Listings != null) - { - hashCode = (hashCode * 59) + this.Listings.GetHashCode(); - } if (this.WorldId != null) { hashCode = (hashCode * 59) + this.WorldId.GetHashCode(); } - if (this.GroupId != null) - { - hashCode = (hashCode * 59) + this.GroupId.GetHashCode(); - } - if (this.ShelfIds != null) - { - hashCode = (hashCode * 59) + this.ShelfIds.GetHashCode(); - } - if (this.Shelves != null) - { - hashCode = (hashCode * 59) + this.Shelves.GetHashCode(); - } return hashCode; } } diff --git a/src/VRChat.API/Model/StoreShelf.cs b/src/VRChat.API/Model/StoreShelf.cs index 40f79ef4..8474237b 100644 --- a/src/VRChat.API/Model/StoreShelf.cs +++ b/src/VRChat.API/Model/StoreShelf.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/StoreType.cs b/src/VRChat.API/Model/StoreType.cs index bba40648..7a220f69 100644 --- a/src/VRChat.API/Model/StoreType.cs +++ b/src/VRChat.API/Model/StoreType.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,23 +32,23 @@ namespace VRChat.API.Model [JsonConverter(typeof(StringEnumConverter))] public enum StoreType { + /// + /// Enum Group for value: group + /// + [EnumMember(Value = "group")] + Group = 1, + /// /// Enum House for value: house /// [EnumMember(Value = "house")] - House = 1, + House = 2, /// /// Enum World for value: world /// [EnumMember(Value = "world")] - World = 2, - - /// - /// Enum Group for value: group - /// - [EnumMember(Value = "group")] - Group = 3 + World = 3 } } diff --git a/src/VRChat.API/Model/StoreView.cs b/src/VRChat.API/Model/StoreView.cs index 12d4789d..f3321175 100644 --- a/src/VRChat.API/Model/StoreView.cs +++ b/src/VRChat.API/Model/StoreView.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,28 +39,28 @@ public enum StoreView All = 1, /// - /// Enum PublicPreview for value: publicPreview + /// Enum Draft for value: draft /// - [EnumMember(Value = "publicPreview")] - PublicPreview = 2, + [EnumMember(Value = "draft")] + Draft = 2, /// - /// Enum Public for value: public + /// Enum Preview for value: preview /// - [EnumMember(Value = "public")] - Public = 3, + [EnumMember(Value = "preview")] + Preview = 3, /// - /// Enum Preview for value: preview + /// Enum Public for value: public /// - [EnumMember(Value = "preview")] - Preview = 4, + [EnumMember(Value = "public")] + Public = 4, /// - /// Enum Draft for value: draft + /// Enum PublicPreview for value: publicPreview /// - [EnumMember(Value = "draft")] - Draft = 5 + [EnumMember(Value = "publicPreview")] + PublicPreview = 5 } } diff --git a/src/VRChat.API/Model/Submission.cs b/src/VRChat.API/Model/Submission.cs index 43f0672a..b7fe6800 100644 --- a/src/VRChat.API/Model/Submission.cs +++ b/src/VRChat.API/Model/Submission.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Subscription.cs b/src/VRChat.API/Model/Subscription.cs index 50dde349..d295cead 100644 --- a/src/VRChat.API/Model/Subscription.cs +++ b/src/VRChat.API/Model/Subscription.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,70 +46,64 @@ protected Subscription() { } /// /// Initializes a new instance of the class. /// - /// id (required). - /// steamItemId (required). - /// oculusSku. - /// googleProductId. - /// googlePlanId. - /// picoSku. - /// appleProductId. /// amount (required). + /// appleProductId. /// description (required). + /// googlePlanId. + /// googleProductId. + /// id (required). + /// oculusSku. /// period (required). + /// picoSku. + /// steamItemId (required). /// tier (required). - public Subscription(string id = default, string steamItemId = default, string oculusSku = default, string googleProductId = default, string googlePlanId = default, string picoSku = default, string appleProductId = default, decimal amount = default, string description = default, SubscriptionPeriod period = default, int tier = default) + public Subscription(decimal amount = default, string appleProductId = default, string description = default, string googlePlanId = default, string googleProductId = default, string id = default, string oculusSku = default, SubscriptionPeriod period = default, string picoSku = default, string steamItemId = default, int tier = default) { + this.Amount = amount; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for Subscription and cannot be null"); + } + this.Description = description; // to ensure "id" is required (not null) if (id == null) { throw new ArgumentNullException("id is a required property for Subscription and cannot be null"); } this.Id = id; + this.Period = period; // to ensure "steamItemId" is required (not null) if (steamItemId == null) { throw new ArgumentNullException("steamItemId is a required property for Subscription and cannot be null"); } this.SteamItemId = steamItemId; - this.Amount = amount; - // to ensure "description" is required (not null) - if (description == null) - { - throw new ArgumentNullException("description is a required property for Subscription and cannot be null"); - } - this.Description = description; - this.Period = period; this.Tier = tier; - this.OculusSku = oculusSku; - this.GoogleProductId = googleProductId; + this.AppleProductId = appleProductId; this.GooglePlanId = googlePlanId; + this.GoogleProductId = googleProductId; + this.OculusSku = oculusSku; this.PicoSku = picoSku; - this.AppleProductId = appleProductId; } /// - /// Gets or Sets Id - /// - [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] - public string Id { get; set; } - - /// - /// Gets or Sets SteamItemId + /// Gets or Sets Amount /// - [DataMember(Name = "steamItemId", IsRequired = true, EmitDefaultValue = true)] - public string SteamItemId { get; set; } + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public decimal Amount { get; set; } /// - /// Gets or Sets OculusSku + /// Gets or Sets AppleProductId /// - [DataMember(Name = "oculusSku", EmitDefaultValue = false)] - public string OculusSku { get; set; } + [DataMember(Name = "appleProductId", EmitDefaultValue = false)] + public string AppleProductId { get; set; } /// - /// Gets or Sets GoogleProductId + /// Gets or Sets Description /// - [DataMember(Name = "googleProductId", EmitDefaultValue = false)] - public string GoogleProductId { get; set; } + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } /// /// Gets or Sets GooglePlanId @@ -118,28 +112,34 @@ public Subscription(string id = default, string steamItemId = default, string oc public string GooglePlanId { get; set; } /// - /// Gets or Sets PicoSku + /// Gets or Sets GoogleProductId /// - [DataMember(Name = "picoSku", EmitDefaultValue = false)] - public string PicoSku { get; set; } + [DataMember(Name = "googleProductId", EmitDefaultValue = false)] + public string GoogleProductId { get; set; } /// - /// Gets or Sets AppleProductId + /// Gets or Sets Id /// - [DataMember(Name = "appleProductId", EmitDefaultValue = false)] - public string AppleProductId { get; set; } + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } /// - /// Gets or Sets Amount + /// Gets or Sets OculusSku /// - [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] - public decimal Amount { get; set; } + [DataMember(Name = "oculusSku", EmitDefaultValue = false)] + public string OculusSku { get; set; } /// - /// Gets or Sets Description + /// Gets or Sets PicoSku /// - [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] - public string Description { get; set; } + [DataMember(Name = "picoSku", EmitDefaultValue = false)] + public string PicoSku { get; set; } + + /// + /// Gets or Sets SteamItemId + /// + [DataMember(Name = "steamItemId", IsRequired = true, EmitDefaultValue = true)] + public string SteamItemId { get; set; } /// /// Gets or Sets Tier @@ -155,16 +155,16 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class Subscription {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" SteamItemId: ").Append(SteamItemId).Append("\n"); - sb.Append(" OculusSku: ").Append(OculusSku).Append("\n"); - sb.Append(" GoogleProductId: ").Append(GoogleProductId).Append("\n"); - sb.Append(" GooglePlanId: ").Append(GooglePlanId).Append("\n"); - sb.Append(" PicoSku: ").Append(PicoSku).Append("\n"); - sb.Append(" AppleProductId: ").Append(AppleProductId).Append("\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" AppleProductId: ").Append(AppleProductId).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" GooglePlanId: ").Append(GooglePlanId).Append("\n"); + sb.Append(" GoogleProductId: ").Append(GoogleProductId).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" OculusSku: ").Append(OculusSku).Append("\n"); sb.Append(" Period: ").Append(Period).Append("\n"); + sb.Append(" PicoSku: ").Append(PicoSku).Append("\n"); + sb.Append(" SteamItemId: ").Append(SteamItemId).Append("\n"); sb.Append(" Tier: ").Append(Tier).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -202,24 +202,18 @@ public bool Equals(Subscription input) } return ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.SteamItemId == input.SteamItemId || - (this.SteamItemId != null && - this.SteamItemId.Equals(input.SteamItemId)) + this.Amount == input.Amount || + this.Amount.Equals(input.Amount) ) && ( - this.OculusSku == input.OculusSku || - (this.OculusSku != null && - this.OculusSku.Equals(input.OculusSku)) + this.AppleProductId == input.AppleProductId || + (this.AppleProductId != null && + this.AppleProductId.Equals(input.AppleProductId)) ) && ( - this.GoogleProductId == input.GoogleProductId || - (this.GoogleProductId != null && - this.GoogleProductId.Equals(input.GoogleProductId)) + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) ) && ( this.GooglePlanId == input.GooglePlanId || @@ -227,28 +221,34 @@ public bool Equals(Subscription input) this.GooglePlanId.Equals(input.GooglePlanId)) ) && ( - this.PicoSku == input.PicoSku || - (this.PicoSku != null && - this.PicoSku.Equals(input.PicoSku)) - ) && - ( - this.AppleProductId == input.AppleProductId || - (this.AppleProductId != null && - this.AppleProductId.Equals(input.AppleProductId)) + this.GoogleProductId == input.GoogleProductId || + (this.GoogleProductId != null && + this.GoogleProductId.Equals(input.GoogleProductId)) ) && ( - this.Amount == input.Amount || - this.Amount.Equals(input.Amount) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) + this.OculusSku == input.OculusSku || + (this.OculusSku != null && + this.OculusSku.Equals(input.OculusSku)) ) && ( this.Period == input.Period || this.Period.Equals(input.Period) ) && + ( + this.PicoSku == input.PicoSku || + (this.PicoSku != null && + this.PicoSku.Equals(input.PicoSku)) + ) && + ( + this.SteamItemId == input.SteamItemId || + (this.SteamItemId != null && + this.SteamItemId.Equals(input.SteamItemId)) + ) && ( this.Tier == input.Tier || this.Tier.Equals(input.Tier) @@ -264,40 +264,40 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) + hashCode = (hashCode * 59) + this.Amount.GetHashCode(); + if (this.AppleProductId != null) { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + hashCode = (hashCode * 59) + this.AppleProductId.GetHashCode(); } - if (this.SteamItemId != null) + if (this.Description != null) { - hashCode = (hashCode * 59) + this.SteamItemId.GetHashCode(); + hashCode = (hashCode * 59) + this.Description.GetHashCode(); } - if (this.OculusSku != null) + if (this.GooglePlanId != null) { - hashCode = (hashCode * 59) + this.OculusSku.GetHashCode(); + hashCode = (hashCode * 59) + this.GooglePlanId.GetHashCode(); } if (this.GoogleProductId != null) { hashCode = (hashCode * 59) + this.GoogleProductId.GetHashCode(); } - if (this.GooglePlanId != null) + if (this.Id != null) { - hashCode = (hashCode * 59) + this.GooglePlanId.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } - if (this.PicoSku != null) + if (this.OculusSku != null) { - hashCode = (hashCode * 59) + this.PicoSku.GetHashCode(); + hashCode = (hashCode * 59) + this.OculusSku.GetHashCode(); } - if (this.AppleProductId != null) + hashCode = (hashCode * 59) + this.Period.GetHashCode(); + if (this.PicoSku != null) { - hashCode = (hashCode * 59) + this.AppleProductId.GetHashCode(); + hashCode = (hashCode * 59) + this.PicoSku.GetHashCode(); } - hashCode = (hashCode * 59) + this.Amount.GetHashCode(); - if (this.Description != null) + if (this.SteamItemId != null) { - hashCode = (hashCode * 59) + this.Description.GetHashCode(); + hashCode = (hashCode * 59) + this.SteamItemId.GetHashCode(); } - hashCode = (hashCode * 59) + this.Period.GetHashCode(); hashCode = (hashCode * 59) + this.Tier.GetHashCode(); return hashCode; } @@ -310,28 +310,28 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Id (string) minLength - if (this.Id != null && this.Id.Length < 1) + // AppleProductId (string) minLength + if (this.AppleProductId != null && this.AppleProductId.Length < 1) { - yield return new ValidationResult("Invalid value for Id, length must be greater than 1.", new [] { "Id" }); + yield return new ValidationResult("Invalid value for AppleProductId, length must be greater than 1.", new [] { "AppleProductId" }); } - // SteamItemId (string) minLength - if (this.SteamItemId != null && this.SteamItemId.Length < 1) + // GoogleProductId (string) minLength + if (this.GoogleProductId != null && this.GoogleProductId.Length < 1) { - yield return new ValidationResult("Invalid value for SteamItemId, length must be greater than 1.", new [] { "SteamItemId" }); + yield return new ValidationResult("Invalid value for GoogleProductId, length must be greater than 1.", new [] { "GoogleProductId" }); } - // OculusSku (string) minLength - if (this.OculusSku != null && this.OculusSku.Length < 1) + // Id (string) minLength + if (this.Id != null && this.Id.Length < 1) { - yield return new ValidationResult("Invalid value for OculusSku, length must be greater than 1.", new [] { "OculusSku" }); + yield return new ValidationResult("Invalid value for Id, length must be greater than 1.", new [] { "Id" }); } - // GoogleProductId (string) minLength - if (this.GoogleProductId != null && this.GoogleProductId.Length < 1) + // OculusSku (string) minLength + if (this.OculusSku != null && this.OculusSku.Length < 1) { - yield return new ValidationResult("Invalid value for GoogleProductId, length must be greater than 1.", new [] { "GoogleProductId" }); + yield return new ValidationResult("Invalid value for OculusSku, length must be greater than 1.", new [] { "OculusSku" }); } // PicoSku (string) minLength @@ -340,10 +340,10 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for PicoSku, length must be greater than 1.", new [] { "PicoSku" }); } - // AppleProductId (string) minLength - if (this.AppleProductId != null && this.AppleProductId.Length < 1) + // SteamItemId (string) minLength + if (this.SteamItemId != null && this.SteamItemId.Length < 1) { - yield return new ValidationResult("Invalid value for AppleProductId, length must be greater than 1.", new [] { "AppleProductId" }); + yield return new ValidationResult("Invalid value for SteamItemId, length must be greater than 1.", new [] { "SteamItemId" }); } yield break; diff --git a/src/VRChat.API/Model/SubscriptionPeriod.cs b/src/VRChat.API/Model/SubscriptionPeriod.cs index 03510016..a5038e99 100644 --- a/src/VRChat.API/Model/SubscriptionPeriod.cs +++ b/src/VRChat.API/Model/SubscriptionPeriod.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,29 +32,29 @@ namespace VRChat.API.Model [JsonConverter(typeof(StringEnumConverter))] public enum SubscriptionPeriod { - /// - /// Enum Hour for value: hour - /// - [EnumMember(Value = "hour")] - Hour = 1, - /// /// Enum Day for value: day /// [EnumMember(Value = "day")] - Day = 2, + Day = 1, /// - /// Enum Week for value: week + /// Enum Hour for value: hour /// - [EnumMember(Value = "week")] - Week = 3, + [EnumMember(Value = "hour")] + Hour = 2, /// /// Enum Month for value: month /// [EnumMember(Value = "month")] - Month = 4, + Month = 3, + + /// + /// Enum Week for value: week + /// + [EnumMember(Value = "week")] + Week = 4, /// /// Enum Year for value: year diff --git a/src/VRChat.API/Model/Success.cs b/src/VRChat.API/Model/Success.cs index ae9965df..37b3a634 100644 --- a/src/VRChat.API/Model/Success.cs +++ b/src/VRChat.API/Model/Success.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/SuccessFlag.cs b/src/VRChat.API/Model/SuccessFlag.cs index 9cbeaade..65f38aa6 100644 --- a/src/VRChat.API/Model/SuccessFlag.cs +++ b/src/VRChat.API/Model/SuccessFlag.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/TiliaStatus.cs b/src/VRChat.API/Model/TiliaStatus.cs index 1111e51d..62161e90 100644 --- a/src/VRChat.API/Model/TiliaStatus.cs +++ b/src/VRChat.API/Model/TiliaStatus.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -42,14 +42,14 @@ protected TiliaStatus() { } /// /// economyOnline (required). /// economyState. - /// plannedOfflineWindowStart. /// plannedOfflineWindowEnd. - public TiliaStatus(bool economyOnline = default, int economyState = default, DateTime plannedOfflineWindowStart = default, DateTime plannedOfflineWindowEnd = default) + /// plannedOfflineWindowStart. + public TiliaStatus(bool economyOnline = default, int economyState = default, DateTime plannedOfflineWindowEnd = default, DateTime plannedOfflineWindowStart = default) { this.EconomyOnline = economyOnline; this.EconomyState = economyState; - this.PlannedOfflineWindowStart = plannedOfflineWindowStart; this.PlannedOfflineWindowEnd = plannedOfflineWindowEnd; + this.PlannedOfflineWindowStart = plannedOfflineWindowStart; } /// @@ -64,18 +64,18 @@ public TiliaStatus(bool economyOnline = default, int economyState = default, Dat [DataMember(Name = "economyState", EmitDefaultValue = false)] public int EconomyState { get; set; } - /// - /// Gets or Sets PlannedOfflineWindowStart - /// - [DataMember(Name = "plannedOfflineWindowStart", EmitDefaultValue = false)] - public DateTime PlannedOfflineWindowStart { get; set; } - /// /// Gets or Sets PlannedOfflineWindowEnd /// [DataMember(Name = "plannedOfflineWindowEnd", EmitDefaultValue = false)] public DateTime PlannedOfflineWindowEnd { get; set; } + /// + /// Gets or Sets PlannedOfflineWindowStart + /// + [DataMember(Name = "plannedOfflineWindowStart", EmitDefaultValue = false)] + public DateTime PlannedOfflineWindowStart { get; set; } + /// /// Returns the string presentation of the object /// @@ -86,8 +86,8 @@ public override string ToString() sb.Append("class TiliaStatus {\n"); sb.Append(" EconomyOnline: ").Append(EconomyOnline).Append("\n"); sb.Append(" EconomyState: ").Append(EconomyState).Append("\n"); - sb.Append(" PlannedOfflineWindowStart: ").Append(PlannedOfflineWindowStart).Append("\n"); sb.Append(" PlannedOfflineWindowEnd: ").Append(PlannedOfflineWindowEnd).Append("\n"); + sb.Append(" PlannedOfflineWindowStart: ").Append(PlannedOfflineWindowStart).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -131,15 +131,15 @@ public bool Equals(TiliaStatus input) this.EconomyState == input.EconomyState || this.EconomyState.Equals(input.EconomyState) ) && - ( - this.PlannedOfflineWindowStart == input.PlannedOfflineWindowStart || - (this.PlannedOfflineWindowStart != null && - this.PlannedOfflineWindowStart.Equals(input.PlannedOfflineWindowStart)) - ) && ( this.PlannedOfflineWindowEnd == input.PlannedOfflineWindowEnd || (this.PlannedOfflineWindowEnd != null && this.PlannedOfflineWindowEnd.Equals(input.PlannedOfflineWindowEnd)) + ) && + ( + this.PlannedOfflineWindowStart == input.PlannedOfflineWindowStart || + (this.PlannedOfflineWindowStart != null && + this.PlannedOfflineWindowStart.Equals(input.PlannedOfflineWindowStart)) ); } @@ -154,14 +154,14 @@ public override int GetHashCode() int hashCode = 41; hashCode = (hashCode * 59) + this.EconomyOnline.GetHashCode(); hashCode = (hashCode * 59) + this.EconomyState.GetHashCode(); - if (this.PlannedOfflineWindowStart != null) - { - hashCode = (hashCode * 59) + this.PlannedOfflineWindowStart.GetHashCode(); - } if (this.PlannedOfflineWindowEnd != null) { hashCode = (hashCode * 59) + this.PlannedOfflineWindowEnd.GetHashCode(); } + if (this.PlannedOfflineWindowStart != null) + { + hashCode = (hashCode * 59) + this.PlannedOfflineWindowStart.GetHashCode(); + } return hashCode; } } diff --git a/src/VRChat.API/Model/TiliaTOS.cs b/src/VRChat.API/Model/TiliaTOS.cs index b47af042..0399dee3 100644 --- a/src/VRChat.API/Model/TiliaTOS.cs +++ b/src/VRChat.API/Model/TiliaTOS.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/TokenBundle.cs b/src/VRChat.API/Model/TokenBundle.cs index d8391d69..3d52a343 100644 --- a/src/VRChat.API/Model/TokenBundle.cs +++ b/src/VRChat.API/Model/TokenBundle.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,63 +40,64 @@ protected TokenBundle() { } /// /// Initializes a new instance of the class. /// - /// id (required). - /// appleProductId (required). - /// steamItemId (required). - /// oculusSku (required). - /// googleProductId. /// price of the bundle (required). + /// appleProductId (required). /// description (required). - /// number of tokens received (required). + /// googleProductId. + /// id (required). /// direct url to image (required). - public TokenBundle(string id = default, string appleProductId = default, string steamItemId = default, string oculusSku = default, string googleProductId = default, int amount = default, string description = default, int tokens = default, string imageUrl = default) + /// oculusSku (required). + /// steamItemId (required). + /// number of tokens received (required). + public TokenBundle(int amount = default, string appleProductId = default, string description = default, string googleProductId = default, string id = default, string imageUrl = default, string oculusSku = default, string steamItemId = default, int tokens = default) { - // to ensure "id" is required (not null) - if (id == null) - { - throw new ArgumentNullException("id is a required property for TokenBundle and cannot be null"); - } - this.Id = id; + this.Amount = amount; // to ensure "appleProductId" is required (not null) if (appleProductId == null) { throw new ArgumentNullException("appleProductId is a required property for TokenBundle and cannot be null"); } this.AppleProductId = appleProductId; - // to ensure "steamItemId" is required (not null) - if (steamItemId == null) - { - throw new ArgumentNullException("steamItemId is a required property for TokenBundle and cannot be null"); - } - this.SteamItemId = steamItemId; - // to ensure "oculusSku" is required (not null) - if (oculusSku == null) - { - throw new ArgumentNullException("oculusSku is a required property for TokenBundle and cannot be null"); - } - this.OculusSku = oculusSku; - this.Amount = amount; // to ensure "description" is required (not null) if (description == null) { throw new ArgumentNullException("description is a required property for TokenBundle and cannot be null"); } this.Description = description; - this.Tokens = tokens; + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for TokenBundle and cannot be null"); + } + this.Id = id; // to ensure "imageUrl" is required (not null) if (imageUrl == null) { throw new ArgumentNullException("imageUrl is a required property for TokenBundle and cannot be null"); } this.ImageUrl = imageUrl; + // to ensure "oculusSku" is required (not null) + if (oculusSku == null) + { + throw new ArgumentNullException("oculusSku is a required property for TokenBundle and cannot be null"); + } + this.OculusSku = oculusSku; + // to ensure "steamItemId" is required (not null) + if (steamItemId == null) + { + throw new ArgumentNullException("steamItemId is a required property for TokenBundle and cannot be null"); + } + this.SteamItemId = steamItemId; + this.Tokens = tokens; this.GoogleProductId = googleProductId; } /// - /// Gets or Sets Id + /// price of the bundle /// - [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] - public string Id { get; set; } + /// price of the bundle + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public int Amount { get; set; } /// /// Gets or Sets AppleProductId @@ -105,16 +106,10 @@ public TokenBundle(string id = default, string appleProductId = default, string public string AppleProductId { get; set; } /// - /// Gets or Sets SteamItemId - /// - [DataMember(Name = "steamItemId", IsRequired = true, EmitDefaultValue = true)] - public string SteamItemId { get; set; } - - /// - /// Gets or Sets OculusSku + /// Gets or Sets Description /// - [DataMember(Name = "oculusSku", IsRequired = true, EmitDefaultValue = true)] - public string OculusSku { get; set; } + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } /// /// Gets or Sets GoogleProductId @@ -123,17 +118,29 @@ public TokenBundle(string id = default, string appleProductId = default, string public string GoogleProductId { get; set; } /// - /// price of the bundle + /// Gets or Sets Id /// - /// price of the bundle - [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] - public int Amount { get; set; } + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } /// - /// Gets or Sets Description + /// direct url to image /// - [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] - public string Description { get; set; } + /// direct url to image + [DataMember(Name = "imageUrl", IsRequired = true, EmitDefaultValue = true)] + public string ImageUrl { get; set; } + + /// + /// Gets or Sets OculusSku + /// + [DataMember(Name = "oculusSku", IsRequired = true, EmitDefaultValue = true)] + public string OculusSku { get; set; } + + /// + /// Gets or Sets SteamItemId + /// + [DataMember(Name = "steamItemId", IsRequired = true, EmitDefaultValue = true)] + public string SteamItemId { get; set; } /// /// number of tokens received @@ -142,13 +149,6 @@ public TokenBundle(string id = default, string appleProductId = default, string [DataMember(Name = "tokens", IsRequired = true, EmitDefaultValue = true)] public int Tokens { get; set; } - /// - /// direct url to image - /// - /// direct url to image - [DataMember(Name = "imageUrl", IsRequired = true, EmitDefaultValue = true)] - public string ImageUrl { get; set; } - /// /// Returns the string presentation of the object /// @@ -157,15 +157,15 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class TokenBundle {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" AppleProductId: ").Append(AppleProductId).Append("\n"); - sb.Append(" SteamItemId: ").Append(SteamItemId).Append("\n"); - sb.Append(" OculusSku: ").Append(OculusSku).Append("\n"); - sb.Append(" GoogleProductId: ").Append(GoogleProductId).Append("\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" AppleProductId: ").Append(AppleProductId).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Tokens: ").Append(Tokens).Append("\n"); + sb.Append(" GoogleProductId: ").Append(GoogleProductId).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" OculusSku: ").Append(OculusSku).Append("\n"); + sb.Append(" SteamItemId: ").Append(SteamItemId).Append("\n"); + sb.Append(" Tokens: ").Append(Tokens).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -202,9 +202,8 @@ public bool Equals(TokenBundle input) } return ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) + this.Amount == input.Amount || + this.Amount.Equals(input.Amount) ) && ( this.AppleProductId == input.AppleProductId || @@ -212,14 +211,9 @@ public bool Equals(TokenBundle input) this.AppleProductId.Equals(input.AppleProductId)) ) && ( - this.SteamItemId == input.SteamItemId || - (this.SteamItemId != null && - this.SteamItemId.Equals(input.SteamItemId)) - ) && - ( - this.OculusSku == input.OculusSku || - (this.OculusSku != null && - this.OculusSku.Equals(input.OculusSku)) + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) ) && ( this.GoogleProductId == input.GoogleProductId || @@ -227,22 +221,28 @@ public bool Equals(TokenBundle input) this.GoogleProductId.Equals(input.GoogleProductId)) ) && ( - this.Amount == input.Amount || - this.Amount.Equals(input.Amount) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) + this.ImageUrl == input.ImageUrl || + (this.ImageUrl != null && + this.ImageUrl.Equals(input.ImageUrl)) ) && ( - this.Tokens == input.Tokens || - this.Tokens.Equals(input.Tokens) + this.OculusSku == input.OculusSku || + (this.OculusSku != null && + this.OculusSku.Equals(input.OculusSku)) ) && ( - this.ImageUrl == input.ImageUrl || - (this.ImageUrl != null && - this.ImageUrl.Equals(input.ImageUrl)) + this.SteamItemId == input.SteamItemId || + (this.SteamItemId != null && + this.SteamItemId.Equals(input.SteamItemId)) + ) && + ( + this.Tokens == input.Tokens || + this.Tokens.Equals(input.Tokens) ); } @@ -255,36 +255,36 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) - { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - } + hashCode = (hashCode * 59) + this.Amount.GetHashCode(); if (this.AppleProductId != null) { hashCode = (hashCode * 59) + this.AppleProductId.GetHashCode(); } - if (this.SteamItemId != null) - { - hashCode = (hashCode * 59) + this.SteamItemId.GetHashCode(); - } - if (this.OculusSku != null) + if (this.Description != null) { - hashCode = (hashCode * 59) + this.OculusSku.GetHashCode(); + hashCode = (hashCode * 59) + this.Description.GetHashCode(); } if (this.GoogleProductId != null) { hashCode = (hashCode * 59) + this.GoogleProductId.GetHashCode(); } - hashCode = (hashCode * 59) + this.Amount.GetHashCode(); - if (this.Description != null) + if (this.Id != null) { - hashCode = (hashCode * 59) + this.Description.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } - hashCode = (hashCode * 59) + this.Tokens.GetHashCode(); if (this.ImageUrl != null) { hashCode = (hashCode * 59) + this.ImageUrl.GetHashCode(); } + if (this.OculusSku != null) + { + hashCode = (hashCode * 59) + this.OculusSku.GetHashCode(); + } + if (this.SteamItemId != null) + { + hashCode = (hashCode * 59) + this.SteamItemId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Tokens.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/Transaction.cs b/src/VRChat.API/Model/Transaction.cs index f7a45d90..0a33e7b2 100644 --- a/src/VRChat.API/Model/Transaction.cs +++ b/src/VRChat.API/Model/Transaction.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,27 +46,35 @@ protected Transaction() { } /// /// Initializes a new instance of the class. /// - /// id (required). - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. - /// userDisplayName. - /// status (required). - /// subscription (required). - /// sandbox (required) (default to false). - /// createdAt (required). - /// updatedAt (required). - /// steam. /// agreement. + /// createdAt (required). /// error (required). + /// id (required). /// isGift (default to false). /// isTokens (default to false). - public Transaction(string id = default, string userId = default, string userDisplayName = default, TransactionStatus status = default, Subscription subscription = default, bool sandbox = false, DateTime createdAt = default, DateTime updatedAt = default, TransactionSteamInfo steam = default, TransactionAgreement agreement = default, string error = default, bool isGift = false, bool isTokens = false) + /// sandbox (required) (default to false). + /// status (required). + /// steam. + /// subscription (required). + /// updatedAt (required). + /// userDisplayName. + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed.. + public Transaction(TransactionAgreement agreement = default, DateTime createdAt = default, string error = default, string id = default, bool isGift = false, bool isTokens = false, bool sandbox = false, TransactionStatus status = default, TransactionSteamInfo steam = default, Subscription subscription = default, DateTime updatedAt = default, string userDisplayName = default, string userId = default) { + this.CreatedAt = createdAt; + // to ensure "error" is required (not null) + if (error == null) + { + throw new ArgumentNullException("error is a required property for Transaction and cannot be null"); + } + this.Error = error; // to ensure "id" is required (not null) if (id == null) { throw new ArgumentNullException("id is a required property for Transaction and cannot be null"); } this.Id = id; + this.Sandbox = sandbox; this.Status = status; // to ensure "subscription" is required (not null) if (subscription == null) @@ -74,71 +82,59 @@ public Transaction(string id = default, string userId = default, string userDisp throw new ArgumentNullException("subscription is a required property for Transaction and cannot be null"); } this.Subscription = subscription; - this.Sandbox = sandbox; - this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; - // to ensure "error" is required (not null) - if (error == null) - { - throw new ArgumentNullException("error is a required property for Transaction and cannot be null"); - } - this.Error = error; - this.UserId = userId; - this.UserDisplayName = userDisplayName; - this.Steam = steam; this.Agreement = agreement; this.IsGift = isGift; this.IsTokens = isTokens; + this.Steam = steam; + this.UserDisplayName = userDisplayName; + this.UserId = userId; } /// - /// Gets or Sets Id + /// Gets or Sets Agreement /// - /* - txn_e5c72948-e735-4880-8245-24b2a41198b0 - */ - [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] - public string Id { get; set; } + [DataMember(Name = "agreement", EmitDefaultValue = false)] + public TransactionAgreement Agreement { get; set; } /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /// Gets or Sets CreatedAt /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. - /* - usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 - */ - [DataMember(Name = "userId", EmitDefaultValue = false)] - public string UserId { get; set; } + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } /// - /// Gets or Sets UserDisplayName + /// Gets or Sets Error /// - [DataMember(Name = "userDisplayName", EmitDefaultValue = false)] - public string UserDisplayName { get; set; } + [DataMember(Name = "error", IsRequired = true, EmitDefaultValue = true)] + public string Error { get; set; } /// - /// Gets or Sets Subscription + /// Gets or Sets Id /// - [DataMember(Name = "subscription", IsRequired = true, EmitDefaultValue = true)] - public Subscription Subscription { get; set; } + /* + txn_e5c72948-e735-4880-8245-24b2a41198b0 + */ + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } /// - /// Gets or Sets Sandbox + /// Gets or Sets IsGift /// - [DataMember(Name = "sandbox", IsRequired = true, EmitDefaultValue = true)] - public bool Sandbox { get; set; } + [DataMember(Name = "isGift", EmitDefaultValue = true)] + public bool IsGift { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets IsTokens /// - [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] - public DateTime CreatedAt { get; set; } + [DataMember(Name = "isTokens", EmitDefaultValue = true)] + public bool IsTokens { get; set; } /// - /// Gets or Sets UpdatedAt + /// Gets or Sets Sandbox /// - [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] - public DateTime UpdatedAt { get; set; } + [DataMember(Name = "sandbox", IsRequired = true, EmitDefaultValue = true)] + public bool Sandbox { get; set; } /// /// Gets or Sets Steam @@ -147,28 +143,32 @@ public Transaction(string id = default, string userId = default, string userDisp public TransactionSteamInfo Steam { get; set; } /// - /// Gets or Sets Agreement + /// Gets or Sets Subscription /// - [DataMember(Name = "agreement", EmitDefaultValue = false)] - public TransactionAgreement Agreement { get; set; } + [DataMember(Name = "subscription", IsRequired = true, EmitDefaultValue = true)] + public Subscription Subscription { get; set; } /// - /// Gets or Sets Error + /// Gets or Sets UpdatedAt /// - [DataMember(Name = "error", IsRequired = true, EmitDefaultValue = true)] - public string Error { get; set; } + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } /// - /// Gets or Sets IsGift + /// Gets or Sets UserDisplayName /// - [DataMember(Name = "isGift", EmitDefaultValue = true)] - public bool IsGift { get; set; } + [DataMember(Name = "userDisplayName", EmitDefaultValue = false)] + public string UserDisplayName { get; set; } /// - /// Gets or Sets IsTokens + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// - [DataMember(Name = "isTokens", EmitDefaultValue = true)] - public bool IsTokens { get; set; } + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. + /* + usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469 + */ + [DataMember(Name = "userId", EmitDefaultValue = false)] + public string UserId { get; set; } /// /// Returns the string presentation of the object @@ -178,19 +178,19 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class Transaction {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" UserId: ").Append(UserId).Append("\n"); - sb.Append(" UserDisplayName: ").Append(UserDisplayName).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Subscription: ").Append(Subscription).Append("\n"); - sb.Append(" Sandbox: ").Append(Sandbox).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); - sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" Steam: ").Append(Steam).Append("\n"); sb.Append(" Agreement: ").Append(Agreement).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" Error: ").Append(Error).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" IsGift: ").Append(IsGift).Append("\n"); sb.Append(" IsTokens: ").Append(IsTokens).Append("\n"); + sb.Append(" Sandbox: ").Append(Sandbox).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" Steam: ").Append(Steam).Append("\n"); + sb.Append(" Subscription: ").Append(Subscription).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" UserDisplayName: ").Append(UserDisplayName).Append("\n"); + sb.Append(" UserId: ").Append(UserId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -227,42 +227,40 @@ public bool Equals(Transaction input) } return ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) + this.Agreement == input.Agreement || + (this.Agreement != null && + this.Agreement.Equals(input.Agreement)) ) && ( - this.UserId == input.UserId || - (this.UserId != null && - this.UserId.Equals(input.UserId)) + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) ) && ( - this.UserDisplayName == input.UserDisplayName || - (this.UserDisplayName != null && - this.UserDisplayName.Equals(input.UserDisplayName)) + this.Error == input.Error || + (this.Error != null && + this.Error.Equals(input.Error)) ) && ( - this.Status == input.Status || - this.Status.Equals(input.Status) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Subscription == input.Subscription || - (this.Subscription != null && - this.Subscription.Equals(input.Subscription)) + this.IsGift == input.IsGift || + this.IsGift.Equals(input.IsGift) ) && ( - this.Sandbox == input.Sandbox || - this.Sandbox.Equals(input.Sandbox) + this.IsTokens == input.IsTokens || + this.IsTokens.Equals(input.IsTokens) ) && ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) + this.Sandbox == input.Sandbox || + this.Sandbox.Equals(input.Sandbox) ) && ( - this.UpdatedAt == input.UpdatedAt || - (this.UpdatedAt != null && - this.UpdatedAt.Equals(input.UpdatedAt)) + this.Status == input.Status || + this.Status.Equals(input.Status) ) && ( this.Steam == input.Steam || @@ -270,22 +268,24 @@ public bool Equals(Transaction input) this.Steam.Equals(input.Steam)) ) && ( - this.Agreement == input.Agreement || - (this.Agreement != null && - this.Agreement.Equals(input.Agreement)) + this.Subscription == input.Subscription || + (this.Subscription != null && + this.Subscription.Equals(input.Subscription)) ) && ( - this.Error == input.Error || - (this.Error != null && - this.Error.Equals(input.Error)) + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) ) && ( - this.IsGift == input.IsGift || - this.IsGift.Equals(input.IsGift) + this.UserDisplayName == input.UserDisplayName || + (this.UserDisplayName != null && + this.UserDisplayName.Equals(input.UserDisplayName)) ) && ( - this.IsTokens == input.IsTokens || - this.IsTokens.Equals(input.IsTokens) + this.UserId == input.UserId || + (this.UserId != null && + this.UserId.Equals(input.UserId)) ); } @@ -298,46 +298,46 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) + if (this.Agreement != null) { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + hashCode = (hashCode * 59) + this.Agreement.GetHashCode(); } - if (this.UserId != null) + if (this.CreatedAt != null) { - hashCode = (hashCode * 59) + this.UserId.GetHashCode(); + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } - if (this.UserDisplayName != null) + if (this.Error != null) { - hashCode = (hashCode * 59) + this.UserDisplayName.GetHashCode(); + hashCode = (hashCode * 59) + this.Error.GetHashCode(); } - hashCode = (hashCode * 59) + this.Status.GetHashCode(); - if (this.Subscription != null) + if (this.Id != null) { - hashCode = (hashCode * 59) + this.Subscription.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } + hashCode = (hashCode * 59) + this.IsGift.GetHashCode(); + hashCode = (hashCode * 59) + this.IsTokens.GetHashCode(); hashCode = (hashCode * 59) + this.Sandbox.GetHashCode(); - if (this.CreatedAt != null) + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + if (this.Steam != null) { - hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.Steam.GetHashCode(); } - if (this.UpdatedAt != null) + if (this.Subscription != null) { - hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.Subscription.GetHashCode(); } - if (this.Steam != null) + if (this.UpdatedAt != null) { - hashCode = (hashCode * 59) + this.Steam.GetHashCode(); + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); } - if (this.Agreement != null) + if (this.UserDisplayName != null) { - hashCode = (hashCode * 59) + this.Agreement.GetHashCode(); + hashCode = (hashCode * 59) + this.UserDisplayName.GetHashCode(); } - if (this.Error != null) + if (this.UserId != null) { - hashCode = (hashCode * 59) + this.Error.GetHashCode(); + hashCode = (hashCode * 59) + this.UserId.GetHashCode(); } - hashCode = (hashCode * 59) + this.IsGift.GetHashCode(); - hashCode = (hashCode * 59) + this.IsTokens.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/TransactionAgreement.cs b/src/VRChat.API/Model/TransactionAgreement.cs index f6f76f4d..beecf7f7 100644 --- a/src/VRChat.API/Model/TransactionAgreement.cs +++ b/src/VRChat.API/Model/TransactionAgreement.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,101 +40,107 @@ protected TransactionAgreement() { } /// /// Initializes a new instance of the class. /// - /// agreementId (required). - /// itemId (required). /// agreement (required). - /// This is NOT TransactionStatus, but whatever Steam return. (required). - /// period (required). - /// frequency (required). + /// agreementId (required). /// billingType (required). - /// startDate (required). - /// endDate (required). - /// recurringAmt (required). /// currency (required). - /// timeCreated (required). - /// nextPayment (required). - /// lastPayment (required). + /// endDate (required). + /// failedAttempts (required). + /// frequency (required). + /// itemId (required). /// lastAmount (required). /// lastAmountVat (required). + /// lastPayment (required). + /// nextPayment (required). /// outstanding (required). - /// failedAttempts (required). - public TransactionAgreement(string agreementId = default, int itemId = default, string agreement = default, string status = default, string period = default, int frequency = default, string billingType = default, string startDate = default, string endDate = default, decimal recurringAmt = default, string currency = default, string timeCreated = default, string nextPayment = default, string lastPayment = default, decimal lastAmount = default, decimal lastAmountVat = default, int outstanding = default, int failedAttempts = default) + /// period (required). + /// recurringAmt (required). + /// startDate (required). + /// This is NOT TransactionStatus, but whatever Steam return. (required). + /// timeCreated (required). + public TransactionAgreement(string agreement = default, string agreementId = default, string billingType = default, string currency = default, string endDate = default, int failedAttempts = default, int frequency = default, int itemId = default, decimal lastAmount = default, decimal lastAmountVat = default, string lastPayment = default, string nextPayment = default, int outstanding = default, string period = default, decimal recurringAmt = default, string startDate = default, string status = default, string timeCreated = default) { - // to ensure "agreementId" is required (not null) - if (agreementId == null) - { - throw new ArgumentNullException("agreementId is a required property for TransactionAgreement and cannot be null"); - } - this.AgreementId = agreementId; - this.ItemId = itemId; // to ensure "agreement" is required (not null) if (agreement == null) { throw new ArgumentNullException("agreement is a required property for TransactionAgreement and cannot be null"); } this.Agreement = agreement; - // to ensure "status" is required (not null) - if (status == null) - { - throw new ArgumentNullException("status is a required property for TransactionAgreement and cannot be null"); - } - this.Status = status; - // to ensure "period" is required (not null) - if (period == null) + // to ensure "agreementId" is required (not null) + if (agreementId == null) { - throw new ArgumentNullException("period is a required property for TransactionAgreement and cannot be null"); + throw new ArgumentNullException("agreementId is a required property for TransactionAgreement and cannot be null"); } - this.Period = period; - this.Frequency = frequency; + this.AgreementId = agreementId; // to ensure "billingType" is required (not null) if (billingType == null) { throw new ArgumentNullException("billingType is a required property for TransactionAgreement and cannot be null"); } this.BillingType = billingType; - // to ensure "startDate" is required (not null) - if (startDate == null) + // to ensure "currency" is required (not null) + if (currency == null) { - throw new ArgumentNullException("startDate is a required property for TransactionAgreement and cannot be null"); + throw new ArgumentNullException("currency is a required property for TransactionAgreement and cannot be null"); } - this.StartDate = startDate; + this.Currency = currency; // to ensure "endDate" is required (not null) if (endDate == null) { throw new ArgumentNullException("endDate is a required property for TransactionAgreement and cannot be null"); } this.EndDate = endDate; - this.RecurringAmt = recurringAmt; - // to ensure "currency" is required (not null) - if (currency == null) - { - throw new ArgumentNullException("currency is a required property for TransactionAgreement and cannot be null"); - } - this.Currency = currency; - // to ensure "timeCreated" is required (not null) - if (timeCreated == null) + this.FailedAttempts = failedAttempts; + this.Frequency = frequency; + this.ItemId = itemId; + this.LastAmount = lastAmount; + this.LastAmountVat = lastAmountVat; + // to ensure "lastPayment" is required (not null) + if (lastPayment == null) { - throw new ArgumentNullException("timeCreated is a required property for TransactionAgreement and cannot be null"); + throw new ArgumentNullException("lastPayment is a required property for TransactionAgreement and cannot be null"); } - this.TimeCreated = timeCreated; + this.LastPayment = lastPayment; // to ensure "nextPayment" is required (not null) if (nextPayment == null) { throw new ArgumentNullException("nextPayment is a required property for TransactionAgreement and cannot be null"); } this.NextPayment = nextPayment; - // to ensure "lastPayment" is required (not null) - if (lastPayment == null) + this.Outstanding = outstanding; + // to ensure "period" is required (not null) + if (period == null) { - throw new ArgumentNullException("lastPayment is a required property for TransactionAgreement and cannot be null"); + throw new ArgumentNullException("period is a required property for TransactionAgreement and cannot be null"); } - this.LastPayment = lastPayment; - this.LastAmount = lastAmount; - this.LastAmountVat = lastAmountVat; - this.Outstanding = outstanding; - this.FailedAttempts = failedAttempts; + this.Period = period; + this.RecurringAmt = recurringAmt; + // to ensure "startDate" is required (not null) + if (startDate == null) + { + throw new ArgumentNullException("startDate is a required property for TransactionAgreement and cannot be null"); + } + this.StartDate = startDate; + // to ensure "status" is required (not null) + if (status == null) + { + throw new ArgumentNullException("status is a required property for TransactionAgreement and cannot be null"); + } + this.Status = status; + // to ensure "timeCreated" is required (not null) + if (timeCreated == null) + { + throw new ArgumentNullException("timeCreated is a required property for TransactionAgreement and cannot be null"); + } + this.TimeCreated = timeCreated; } + /// + /// Gets or Sets Agreement + /// + [DataMember(Name = "agreement", IsRequired = true, EmitDefaultValue = true)] + public string Agreement { get; set; } + /// /// Gets or Sets AgreementId /// @@ -142,29 +148,28 @@ public TransactionAgreement(string agreementId = default, int itemId = default, public string AgreementId { get; set; } /// - /// Gets or Sets ItemId + /// Gets or Sets BillingType /// - [DataMember(Name = "itemId", IsRequired = true, EmitDefaultValue = true)] - public int ItemId { get; set; } + [DataMember(Name = "billingType", IsRequired = true, EmitDefaultValue = true)] + public string BillingType { get; set; } /// - /// Gets or Sets Agreement + /// Gets or Sets Currency /// - [DataMember(Name = "agreement", IsRequired = true, EmitDefaultValue = true)] - public string Agreement { get; set; } + [DataMember(Name = "currency", IsRequired = true, EmitDefaultValue = true)] + public string Currency { get; set; } /// - /// This is NOT TransactionStatus, but whatever Steam return. + /// Gets or Sets EndDate /// - /// This is NOT TransactionStatus, but whatever Steam return. - [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] - public string Status { get; set; } + [DataMember(Name = "endDate", IsRequired = true, EmitDefaultValue = true)] + public string EndDate { get; set; } /// - /// Gets or Sets Period + /// Gets or Sets FailedAttempts /// - [DataMember(Name = "period", IsRequired = true, EmitDefaultValue = true)] - public string Period { get; set; } + [DataMember(Name = "failedAttempts", IsRequired = true, EmitDefaultValue = true)] + public int FailedAttempts { get; set; } /// /// Gets or Sets Frequency @@ -173,40 +178,28 @@ public TransactionAgreement(string agreementId = default, int itemId = default, public int Frequency { get; set; } /// - /// Gets or Sets BillingType - /// - [DataMember(Name = "billingType", IsRequired = true, EmitDefaultValue = true)] - public string BillingType { get; set; } - - /// - /// Gets or Sets StartDate - /// - [DataMember(Name = "startDate", IsRequired = true, EmitDefaultValue = true)] - public string StartDate { get; set; } - - /// - /// Gets or Sets EndDate + /// Gets or Sets ItemId /// - [DataMember(Name = "endDate", IsRequired = true, EmitDefaultValue = true)] - public string EndDate { get; set; } + [DataMember(Name = "itemId", IsRequired = true, EmitDefaultValue = true)] + public int ItemId { get; set; } /// - /// Gets or Sets RecurringAmt + /// Gets or Sets LastAmount /// - [DataMember(Name = "recurringAmt", IsRequired = true, EmitDefaultValue = true)] - public decimal RecurringAmt { get; set; } + [DataMember(Name = "lastAmount", IsRequired = true, EmitDefaultValue = true)] + public decimal LastAmount { get; set; } /// - /// Gets or Sets Currency + /// Gets or Sets LastAmountVat /// - [DataMember(Name = "currency", IsRequired = true, EmitDefaultValue = true)] - public string Currency { get; set; } + [DataMember(Name = "lastAmountVat", IsRequired = true, EmitDefaultValue = true)] + public decimal LastAmountVat { get; set; } /// - /// Gets or Sets TimeCreated + /// Gets or Sets LastPayment /// - [DataMember(Name = "timeCreated", IsRequired = true, EmitDefaultValue = true)] - public string TimeCreated { get; set; } + [DataMember(Name = "lastPayment", IsRequired = true, EmitDefaultValue = true)] + public string LastPayment { get; set; } /// /// Gets or Sets NextPayment @@ -215,34 +208,41 @@ public TransactionAgreement(string agreementId = default, int itemId = default, public string NextPayment { get; set; } /// - /// Gets or Sets LastPayment + /// Gets or Sets Outstanding /// - [DataMember(Name = "lastPayment", IsRequired = true, EmitDefaultValue = true)] - public string LastPayment { get; set; } + [DataMember(Name = "outstanding", IsRequired = true, EmitDefaultValue = true)] + public int Outstanding { get; set; } /// - /// Gets or Sets LastAmount + /// Gets or Sets Period /// - [DataMember(Name = "lastAmount", IsRequired = true, EmitDefaultValue = true)] - public decimal LastAmount { get; set; } + [DataMember(Name = "period", IsRequired = true, EmitDefaultValue = true)] + public string Period { get; set; } /// - /// Gets or Sets LastAmountVat + /// Gets or Sets RecurringAmt /// - [DataMember(Name = "lastAmountVat", IsRequired = true, EmitDefaultValue = true)] - public decimal LastAmountVat { get; set; } + [DataMember(Name = "recurringAmt", IsRequired = true, EmitDefaultValue = true)] + public decimal RecurringAmt { get; set; } /// - /// Gets or Sets Outstanding + /// Gets or Sets StartDate /// - [DataMember(Name = "outstanding", IsRequired = true, EmitDefaultValue = true)] - public int Outstanding { get; set; } + [DataMember(Name = "startDate", IsRequired = true, EmitDefaultValue = true)] + public string StartDate { get; set; } /// - /// Gets or Sets FailedAttempts + /// This is NOT TransactionStatus, but whatever Steam return. /// - [DataMember(Name = "failedAttempts", IsRequired = true, EmitDefaultValue = true)] - public int FailedAttempts { get; set; } + /// This is NOT TransactionStatus, but whatever Steam return. + [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)] + public string Status { get; set; } + + /// + /// Gets or Sets TimeCreated + /// + [DataMember(Name = "timeCreated", IsRequired = true, EmitDefaultValue = true)] + public string TimeCreated { get; set; } /// /// Returns the string presentation of the object @@ -252,24 +252,24 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class TransactionAgreement {\n"); - sb.Append(" AgreementId: ").Append(AgreementId).Append("\n"); - sb.Append(" ItemId: ").Append(ItemId).Append("\n"); sb.Append(" Agreement: ").Append(Agreement).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" Period: ").Append(Period).Append("\n"); - sb.Append(" Frequency: ").Append(Frequency).Append("\n"); + sb.Append(" AgreementId: ").Append(AgreementId).Append("\n"); sb.Append(" BillingType: ").Append(BillingType).Append("\n"); - sb.Append(" StartDate: ").Append(StartDate).Append("\n"); - sb.Append(" EndDate: ").Append(EndDate).Append("\n"); - sb.Append(" RecurringAmt: ").Append(RecurringAmt).Append("\n"); sb.Append(" Currency: ").Append(Currency).Append("\n"); - sb.Append(" TimeCreated: ").Append(TimeCreated).Append("\n"); - sb.Append(" NextPayment: ").Append(NextPayment).Append("\n"); - sb.Append(" LastPayment: ").Append(LastPayment).Append("\n"); + sb.Append(" EndDate: ").Append(EndDate).Append("\n"); + sb.Append(" FailedAttempts: ").Append(FailedAttempts).Append("\n"); + sb.Append(" Frequency: ").Append(Frequency).Append("\n"); + sb.Append(" ItemId: ").Append(ItemId).Append("\n"); sb.Append(" LastAmount: ").Append(LastAmount).Append("\n"); sb.Append(" LastAmountVat: ").Append(LastAmountVat).Append("\n"); + sb.Append(" LastPayment: ").Append(LastPayment).Append("\n"); + sb.Append(" NextPayment: ").Append(NextPayment).Append("\n"); sb.Append(" Outstanding: ").Append(Outstanding).Append("\n"); - sb.Append(" FailedAttempts: ").Append(FailedAttempts).Append("\n"); + sb.Append(" Period: ").Append(Period).Append("\n"); + sb.Append(" RecurringAmt: ").Append(RecurringAmt).Append("\n"); + sb.Append(" StartDate: ").Append(StartDate).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" TimeCreated: ").Append(TimeCreated).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -305,33 +305,15 @@ public bool Equals(TransactionAgreement input) return false; } return - ( - this.AgreementId == input.AgreementId || - (this.AgreementId != null && - this.AgreementId.Equals(input.AgreementId)) - ) && - ( - this.ItemId == input.ItemId || - this.ItemId.Equals(input.ItemId) - ) && ( this.Agreement == input.Agreement || (this.Agreement != null && this.Agreement.Equals(input.Agreement)) ) && ( - this.Status == input.Status || - (this.Status != null && - this.Status.Equals(input.Status)) - ) && - ( - this.Period == input.Period || - (this.Period != null && - this.Period.Equals(input.Period)) - ) && - ( - this.Frequency == input.Frequency || - this.Frequency.Equals(input.Frequency) + this.AgreementId == input.AgreementId || + (this.AgreementId != null && + this.AgreementId.Equals(input.AgreementId)) ) && ( this.BillingType == input.BillingType || @@ -339,9 +321,9 @@ public bool Equals(TransactionAgreement input) this.BillingType.Equals(input.BillingType)) ) && ( - this.StartDate == input.StartDate || - (this.StartDate != null && - this.StartDate.Equals(input.StartDate)) + this.Currency == input.Currency || + (this.Currency != null && + this.Currency.Equals(input.Currency)) ) && ( this.EndDate == input.EndDate || @@ -349,23 +331,24 @@ public bool Equals(TransactionAgreement input) this.EndDate.Equals(input.EndDate)) ) && ( - this.RecurringAmt == input.RecurringAmt || - this.RecurringAmt.Equals(input.RecurringAmt) + this.FailedAttempts == input.FailedAttempts || + this.FailedAttempts.Equals(input.FailedAttempts) ) && ( - this.Currency == input.Currency || - (this.Currency != null && - this.Currency.Equals(input.Currency)) + this.Frequency == input.Frequency || + this.Frequency.Equals(input.Frequency) ) && ( - this.TimeCreated == input.TimeCreated || - (this.TimeCreated != null && - this.TimeCreated.Equals(input.TimeCreated)) + this.ItemId == input.ItemId || + this.ItemId.Equals(input.ItemId) ) && ( - this.NextPayment == input.NextPayment || - (this.NextPayment != null && - this.NextPayment.Equals(input.NextPayment)) + this.LastAmount == input.LastAmount || + this.LastAmount.Equals(input.LastAmount) + ) && + ( + this.LastAmountVat == input.LastAmountVat || + this.LastAmountVat.Equals(input.LastAmountVat) ) && ( this.LastPayment == input.LastPayment || @@ -373,20 +356,37 @@ public bool Equals(TransactionAgreement input) this.LastPayment.Equals(input.LastPayment)) ) && ( - this.LastAmount == input.LastAmount || - this.LastAmount.Equals(input.LastAmount) - ) && - ( - this.LastAmountVat == input.LastAmountVat || - this.LastAmountVat.Equals(input.LastAmountVat) + this.NextPayment == input.NextPayment || + (this.NextPayment != null && + this.NextPayment.Equals(input.NextPayment)) ) && ( this.Outstanding == input.Outstanding || this.Outstanding.Equals(input.Outstanding) ) && ( - this.FailedAttempts == input.FailedAttempts || - this.FailedAttempts.Equals(input.FailedAttempts) + this.Period == input.Period || + (this.Period != null && + this.Period.Equals(input.Period)) + ) && + ( + this.RecurringAmt == input.RecurringAmt || + this.RecurringAmt.Equals(input.RecurringAmt) + ) && + ( + this.StartDate == input.StartDate || + (this.StartDate != null && + this.StartDate.Equals(input.StartDate)) + ) && + ( + this.Status == input.Status || + (this.Status != null && + this.Status.Equals(input.Status)) + ) && + ( + this.TimeCreated == input.TimeCreated || + (this.TimeCreated != null && + this.TimeCreated.Equals(input.TimeCreated)) ); } @@ -399,57 +399,57 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.AgreementId != null) - { - hashCode = (hashCode * 59) + this.AgreementId.GetHashCode(); - } - hashCode = (hashCode * 59) + this.ItemId.GetHashCode(); if (this.Agreement != null) { hashCode = (hashCode * 59) + this.Agreement.GetHashCode(); } - if (this.Status != null) - { - hashCode = (hashCode * 59) + this.Status.GetHashCode(); - } - if (this.Period != null) + if (this.AgreementId != null) { - hashCode = (hashCode * 59) + this.Period.GetHashCode(); + hashCode = (hashCode * 59) + this.AgreementId.GetHashCode(); } - hashCode = (hashCode * 59) + this.Frequency.GetHashCode(); if (this.BillingType != null) { hashCode = (hashCode * 59) + this.BillingType.GetHashCode(); } - if (this.StartDate != null) + if (this.Currency != null) { - hashCode = (hashCode * 59) + this.StartDate.GetHashCode(); + hashCode = (hashCode * 59) + this.Currency.GetHashCode(); } if (this.EndDate != null) { hashCode = (hashCode * 59) + this.EndDate.GetHashCode(); } - hashCode = (hashCode * 59) + this.RecurringAmt.GetHashCode(); - if (this.Currency != null) - { - hashCode = (hashCode * 59) + this.Currency.GetHashCode(); - } - if (this.TimeCreated != null) + hashCode = (hashCode * 59) + this.FailedAttempts.GetHashCode(); + hashCode = (hashCode * 59) + this.Frequency.GetHashCode(); + hashCode = (hashCode * 59) + this.ItemId.GetHashCode(); + hashCode = (hashCode * 59) + this.LastAmount.GetHashCode(); + hashCode = (hashCode * 59) + this.LastAmountVat.GetHashCode(); + if (this.LastPayment != null) { - hashCode = (hashCode * 59) + this.TimeCreated.GetHashCode(); + hashCode = (hashCode * 59) + this.LastPayment.GetHashCode(); } if (this.NextPayment != null) { hashCode = (hashCode * 59) + this.NextPayment.GetHashCode(); } - if (this.LastPayment != null) + hashCode = (hashCode * 59) + this.Outstanding.GetHashCode(); + if (this.Period != null) { - hashCode = (hashCode * 59) + this.LastPayment.GetHashCode(); + hashCode = (hashCode * 59) + this.Period.GetHashCode(); + } + hashCode = (hashCode * 59) + this.RecurringAmt.GetHashCode(); + if (this.StartDate != null) + { + hashCode = (hashCode * 59) + this.StartDate.GetHashCode(); + } + if (this.Status != null) + { + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + } + if (this.TimeCreated != null) + { + hashCode = (hashCode * 59) + this.TimeCreated.GetHashCode(); } - hashCode = (hashCode * 59) + this.LastAmount.GetHashCode(); - hashCode = (hashCode * 59) + this.LastAmountVat.GetHashCode(); - hashCode = (hashCode * 59) + this.Outstanding.GetHashCode(); - hashCode = (hashCode * 59) + this.FailedAttempts.GetHashCode(); return hashCode; } } @@ -467,28 +467,16 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for AgreementId, length must be greater than 1.", new [] { "AgreementId" }); } - // Status (string) minLength - if (this.Status != null && this.Status.Length < 1) - { - yield return new ValidationResult("Invalid value for Status, length must be greater than 1.", new [] { "Status" }); - } - - // Period (string) minLength - if (this.Period != null && this.Period.Length < 1) - { - yield return new ValidationResult("Invalid value for Period, length must be greater than 1.", new [] { "Period" }); - } - // BillingType (string) minLength if (this.BillingType != null && this.BillingType.Length < 1) { yield return new ValidationResult("Invalid value for BillingType, length must be greater than 1.", new [] { "BillingType" }); } - // StartDate (string) minLength - if (this.StartDate != null && this.StartDate.Length < 1) + // Currency (string) minLength + if (this.Currency != null && this.Currency.Length < 1) { - yield return new ValidationResult("Invalid value for StartDate, length must be greater than 1.", new [] { "StartDate" }); + yield return new ValidationResult("Invalid value for Currency, length must be greater than 1.", new [] { "Currency" }); } // EndDate (string) minLength @@ -497,16 +485,10 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for EndDate, length must be greater than 1.", new [] { "EndDate" }); } - // Currency (string) minLength - if (this.Currency != null && this.Currency.Length < 1) - { - yield return new ValidationResult("Invalid value for Currency, length must be greater than 1.", new [] { "Currency" }); - } - - // TimeCreated (string) minLength - if (this.TimeCreated != null && this.TimeCreated.Length < 1) + // LastPayment (string) minLength + if (this.LastPayment != null && this.LastPayment.Length < 1) { - yield return new ValidationResult("Invalid value for TimeCreated, length must be greater than 1.", new [] { "TimeCreated" }); + yield return new ValidationResult("Invalid value for LastPayment, length must be greater than 1.", new [] { "LastPayment" }); } // NextPayment (string) minLength @@ -515,10 +497,28 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for NextPayment, length must be greater than 1.", new [] { "NextPayment" }); } - // LastPayment (string) minLength - if (this.LastPayment != null && this.LastPayment.Length < 1) + // Period (string) minLength + if (this.Period != null && this.Period.Length < 1) { - yield return new ValidationResult("Invalid value for LastPayment, length must be greater than 1.", new [] { "LastPayment" }); + yield return new ValidationResult("Invalid value for Period, length must be greater than 1.", new [] { "Period" }); + } + + // StartDate (string) minLength + if (this.StartDate != null && this.StartDate.Length < 1) + { + yield return new ValidationResult("Invalid value for StartDate, length must be greater than 1.", new [] { "StartDate" }); + } + + // Status (string) minLength + if (this.Status != null && this.Status.Length < 1) + { + yield return new ValidationResult("Invalid value for Status, length must be greater than 1.", new [] { "Status" }); + } + + // TimeCreated (string) minLength + if (this.TimeCreated != null && this.TimeCreated.Length < 1) + { + yield return new ValidationResult("Invalid value for TimeCreated, length must be greater than 1.", new [] { "TimeCreated" }); } yield break; diff --git a/src/VRChat.API/Model/TransactionStatus.cs b/src/VRChat.API/Model/TransactionStatus.cs index 25f00f77..cbb3e67e 100644 --- a/src/VRChat.API/Model/TransactionStatus.cs +++ b/src/VRChat.API/Model/TransactionStatus.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,10 +39,10 @@ public enum TransactionStatus Active = 1, /// - /// Enum Failed for value: failed + /// Enum Chargeback for value: chargeback /// - [EnumMember(Value = "failed")] - Failed = 2, + [EnumMember(Value = "chargeback")] + Chargeback = 2, /// /// Enum Expired for value: expired @@ -51,10 +51,10 @@ public enum TransactionStatus Expired = 3, /// - /// Enum Chargeback for value: chargeback + /// Enum Failed for value: failed /// - [EnumMember(Value = "chargeback")] - Chargeback = 4 + [EnumMember(Value = "failed")] + Failed = 4 } } diff --git a/src/VRChat.API/Model/TransactionSteamInfo.cs b/src/VRChat.API/Model/TransactionSteamInfo.cs index 7e9b26a8..b79e7b7c 100644 --- a/src/VRChat.API/Model/TransactionSteamInfo.cs +++ b/src/VRChat.API/Model/TransactionSteamInfo.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,31 +40,25 @@ protected TransactionSteamInfo() { } /// /// Initializes a new instance of the class. /// - /// walletInfo (required). - /// Steam User ID (required). /// Steam Order ID (required). + /// Steam User ID (required). /// Empty (required). /// Steam Transaction ID, NOT the same as VRChat TransactionID (required). - public TransactionSteamInfo(TransactionSteamWalletInfo walletInfo = default, string steamId = default, string orderId = default, string steamUrl = default, string transId = default) + /// walletInfo (required). + public TransactionSteamInfo(string orderId = default, string steamId = default, string steamUrl = default, string transId = default, TransactionSteamWalletInfo walletInfo = default) { - // to ensure "walletInfo" is required (not null) - if (walletInfo == null) + // to ensure "orderId" is required (not null) + if (orderId == null) { - throw new ArgumentNullException("walletInfo is a required property for TransactionSteamInfo and cannot be null"); + throw new ArgumentNullException("orderId is a required property for TransactionSteamInfo and cannot be null"); } - this.WalletInfo = walletInfo; + this.OrderId = orderId; // to ensure "steamId" is required (not null) if (steamId == null) { throw new ArgumentNullException("steamId is a required property for TransactionSteamInfo and cannot be null"); } this.SteamId = steamId; - // to ensure "orderId" is required (not null) - if (orderId == null) - { - throw new ArgumentNullException("orderId is a required property for TransactionSteamInfo and cannot be null"); - } - this.OrderId = orderId; // to ensure "steamUrl" is required (not null) if (steamUrl == null) { @@ -77,13 +71,20 @@ public TransactionSteamInfo(TransactionSteamWalletInfo walletInfo = default, str throw new ArgumentNullException("transId is a required property for TransactionSteamInfo and cannot be null"); } this.TransId = transId; + // to ensure "walletInfo" is required (not null) + if (walletInfo == null) + { + throw new ArgumentNullException("walletInfo is a required property for TransactionSteamInfo and cannot be null"); + } + this.WalletInfo = walletInfo; } /// - /// Gets or Sets WalletInfo + /// Steam Order ID /// - [DataMember(Name = "walletInfo", IsRequired = true, EmitDefaultValue = true)] - public TransactionSteamWalletInfo WalletInfo { get; set; } + /// Steam Order ID + [DataMember(Name = "orderId", IsRequired = true, EmitDefaultValue = true)] + public string OrderId { get; set; } /// /// Steam User ID @@ -92,13 +93,6 @@ public TransactionSteamInfo(TransactionSteamWalletInfo walletInfo = default, str [DataMember(Name = "steamId", IsRequired = true, EmitDefaultValue = true)] public string SteamId { get; set; } - /// - /// Steam Order ID - /// - /// Steam Order ID - [DataMember(Name = "orderId", IsRequired = true, EmitDefaultValue = true)] - public string OrderId { get; set; } - /// /// Empty /// @@ -113,6 +107,12 @@ public TransactionSteamInfo(TransactionSteamWalletInfo walletInfo = default, str [DataMember(Name = "transId", IsRequired = true, EmitDefaultValue = true)] public string TransId { get; set; } + /// + /// Gets or Sets WalletInfo + /// + [DataMember(Name = "walletInfo", IsRequired = true, EmitDefaultValue = true)] + public TransactionSteamWalletInfo WalletInfo { get; set; } + /// /// Returns the string presentation of the object /// @@ -121,11 +121,11 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class TransactionSteamInfo {\n"); - sb.Append(" WalletInfo: ").Append(WalletInfo).Append("\n"); - sb.Append(" SteamId: ").Append(SteamId).Append("\n"); sb.Append(" OrderId: ").Append(OrderId).Append("\n"); + sb.Append(" SteamId: ").Append(SteamId).Append("\n"); sb.Append(" SteamUrl: ").Append(SteamUrl).Append("\n"); sb.Append(" TransId: ").Append(TransId).Append("\n"); + sb.Append(" WalletInfo: ").Append(WalletInfo).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -162,20 +162,15 @@ public bool Equals(TransactionSteamInfo input) } return ( - this.WalletInfo == input.WalletInfo || - (this.WalletInfo != null && - this.WalletInfo.Equals(input.WalletInfo)) + this.OrderId == input.OrderId || + (this.OrderId != null && + this.OrderId.Equals(input.OrderId)) ) && ( this.SteamId == input.SteamId || (this.SteamId != null && this.SteamId.Equals(input.SteamId)) ) && - ( - this.OrderId == input.OrderId || - (this.OrderId != null && - this.OrderId.Equals(input.OrderId)) - ) && ( this.SteamUrl == input.SteamUrl || (this.SteamUrl != null && @@ -185,6 +180,11 @@ public bool Equals(TransactionSteamInfo input) this.TransId == input.TransId || (this.TransId != null && this.TransId.Equals(input.TransId)) + ) && + ( + this.WalletInfo == input.WalletInfo || + (this.WalletInfo != null && + this.WalletInfo.Equals(input.WalletInfo)) ); } @@ -197,18 +197,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.WalletInfo != null) + if (this.OrderId != null) { - hashCode = (hashCode * 59) + this.WalletInfo.GetHashCode(); + hashCode = (hashCode * 59) + this.OrderId.GetHashCode(); } if (this.SteamId != null) { hashCode = (hashCode * 59) + this.SteamId.GetHashCode(); } - if (this.OrderId != null) - { - hashCode = (hashCode * 59) + this.OrderId.GetHashCode(); - } if (this.SteamUrl != null) { hashCode = (hashCode * 59) + this.SteamUrl.GetHashCode(); @@ -217,6 +213,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.TransId.GetHashCode(); } + if (this.WalletInfo != null) + { + hashCode = (hashCode * 59) + this.WalletInfo.GetHashCode(); + } return hashCode; } } @@ -228,18 +228,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // SteamId (string) minLength - if (this.SteamId != null && this.SteamId.Length < 1) - { - yield return new ValidationResult("Invalid value for SteamId, length must be greater than 1.", new [] { "SteamId" }); - } - // OrderId (string) minLength if (this.OrderId != null && this.OrderId.Length < 1) { yield return new ValidationResult("Invalid value for OrderId, length must be greater than 1.", new [] { "OrderId" }); } + // SteamId (string) minLength + if (this.SteamId != null && this.SteamId.Length < 1) + { + yield return new ValidationResult("Invalid value for SteamId, length must be greater than 1.", new [] { "SteamId" }); + } + // TransId (string) minLength if (this.TransId != null && this.TransId.Length < 1) { diff --git a/src/VRChat.API/Model/TransactionSteamWalletInfo.cs b/src/VRChat.API/Model/TransactionSteamWalletInfo.cs index 7596de20..a087b0eb 100644 --- a/src/VRChat.API/Model/TransactionSteamWalletInfo.cs +++ b/src/VRChat.API/Model/TransactionSteamWalletInfo.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,18 +40,12 @@ protected TransactionSteamWalletInfo() { } /// /// Initializes a new instance of the class. /// - /// state (required). /// country (required) (default to "US"). /// currency (required) (default to "USD"). + /// state (required). /// status (required). - public TransactionSteamWalletInfo(string state = default, string country = @"US", string currency = @"USD", string status = default) + public TransactionSteamWalletInfo(string country = @"US", string currency = @"USD", string state = default, string status = default) { - // to ensure "state" is required (not null) - if (state == null) - { - throw new ArgumentNullException("state is a required property for TransactionSteamWalletInfo and cannot be null"); - } - this.State = state; // to ensure "country" is required (not null) if (country == null) { @@ -64,6 +58,12 @@ public TransactionSteamWalletInfo(string state = default, string country = @"US" throw new ArgumentNullException("currency is a required property for TransactionSteamWalletInfo and cannot be null"); } this.Currency = currency; + // to ensure "state" is required (not null) + if (state == null) + { + throw new ArgumentNullException("state is a required property for TransactionSteamWalletInfo and cannot be null"); + } + this.State = state; // to ensure "status" is required (not null) if (status == null) { @@ -72,12 +72,6 @@ public TransactionSteamWalletInfo(string state = default, string country = @"US" this.Status = status; } - /// - /// Gets or Sets State - /// - [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] - public string State { get; set; } - /// /// Gets or Sets Country /// @@ -96,6 +90,12 @@ public TransactionSteamWalletInfo(string state = default, string country = @"US" [DataMember(Name = "currency", IsRequired = true, EmitDefaultValue = true)] public string Currency { get; set; } + /// + /// Gets or Sets State + /// + [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] + public string State { get; set; } + /// /// Gets or Sets Status /// @@ -113,9 +113,9 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class TransactionSteamWalletInfo {\n"); - sb.Append(" State: ").Append(State).Append("\n"); sb.Append(" Country: ").Append(Country).Append("\n"); sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -152,11 +152,6 @@ public bool Equals(TransactionSteamWalletInfo input) return false; } return - ( - this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) - ) && ( this.Country == input.Country || (this.Country != null && @@ -167,6 +162,11 @@ public bool Equals(TransactionSteamWalletInfo input) (this.Currency != null && this.Currency.Equals(input.Currency)) ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && ( this.Status == input.Status || (this.Status != null && @@ -183,10 +183,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.State != null) - { - hashCode = (hashCode * 59) + this.State.GetHashCode(); - } if (this.Country != null) { hashCode = (hashCode * 59) + this.Country.GetHashCode(); @@ -195,6 +191,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Currency.GetHashCode(); } + if (this.State != null) + { + hashCode = (hashCode * 59) + this.State.GetHashCode(); + } if (this.Status != null) { hashCode = (hashCode * 59) + this.Status.GetHashCode(); diff --git a/src/VRChat.API/Model/TwoFactorAuthCode.cs b/src/VRChat.API/Model/TwoFactorAuthCode.cs index bc73c4ba..8ed4bd10 100644 --- a/src/VRChat.API/Model/TwoFactorAuthCode.cs +++ b/src/VRChat.API/Model/TwoFactorAuthCode.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/TwoFactorEmailCode.cs b/src/VRChat.API/Model/TwoFactorEmailCode.cs index 28fe41c5..856f9669 100644 --- a/src/VRChat.API/Model/TwoFactorEmailCode.cs +++ b/src/VRChat.API/Model/TwoFactorEmailCode.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/TwoFactorRecoveryCodes.cs b/src/VRChat.API/Model/TwoFactorRecoveryCodes.cs index f7ee8aaf..a8272cfa 100644 --- a/src/VRChat.API/Model/TwoFactorRecoveryCodes.cs +++ b/src/VRChat.API/Model/TwoFactorRecoveryCodes.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,26 +35,26 @@ public partial class TwoFactorRecoveryCodes : IEquatable /// /// Initializes a new instance of the class. /// - /// requiresTwoFactorAuth. /// otp. - public TwoFactorRecoveryCodes(List requiresTwoFactorAuth = default, List otp = default) + /// requiresTwoFactorAuth. + public TwoFactorRecoveryCodes(List otp = default, List requiresTwoFactorAuth = default) { - this.RequiresTwoFactorAuth = requiresTwoFactorAuth; this.Otp = otp; + this.RequiresTwoFactorAuth = requiresTwoFactorAuth; } - /// - /// Gets or Sets RequiresTwoFactorAuth - /// - [DataMember(Name = "requiresTwoFactorAuth", EmitDefaultValue = false)] - public List RequiresTwoFactorAuth { get; set; } - /// /// Gets or Sets Otp /// [DataMember(Name = "otp", EmitDefaultValue = false)] public List Otp { get; set; } + /// + /// Gets or Sets RequiresTwoFactorAuth + /// + [DataMember(Name = "requiresTwoFactorAuth", EmitDefaultValue = false)] + public List RequiresTwoFactorAuth { get; set; } + /// /// Returns the string presentation of the object /// @@ -63,8 +63,8 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class TwoFactorRecoveryCodes {\n"); - sb.Append(" RequiresTwoFactorAuth: ").Append(RequiresTwoFactorAuth).Append("\n"); sb.Append(" Otp: ").Append(Otp).Append("\n"); + sb.Append(" RequiresTwoFactorAuth: ").Append(RequiresTwoFactorAuth).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -100,17 +100,17 @@ public bool Equals(TwoFactorRecoveryCodes input) return false; } return - ( - this.RequiresTwoFactorAuth == input.RequiresTwoFactorAuth || - this.RequiresTwoFactorAuth != null && - input.RequiresTwoFactorAuth != null && - this.RequiresTwoFactorAuth.SequenceEqual(input.RequiresTwoFactorAuth) - ) && ( this.Otp == input.Otp || this.Otp != null && input.Otp != null && this.Otp.SequenceEqual(input.Otp) + ) && + ( + this.RequiresTwoFactorAuth == input.RequiresTwoFactorAuth || + this.RequiresTwoFactorAuth != null && + input.RequiresTwoFactorAuth != null && + this.RequiresTwoFactorAuth.SequenceEqual(input.RequiresTwoFactorAuth) ); } @@ -123,14 +123,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.RequiresTwoFactorAuth != null) - { - hashCode = (hashCode * 59) + this.RequiresTwoFactorAuth.GetHashCode(); - } if (this.Otp != null) { hashCode = (hashCode * 59) + this.Otp.GetHashCode(); } + if (this.RequiresTwoFactorAuth != null) + { + hashCode = (hashCode * 59) + this.RequiresTwoFactorAuth.GetHashCode(); + } return hashCode; } } diff --git a/src/VRChat.API/Model/TwoFactorRecoveryCodesOtpInner.cs b/src/VRChat.API/Model/TwoFactorRecoveryCodesOtpInner.cs index 4c25304f..64a6bb63 100644 --- a/src/VRChat.API/Model/TwoFactorRecoveryCodesOtpInner.cs +++ b/src/VRChat.API/Model/TwoFactorRecoveryCodesOtpInner.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UnityPackage.cs b/src/VRChat.API/Model/UnityPackage.cs index 7df94da7..8ac8fc69 100644 --- a/src/VRChat.API/Model/UnityPackage.cs +++ b/src/VRChat.API/Model/UnityPackage.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,31 +46,31 @@ protected UnityPackage() { } /// /// Initializes a new instance of the class. /// - /// id (required). /// assetUrl. /// assetUrlObject. /// assetVersion (required). /// createdAt. + /// id (required). + /// impostorUrl. /// impostorizerVersion. /// performanceRating. /// This can be `standalonewindows` or `android`, but can also pretty much be any random Unity verison such as `2019.2.4-801-Release` or `2019.2.2-772-Release` or even `unknownplatform`. (required). /// pluginUrl. /// pluginUrlObject. + /// scanStatus. /// unitySortNumber. /// unityVersion (required) (default to "5.3.4p1"). - /// worldSignature. - /// impostorUrl. - /// scanStatus. /// variant. - public UnityPackage(string id = default, string assetUrl = default, Object assetUrlObject = default, int assetVersion = default, DateTime createdAt = default, string impostorizerVersion = default, PerformanceRatings? performanceRating = default, string platform = default, string pluginUrl = default, Object pluginUrlObject = default, long unitySortNumber = default, string unityVersion = @"5.3.4p1", string worldSignature = default, string impostorUrl = default, string scanStatus = default, string variant = default) + /// worldSignature. + public UnityPackage(string assetUrl = default, Object assetUrlObject = default, int assetVersion = default, DateTime createdAt = default, string id = default, string impostorUrl = default, string impostorizerVersion = default, PerformanceRatings? performanceRating = default, string platform = default, string pluginUrl = default, Object pluginUrlObject = default, string scanStatus = default, long unitySortNumber = default, string unityVersion = @"5.3.4p1", string variant = default, string worldSignature = default) { + this.AssetVersion = assetVersion; // to ensure "id" is required (not null) if (id == null) { throw new ArgumentNullException("id is a required property for UnityPackage and cannot be null"); } this.Id = id; - this.AssetVersion = assetVersion; // to ensure "platform" is required (not null) if (platform == null) { @@ -86,26 +86,17 @@ public UnityPackage(string id = default, string assetUrl = default, Object asset this.AssetUrl = assetUrl; this.AssetUrlObject = assetUrlObject; this.CreatedAt = createdAt; + this.ImpostorUrl = impostorUrl; this.ImpostorizerVersion = impostorizerVersion; this.PerformanceRating = performanceRating; this.PluginUrl = pluginUrl; this.PluginUrlObject = pluginUrlObject; - this.UnitySortNumber = unitySortNumber; - this.WorldSignature = worldSignature; - this.ImpostorUrl = impostorUrl; this.ScanStatus = scanStatus; + this.UnitySortNumber = unitySortNumber; this.Variant = variant; + this.WorldSignature = worldSignature; } - /// - /// Gets or Sets Id - /// - /* - unp_52b12c39-4163-457d-a4a9-630e7aff1bff - */ - [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] - public string Id { get; set; } - /// /// Gets or Sets AssetUrl /// @@ -142,6 +133,21 @@ public UnityPackage(string id = default, string assetUrl = default, Object asset [DataMember(Name = "created_at", EmitDefaultValue = false)] public DateTime CreatedAt { get; set; } + /// + /// Gets or Sets Id + /// + /* + unp_52b12c39-4163-457d-a4a9-630e7aff1bff + */ + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Gets or Sets ImpostorUrl + /// + [DataMember(Name = "impostorUrl", EmitDefaultValue = true)] + public string ImpostorUrl { get; set; } + /// /// Gets or Sets ImpostorizerVersion /// @@ -176,6 +182,12 @@ public UnityPackage(string id = default, string assetUrl = default, Object asset [DataMember(Name = "pluginUrlObject", EmitDefaultValue = false)] public Object PluginUrlObject { get; set; } + /// + /// Gets or Sets ScanStatus + /// + [DataMember(Name = "scanStatus", EmitDefaultValue = false)] + public string ScanStatus { get; set; } + /// /// Gets or Sets UnitySortNumber /// @@ -194,6 +206,12 @@ public UnityPackage(string id = default, string assetUrl = default, Object asset [DataMember(Name = "unityVersion", IsRequired = true, EmitDefaultValue = true)] public string UnityVersion { get; set; } + /// + /// Gets or Sets Variant + /// + [DataMember(Name = "variant", EmitDefaultValue = false)] + public string Variant { get; set; } + /// /// Gets or Sets WorldSignature /// @@ -203,24 +221,6 @@ public UnityPackage(string id = default, string assetUrl = default, Object asset [DataMember(Name = "worldSignature", EmitDefaultValue = true)] public string WorldSignature { get; set; } - /// - /// Gets or Sets ImpostorUrl - /// - [DataMember(Name = "impostorUrl", EmitDefaultValue = true)] - public string ImpostorUrl { get; set; } - - /// - /// Gets or Sets ScanStatus - /// - [DataMember(Name = "scanStatus", EmitDefaultValue = false)] - public string ScanStatus { get; set; } - - /// - /// Gets or Sets Variant - /// - [DataMember(Name = "variant", EmitDefaultValue = false)] - public string Variant { get; set; } - /// /// Returns the string presentation of the object /// @@ -229,22 +229,22 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class UnityPackage {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" AssetUrl: ").Append(AssetUrl).Append("\n"); sb.Append(" AssetUrlObject: ").Append(AssetUrlObject).Append("\n"); sb.Append(" AssetVersion: ").Append(AssetVersion).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" ImpostorUrl: ").Append(ImpostorUrl).Append("\n"); sb.Append(" ImpostorizerVersion: ").Append(ImpostorizerVersion).Append("\n"); sb.Append(" PerformanceRating: ").Append(PerformanceRating).Append("\n"); sb.Append(" Platform: ").Append(Platform).Append("\n"); sb.Append(" PluginUrl: ").Append(PluginUrl).Append("\n"); sb.Append(" PluginUrlObject: ").Append(PluginUrlObject).Append("\n"); + sb.Append(" ScanStatus: ").Append(ScanStatus).Append("\n"); sb.Append(" UnitySortNumber: ").Append(UnitySortNumber).Append("\n"); sb.Append(" UnityVersion: ").Append(UnityVersion).Append("\n"); - sb.Append(" WorldSignature: ").Append(WorldSignature).Append("\n"); - sb.Append(" ImpostorUrl: ").Append(ImpostorUrl).Append("\n"); - sb.Append(" ScanStatus: ").Append(ScanStatus).Append("\n"); sb.Append(" Variant: ").Append(Variant).Append("\n"); + sb.Append(" WorldSignature: ").Append(WorldSignature).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -280,11 +280,6 @@ public bool Equals(UnityPackage input) return false; } return - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && ( this.AssetUrl == input.AssetUrl || (this.AssetUrl != null && @@ -304,6 +299,16 @@ public bool Equals(UnityPackage input) (this.CreatedAt != null && this.CreatedAt.Equals(input.CreatedAt)) ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.ImpostorUrl == input.ImpostorUrl || + (this.ImpostorUrl != null && + this.ImpostorUrl.Equals(input.ImpostorUrl)) + ) && ( this.ImpostorizerVersion == input.ImpostorizerVersion || (this.ImpostorizerVersion != null && @@ -328,6 +333,11 @@ public bool Equals(UnityPackage input) (this.PluginUrlObject != null && this.PluginUrlObject.Equals(input.PluginUrlObject)) ) && + ( + this.ScanStatus == input.ScanStatus || + (this.ScanStatus != null && + this.ScanStatus.Equals(input.ScanStatus)) + ) && ( this.UnitySortNumber == input.UnitySortNumber || this.UnitySortNumber.Equals(input.UnitySortNumber) @@ -337,25 +347,15 @@ public bool Equals(UnityPackage input) (this.UnityVersion != null && this.UnityVersion.Equals(input.UnityVersion)) ) && - ( - this.WorldSignature == input.WorldSignature || - (this.WorldSignature != null && - this.WorldSignature.Equals(input.WorldSignature)) - ) && - ( - this.ImpostorUrl == input.ImpostorUrl || - (this.ImpostorUrl != null && - this.ImpostorUrl.Equals(input.ImpostorUrl)) - ) && - ( - this.ScanStatus == input.ScanStatus || - (this.ScanStatus != null && - this.ScanStatus.Equals(input.ScanStatus)) - ) && ( this.Variant == input.Variant || (this.Variant != null && this.Variant.Equals(input.Variant)) + ) && + ( + this.WorldSignature == input.WorldSignature || + (this.WorldSignature != null && + this.WorldSignature.Equals(input.WorldSignature)) ); } @@ -368,10 +368,6 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) - { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - } if (this.AssetUrl != null) { hashCode = (hashCode * 59) + this.AssetUrl.GetHashCode(); @@ -385,6 +381,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.ImpostorUrl != null) + { + hashCode = (hashCode * 59) + this.ImpostorUrl.GetHashCode(); + } if (this.ImpostorizerVersion != null) { hashCode = (hashCode * 59) + this.ImpostorizerVersion.GetHashCode(); @@ -402,27 +406,23 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.PluginUrlObject.GetHashCode(); } + if (this.ScanStatus != null) + { + hashCode = (hashCode * 59) + this.ScanStatus.GetHashCode(); + } hashCode = (hashCode * 59) + this.UnitySortNumber.GetHashCode(); if (this.UnityVersion != null) { hashCode = (hashCode * 59) + this.UnityVersion.GetHashCode(); } - if (this.WorldSignature != null) - { - hashCode = (hashCode * 59) + this.WorldSignature.GetHashCode(); - } - if (this.ImpostorUrl != null) - { - hashCode = (hashCode * 59) + this.ImpostorUrl.GetHashCode(); - } - if (this.ScanStatus != null) - { - hashCode = (hashCode * 59) + this.ScanStatus.GetHashCode(); - } if (this.Variant != null) { hashCode = (hashCode * 59) + this.Variant.GetHashCode(); } + if (this.WorldSignature != null) + { + hashCode = (hashCode * 59) + this.WorldSignature.GetHashCode(); + } return hashCode; } } diff --git a/src/VRChat.API/Model/UpdateAvatarRequest.cs b/src/VRChat.API/Model/UpdateAvatarRequest.cs index 769192ee..fc56a8d5 100644 --- a/src/VRChat.API/Model/UpdateAvatarRequest.cs +++ b/src/VRChat.API/Model/UpdateAvatarRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -42,30 +42,28 @@ public partial class UpdateAvatarRequest : IEquatable, IVal /// Initializes a new instance of the class. /// /// assetUrl. - /// id. - /// name. /// description. - /// . + /// id. /// imageUrl. + /// name. /// releaseStatus. - /// varVersion (default to 1). - /// Enabling featured tag requires Admin Credentials.. + /// . /// unityPackageUrl. /// unityVersion (default to "5.3.4p1"). - public UpdateAvatarRequest(string assetUrl = default, string id = default, string name = default, string description = default, List tags = default, string imageUrl = default, ReleaseStatus? releaseStatus = default, int varVersion = 1, bool featured = default, string unityPackageUrl = default, string unityVersion = @"5.3.4p1") + /// varVersion (default to 1). + public UpdateAvatarRequest(string assetUrl = default, string description = default, string id = default, string imageUrl = default, string name = default, ReleaseStatus? releaseStatus = default, List tags = default, string unityPackageUrl = default, string unityVersion = @"5.3.4p1", int varVersion = 1) { this.AssetUrl = assetUrl; - this.Id = id; - this.Name = name; this.Description = description; - this.Tags = tags; + this.Id = id; this.ImageUrl = imageUrl; + this.Name = name; this.ReleaseStatus = releaseStatus; - this.VarVersion = varVersion; - this.Featured = featured; + this.Tags = tags; this.UnityPackageUrl = unityPackageUrl; // use default value if no "unityVersion" provided this.UnityVersion = unityVersion ?? @"5.3.4p1"; + this.VarVersion = varVersion; } /// @@ -74,6 +72,12 @@ public UpdateAvatarRequest(string assetUrl = default, string id = default, strin [DataMember(Name = "assetUrl", EmitDefaultValue = false)] public string AssetUrl { get; set; } + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", EmitDefaultValue = false)] + public string Description { get; set; } + /// /// Gets or Sets Id /// @@ -84,16 +88,16 @@ public UpdateAvatarRequest(string assetUrl = default, string id = default, strin public string Id { get; set; } /// - /// Gets or Sets Name + /// Gets or Sets ImageUrl /// - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } + [DataMember(Name = "imageUrl", EmitDefaultValue = false)] + public string ImageUrl { get; set; } /// - /// Gets or Sets Description + /// Gets or Sets Name /// - [DataMember(Name = "description", EmitDefaultValue = false)] - public string Description { get; set; } + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } /// /// @@ -102,25 +106,6 @@ public UpdateAvatarRequest(string assetUrl = default, string id = default, strin [DataMember(Name = "tags", EmitDefaultValue = false)] public List Tags { get; set; } - /// - /// Gets or Sets ImageUrl - /// - [DataMember(Name = "imageUrl", EmitDefaultValue = false)] - public string ImageUrl { get; set; } - - /// - /// Gets or Sets VarVersion - /// - [DataMember(Name = "version", EmitDefaultValue = false)] - public int VarVersion { get; set; } - - /// - /// Enabling featured tag requires Admin Credentials. - /// - /// Enabling featured tag requires Admin Credentials. - [DataMember(Name = "featured", EmitDefaultValue = true)] - public bool Featured { get; set; } - /// /// Gets or Sets UnityPackageUrl /// @@ -136,6 +121,12 @@ public UpdateAvatarRequest(string assetUrl = default, string id = default, strin [DataMember(Name = "unityVersion", EmitDefaultValue = false)] public string UnityVersion { get; set; } + /// + /// Gets or Sets VarVersion + /// + [DataMember(Name = "version", EmitDefaultValue = false)] + public int VarVersion { get; set; } + /// /// Returns the string presentation of the object /// @@ -145,16 +136,15 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class UpdateAvatarRequest {\n"); sb.Append(" AssetUrl: ").Append(AssetUrl).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" ImageUrl: ").Append(ImageUrl).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" ReleaseStatus: ").Append(ReleaseStatus).Append("\n"); - sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); - sb.Append(" Featured: ").Append(Featured).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); sb.Append(" UnityPackageUrl: ").Append(UnityPackageUrl).Append("\n"); sb.Append(" UnityVersion: ").Append(UnityVersion).Append("\n"); + sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -195,26 +185,15 @@ public bool Equals(UpdateAvatarRequest input) (this.AssetUrl != null && this.AssetUrl.Equals(input.AssetUrl)) ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && ( this.Description == input.Description || (this.Description != null && this.Description.Equals(input.Description)) ) && ( - this.Tags == input.Tags || - this.Tags != null && - input.Tags != null && - this.Tags.SequenceEqual(input.Tags) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( this.ImageUrl == input.ImageUrl || @@ -222,16 +201,19 @@ public bool Equals(UpdateAvatarRequest input) this.ImageUrl.Equals(input.ImageUrl)) ) && ( - this.ReleaseStatus == input.ReleaseStatus || - this.ReleaseStatus.Equals(input.ReleaseStatus) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( - this.VarVersion == input.VarVersion || - this.VarVersion.Equals(input.VarVersion) + this.ReleaseStatus == input.ReleaseStatus || + this.ReleaseStatus.Equals(input.ReleaseStatus) ) && ( - this.Featured == input.Featured || - this.Featured.Equals(input.Featured) + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) ) && ( this.UnityPackageUrl == input.UnityPackageUrl || @@ -242,6 +224,10 @@ public bool Equals(UpdateAvatarRequest input) this.UnityVersion == input.UnityVersion || (this.UnityVersion != null && this.UnityVersion.Equals(input.UnityVersion)) + ) && + ( + this.VarVersion == input.VarVersion || + this.VarVersion.Equals(input.VarVersion) ); } @@ -258,29 +244,27 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.AssetUrl.GetHashCode(); } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); + } if (this.Id != null) { hashCode = (hashCode * 59) + this.Id.GetHashCode(); } - if (this.Name != null) + if (this.ImageUrl != null) { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); + hashCode = (hashCode * 59) + this.ImageUrl.GetHashCode(); } - if (this.Description != null) + if (this.Name != null) { - hashCode = (hashCode * 59) + this.Description.GetHashCode(); + hashCode = (hashCode * 59) + this.Name.GetHashCode(); } + hashCode = (hashCode * 59) + this.ReleaseStatus.GetHashCode(); if (this.Tags != null) { hashCode = (hashCode * 59) + this.Tags.GetHashCode(); } - if (this.ImageUrl != null) - { - hashCode = (hashCode * 59) + this.ImageUrl.GetHashCode(); - } - hashCode = (hashCode * 59) + this.ReleaseStatus.GetHashCode(); - hashCode = (hashCode * 59) + this.VarVersion.GetHashCode(); - hashCode = (hashCode * 59) + this.Featured.GetHashCode(); if (this.UnityPackageUrl != null) { hashCode = (hashCode * 59) + this.UnityPackageUrl.GetHashCode(); @@ -289,6 +273,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.UnityVersion.GetHashCode(); } + hashCode = (hashCode * 59) + this.VarVersion.GetHashCode(); return hashCode; } } @@ -300,12 +285,6 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) minLength - if (this.Name != null && this.Name.Length < 1) - { - yield return new ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); - } - // Description (string) minLength if (this.Description != null && this.Description.Length < 1) { @@ -318,10 +297,10 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for ImageUrl, length must be greater than 1.", new [] { "ImageUrl" }); } - // VarVersion (int) minimum - if (this.VarVersion < (int)0) + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) { - yield return new ValidationResult("Invalid value for VarVersion, must be a value greater than or equal to 0.", new [] { "VarVersion" }); + yield return new ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); } // UnityVersion (string) minLength @@ -330,6 +309,12 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for UnityVersion, length must be greater than 1.", new [] { "UnityVersion" }); } + // VarVersion (int) minimum + if (this.VarVersion < (int)0) + { + yield return new ValidationResult("Invalid value for VarVersion, must be a value greater than or equal to 0.", new [] { "VarVersion" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/UpdateCalendarEventRequest.cs b/src/VRChat.API/Model/UpdateCalendarEventRequest.cs index 0694ca50..633e1e32 100644 --- a/src/VRChat.API/Model/UpdateCalendarEventRequest.cs +++ b/src/VRChat.API/Model/UpdateCalendarEventRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,62 +35,63 @@ public partial class UpdateCalendarEventRequest : IEquatable /// Initializes a new instance of the class. /// - /// Event title. - /// Time the vent starts at. + /// category. + /// closeInstanceAfterEndMinutes. /// description. /// Time the vent starts at. - /// category. - /// tags. - /// isDraft. + /// featured. + /// guestEarlyJoinMinutes. + /// hostEarlyJoinMinutes. /// imageId. - /// roleIds. + /// isDraft. + /// languages. /// parentId. /// platforms. - /// languages. + /// roleIds. /// Send notification to group members. (default to false). - /// featured. - /// hostEarlyJoinMinutes. - /// guestEarlyJoinMinutes. - /// closeInstanceAfterEndMinutes. + /// Time the vent starts at. + /// tags. + /// Event title. /// usesInstanceOverflow. - public UpdateCalendarEventRequest(string title = default, DateTime startsAt = default, string description = default, DateTime endsAt = default, string category = default, List tags = default, bool isDraft = default, string imageId = default, List roleIds = default, string parentId = default, List platforms = default, List languages = default, bool sendCreationNotification = false, bool featured = default, int hostEarlyJoinMinutes = default, int guestEarlyJoinMinutes = default, int closeInstanceAfterEndMinutes = default, bool usesInstanceOverflow = default) + public UpdateCalendarEventRequest(string category = default, int closeInstanceAfterEndMinutes = default, string description = default, DateTime endsAt = default, bool featured = default, int guestEarlyJoinMinutes = default, int hostEarlyJoinMinutes = default, string imageId = default, bool isDraft = default, List languages = default, string parentId = default, List platforms = default, List roleIds = default, bool sendCreationNotification = false, DateTime startsAt = default, List tags = default, string title = default, bool usesInstanceOverflow = default) { - this.Title = title; - this.StartsAt = startsAt; + this.Category = category; + this.CloseInstanceAfterEndMinutes = closeInstanceAfterEndMinutes; this.Description = description; this.EndsAt = endsAt; - this.Category = category; - this.Tags = tags; - this.IsDraft = isDraft; + this.Featured = featured; + this.GuestEarlyJoinMinutes = guestEarlyJoinMinutes; + this.HostEarlyJoinMinutes = hostEarlyJoinMinutes; this.ImageId = imageId; - this.RoleIds = roleIds; + this.IsDraft = isDraft; + this.Languages = languages; this.ParentId = parentId; this.Platforms = platforms; - this.Languages = languages; + this.RoleIds = roleIds; this.SendCreationNotification = sendCreationNotification; - this.Featured = featured; - this.HostEarlyJoinMinutes = hostEarlyJoinMinutes; - this.GuestEarlyJoinMinutes = guestEarlyJoinMinutes; - this.CloseInstanceAfterEndMinutes = closeInstanceAfterEndMinutes; + this.StartsAt = startsAt; + this.Tags = tags; + this.Title = title; this.UsesInstanceOverflow = usesInstanceOverflow; } /// - /// Event title + /// Gets or Sets Category /// - /// Event title /* - Performance Event! + performance */ - [DataMember(Name = "title", EmitDefaultValue = false)] - public string Title { get; set; } + [DataMember(Name = "category", EmitDefaultValue = false)] + public string Category { get; set; } /// - /// Time the vent starts at + /// Gets or Sets CloseInstanceAfterEndMinutes /// - /// Time the vent starts at - [DataMember(Name = "startsAt", EmitDefaultValue = false)] - public DateTime StartsAt { get; set; } + /* + 5 + */ + [DataMember(Name = "closeInstanceAfterEndMinutes", EmitDefaultValue = false)] + public int CloseInstanceAfterEndMinutes { get; set; } /// /// Gets or Sets Description @@ -106,25 +107,28 @@ public UpdateCalendarEventRequest(string title = default, DateTime startsAt = de public DateTime EndsAt { get; set; } /// - /// Gets or Sets Category + /// Gets or Sets Featured /// - /* - performance - */ - [DataMember(Name = "category", EmitDefaultValue = false)] - public string Category { get; set; } + [DataMember(Name = "featured", EmitDefaultValue = true)] + public bool Featured { get; set; } /// - /// Gets or Sets Tags + /// Gets or Sets GuestEarlyJoinMinutes /// - [DataMember(Name = "tags", EmitDefaultValue = false)] - public List Tags { get; set; } + /* + 5 + */ + [DataMember(Name = "guestEarlyJoinMinutes", EmitDefaultValue = false)] + public int GuestEarlyJoinMinutes { get; set; } /// - /// Gets or Sets IsDraft + /// Gets or Sets HostEarlyJoinMinutes /// - [DataMember(Name = "isDraft", EmitDefaultValue = true)] - public bool IsDraft { get; set; } + /* + 60 + */ + [DataMember(Name = "hostEarlyJoinMinutes", EmitDefaultValue = false)] + public int HostEarlyJoinMinutes { get; set; } /// /// Gets or Sets ImageId @@ -136,10 +140,16 @@ public UpdateCalendarEventRequest(string title = default, DateTime startsAt = de public string ImageId { get; set; } /// - /// Gets or Sets RoleIds + /// Gets or Sets IsDraft /// - [DataMember(Name = "roleIds", EmitDefaultValue = false)] - public List RoleIds { get; set; } + [DataMember(Name = "isDraft", EmitDefaultValue = true)] + public bool IsDraft { get; set; } + + /// + /// Gets or Sets Languages + /// + [DataMember(Name = "languages", EmitDefaultValue = false)] + public List Languages { get; set; } /// /// Gets or Sets ParentId @@ -154,10 +164,10 @@ public UpdateCalendarEventRequest(string title = default, DateTime startsAt = de public List Platforms { get; set; } /// - /// Gets or Sets Languages + /// Gets or Sets RoleIds /// - [DataMember(Name = "languages", EmitDefaultValue = false)] - public List Languages { get; set; } + [DataMember(Name = "roleIds", EmitDefaultValue = false)] + public List RoleIds { get; set; } /// /// Send notification to group members. @@ -170,37 +180,27 @@ public UpdateCalendarEventRequest(string title = default, DateTime startsAt = de public bool SendCreationNotification { get; set; } /// - /// Gets or Sets Featured - /// - [DataMember(Name = "featured", EmitDefaultValue = true)] - public bool Featured { get; set; } - - /// - /// Gets or Sets HostEarlyJoinMinutes + /// Time the vent starts at /// - /* - 60 - */ - [DataMember(Name = "hostEarlyJoinMinutes", EmitDefaultValue = false)] - public int HostEarlyJoinMinutes { get; set; } + /// Time the vent starts at + [DataMember(Name = "startsAt", EmitDefaultValue = false)] + public DateTime StartsAt { get; set; } /// - /// Gets or Sets GuestEarlyJoinMinutes + /// Gets or Sets Tags /// - /* - 5 - */ - [DataMember(Name = "guestEarlyJoinMinutes", EmitDefaultValue = false)] - public int GuestEarlyJoinMinutes { get; set; } + [DataMember(Name = "tags", EmitDefaultValue = false)] + public List Tags { get; set; } /// - /// Gets or Sets CloseInstanceAfterEndMinutes + /// Event title /// + /// Event title /* - 5 + Performance Event! */ - [DataMember(Name = "closeInstanceAfterEndMinutes", EmitDefaultValue = false)] - public int CloseInstanceAfterEndMinutes { get; set; } + [DataMember(Name = "title", EmitDefaultValue = false)] + public string Title { get; set; } /// /// Gets or Sets UsesInstanceOverflow @@ -219,23 +219,23 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class UpdateCalendarEventRequest {\n"); - sb.Append(" Title: ").Append(Title).Append("\n"); - sb.Append(" StartsAt: ").Append(StartsAt).Append("\n"); + sb.Append(" Category: ").Append(Category).Append("\n"); + sb.Append(" CloseInstanceAfterEndMinutes: ").Append(CloseInstanceAfterEndMinutes).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" EndsAt: ").Append(EndsAt).Append("\n"); - sb.Append(" Category: ").Append(Category).Append("\n"); - sb.Append(" Tags: ").Append(Tags).Append("\n"); - sb.Append(" IsDraft: ").Append(IsDraft).Append("\n"); + sb.Append(" Featured: ").Append(Featured).Append("\n"); + sb.Append(" GuestEarlyJoinMinutes: ").Append(GuestEarlyJoinMinutes).Append("\n"); + sb.Append(" HostEarlyJoinMinutes: ").Append(HostEarlyJoinMinutes).Append("\n"); sb.Append(" ImageId: ").Append(ImageId).Append("\n"); - sb.Append(" RoleIds: ").Append(RoleIds).Append("\n"); + sb.Append(" IsDraft: ").Append(IsDraft).Append("\n"); + sb.Append(" Languages: ").Append(Languages).Append("\n"); sb.Append(" ParentId: ").Append(ParentId).Append("\n"); sb.Append(" Platforms: ").Append(Platforms).Append("\n"); - sb.Append(" Languages: ").Append(Languages).Append("\n"); + sb.Append(" RoleIds: ").Append(RoleIds).Append("\n"); sb.Append(" SendCreationNotification: ").Append(SendCreationNotification).Append("\n"); - sb.Append(" Featured: ").Append(Featured).Append("\n"); - sb.Append(" HostEarlyJoinMinutes: ").Append(HostEarlyJoinMinutes).Append("\n"); - sb.Append(" GuestEarlyJoinMinutes: ").Append(GuestEarlyJoinMinutes).Append("\n"); - sb.Append(" CloseInstanceAfterEndMinutes: ").Append(CloseInstanceAfterEndMinutes).Append("\n"); + sb.Append(" StartsAt: ").Append(StartsAt).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Title: ").Append(Title).Append("\n"); sb.Append(" UsesInstanceOverflow: ").Append(UsesInstanceOverflow).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -273,14 +273,13 @@ public bool Equals(UpdateCalendarEventRequest input) } return ( - this.Title == input.Title || - (this.Title != null && - this.Title.Equals(input.Title)) + this.Category == input.Category || + (this.Category != null && + this.Category.Equals(input.Category)) ) && ( - this.StartsAt == input.StartsAt || - (this.StartsAt != null && - this.StartsAt.Equals(input.StartsAt)) + this.CloseInstanceAfterEndMinutes == input.CloseInstanceAfterEndMinutes || + this.CloseInstanceAfterEndMinutes.Equals(input.CloseInstanceAfterEndMinutes) ) && ( this.Description == input.Description || @@ -293,19 +292,16 @@ public bool Equals(UpdateCalendarEventRequest input) this.EndsAt.Equals(input.EndsAt)) ) && ( - this.Category == input.Category || - (this.Category != null && - this.Category.Equals(input.Category)) + this.Featured == input.Featured || + this.Featured.Equals(input.Featured) ) && ( - this.Tags == input.Tags || - this.Tags != null && - input.Tags != null && - this.Tags.SequenceEqual(input.Tags) + this.GuestEarlyJoinMinutes == input.GuestEarlyJoinMinutes || + this.GuestEarlyJoinMinutes.Equals(input.GuestEarlyJoinMinutes) ) && ( - this.IsDraft == input.IsDraft || - this.IsDraft.Equals(input.IsDraft) + this.HostEarlyJoinMinutes == input.HostEarlyJoinMinutes || + this.HostEarlyJoinMinutes.Equals(input.HostEarlyJoinMinutes) ) && ( this.ImageId == input.ImageId || @@ -313,10 +309,14 @@ public bool Equals(UpdateCalendarEventRequest input) this.ImageId.Equals(input.ImageId)) ) && ( - this.RoleIds == input.RoleIds || - this.RoleIds != null && - input.RoleIds != null && - this.RoleIds.SequenceEqual(input.RoleIds) + this.IsDraft == input.IsDraft || + this.IsDraft.Equals(input.IsDraft) + ) && + ( + this.Languages == input.Languages || + this.Languages != null && + input.Languages != null && + this.Languages.SequenceEqual(input.Languages) ) && ( this.ParentId == input.ParentId || @@ -330,30 +330,30 @@ public bool Equals(UpdateCalendarEventRequest input) this.Platforms.SequenceEqual(input.Platforms) ) && ( - this.Languages == input.Languages || - this.Languages != null && - input.Languages != null && - this.Languages.SequenceEqual(input.Languages) + this.RoleIds == input.RoleIds || + this.RoleIds != null && + input.RoleIds != null && + this.RoleIds.SequenceEqual(input.RoleIds) ) && ( this.SendCreationNotification == input.SendCreationNotification || this.SendCreationNotification.Equals(input.SendCreationNotification) ) && ( - this.Featured == input.Featured || - this.Featured.Equals(input.Featured) - ) && - ( - this.HostEarlyJoinMinutes == input.HostEarlyJoinMinutes || - this.HostEarlyJoinMinutes.Equals(input.HostEarlyJoinMinutes) + this.StartsAt == input.StartsAt || + (this.StartsAt != null && + this.StartsAt.Equals(input.StartsAt)) ) && ( - this.GuestEarlyJoinMinutes == input.GuestEarlyJoinMinutes || - this.GuestEarlyJoinMinutes.Equals(input.GuestEarlyJoinMinutes) + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) ) && ( - this.CloseInstanceAfterEndMinutes == input.CloseInstanceAfterEndMinutes || - this.CloseInstanceAfterEndMinutes.Equals(input.CloseInstanceAfterEndMinutes) + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) ) && ( this.UsesInstanceOverflow == input.UsesInstanceOverflow || @@ -370,14 +370,11 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Title != null) - { - hashCode = (hashCode * 59) + this.Title.GetHashCode(); - } - if (this.StartsAt != null) + if (this.Category != null) { - hashCode = (hashCode * 59) + this.StartsAt.GetHashCode(); + hashCode = (hashCode * 59) + this.Category.GetHashCode(); } + hashCode = (hashCode * 59) + this.CloseInstanceAfterEndMinutes.GetHashCode(); if (this.Description != null) { hashCode = (hashCode * 59) + this.Description.GetHashCode(); @@ -386,22 +383,17 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.EndsAt.GetHashCode(); } - if (this.Category != null) - { - hashCode = (hashCode * 59) + this.Category.GetHashCode(); - } - if (this.Tags != null) - { - hashCode = (hashCode * 59) + this.Tags.GetHashCode(); - } - hashCode = (hashCode * 59) + this.IsDraft.GetHashCode(); + hashCode = (hashCode * 59) + this.Featured.GetHashCode(); + hashCode = (hashCode * 59) + this.GuestEarlyJoinMinutes.GetHashCode(); + hashCode = (hashCode * 59) + this.HostEarlyJoinMinutes.GetHashCode(); if (this.ImageId != null) { hashCode = (hashCode * 59) + this.ImageId.GetHashCode(); } - if (this.RoleIds != null) + hashCode = (hashCode * 59) + this.IsDraft.GetHashCode(); + if (this.Languages != null) { - hashCode = (hashCode * 59) + this.RoleIds.GetHashCode(); + hashCode = (hashCode * 59) + this.Languages.GetHashCode(); } if (this.ParentId != null) { @@ -411,15 +403,23 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Platforms.GetHashCode(); } - if (this.Languages != null) + if (this.RoleIds != null) { - hashCode = (hashCode * 59) + this.Languages.GetHashCode(); + hashCode = (hashCode * 59) + this.RoleIds.GetHashCode(); } hashCode = (hashCode * 59) + this.SendCreationNotification.GetHashCode(); - hashCode = (hashCode * 59) + this.Featured.GetHashCode(); - hashCode = (hashCode * 59) + this.HostEarlyJoinMinutes.GetHashCode(); - hashCode = (hashCode * 59) + this.GuestEarlyJoinMinutes.GetHashCode(); - hashCode = (hashCode * 59) + this.CloseInstanceAfterEndMinutes.GetHashCode(); + if (this.StartsAt != null) + { + hashCode = (hashCode * 59) + this.StartsAt.GetHashCode(); + } + if (this.Tags != null) + { + hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + } + if (this.Title != null) + { + hashCode = (hashCode * 59) + this.Title.GetHashCode(); + } hashCode = (hashCode * 59) + this.UsesInstanceOverflow.GetHashCode(); return hashCode; } @@ -432,18 +432,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Title (string) minLength - if (this.Title != null && this.Title.Length < 1) - { - yield return new ValidationResult("Invalid value for Title, length must be greater than 1.", new [] { "Title" }); - } - // Description (string) minLength if (this.Description != null && this.Description.Length < 1) { yield return new ValidationResult("Invalid value for Description, length must be greater than 1.", new [] { "Description" }); } + // Title (string) minLength + if (this.Title != null && this.Title.Length < 1) + { + yield return new ValidationResult("Invalid value for Title, length must be greater than 1.", new [] { "Title" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/UpdateFavoriteGroupRequest.cs b/src/VRChat.API/Model/UpdateFavoriteGroupRequest.cs index a3f4e489..6d8055fc 100644 --- a/src/VRChat.API/Model/UpdateFavoriteGroupRequest.cs +++ b/src/VRChat.API/Model/UpdateFavoriteGroupRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -42,13 +42,13 @@ public partial class UpdateFavoriteGroupRequest : IEquatable class. /// /// displayName. - /// visibility. /// Tags on FavoriteGroups are believed to do nothing.. - public UpdateFavoriteGroupRequest(string displayName = default, FavoriteGroupVisibility? visibility = default, List tags = default) + /// visibility. + public UpdateFavoriteGroupRequest(string displayName = default, List tags = default, FavoriteGroupVisibility? visibility = default) { this.DisplayName = displayName; - this.Visibility = visibility; this.Tags = tags; + this.Visibility = visibility; } /// @@ -73,8 +73,8 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class UpdateFavoriteGroupRequest {\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Visibility: ").Append(Visibility).Append("\n"); sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Visibility: ").Append(Visibility).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -115,15 +115,15 @@ public bool Equals(UpdateFavoriteGroupRequest input) (this.DisplayName != null && this.DisplayName.Equals(input.DisplayName)) ) && - ( - this.Visibility == input.Visibility || - this.Visibility.Equals(input.Visibility) - ) && ( this.Tags == input.Tags || this.Tags != null && input.Tags != null && this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.Visibility == input.Visibility || + this.Visibility.Equals(input.Visibility) ); } @@ -140,11 +140,11 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); } - hashCode = (hashCode * 59) + this.Visibility.GetHashCode(); if (this.Tags != null) { hashCode = (hashCode * 59) + this.Tags.GetHashCode(); } + hashCode = (hashCode * 59) + this.Visibility.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/UpdateGroupGalleryRequest.cs b/src/VRChat.API/Model/UpdateGroupGalleryRequest.cs index 0d17c3b6..210051da 100644 --- a/src/VRChat.API/Model/UpdateGroupGalleryRequest.cs +++ b/src/VRChat.API/Model/UpdateGroupGalleryRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,34 +35,24 @@ public partial class UpdateGroupGalleryRequest : IEquatable /// Initializes a new instance of the class. /// - /// Name of the gallery.. /// Description of the gallery.. /// Whether the gallery is members only. (default to false). - /// . - /// . + /// Name of the gallery.. /// . /// . - public UpdateGroupGalleryRequest(string name = default, string description = default, bool membersOnly = false, List roleIdsToView = default, List roleIdsToSubmit = default, List roleIdsToAutoApprove = default, List roleIdsToManage = default) + /// . + /// . + public UpdateGroupGalleryRequest(string description = default, bool membersOnly = false, string name = default, List roleIdsToAutoApprove = default, List roleIdsToManage = default, List roleIdsToSubmit = default, List roleIdsToView = default) { - this.Name = name; this.Description = description; this.MembersOnly = membersOnly; - this.RoleIdsToView = roleIdsToView; - this.RoleIdsToSubmit = roleIdsToSubmit; + this.Name = name; this.RoleIdsToAutoApprove = roleIdsToAutoApprove; this.RoleIdsToManage = roleIdsToManage; + this.RoleIdsToSubmit = roleIdsToSubmit; + this.RoleIdsToView = roleIdsToView; } - /// - /// Name of the gallery. - /// - /// Name of the gallery. - /* - Example Gallery - */ - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } - /// /// Description of the gallery. /// @@ -83,33 +73,43 @@ public UpdateGroupGalleryRequest(string name = default, string description = def [DataMember(Name = "membersOnly", EmitDefaultValue = true)] public bool MembersOnly { get; set; } + /// + /// Name of the gallery. + /// + /// Name of the gallery. + /* + Example Gallery + */ + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + /// /// /// /// - [DataMember(Name = "roleIdsToView", EmitDefaultValue = true)] - public List RoleIdsToView { get; set; } + [DataMember(Name = "roleIdsToAutoApprove", EmitDefaultValue = true)] + public List RoleIdsToAutoApprove { get; set; } /// /// /// /// - [DataMember(Name = "roleIdsToSubmit", EmitDefaultValue = true)] - public List RoleIdsToSubmit { get; set; } + [DataMember(Name = "roleIdsToManage", EmitDefaultValue = true)] + public List RoleIdsToManage { get; set; } /// /// /// /// - [DataMember(Name = "roleIdsToAutoApprove", EmitDefaultValue = true)] - public List RoleIdsToAutoApprove { get; set; } + [DataMember(Name = "roleIdsToSubmit", EmitDefaultValue = true)] + public List RoleIdsToSubmit { get; set; } /// /// /// /// - [DataMember(Name = "roleIdsToManage", EmitDefaultValue = true)] - public List RoleIdsToManage { get; set; } + [DataMember(Name = "roleIdsToView", EmitDefaultValue = true)] + public List RoleIdsToView { get; set; } /// /// Returns the string presentation of the object @@ -119,13 +119,13 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class UpdateGroupGalleryRequest {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" MembersOnly: ").Append(MembersOnly).Append("\n"); - sb.Append(" RoleIdsToView: ").Append(RoleIdsToView).Append("\n"); - sb.Append(" RoleIdsToSubmit: ").Append(RoleIdsToSubmit).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" RoleIdsToAutoApprove: ").Append(RoleIdsToAutoApprove).Append("\n"); sb.Append(" RoleIdsToManage: ").Append(RoleIdsToManage).Append("\n"); + sb.Append(" RoleIdsToSubmit: ").Append(RoleIdsToSubmit).Append("\n"); + sb.Append(" RoleIdsToView: ").Append(RoleIdsToView).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -161,11 +161,6 @@ public bool Equals(UpdateGroupGalleryRequest input) return false; } return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && ( this.Description == input.Description || (this.Description != null && @@ -176,16 +171,9 @@ public bool Equals(UpdateGroupGalleryRequest input) this.MembersOnly.Equals(input.MembersOnly) ) && ( - this.RoleIdsToView == input.RoleIdsToView || - this.RoleIdsToView != null && - input.RoleIdsToView != null && - this.RoleIdsToView.SequenceEqual(input.RoleIdsToView) - ) && - ( - this.RoleIdsToSubmit == input.RoleIdsToSubmit || - this.RoleIdsToSubmit != null && - input.RoleIdsToSubmit != null && - this.RoleIdsToSubmit.SequenceEqual(input.RoleIdsToSubmit) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( this.RoleIdsToAutoApprove == input.RoleIdsToAutoApprove || @@ -198,6 +186,18 @@ public bool Equals(UpdateGroupGalleryRequest input) this.RoleIdsToManage != null && input.RoleIdsToManage != null && this.RoleIdsToManage.SequenceEqual(input.RoleIdsToManage) + ) && + ( + this.RoleIdsToSubmit == input.RoleIdsToSubmit || + this.RoleIdsToSubmit != null && + input.RoleIdsToSubmit != null && + this.RoleIdsToSubmit.SequenceEqual(input.RoleIdsToSubmit) + ) && + ( + this.RoleIdsToView == input.RoleIdsToView || + this.RoleIdsToView != null && + input.RoleIdsToView != null && + this.RoleIdsToView.SequenceEqual(input.RoleIdsToView) ); } @@ -210,22 +210,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Name != null) - { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); - } if (this.Description != null) { hashCode = (hashCode * 59) + this.Description.GetHashCode(); } hashCode = (hashCode * 59) + this.MembersOnly.GetHashCode(); - if (this.RoleIdsToView != null) - { - hashCode = (hashCode * 59) + this.RoleIdsToView.GetHashCode(); - } - if (this.RoleIdsToSubmit != null) + if (this.Name != null) { - hashCode = (hashCode * 59) + this.RoleIdsToSubmit.GetHashCode(); + hashCode = (hashCode * 59) + this.Name.GetHashCode(); } if (this.RoleIdsToAutoApprove != null) { @@ -235,6 +227,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.RoleIdsToManage.GetHashCode(); } + if (this.RoleIdsToSubmit != null) + { + hashCode = (hashCode * 59) + this.RoleIdsToSubmit.GetHashCode(); + } + if (this.RoleIdsToView != null) + { + hashCode = (hashCode * 59) + this.RoleIdsToView.GetHashCode(); + } return hashCode; } } @@ -246,18 +246,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { - // Name (string) minLength - if (this.Name != null && this.Name.Length < 1) - { - yield return new ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); - } - // Description (string) minLength if (this.Description != null && this.Description.Length < 0) { yield return new ValidationResult("Invalid value for Description, length must be greater than 0.", new [] { "Description" }); } + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/UpdateGroupMemberRequest.cs b/src/VRChat.API/Model/UpdateGroupMemberRequest.cs index 07d91b1d..b6cb2354 100644 --- a/src/VRChat.API/Model/UpdateGroupMemberRequest.cs +++ b/src/VRChat.API/Model/UpdateGroupMemberRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,16 +41,16 @@ public partial class UpdateGroupMemberRequest : IEquatable /// Initializes a new instance of the class. /// - /// visibility. /// isSubscribedToAnnouncements. /// isSubscribedToEventAnnouncements. /// managerNotes. - public UpdateGroupMemberRequest(GroupUserVisibility? visibility = default, bool isSubscribedToAnnouncements = default, bool isSubscribedToEventAnnouncements = default, string managerNotes = default) + /// visibility. + public UpdateGroupMemberRequest(bool isSubscribedToAnnouncements = default, bool isSubscribedToEventAnnouncements = default, string managerNotes = default, GroupUserVisibility? visibility = default) { - this.Visibility = visibility; this.IsSubscribedToAnnouncements = isSubscribedToAnnouncements; this.IsSubscribedToEventAnnouncements = isSubscribedToEventAnnouncements; this.ManagerNotes = managerNotes; + this.Visibility = visibility; } /// @@ -79,10 +79,10 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class UpdateGroupMemberRequest {\n"); - sb.Append(" Visibility: ").Append(Visibility).Append("\n"); sb.Append(" IsSubscribedToAnnouncements: ").Append(IsSubscribedToAnnouncements).Append("\n"); sb.Append(" IsSubscribedToEventAnnouncements: ").Append(IsSubscribedToEventAnnouncements).Append("\n"); sb.Append(" ManagerNotes: ").Append(ManagerNotes).Append("\n"); + sb.Append(" Visibility: ").Append(Visibility).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -118,10 +118,6 @@ public bool Equals(UpdateGroupMemberRequest input) return false; } return - ( - this.Visibility == input.Visibility || - this.Visibility.Equals(input.Visibility) - ) && ( this.IsSubscribedToAnnouncements == input.IsSubscribedToAnnouncements || this.IsSubscribedToAnnouncements.Equals(input.IsSubscribedToAnnouncements) @@ -134,6 +130,10 @@ public bool Equals(UpdateGroupMemberRequest input) this.ManagerNotes == input.ManagerNotes || (this.ManagerNotes != null && this.ManagerNotes.Equals(input.ManagerNotes)) + ) && + ( + this.Visibility == input.Visibility || + this.Visibility.Equals(input.Visibility) ); } @@ -146,13 +146,13 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Visibility.GetHashCode(); hashCode = (hashCode * 59) + this.IsSubscribedToAnnouncements.GetHashCode(); hashCode = (hashCode * 59) + this.IsSubscribedToEventAnnouncements.GetHashCode(); if (this.ManagerNotes != null) { hashCode = (hashCode * 59) + this.ManagerNotes.GetHashCode(); } + hashCode = (hashCode * 59) + this.Visibility.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/UpdateGroupRepresentationRequest.cs b/src/VRChat.API/Model/UpdateGroupRepresentationRequest.cs index 459ab3b9..af8cad87 100644 --- a/src/VRChat.API/Model/UpdateGroupRepresentationRequest.cs +++ b/src/VRChat.API/Model/UpdateGroupRepresentationRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UpdateGroupRequest.cs b/src/VRChat.API/Model/UpdateGroupRequest.cs index 5c0e66e1..450c2422 100644 --- a/src/VRChat.API/Model/UpdateGroupRequest.cs +++ b/src/VRChat.API/Model/UpdateGroupRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,41 +41,35 @@ public partial class UpdateGroupRequest : IEquatable, IValid /// /// Initializes a new instance of the class. /// - /// name. - /// shortCode. + /// bannerId. /// description. - /// joinState. /// iconId. - /// bannerId. + /// joinState. /// 3 letter language code. /// links. + /// name. /// rules. + /// shortCode. /// . - public UpdateGroupRequest(string name = default, string shortCode = default, string description = default, GroupJoinState? joinState = default, string iconId = default, string bannerId = default, List languages = default, List links = default, string rules = default, List tags = default) + public UpdateGroupRequest(string bannerId = default, string description = default, string iconId = default, GroupJoinState? joinState = default, List languages = default, List links = default, string name = default, string rules = default, string shortCode = default, List tags = default) { - this.Name = name; - this.ShortCode = shortCode; + this.BannerId = bannerId; this.Description = description; - this.JoinState = joinState; this.IconId = iconId; - this.BannerId = bannerId; + this.JoinState = joinState; this.Languages = languages; this.Links = links; + this.Name = name; this.Rules = rules; + this.ShortCode = shortCode; this.Tags = tags; } /// - /// Gets or Sets Name - /// - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } - - /// - /// Gets or Sets ShortCode + /// Gets or Sets BannerId /// - [DataMember(Name = "shortCode", EmitDefaultValue = false)] - public string ShortCode { get; set; } + [DataMember(Name = "bannerId", EmitDefaultValue = true)] + public string BannerId { get; set; } /// /// Gets or Sets Description @@ -89,12 +83,6 @@ public UpdateGroupRequest(string name = default, string shortCode = default, str [DataMember(Name = "iconId", EmitDefaultValue = true)] public string IconId { get; set; } - /// - /// Gets or Sets BannerId - /// - [DataMember(Name = "bannerId", EmitDefaultValue = true)] - public string BannerId { get; set; } - /// /// 3 letter language code /// @@ -108,12 +96,24 @@ public UpdateGroupRequest(string name = default, string shortCode = default, str [DataMember(Name = "links", EmitDefaultValue = false)] public List Links { get; set; } + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } + /// /// Gets or Sets Rules /// [DataMember(Name = "rules", EmitDefaultValue = false)] public string Rules { get; set; } + /// + /// Gets or Sets ShortCode + /// + [DataMember(Name = "shortCode", EmitDefaultValue = false)] + public string ShortCode { get; set; } + /// /// /// @@ -129,15 +129,15 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class UpdateGroupRequest {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); - sb.Append(" ShortCode: ").Append(ShortCode).Append("\n"); + sb.Append(" BannerId: ").Append(BannerId).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); - sb.Append(" JoinState: ").Append(JoinState).Append("\n"); sb.Append(" IconId: ").Append(IconId).Append("\n"); - sb.Append(" BannerId: ").Append(BannerId).Append("\n"); + sb.Append(" JoinState: ").Append(JoinState).Append("\n"); sb.Append(" Languages: ").Append(Languages).Append("\n"); sb.Append(" Links: ").Append(Links).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Rules: ").Append(Rules).Append("\n"); + sb.Append(" ShortCode: ").Append(ShortCode).Append("\n"); sb.Append(" Tags: ").Append(Tags).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -175,33 +175,23 @@ public bool Equals(UpdateGroupRequest input) } return ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && - ( - this.ShortCode == input.ShortCode || - (this.ShortCode != null && - this.ShortCode.Equals(input.ShortCode)) + this.BannerId == input.BannerId || + (this.BannerId != null && + this.BannerId.Equals(input.BannerId)) ) && ( this.Description == input.Description || (this.Description != null && this.Description.Equals(input.Description)) ) && - ( - this.JoinState == input.JoinState || - this.JoinState.Equals(input.JoinState) - ) && ( this.IconId == input.IconId || (this.IconId != null && this.IconId.Equals(input.IconId)) ) && ( - this.BannerId == input.BannerId || - (this.BannerId != null && - this.BannerId.Equals(input.BannerId)) + this.JoinState == input.JoinState || + this.JoinState.Equals(input.JoinState) ) && ( this.Languages == input.Languages || @@ -215,11 +205,21 @@ public bool Equals(UpdateGroupRequest input) input.Links != null && this.Links.SequenceEqual(input.Links) ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && ( this.Rules == input.Rules || (this.Rules != null && this.Rules.Equals(input.Rules)) ) && + ( + this.ShortCode == input.ShortCode || + (this.ShortCode != null && + this.ShortCode.Equals(input.ShortCode)) + ) && ( this.Tags == input.Tags || this.Tags != null && @@ -237,27 +237,19 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Name != null) - { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); - } - if (this.ShortCode != null) + if (this.BannerId != null) { - hashCode = (hashCode * 59) + this.ShortCode.GetHashCode(); + hashCode = (hashCode * 59) + this.BannerId.GetHashCode(); } if (this.Description != null) { hashCode = (hashCode * 59) + this.Description.GetHashCode(); } - hashCode = (hashCode * 59) + this.JoinState.GetHashCode(); if (this.IconId != null) { hashCode = (hashCode * 59) + this.IconId.GetHashCode(); } - if (this.BannerId != null) - { - hashCode = (hashCode * 59) + this.BannerId.GetHashCode(); - } + hashCode = (hashCode * 59) + this.JoinState.GetHashCode(); if (this.Languages != null) { hashCode = (hashCode * 59) + this.Languages.GetHashCode(); @@ -266,10 +258,18 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Links.GetHashCode(); } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } if (this.Rules != null) { hashCode = (hashCode * 59) + this.Rules.GetHashCode(); } + if (this.ShortCode != null) + { + hashCode = (hashCode * 59) + this.ShortCode.GetHashCode(); + } if (this.Tags != null) { hashCode = (hashCode * 59) + this.Tags.GetHashCode(); @@ -285,6 +285,18 @@ public override int GetHashCode() /// Validation Result IEnumerable IValidatableObject.Validate(ValidationContext validationContext) { + // Description (string) maxLength + if (this.Description != null && this.Description.Length > 250) + { + yield return new ValidationResult("Invalid value for Description, length must be less than 250.", new [] { "Description" }); + } + + // Description (string) minLength + if (this.Description != null && this.Description.Length < 0) + { + yield return new ValidationResult("Invalid value for Description, length must be greater than 0.", new [] { "Description" }); + } + // Name (string) maxLength if (this.Name != null && this.Name.Length > 64) { @@ -309,18 +321,6 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for ShortCode, length must be greater than 3.", new [] { "ShortCode" }); } - // Description (string) maxLength - if (this.Description != null && this.Description.Length > 250) - { - yield return new ValidationResult("Invalid value for Description, length must be less than 250.", new [] { "Description" }); - } - - // Description (string) minLength - if (this.Description != null && this.Description.Length < 0) - { - yield return new ValidationResult("Invalid value for Description, length must be greater than 0.", new [] { "Description" }); - } - yield break; } } diff --git a/src/VRChat.API/Model/UpdateGroupRoleRequest.cs b/src/VRChat.API/Model/UpdateGroupRoleRequest.cs index 7ed713e6..811fe97e 100644 --- a/src/VRChat.API/Model/UpdateGroupRoleRequest.cs +++ b/src/VRChat.API/Model/UpdateGroupRoleRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,26 +35,20 @@ public partial class UpdateGroupRoleRequest : IEquatable /// /// Initializes a new instance of the class. /// - /// name. /// description. /// isSelfAssignable (default to false). - /// permissions. + /// name. /// order. - public UpdateGroupRoleRequest(string name = default, string description = default, bool isSelfAssignable = false, List permissions = default, int order = default) + /// permissions. + public UpdateGroupRoleRequest(string description = default, bool isSelfAssignable = false, string name = default, int order = default, List permissions = default) { - this.Name = name; this.Description = description; this.IsSelfAssignable = isSelfAssignable; - this.Permissions = permissions; + this.Name = name; this.Order = order; + this.Permissions = permissions; } - /// - /// Gets or Sets Name - /// - [DataMember(Name = "name", EmitDefaultValue = false)] - public string Name { get; set; } - /// /// Gets or Sets Description /// @@ -68,10 +62,10 @@ public UpdateGroupRoleRequest(string name = default, string description = defaul public bool IsSelfAssignable { get; set; } /// - /// Gets or Sets Permissions + /// Gets or Sets Name /// - [DataMember(Name = "permissions", EmitDefaultValue = false)] - public List Permissions { get; set; } + [DataMember(Name = "name", EmitDefaultValue = false)] + public string Name { get; set; } /// /// Gets or Sets Order @@ -79,6 +73,12 @@ public UpdateGroupRoleRequest(string name = default, string description = defaul [DataMember(Name = "order", EmitDefaultValue = false)] public int Order { get; set; } + /// + /// Gets or Sets Permissions + /// + [DataMember(Name = "permissions", EmitDefaultValue = false)] + public List Permissions { get; set; } + /// /// Returns the string presentation of the object /// @@ -87,11 +87,11 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class UpdateGroupRoleRequest {\n"); - sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); sb.Append(" IsSelfAssignable: ").Append(IsSelfAssignable).Append("\n"); - sb.Append(" Permissions: ").Append(Permissions).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" Order: ").Append(Order).Append("\n"); + sb.Append(" Permissions: ").Append(Permissions).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -127,11 +127,6 @@ public bool Equals(UpdateGroupRoleRequest input) return false; } return - ( - this.Name == input.Name || - (this.Name != null && - this.Name.Equals(input.Name)) - ) && ( this.Description == input.Description || (this.Description != null && @@ -142,14 +137,19 @@ public bool Equals(UpdateGroupRoleRequest input) this.IsSelfAssignable.Equals(input.IsSelfAssignable) ) && ( - this.Permissions == input.Permissions || - this.Permissions != null && - input.Permissions != null && - this.Permissions.SequenceEqual(input.Permissions) + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) ) && ( this.Order == input.Order || this.Order.Equals(input.Order) + ) && + ( + this.Permissions == input.Permissions || + this.Permissions != null && + input.Permissions != null && + this.Permissions.SequenceEqual(input.Permissions) ); } @@ -162,20 +162,20 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Name != null) - { - hashCode = (hashCode * 59) + this.Name.GetHashCode(); - } if (this.Description != null) { hashCode = (hashCode * 59) + this.Description.GetHashCode(); } hashCode = (hashCode * 59) + this.IsSelfAssignable.GetHashCode(); + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Order.GetHashCode(); if (this.Permissions != null) { hashCode = (hashCode * 59) + this.Permissions.GetHashCode(); } - hashCode = (hashCode * 59) + this.Order.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/UpdateInventoryItemRequest.cs b/src/VRChat.API/Model/UpdateInventoryItemRequest.cs index 99f4c711..7ff84804 100644 --- a/src/VRChat.API/Model/UpdateInventoryItemRequest.cs +++ b/src/VRChat.API/Model/UpdateInventoryItemRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UpdateInviteMessageRequest.cs b/src/VRChat.API/Model/UpdateInviteMessageRequest.cs index ef7f7d8b..98ddb2ac 100644 --- a/src/VRChat.API/Model/UpdateInviteMessageRequest.cs +++ b/src/VRChat.API/Model/UpdateInviteMessageRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UpdateTiliaTOSRequest.cs b/src/VRChat.API/Model/UpdateTiliaTOSRequest.cs index f6498229..81522a2a 100644 --- a/src/VRChat.API/Model/UpdateTiliaTOSRequest.cs +++ b/src/VRChat.API/Model/UpdateTiliaTOSRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UpdateUserBadgeRequest.cs b/src/VRChat.API/Model/UpdateUserBadgeRequest.cs index eaaea41e..6b1cd005 100644 --- a/src/VRChat.API/Model/UpdateUserBadgeRequest.cs +++ b/src/VRChat.API/Model/UpdateUserBadgeRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UpdateUserNoteRequest.cs b/src/VRChat.API/Model/UpdateUserNoteRequest.cs index 9fe24915..7a1db5ac 100644 --- a/src/VRChat.API/Model/UpdateUserNoteRequest.cs +++ b/src/VRChat.API/Model/UpdateUserNoteRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,24 +40,30 @@ protected UpdateUserNoteRequest() { } /// /// Initializes a new instance of the class. /// - /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). /// note (required). - public UpdateUserNoteRequest(string targetUserId = default, string note = default) + /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). + public UpdateUserNoteRequest(string note = default, string targetUserId = default) { - // to ensure "targetUserId" is required (not null) - if (targetUserId == null) - { - throw new ArgumentNullException("targetUserId is a required property for UpdateUserNoteRequest and cannot be null"); - } - this.TargetUserId = targetUserId; // to ensure "note" is required (not null) if (note == null) { throw new ArgumentNullException("note is a required property for UpdateUserNoteRequest and cannot be null"); } this.Note = note; + // to ensure "targetUserId" is required (not null) + if (targetUserId == null) + { + throw new ArgumentNullException("targetUserId is a required property for UpdateUserNoteRequest and cannot be null"); + } + this.TargetUserId = targetUserId; } + /// + /// Gets or Sets Note + /// + [DataMember(Name = "note", IsRequired = true, EmitDefaultValue = true)] + public string Note { get; set; } + /// /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. /// @@ -68,12 +74,6 @@ public UpdateUserNoteRequest(string targetUserId = default, string note = defaul [DataMember(Name = "targetUserId", IsRequired = true, EmitDefaultValue = true)] public string TargetUserId { get; set; } - /// - /// Gets or Sets Note - /// - [DataMember(Name = "note", IsRequired = true, EmitDefaultValue = true)] - public string Note { get; set; } - /// /// Returns the string presentation of the object /// @@ -82,8 +82,8 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class UpdateUserNoteRequest {\n"); - sb.Append(" TargetUserId: ").Append(TargetUserId).Append("\n"); sb.Append(" Note: ").Append(Note).Append("\n"); + sb.Append(" TargetUserId: ").Append(TargetUserId).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -119,15 +119,15 @@ public bool Equals(UpdateUserNoteRequest input) return false; } return - ( - this.TargetUserId == input.TargetUserId || - (this.TargetUserId != null && - this.TargetUserId.Equals(input.TargetUserId)) - ) && ( this.Note == input.Note || (this.Note != null && this.Note.Equals(input.Note)) + ) && + ( + this.TargetUserId == input.TargetUserId || + (this.TargetUserId != null && + this.TargetUserId.Equals(input.TargetUserId)) ); } @@ -140,14 +140,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.TargetUserId != null) - { - hashCode = (hashCode * 59) + this.TargetUserId.GetHashCode(); - } if (this.Note != null) { hashCode = (hashCode * 59) + this.Note.GetHashCode(); } + if (this.TargetUserId != null) + { + hashCode = (hashCode * 59) + this.TargetUserId.GetHashCode(); + } return hashCode; } } diff --git a/src/VRChat.API/Model/UpdateUserRequest.cs b/src/VRChat.API/Model/UpdateUserRequest.cs index a4b25215..db3f3ae8 100644 --- a/src/VRChat.API/Model/UpdateUserRequest.cs +++ b/src/VRChat.API/Model/UpdateUserRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,98 +41,93 @@ public partial class UpdateUserRequest : IEquatable, IValidat /// /// Initializes a new instance of the class. /// - /// email. - /// unsubscribe. - /// birthday. /// acceptedTOSVersion. - /// . - /// status. - /// statusDescription. /// bio. /// bioLinks. - /// pronouns. - /// isBoopingEnabled. - /// MUST be a valid VRChat /file/ url.. + /// birthday. /// These tags begin with `content_` and control content gating. + /// currentPassword. /// MUST specify currentPassword as well to change display name. - /// MUST specify currentPassword as well to revert display name. + /// email. + /// isBoopingEnabled. /// MUST specify currentPassword as well to change password. - /// currentPassword. - public UpdateUserRequest(string email = default, bool unsubscribe = default, DateOnly birthday = default, int acceptedTOSVersion = default, List tags = default, UserStatus? status = default, string statusDescription = default, string bio = default, List bioLinks = default, string pronouns = default, bool isBoopingEnabled = default, string userIcon = default, List contentFilters = default, string displayName = default, bool revertDisplayName = default, string password = default, string currentPassword = default) + /// pronouns. + /// MUST specify currentPassword as well to revert display name. + /// status. + /// statusDescription. + /// . + /// unsubscribe. + /// MUST be a valid VRChat /file/ url.. + public UpdateUserRequest(int acceptedTOSVersion = default, string bio = default, List bioLinks = default, DateOnly birthday = default, List contentFilters = default, string currentPassword = default, string displayName = default, string email = default, bool isBoopingEnabled = default, string password = default, string pronouns = default, bool revertDisplayName = default, UserStatus? status = default, string statusDescription = default, List tags = default, bool unsubscribe = default, string userIcon = default) { - this.Email = email; - this.Unsubscribe = unsubscribe; - this.Birthday = birthday; this.AcceptedTOSVersion = acceptedTOSVersion; - this.Tags = tags; - this.Status = status; - this.StatusDescription = statusDescription; this.Bio = bio; this.BioLinks = bioLinks; - this.Pronouns = pronouns; - this.IsBoopingEnabled = isBoopingEnabled; - this.UserIcon = userIcon; + this.Birthday = birthday; this.ContentFilters = contentFilters; + this.CurrentPassword = currentPassword; this.DisplayName = displayName; - this.RevertDisplayName = revertDisplayName; + this.Email = email; + this.IsBoopingEnabled = isBoopingEnabled; this.Password = password; - this.CurrentPassword = currentPassword; + this.Pronouns = pronouns; + this.RevertDisplayName = revertDisplayName; + this.Status = status; + this.StatusDescription = statusDescription; + this.Tags = tags; + this.Unsubscribe = unsubscribe; + this.UserIcon = userIcon; } /// - /// Gets or Sets Email - /// - [DataMember(Name = "email", EmitDefaultValue = false)] - public string Email { get; set; } - - /// - /// Gets or Sets Unsubscribe + /// Gets or Sets AcceptedTOSVersion /// - [DataMember(Name = "unsubscribe", EmitDefaultValue = true)] - public bool Unsubscribe { get; set; } + [DataMember(Name = "acceptedTOSVersion", EmitDefaultValue = false)] + public int AcceptedTOSVersion { get; set; } /// - /// Gets or Sets Birthday + /// Gets or Sets Bio /// - [DataMember(Name = "birthday", EmitDefaultValue = false)] - public DateOnly Birthday { get; set; } + [DataMember(Name = "bio", EmitDefaultValue = false)] + public string Bio { get; set; } /// - /// Gets or Sets AcceptedTOSVersion + /// Gets or Sets BioLinks /// - [DataMember(Name = "acceptedTOSVersion", EmitDefaultValue = false)] - public int AcceptedTOSVersion { get; set; } + [DataMember(Name = "bioLinks", EmitDefaultValue = false)] + public List BioLinks { get; set; } /// - /// + /// Gets or Sets Birthday /// - /// - [DataMember(Name = "tags", EmitDefaultValue = false)] - public List Tags { get; set; } + [DataMember(Name = "birthday", EmitDefaultValue = false)] + public DateOnly Birthday { get; set; } /// - /// Gets or Sets StatusDescription + /// These tags begin with `content_` and control content gating /// - [DataMember(Name = "statusDescription", EmitDefaultValue = false)] - public string StatusDescription { get; set; } + /// These tags begin with `content_` and control content gating + [DataMember(Name = "contentFilters", EmitDefaultValue = false)] + public List ContentFilters { get; set; } /// - /// Gets or Sets Bio + /// Gets or Sets CurrentPassword /// - [DataMember(Name = "bio", EmitDefaultValue = false)] - public string Bio { get; set; } + [DataMember(Name = "currentPassword", EmitDefaultValue = false)] + public string CurrentPassword { get; set; } /// - /// Gets or Sets BioLinks + /// MUST specify currentPassword as well to change display name /// - [DataMember(Name = "bioLinks", EmitDefaultValue = false)] - public List BioLinks { get; set; } + /// MUST specify currentPassword as well to change display name + [DataMember(Name = "displayName", EmitDefaultValue = false)] + public string DisplayName { get; set; } /// - /// Gets or Sets Pronouns + /// Gets or Sets Email /// - [DataMember(Name = "pronouns", EmitDefaultValue = false)] - public string Pronouns { get; set; } + [DataMember(Name = "email", EmitDefaultValue = false)] + public string Email { get; set; } /// /// Gets or Sets IsBoopingEnabled @@ -141,28 +136,17 @@ public UpdateUserRequest(string email = default, bool unsubscribe = default, Dat public bool IsBoopingEnabled { get; set; } /// - /// MUST be a valid VRChat /file/ url. - /// - /// MUST be a valid VRChat /file/ url. - /* - https://api.vrchat.cloud/api/1/file/file_76dc2964-0ce8-41df-b2e7-8edf994fee31/1 - */ - [DataMember(Name = "userIcon", EmitDefaultValue = false)] - public string UserIcon { get; set; } - - /// - /// These tags begin with `content_` and control content gating + /// MUST specify currentPassword as well to change password /// - /// These tags begin with `content_` and control content gating - [DataMember(Name = "contentFilters", EmitDefaultValue = false)] - public List ContentFilters { get; set; } + /// MUST specify currentPassword as well to change password + [DataMember(Name = "password", EmitDefaultValue = false)] + public string Password { get; set; } /// - /// MUST specify currentPassword as well to change display name + /// Gets or Sets Pronouns /// - /// MUST specify currentPassword as well to change display name - [DataMember(Name = "displayName", EmitDefaultValue = false)] - public string DisplayName { get; set; } + [DataMember(Name = "pronouns", EmitDefaultValue = false)] + public string Pronouns { get; set; } /// /// MUST specify currentPassword as well to revert display name @@ -172,17 +156,33 @@ public UpdateUserRequest(string email = default, bool unsubscribe = default, Dat public bool RevertDisplayName { get; set; } /// - /// MUST specify currentPassword as well to change password + /// Gets or Sets StatusDescription /// - /// MUST specify currentPassword as well to change password - [DataMember(Name = "password", EmitDefaultValue = false)] - public string Password { get; set; } + [DataMember(Name = "statusDescription", EmitDefaultValue = false)] + public string StatusDescription { get; set; } /// - /// Gets or Sets CurrentPassword + /// /// - [DataMember(Name = "currentPassword", EmitDefaultValue = false)] - public string CurrentPassword { get; set; } + /// + [DataMember(Name = "tags", EmitDefaultValue = false)] + public List Tags { get; set; } + + /// + /// Gets or Sets Unsubscribe + /// + [DataMember(Name = "unsubscribe", EmitDefaultValue = true)] + public bool Unsubscribe { get; set; } + + /// + /// MUST be a valid VRChat /file/ url. + /// + /// MUST be a valid VRChat /file/ url. + /* + https://api.vrchat.cloud/api/1/file/file_76dc2964-0ce8-41df-b2e7-8edf994fee31/1 + */ + [DataMember(Name = "userIcon", EmitDefaultValue = false)] + public string UserIcon { get; set; } /// /// Returns the string presentation of the object @@ -192,23 +192,23 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class UpdateUserRequest {\n"); - sb.Append(" Email: ").Append(Email).Append("\n"); - sb.Append(" Unsubscribe: ").Append(Unsubscribe).Append("\n"); - sb.Append(" Birthday: ").Append(Birthday).Append("\n"); sb.Append(" AcceptedTOSVersion: ").Append(AcceptedTOSVersion).Append("\n"); - sb.Append(" Tags: ").Append(Tags).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); - sb.Append(" StatusDescription: ").Append(StatusDescription).Append("\n"); sb.Append(" Bio: ").Append(Bio).Append("\n"); sb.Append(" BioLinks: ").Append(BioLinks).Append("\n"); - sb.Append(" Pronouns: ").Append(Pronouns).Append("\n"); - sb.Append(" IsBoopingEnabled: ").Append(IsBoopingEnabled).Append("\n"); - sb.Append(" UserIcon: ").Append(UserIcon).Append("\n"); + sb.Append(" Birthday: ").Append(Birthday).Append("\n"); sb.Append(" ContentFilters: ").Append(ContentFilters).Append("\n"); + sb.Append(" CurrentPassword: ").Append(CurrentPassword).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" RevertDisplayName: ").Append(RevertDisplayName).Append("\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" IsBoopingEnabled: ").Append(IsBoopingEnabled).Append("\n"); sb.Append(" Password: ").Append(Password).Append("\n"); - sb.Append(" CurrentPassword: ").Append(CurrentPassword).Append("\n"); + sb.Append(" Pronouns: ").Append(Pronouns).Append("\n"); + sb.Append(" RevertDisplayName: ").Append(RevertDisplayName).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" StatusDescription: ").Append(StatusDescription).Append("\n"); + sb.Append(" Tags: ").Append(Tags).Append("\n"); + sb.Append(" Unsubscribe: ").Append(Unsubscribe).Append("\n"); + sb.Append(" UserIcon: ").Append(UserIcon).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -245,13 +245,19 @@ public bool Equals(UpdateUserRequest input) } return ( - this.Email == input.Email || - (this.Email != null && - this.Email.Equals(input.Email)) + this.AcceptedTOSVersion == input.AcceptedTOSVersion || + this.AcceptedTOSVersion.Equals(input.AcceptedTOSVersion) ) && ( - this.Unsubscribe == input.Unsubscribe || - this.Unsubscribe.Equals(input.Unsubscribe) + this.Bio == input.Bio || + (this.Bio != null && + this.Bio.Equals(input.Bio)) + ) && + ( + this.BioLinks == input.BioLinks || + this.BioLinks != null && + input.BioLinks != null && + this.BioLinks.SequenceEqual(input.BioLinks) ) && ( this.Birthday == input.Birthday || @@ -259,34 +265,34 @@ public bool Equals(UpdateUserRequest input) this.Birthday.Equals(input.Birthday)) ) && ( - this.AcceptedTOSVersion == input.AcceptedTOSVersion || - this.AcceptedTOSVersion.Equals(input.AcceptedTOSVersion) + this.ContentFilters == input.ContentFilters || + this.ContentFilters != null && + input.ContentFilters != null && + this.ContentFilters.SequenceEqual(input.ContentFilters) ) && ( - this.Tags == input.Tags || - this.Tags != null && - input.Tags != null && - this.Tags.SequenceEqual(input.Tags) + this.CurrentPassword == input.CurrentPassword || + (this.CurrentPassword != null && + this.CurrentPassword.Equals(input.CurrentPassword)) ) && ( - this.Status == input.Status || - this.Status.Equals(input.Status) + this.DisplayName == input.DisplayName || + (this.DisplayName != null && + this.DisplayName.Equals(input.DisplayName)) ) && ( - this.StatusDescription == input.StatusDescription || - (this.StatusDescription != null && - this.StatusDescription.Equals(input.StatusDescription)) + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) ) && ( - this.Bio == input.Bio || - (this.Bio != null && - this.Bio.Equals(input.Bio)) + this.IsBoopingEnabled == input.IsBoopingEnabled || + this.IsBoopingEnabled.Equals(input.IsBoopingEnabled) ) && ( - this.BioLinks == input.BioLinks || - this.BioLinks != null && - input.BioLinks != null && - this.BioLinks.SequenceEqual(input.BioLinks) + this.Password == input.Password || + (this.Password != null && + this.Password.Equals(input.Password)) ) && ( this.Pronouns == input.Pronouns || @@ -294,38 +300,32 @@ public bool Equals(UpdateUserRequest input) this.Pronouns.Equals(input.Pronouns)) ) && ( - this.IsBoopingEnabled == input.IsBoopingEnabled || - this.IsBoopingEnabled.Equals(input.IsBoopingEnabled) - ) && - ( - this.UserIcon == input.UserIcon || - (this.UserIcon != null && - this.UserIcon.Equals(input.UserIcon)) + this.RevertDisplayName == input.RevertDisplayName || + this.RevertDisplayName.Equals(input.RevertDisplayName) ) && ( - this.ContentFilters == input.ContentFilters || - this.ContentFilters != null && - input.ContentFilters != null && - this.ContentFilters.SequenceEqual(input.ContentFilters) + this.Status == input.Status || + this.Status.Equals(input.Status) ) && ( - this.DisplayName == input.DisplayName || - (this.DisplayName != null && - this.DisplayName.Equals(input.DisplayName)) + this.StatusDescription == input.StatusDescription || + (this.StatusDescription != null && + this.StatusDescription.Equals(input.StatusDescription)) ) && ( - this.RevertDisplayName == input.RevertDisplayName || - this.RevertDisplayName.Equals(input.RevertDisplayName) + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) ) && ( - this.Password == input.Password || - (this.Password != null && - this.Password.Equals(input.Password)) + this.Unsubscribe == input.Unsubscribe || + this.Unsubscribe.Equals(input.Unsubscribe) ) && ( - this.CurrentPassword == input.CurrentPassword || - (this.CurrentPassword != null && - this.CurrentPassword.Equals(input.CurrentPassword)) + this.UserIcon == input.UserIcon || + (this.UserIcon != null && + this.UserIcon.Equals(input.UserIcon)) ); } @@ -338,25 +338,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Email != null) - { - hashCode = (hashCode * 59) + this.Email.GetHashCode(); - } - hashCode = (hashCode * 59) + this.Unsubscribe.GetHashCode(); - if (this.Birthday != null) - { - hashCode = (hashCode * 59) + this.Birthday.GetHashCode(); - } hashCode = (hashCode * 59) + this.AcceptedTOSVersion.GetHashCode(); - if (this.Tags != null) - { - hashCode = (hashCode * 59) + this.Tags.GetHashCode(); - } - hashCode = (hashCode * 59) + this.Status.GetHashCode(); - if (this.StatusDescription != null) - { - hashCode = (hashCode * 59) + this.StatusDescription.GetHashCode(); - } if (this.Bio != null) { hashCode = (hashCode * 59) + this.Bio.GetHashCode(); @@ -365,31 +347,49 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.BioLinks.GetHashCode(); } - if (this.Pronouns != null) - { - hashCode = (hashCode * 59) + this.Pronouns.GetHashCode(); - } - hashCode = (hashCode * 59) + this.IsBoopingEnabled.GetHashCode(); - if (this.UserIcon != null) + if (this.Birthday != null) { - hashCode = (hashCode * 59) + this.UserIcon.GetHashCode(); + hashCode = (hashCode * 59) + this.Birthday.GetHashCode(); } if (this.ContentFilters != null) { hashCode = (hashCode * 59) + this.ContentFilters.GetHashCode(); } + if (this.CurrentPassword != null) + { + hashCode = (hashCode * 59) + this.CurrentPassword.GetHashCode(); + } if (this.DisplayName != null) { hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); } - hashCode = (hashCode * 59) + this.RevertDisplayName.GetHashCode(); + if (this.Email != null) + { + hashCode = (hashCode * 59) + this.Email.GetHashCode(); + } + hashCode = (hashCode * 59) + this.IsBoopingEnabled.GetHashCode(); if (this.Password != null) { hashCode = (hashCode * 59) + this.Password.GetHashCode(); } - if (this.CurrentPassword != null) + if (this.Pronouns != null) { - hashCode = (hashCode * 59) + this.CurrentPassword.GetHashCode(); + hashCode = (hashCode * 59) + this.Pronouns.GetHashCode(); + } + hashCode = (hashCode * 59) + this.RevertDisplayName.GetHashCode(); + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + if (this.StatusDescription != null) + { + hashCode = (hashCode * 59) + this.StatusDescription.GetHashCode(); + } + if (this.Tags != null) + { + hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Unsubscribe.GetHashCode(); + if (this.UserIcon != null) + { + hashCode = (hashCode * 59) + this.UserIcon.GetHashCode(); } return hashCode; } diff --git a/src/VRChat.API/Model/UpdateWorldRequest.cs b/src/VRChat.API/Model/UpdateWorldRequest.cs index 54b402bd..70921a27 100644 --- a/src/VRChat.API/Model/UpdateWorldRequest.cs +++ b/src/VRChat.API/Model/UpdateWorldRequest.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/User.cs b/src/VRChat.API/Model/User.cs index 1256081e..44a9f11f 100644 --- a/src/VRChat.API/Model/User.cs +++ b/src/VRChat.API/Model/User.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -71,8 +71,8 @@ protected User() { } /// bio (required). /// bioLinks (required). /// When profilePicOverride is not empty, use it instead. (required). - /// When profilePicOverride is not empty, use it instead. (required). /// currentAvatarTags (required). + /// When profilePicOverride is not empty, use it instead. (required). /// dateJoined (required). /// developerType (required). /// A users visual display name. This is what shows up in-game, and can different from their `username`. Changing display name is restricted to a cooldown period. (required). @@ -101,7 +101,7 @@ protected User() { } /// userIcon (required). /// -| A users unique name, used during login. This is different from `displayName` which is what shows up in-game. A users `username` can never be changed.' **DEPRECATED:** VRChat API no longer return usernames of other users. [See issue by Tupper for more information](https://github.com/pypy-vrc/VRCX/issues/429).. /// WorldID be \"offline\" on User profiles if you are not friends with that user.. - public User(AgeVerificationStatus ageVerificationStatus = default, bool ageVerified = default, bool allowAvatarCopying = true, List badges = default, string bio = default, List bioLinks = default, string currentAvatarImageUrl = default, string currentAvatarThumbnailImageUrl = default, List currentAvatarTags = default, DateOnly dateJoined = default, DeveloperType developerType = default, string displayName = default, string friendKey = default, string friendRequestStatus = default, string id = default, string instanceId = default, bool isFriend = default, string lastActivity = default, string lastLogin = default, string lastMobile = default, string lastPlatform = default, string location = default, string note = default, string platform = default, string profilePicOverride = default, string profilePicOverrideThumbnail = default, string pronouns = default, UserState state = default, UserStatus status = default, string statusDescription = default, List tags = default, string travelingToInstance = default, string travelingToLocation = default, string travelingToWorld = default, string userIcon = default, string username = default, string worldId = default) + public User(AgeVerificationStatus ageVerificationStatus = default, bool ageVerified = default, bool allowAvatarCopying = true, List badges = default, string bio = default, List bioLinks = default, string currentAvatarImageUrl = default, List currentAvatarTags = default, string currentAvatarThumbnailImageUrl = default, DateOnly dateJoined = default, DeveloperType developerType = default, string displayName = default, string friendKey = default, string friendRequestStatus = default, string id = default, string instanceId = default, bool isFriend = default, string lastActivity = default, string lastLogin = default, string lastMobile = default, string lastPlatform = default, string location = default, string note = default, string platform = default, string profilePicOverride = default, string profilePicOverrideThumbnail = default, string pronouns = default, UserState state = default, UserStatus status = default, string statusDescription = default, List tags = default, string travelingToInstance = default, string travelingToLocation = default, string travelingToWorld = default, string userIcon = default, string username = default, string worldId = default) { this.AgeVerificationStatus = ageVerificationStatus; this.AgeVerified = ageVerified; @@ -124,18 +124,18 @@ public User(AgeVerificationStatus ageVerificationStatus = default, bool ageVerif throw new ArgumentNullException("currentAvatarImageUrl is a required property for User and cannot be null"); } this.CurrentAvatarImageUrl = currentAvatarImageUrl; - // to ensure "currentAvatarThumbnailImageUrl" is required (not null) - if (currentAvatarThumbnailImageUrl == null) - { - throw new ArgumentNullException("currentAvatarThumbnailImageUrl is a required property for User and cannot be null"); - } - this.CurrentAvatarThumbnailImageUrl = currentAvatarThumbnailImageUrl; // to ensure "currentAvatarTags" is required (not null) if (currentAvatarTags == null) { throw new ArgumentNullException("currentAvatarTags is a required property for User and cannot be null"); } this.CurrentAvatarTags = currentAvatarTags; + // to ensure "currentAvatarThumbnailImageUrl" is required (not null) + if (currentAvatarThumbnailImageUrl == null) + { + throw new ArgumentNullException("currentAvatarThumbnailImageUrl is a required property for User and cannot be null"); + } + this.CurrentAvatarThumbnailImageUrl = currentAvatarThumbnailImageUrl; this.DateJoined = dateJoined; this.DeveloperType = developerType; // to ensure "displayName" is required (not null) @@ -269,6 +269,12 @@ public User(AgeVerificationStatus ageVerificationStatus = default, bool ageVerif [DataMember(Name = "currentAvatarImageUrl", IsRequired = true, EmitDefaultValue = true)] public string CurrentAvatarImageUrl { get; set; } + /// + /// Gets or Sets CurrentAvatarTags + /// + [DataMember(Name = "currentAvatarTags", IsRequired = true, EmitDefaultValue = true)] + public List CurrentAvatarTags { get; set; } + /// /// When profilePicOverride is not empty, use it instead. /// @@ -279,12 +285,6 @@ public User(AgeVerificationStatus ageVerificationStatus = default, bool ageVerif [DataMember(Name = "currentAvatarThumbnailImageUrl", IsRequired = true, EmitDefaultValue = true)] public string CurrentAvatarThumbnailImageUrl { get; set; } - /// - /// Gets or Sets CurrentAvatarTags - /// - [DataMember(Name = "currentAvatarTags", IsRequired = true, EmitDefaultValue = true)] - public List CurrentAvatarTags { get; set; } - /// /// Gets or Sets DateJoined /// @@ -477,8 +477,8 @@ public override string ToString() sb.Append(" Bio: ").Append(Bio).Append("\n"); sb.Append(" BioLinks: ").Append(BioLinks).Append("\n"); sb.Append(" CurrentAvatarImageUrl: ").Append(CurrentAvatarImageUrl).Append("\n"); - sb.Append(" CurrentAvatarThumbnailImageUrl: ").Append(CurrentAvatarThumbnailImageUrl).Append("\n"); sb.Append(" CurrentAvatarTags: ").Append(CurrentAvatarTags).Append("\n"); + sb.Append(" CurrentAvatarThumbnailImageUrl: ").Append(CurrentAvatarThumbnailImageUrl).Append("\n"); sb.Append(" DateJoined: ").Append(DateJoined).Append("\n"); sb.Append(" DeveloperType: ").Append(DeveloperType).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); @@ -576,17 +576,17 @@ public bool Equals(User input) (this.CurrentAvatarImageUrl != null && this.CurrentAvatarImageUrl.Equals(input.CurrentAvatarImageUrl)) ) && - ( - this.CurrentAvatarThumbnailImageUrl == input.CurrentAvatarThumbnailImageUrl || - (this.CurrentAvatarThumbnailImageUrl != null && - this.CurrentAvatarThumbnailImageUrl.Equals(input.CurrentAvatarThumbnailImageUrl)) - ) && ( this.CurrentAvatarTags == input.CurrentAvatarTags || this.CurrentAvatarTags != null && input.CurrentAvatarTags != null && this.CurrentAvatarTags.SequenceEqual(input.CurrentAvatarTags) ) && + ( + this.CurrentAvatarThumbnailImageUrl == input.CurrentAvatarThumbnailImageUrl || + (this.CurrentAvatarThumbnailImageUrl != null && + this.CurrentAvatarThumbnailImageUrl.Equals(input.CurrentAvatarThumbnailImageUrl)) + ) && ( this.DateJoined == input.DateJoined || (this.DateJoined != null && @@ -754,14 +754,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CurrentAvatarImageUrl.GetHashCode(); } - if (this.CurrentAvatarThumbnailImageUrl != null) - { - hashCode = (hashCode * 59) + this.CurrentAvatarThumbnailImageUrl.GetHashCode(); - } if (this.CurrentAvatarTags != null) { hashCode = (hashCode * 59) + this.CurrentAvatarTags.GetHashCode(); } + if (this.CurrentAvatarThumbnailImageUrl != null) + { + hashCode = (hashCode * 59) + this.CurrentAvatarThumbnailImageUrl.GetHashCode(); + } if (this.DateJoined != null) { hashCode = (hashCode * 59) + this.DateJoined.GetHashCode(); diff --git a/src/VRChat.API/Model/UserCreditsEligible.cs b/src/VRChat.API/Model/UserCreditsEligible.cs index ee8235b7..0621b0bb 100644 --- a/src/VRChat.API/Model/UserCreditsEligible.cs +++ b/src/VRChat.API/Model/UserCreditsEligible.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UserExists.cs b/src/VRChat.API/Model/UserExists.cs index ecc4f253..72b8c619 100644 --- a/src/VRChat.API/Model/UserExists.cs +++ b/src/VRChat.API/Model/UserExists.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,21 +40,14 @@ protected UserExists() { } /// /// Initializes a new instance of the class. /// - /// Status if a user exist with that username or userId. (required) (default to false). /// Is the username valid? (default to false). - public UserExists(bool varUserExists = false, bool nameOk = false) + /// Status if a user exist with that username or userId. (required) (default to false). + public UserExists(bool nameOk = false, bool varUserExists = false) { this.VarUserExists = varUserExists; this.NameOk = nameOk; } - /// - /// Status if a user exist with that username or userId. - /// - /// Status if a user exist with that username or userId. - [DataMember(Name = "userExists", IsRequired = true, EmitDefaultValue = true)] - public bool VarUserExists { get; set; } - /// /// Is the username valid? /// @@ -62,6 +55,13 @@ public UserExists(bool varUserExists = false, bool nameOk = false) [DataMember(Name = "nameOk", EmitDefaultValue = true)] public bool NameOk { get; set; } + /// + /// Status if a user exist with that username or userId. + /// + /// Status if a user exist with that username or userId. + [DataMember(Name = "userExists", IsRequired = true, EmitDefaultValue = true)] + public bool VarUserExists { get; set; } + /// /// Returns the string presentation of the object /// @@ -70,8 +70,8 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class UserExists {\n"); - sb.Append(" VarUserExists: ").Append(VarUserExists).Append("\n"); sb.Append(" NameOk: ").Append(NameOk).Append("\n"); + sb.Append(" VarUserExists: ").Append(VarUserExists).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -107,13 +107,13 @@ public bool Equals(UserExists input) return false; } return - ( - this.VarUserExists == input.VarUserExists || - this.VarUserExists.Equals(input.VarUserExists) - ) && ( this.NameOk == input.NameOk || this.NameOk.Equals(input.NameOk) + ) && + ( + this.VarUserExists == input.VarUserExists || + this.VarUserExists.Equals(input.VarUserExists) ); } @@ -126,8 +126,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.VarUserExists.GetHashCode(); hashCode = (hashCode * 59) + this.NameOk.GetHashCode(); + hashCode = (hashCode * 59) + this.VarUserExists.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/UserNote.cs b/src/VRChat.API/Model/UserNote.cs index 7d9a411e..7b965c8b 100644 --- a/src/VRChat.API/Model/UserNote.cs +++ b/src/VRChat.API/Model/UserNote.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UserNoteTargetUser.cs b/src/VRChat.API/Model/UserNoteTargetUser.cs index 6e3f6c8a..2ba3513a 100644 --- a/src/VRChat.API/Model/UserNoteTargetUser.cs +++ b/src/VRChat.API/Model/UserNoteTargetUser.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,22 +35,31 @@ public partial class UserNoteTargetUser : IEquatable, IValid /// /// Initializes a new instance of the class. /// + /// id. /// currentAvatarTags. /// When profilePicOverride is not empty, use it instead.. /// displayName. - /// id. /// profilePicOverride. /// userIcon. - public UserNoteTargetUser(List currentAvatarTags = default, string currentAvatarThumbnailImageUrl = default, string displayName = default, string id = default, string profilePicOverride = default, string userIcon = default) + public UserNoteTargetUser(string id = default, List currentAvatarTags = default, string currentAvatarThumbnailImageUrl = default, string displayName = default, string profilePicOverride = default, string userIcon = default) { + this.Id = id; this.CurrentAvatarTags = currentAvatarTags; this.CurrentAvatarThumbnailImageUrl = currentAvatarThumbnailImageUrl; this.DisplayName = displayName; - this.Id = id; this.ProfilePicOverride = profilePicOverride; this.UserIcon = userIcon; } + /// + /// Gets or Sets Id + /// + /* + unt_e9074848-d107-4019-b4aa-bbd19e67660d + */ + [DataMember(Name = "id", EmitDefaultValue = false)] + public string Id { get; set; } + /// /// Gets or Sets CurrentAvatarTags /// @@ -73,15 +82,6 @@ public UserNoteTargetUser(List currentAvatarTags = default, string curre [DataMember(Name = "displayName", EmitDefaultValue = false)] public string DisplayName { get; set; } - /// - /// Gets or Sets Id - /// - /* - unt_e9074848-d107-4019-b4aa-bbd19e67660d - */ - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } - /// /// Gets or Sets ProfilePicOverride /// @@ -102,10 +102,10 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class UserNoteTargetUser {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" CurrentAvatarTags: ").Append(CurrentAvatarTags).Append("\n"); sb.Append(" CurrentAvatarThumbnailImageUrl: ").Append(CurrentAvatarThumbnailImageUrl).Append("\n"); sb.Append(" DisplayName: ").Append(DisplayName).Append("\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" ProfilePicOverride: ").Append(ProfilePicOverride).Append("\n"); sb.Append(" UserIcon: ").Append(UserIcon).Append("\n"); sb.Append("}\n"); @@ -143,6 +143,11 @@ public bool Equals(UserNoteTargetUser input) return false; } return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && ( this.CurrentAvatarTags == input.CurrentAvatarTags || this.CurrentAvatarTags != null && @@ -159,11 +164,6 @@ public bool Equals(UserNoteTargetUser input) (this.DisplayName != null && this.DisplayName.Equals(input.DisplayName)) ) && - ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) - ) && ( this.ProfilePicOverride == input.ProfilePicOverride || (this.ProfilePicOverride != null && @@ -185,6 +185,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } if (this.CurrentAvatarTags != null) { hashCode = (hashCode * 59) + this.CurrentAvatarTags.GetHashCode(); @@ -197,10 +201,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.DisplayName.GetHashCode(); } - if (this.Id != null) - { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); - } if (this.ProfilePicOverride != null) { hashCode = (hashCode * 59) + this.ProfilePicOverride.GetHashCode(); diff --git a/src/VRChat.API/Model/UserState.cs b/src/VRChat.API/Model/UserState.cs index cadefe0d..97dde364 100644 --- a/src/VRChat.API/Model/UserState.cs +++ b/src/VRChat.API/Model/UserState.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -34,16 +34,16 @@ namespace VRChat.API.Model public enum UserState { /// - /// Enum Offline for value: offline + /// Enum Active for value: active /// - [EnumMember(Value = "offline")] - Offline = 1, + [EnumMember(Value = "active")] + Active = 1, /// - /// Enum Active for value: active + /// Enum Offline for value: offline /// - [EnumMember(Value = "active")] - Active = 2, + [EnumMember(Value = "offline")] + Offline = 2, /// /// Enum Online for value: online diff --git a/src/VRChat.API/Model/UserStatus.cs b/src/VRChat.API/Model/UserStatus.cs index 69871619..34f3cb6c 100644 --- a/src/VRChat.API/Model/UserStatus.cs +++ b/src/VRChat.API/Model/UserStatus.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,23 +39,23 @@ public enum UserStatus [EnumMember(Value = "active")] Active = 1, - /// - /// Enum JoinMe for value: join me - /// - [EnumMember(Value = "join me")] - JoinMe = 2, - /// /// Enum AskMe for value: ask me /// [EnumMember(Value = "ask me")] - AskMe = 3, + AskMe = 2, /// /// Enum Busy for value: busy /// [EnumMember(Value = "busy")] - Busy = 4, + Busy = 3, + + /// + /// Enum JoinMe for value: join me + /// + [EnumMember(Value = "join me")] + JoinMe = 4, /// /// Enum Offline for value: offline diff --git a/src/VRChat.API/Model/UserSubscription.cs b/src/VRChat.API/Model/UserSubscription.cs index cd0bd14b..c2714a72 100644 --- a/src/VRChat.API/Model/UserSubscription.cs +++ b/src/VRChat.API/Model/UserSubscription.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -52,180 +52,180 @@ protected UserSubscription() { } /// /// Initializes a new instance of the class. /// - /// id (required). - /// transactionId (required). - /// Which \"Store\" it came from. Right now only Stores are \"Steam\" and \"Admin\". (required). - /// steamItemId. + /// active (required) (default to true). /// amount (required). + /// createdAt (required). /// description (required). + /// expires (required). + /// id (required). + /// isBulkGift (required) (default to false). + /// isGift (required) (default to false). + /// licenseGroups (required). /// period (required). - /// tier (required). - /// active (required) (default to true). - /// status (required). /// starts. - /// expires (required). - /// createdAt (required). + /// status (required). + /// steamItemId. + /// Which \"Store\" it came from. Right now only Stores are \"Steam\" and \"Admin\". (required). + /// tier (required). + /// transactionId (required). /// updatedAt (required). - /// licenseGroups (required). - /// isGift (required) (default to false). - /// isBulkGift (required) (default to false). - public UserSubscription(string id = default, string transactionId = default, string store = default, string steamItemId = default, decimal amount = default, string description = default, SubscriptionPeriod period = default, int tier = default, bool active = true, TransactionStatus status = default, string starts = default, DateTime expires = default, DateTime createdAt = default, DateTime updatedAt = default, List licenseGroups = default, bool isGift = false, bool isBulkGift = false) + public UserSubscription(bool active = true, decimal amount = default, DateTime createdAt = default, string description = default, DateTime expires = default, string id = default, bool isBulkGift = false, bool isGift = false, List licenseGroups = default, SubscriptionPeriod period = default, string starts = default, TransactionStatus status = default, string steamItemId = default, string store = default, int tier = default, string transactionId = default, DateTime updatedAt = default) { + this.Active = active; + this.Amount = amount; + this.CreatedAt = createdAt; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for UserSubscription and cannot be null"); + } + this.Description = description; + this.Expires = expires; // to ensure "id" is required (not null) if (id == null) { throw new ArgumentNullException("id is a required property for UserSubscription and cannot be null"); } this.Id = id; - // to ensure "transactionId" is required (not null) - if (transactionId == null) + this.IsBulkGift = isBulkGift; + this.IsGift = isGift; + // to ensure "licenseGroups" is required (not null) + if (licenseGroups == null) { - throw new ArgumentNullException("transactionId is a required property for UserSubscription and cannot be null"); + throw new ArgumentNullException("licenseGroups is a required property for UserSubscription and cannot be null"); } - this.TransactionId = transactionId; + this.LicenseGroups = licenseGroups; + this.Period = period; + this.Status = status; // to ensure "store" is required (not null) if (store == null) { throw new ArgumentNullException("store is a required property for UserSubscription and cannot be null"); } this.Store = store; - this.Amount = amount; - // to ensure "description" is required (not null) - if (description == null) - { - throw new ArgumentNullException("description is a required property for UserSubscription and cannot be null"); - } - this.Description = description; - this.Period = period; this.Tier = tier; - this.Active = active; - this.Status = status; - this.Expires = expires; - this.CreatedAt = createdAt; - this.UpdatedAt = updatedAt; - // to ensure "licenseGroups" is required (not null) - if (licenseGroups == null) + // to ensure "transactionId" is required (not null) + if (transactionId == null) { - throw new ArgumentNullException("licenseGroups is a required property for UserSubscription and cannot be null"); + throw new ArgumentNullException("transactionId is a required property for UserSubscription and cannot be null"); } - this.LicenseGroups = licenseGroups; - this.IsGift = isGift; - this.IsBulkGift = isBulkGift; - this.SteamItemId = steamItemId; + this.TransactionId = transactionId; + this.UpdatedAt = updatedAt; this.Starts = starts; + this.SteamItemId = steamItemId; } /// - /// Gets or Sets Id + /// Gets or Sets Active /// - /* - vrchatplus-yearly - */ - [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] - public string Id { get; set; } + [DataMember(Name = "active", IsRequired = true, EmitDefaultValue = true)] + public bool Active { get; set; } /// - /// Gets or Sets TransactionId + /// Gets or Sets Amount /// /* - txn_e5c72948-e735-4880-8245-24b2a41198b0 + 9999 */ - [DataMember(Name = "transactionId", IsRequired = true, EmitDefaultValue = true)] - public string TransactionId { get; set; } + [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] + public decimal Amount { get; set; } /// - /// Which \"Store\" it came from. Right now only Stores are \"Steam\" and \"Admin\". + /// Gets or Sets CreatedAt /// - /// Which \"Store\" it came from. Right now only Stores are \"Steam\" and \"Admin\". - /* - Steam - */ - [DataMember(Name = "store", IsRequired = true, EmitDefaultValue = true)] - public string Store { get; set; } + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } /// - /// Gets or Sets SteamItemId + /// Gets or Sets Description /// /* - 5000 + VRChat Plus (Yearly) */ - [DataMember(Name = "steamItemId", EmitDefaultValue = false)] - public string SteamItemId { get; set; } + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } /// - /// Gets or Sets Amount + /// Gets or Sets Expires /// - /* - 9999 - */ - [DataMember(Name = "amount", IsRequired = true, EmitDefaultValue = true)] - public decimal Amount { get; set; } + [DataMember(Name = "expires", IsRequired = true, EmitDefaultValue = true)] + public DateTime Expires { get; set; } /// - /// Gets or Sets Description + /// Gets or Sets Id /// /* - VRChat Plus (Yearly) + vrchatplus-yearly */ - [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] - public string Description { get; set; } + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } /// - /// Gets or Sets Tier + /// Gets or Sets IsBulkGift /// - /* - 5 - */ - [DataMember(Name = "tier", IsRequired = true, EmitDefaultValue = true)] - public int Tier { get; set; } + [DataMember(Name = "isBulkGift", IsRequired = true, EmitDefaultValue = true)] + public bool IsBulkGift { get; set; } /// - /// Gets or Sets Active + /// Gets or Sets IsGift /// - [DataMember(Name = "active", IsRequired = true, EmitDefaultValue = true)] - public bool Active { get; set; } + [DataMember(Name = "isGift", IsRequired = true, EmitDefaultValue = true)] + public bool IsGift { get; set; } /// - /// Gets or Sets Starts + /// Gets or Sets LicenseGroups /// - [DataMember(Name = "starts", EmitDefaultValue = false)] - public string Starts { get; set; } + [DataMember(Name = "licenseGroups", IsRequired = true, EmitDefaultValue = true)] + public List LicenseGroups { get; set; } /// - /// Gets or Sets Expires + /// Gets or Sets Starts /// - [DataMember(Name = "expires", IsRequired = true, EmitDefaultValue = true)] - public DateTime Expires { get; set; } + [DataMember(Name = "starts", EmitDefaultValue = false)] + public string Starts { get; set; } /// - /// Gets or Sets CreatedAt + /// Gets or Sets SteamItemId /// - [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] - public DateTime CreatedAt { get; set; } + /* + 5000 + */ + [DataMember(Name = "steamItemId", EmitDefaultValue = false)] + public string SteamItemId { get; set; } /// - /// Gets or Sets UpdatedAt + /// Which \"Store\" it came from. Right now only Stores are \"Steam\" and \"Admin\". /// - [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] - public DateTime UpdatedAt { get; set; } + /// Which \"Store\" it came from. Right now only Stores are \"Steam\" and \"Admin\". + /* + Steam + */ + [DataMember(Name = "store", IsRequired = true, EmitDefaultValue = true)] + public string Store { get; set; } /// - /// Gets or Sets LicenseGroups + /// Gets or Sets Tier /// - [DataMember(Name = "licenseGroups", IsRequired = true, EmitDefaultValue = true)] - public List LicenseGroups { get; set; } + /* + 5 + */ + [DataMember(Name = "tier", IsRequired = true, EmitDefaultValue = true)] + public int Tier { get; set; } /// - /// Gets or Sets IsGift + /// Gets or Sets TransactionId /// - [DataMember(Name = "isGift", IsRequired = true, EmitDefaultValue = true)] - public bool IsGift { get; set; } + /* + txn_e5c72948-e735-4880-8245-24b2a41198b0 + */ + [DataMember(Name = "transactionId", IsRequired = true, EmitDefaultValue = true)] + public string TransactionId { get; set; } /// - /// Gets or Sets IsBulkGift + /// Gets or Sets UpdatedAt /// - [DataMember(Name = "isBulkGift", IsRequired = true, EmitDefaultValue = true)] - public bool IsBulkGift { get; set; } + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } /// /// Returns the string presentation of the object @@ -235,23 +235,23 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class UserSubscription {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); - sb.Append(" TransactionId: ").Append(TransactionId).Append("\n"); - sb.Append(" Store: ").Append(Store).Append("\n"); - sb.Append(" SteamItemId: ").Append(SteamItemId).Append("\n"); + sb.Append(" Active: ").Append(Active).Append("\n"); sb.Append(" Amount: ").Append(Amount).Append("\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Expires: ").Append(Expires).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" IsBulkGift: ").Append(IsBulkGift).Append("\n"); + sb.Append(" IsGift: ").Append(IsGift).Append("\n"); + sb.Append(" LicenseGroups: ").Append(LicenseGroups).Append("\n"); sb.Append(" Period: ").Append(Period).Append("\n"); - sb.Append(" Tier: ").Append(Tier).Append("\n"); - sb.Append(" Active: ").Append(Active).Append("\n"); - sb.Append(" Status: ").Append(Status).Append("\n"); sb.Append(" Starts: ").Append(Starts).Append("\n"); - sb.Append(" Expires: ").Append(Expires).Append("\n"); - sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" SteamItemId: ").Append(SteamItemId).Append("\n"); + sb.Append(" Store: ").Append(Store).Append("\n"); + sb.Append(" Tier: ").Append(Tier).Append("\n"); + sb.Append(" TransactionId: ").Append(TransactionId).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); - sb.Append(" LicenseGroups: ").Append(LicenseGroups).Append("\n"); - sb.Append(" IsGift: ").Append(IsGift).Append("\n"); - sb.Append(" IsBulkGift: ").Append(IsBulkGift).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -288,49 +288,50 @@ public bool Equals(UserSubscription input) } return ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) + this.Active == input.Active || + this.Active.Equals(input.Active) ) && ( - this.TransactionId == input.TransactionId || - (this.TransactionId != null && - this.TransactionId.Equals(input.TransactionId)) + this.Amount == input.Amount || + this.Amount.Equals(input.Amount) ) && ( - this.Store == input.Store || - (this.Store != null && - this.Store.Equals(input.Store)) + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) ) && ( - this.SteamItemId == input.SteamItemId || - (this.SteamItemId != null && - this.SteamItemId.Equals(input.SteamItemId)) + this.Description == input.Description || + (this.Description != null && + this.Description.Equals(input.Description)) ) && ( - this.Amount == input.Amount || - this.Amount.Equals(input.Amount) + this.Expires == input.Expires || + (this.Expires != null && + this.Expires.Equals(input.Expires)) ) && ( - this.Description == input.Description || - (this.Description != null && - this.Description.Equals(input.Description)) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.Period == input.Period || - this.Period.Equals(input.Period) + this.IsBulkGift == input.IsBulkGift || + this.IsBulkGift.Equals(input.IsBulkGift) ) && ( - this.Tier == input.Tier || - this.Tier.Equals(input.Tier) + this.IsGift == input.IsGift || + this.IsGift.Equals(input.IsGift) ) && ( - this.Active == input.Active || - this.Active.Equals(input.Active) + this.LicenseGroups == input.LicenseGroups || + this.LicenseGroups != null && + input.LicenseGroups != null && + this.LicenseGroups.SequenceEqual(input.LicenseGroups) ) && ( - this.Status == input.Status || - this.Status.Equals(input.Status) + this.Period == input.Period || + this.Period.Equals(input.Period) ) && ( this.Starts == input.Starts || @@ -338,33 +339,32 @@ public bool Equals(UserSubscription input) this.Starts.Equals(input.Starts)) ) && ( - this.Expires == input.Expires || - (this.Expires != null && - this.Expires.Equals(input.Expires)) + this.Status == input.Status || + this.Status.Equals(input.Status) ) && ( - this.CreatedAt == input.CreatedAt || - (this.CreatedAt != null && - this.CreatedAt.Equals(input.CreatedAt)) + this.SteamItemId == input.SteamItemId || + (this.SteamItemId != null && + this.SteamItemId.Equals(input.SteamItemId)) ) && ( - this.UpdatedAt == input.UpdatedAt || - (this.UpdatedAt != null && - this.UpdatedAt.Equals(input.UpdatedAt)) + this.Store == input.Store || + (this.Store != null && + this.Store.Equals(input.Store)) ) && ( - this.LicenseGroups == input.LicenseGroups || - this.LicenseGroups != null && - input.LicenseGroups != null && - this.LicenseGroups.SequenceEqual(input.LicenseGroups) + this.Tier == input.Tier || + this.Tier.Equals(input.Tier) ) && ( - this.IsGift == input.IsGift || - this.IsGift.Equals(input.IsGift) + this.TransactionId == input.TransactionId || + (this.TransactionId != null && + this.TransactionId.Equals(input.TransactionId)) ) && ( - this.IsBulkGift == input.IsBulkGift || - this.IsBulkGift.Equals(input.IsBulkGift) + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) ); } @@ -377,53 +377,53 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) + hashCode = (hashCode * 59) + this.Active.GetHashCode(); + hashCode = (hashCode * 59) + this.Amount.GetHashCode(); + if (this.CreatedAt != null) { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } - if (this.TransactionId != null) + if (this.Description != null) { - hashCode = (hashCode * 59) + this.TransactionId.GetHashCode(); + hashCode = (hashCode * 59) + this.Description.GetHashCode(); } - if (this.Store != null) + if (this.Expires != null) { - hashCode = (hashCode * 59) + this.Store.GetHashCode(); + hashCode = (hashCode * 59) + this.Expires.GetHashCode(); } - if (this.SteamItemId != null) + if (this.Id != null) { - hashCode = (hashCode * 59) + this.SteamItemId.GetHashCode(); + hashCode = (hashCode * 59) + this.Id.GetHashCode(); } - hashCode = (hashCode * 59) + this.Amount.GetHashCode(); - if (this.Description != null) + hashCode = (hashCode * 59) + this.IsBulkGift.GetHashCode(); + hashCode = (hashCode * 59) + this.IsGift.GetHashCode(); + if (this.LicenseGroups != null) { - hashCode = (hashCode * 59) + this.Description.GetHashCode(); + hashCode = (hashCode * 59) + this.LicenseGroups.GetHashCode(); } hashCode = (hashCode * 59) + this.Period.GetHashCode(); - hashCode = (hashCode * 59) + this.Tier.GetHashCode(); - hashCode = (hashCode * 59) + this.Active.GetHashCode(); - hashCode = (hashCode * 59) + this.Status.GetHashCode(); if (this.Starts != null) { hashCode = (hashCode * 59) + this.Starts.GetHashCode(); } - if (this.Expires != null) + hashCode = (hashCode * 59) + this.Status.GetHashCode(); + if (this.SteamItemId != null) { - hashCode = (hashCode * 59) + this.Expires.GetHashCode(); + hashCode = (hashCode * 59) + this.SteamItemId.GetHashCode(); } - if (this.CreatedAt != null) + if (this.Store != null) { - hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.Store.GetHashCode(); } - if (this.UpdatedAt != null) + hashCode = (hashCode * 59) + this.Tier.GetHashCode(); + if (this.TransactionId != null) { - hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + hashCode = (hashCode * 59) + this.TransactionId.GetHashCode(); } - if (this.LicenseGroups != null) + if (this.UpdatedAt != null) { - hashCode = (hashCode * 59) + this.LicenseGroups.GetHashCode(); + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); } - hashCode = (hashCode * 59) + this.IsGift.GetHashCode(); - hashCode = (hashCode * 59) + this.IsBulkGift.GetHashCode(); return hashCode; } } @@ -441,18 +441,18 @@ IEnumerable IValidatableObject.Validate(ValidationContext vali yield return new ValidationResult("Invalid value for Id, length must be greater than 1.", new [] { "Id" }); } - // Store (string) minLength - if (this.Store != null && this.Store.Length < 1) - { - yield return new ValidationResult("Invalid value for Store, length must be greater than 1.", new [] { "Store" }); - } - // SteamItemId (string) minLength if (this.SteamItemId != null && this.SteamItemId.Length < 1) { yield return new ValidationResult("Invalid value for SteamItemId, length must be greater than 1.", new [] { "SteamItemId" }); } + // Store (string) minLength + if (this.Store != null && this.Store.Length < 1) + { + yield return new ValidationResult("Invalid value for Store, length must be greater than 1.", new [] { "Store" }); + } + yield break; } } diff --git a/src/VRChat.API/Model/UserSubscriptionEligible.cs b/src/VRChat.API/Model/UserSubscriptionEligible.cs index 510fba44..c20ac709 100644 --- a/src/VRChat.API/Model/UserSubscriptionEligible.cs +++ b/src/VRChat.API/Model/UserSubscriptionEligible.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Verify2FAEmailCodeResult.cs b/src/VRChat.API/Model/Verify2FAEmailCodeResult.cs index 35c89ce2..acb96f4e 100644 --- a/src/VRChat.API/Model/Verify2FAEmailCodeResult.cs +++ b/src/VRChat.API/Model/Verify2FAEmailCodeResult.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Verify2FAResult.cs b/src/VRChat.API/Model/Verify2FAResult.cs index b8cff235..c4171d5a 100644 --- a/src/VRChat.API/Model/Verify2FAResult.cs +++ b/src/VRChat.API/Model/Verify2FAResult.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,26 +40,26 @@ protected Verify2FAResult() { } /// /// Initializes a new instance of the class. /// - /// verified (required). /// enabled (default to true). - public Verify2FAResult(bool verified = default, bool enabled = true) + /// verified (required). + public Verify2FAResult(bool enabled = true, bool verified = default) { this.Verified = verified; this.Enabled = enabled; } - /// - /// Gets or Sets Verified - /// - [DataMember(Name = "verified", IsRequired = true, EmitDefaultValue = true)] - public bool Verified { get; set; } - /// /// Gets or Sets Enabled /// [DataMember(Name = "enabled", EmitDefaultValue = true)] public bool Enabled { get; set; } + /// + /// Gets or Sets Verified + /// + [DataMember(Name = "verified", IsRequired = true, EmitDefaultValue = true)] + public bool Verified { get; set; } + /// /// Returns the string presentation of the object /// @@ -68,8 +68,8 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class Verify2FAResult {\n"); - sb.Append(" Verified: ").Append(Verified).Append("\n"); sb.Append(" Enabled: ").Append(Enabled).Append("\n"); + sb.Append(" Verified: ").Append(Verified).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -105,13 +105,13 @@ public bool Equals(Verify2FAResult input) return false; } return - ( - this.Verified == input.Verified || - this.Verified.Equals(input.Verified) - ) && ( this.Enabled == input.Enabled || this.Enabled.Equals(input.Enabled) + ) && + ( + this.Verified == input.Verified || + this.Verified.Equals(input.Verified) ); } @@ -124,8 +124,8 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Verified.GetHashCode(); hashCode = (hashCode * 59) + this.Enabled.GetHashCode(); + hashCode = (hashCode * 59) + this.Verified.GetHashCode(); return hashCode; } } diff --git a/src/VRChat.API/Model/VerifyAuthTokenResult.cs b/src/VRChat.API/Model/VerifyAuthTokenResult.cs index 53c60bfb..91d239b5 100644 --- a/src/VRChat.API/Model/VerifyAuthTokenResult.cs +++ b/src/VRChat.API/Model/VerifyAuthTokenResult.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/World.cs b/src/VRChat.API/Model/World.cs index c57933af..ecb85144 100644 --- a/src/VRChat.API/Model/World.cs +++ b/src/VRChat.API/Model/World.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -49,7 +49,6 @@ protected World() { } /// A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. (required). /// authorName (required). /// capacity (required). - /// recommendedCapacity (required). /// createdAt (required). /// defaultContentSettings. /// description (required). @@ -69,17 +68,18 @@ protected World() { } /// Will always be `0` when unauthenticated. (default to 0). /// Will always be `0` when unauthenticated. (default to 0). /// publicationDate (required). + /// recommendedCapacity (required). /// releaseStatus (required). /// storeId. /// (required). /// thumbnailImageUrl (required). + /// udonProducts. /// Empty if unauthenticated.. /// updatedAt (required). /// urlList. /// varVersion (required) (default to 0). /// visits (required) (default to 0). - /// udonProducts. - public World(string authorId = default, string authorName = default, int capacity = default, int recommendedCapacity = default, DateTime createdAt = default, InstanceContentSettings defaultContentSettings = default, string description = default, int favorites = 0, bool featured = false, int heat = 0, string id = default, string imageUrl = default, List> instances = default, string labsPublicationDate = default, string name = default, string varNamespace = default, int occupants = 0, string organization = @"vrchat", int popularity = 0, string previewYoutubeId = default, int privateOccupants = 0, int publicOccupants = 0, string publicationDate = default, ReleaseStatus releaseStatus = default, string storeId = default, List tags = default, string thumbnailImageUrl = default, List unityPackages = default, DateTime updatedAt = default, List urlList = default, int varVersion = 0, int visits = 0, List udonProducts = default) + public World(string authorId = default, string authorName = default, int capacity = default, DateTime createdAt = default, InstanceContentSettings defaultContentSettings = default, string description = default, int favorites = 0, bool featured = false, int heat = 0, string id = default, string imageUrl = default, List> instances = default, string labsPublicationDate = default, string name = default, string varNamespace = default, int occupants = 0, string organization = @"vrchat", int popularity = 0, string previewYoutubeId = default, int privateOccupants = 0, int publicOccupants = 0, string publicationDate = default, int recommendedCapacity = default, ReleaseStatus releaseStatus = default, string storeId = default, List tags = default, string thumbnailImageUrl = default, List udonProducts = default, List unityPackages = default, DateTime updatedAt = default, List urlList = default, int varVersion = 0, int visits = 0) { // to ensure "authorId" is required (not null) if (authorId == null) @@ -94,7 +94,6 @@ public World(string authorId = default, string authorName = default, int capacit } this.AuthorName = authorName; this.Capacity = capacity; - this.RecommendedCapacity = recommendedCapacity; this.CreatedAt = createdAt; // to ensure "description" is required (not null) if (description == null) @@ -141,6 +140,7 @@ public World(string authorId = default, string authorName = default, int capacit throw new ArgumentNullException("publicationDate is a required property for World and cannot be null"); } this.PublicationDate = publicationDate; + this.RecommendedCapacity = recommendedCapacity; this.ReleaseStatus = releaseStatus; // to ensure "tags" is required (not null) if (tags == null) @@ -166,9 +166,9 @@ public World(string authorId = default, string authorName = default, int capacit this.PrivateOccupants = privateOccupants; this.PublicOccupants = publicOccupants; this.StoreId = storeId; + this.UdonProducts = udonProducts; this.UnityPackages = unityPackages; this.UrlList = urlList; - this.UdonProducts = udonProducts; } /// @@ -196,15 +196,6 @@ public World(string authorId = default, string authorName = default, int capacit [DataMember(Name = "capacity", IsRequired = true, EmitDefaultValue = true)] public int Capacity { get; set; } - /// - /// Gets or Sets RecommendedCapacity - /// - /* - 4 - */ - [DataMember(Name = "recommendedCapacity", IsRequired = true, EmitDefaultValue = true)] - public int RecommendedCapacity { get; set; } - /// /// Gets or Sets CreatedAt /// @@ -351,6 +342,15 @@ public World(string authorId = default, string authorName = default, int capacit [DataMember(Name = "publicationDate", IsRequired = true, EmitDefaultValue = true)] public string PublicationDate { get; set; } + /// + /// Gets or Sets RecommendedCapacity + /// + /* + 4 + */ + [DataMember(Name = "recommendedCapacity", IsRequired = true, EmitDefaultValue = true)] + public int RecommendedCapacity { get; set; } + /// /// Gets or Sets StoreId /// @@ -373,6 +373,12 @@ public World(string authorId = default, string authorName = default, int capacit [DataMember(Name = "thumbnailImageUrl", IsRequired = true, EmitDefaultValue = true)] public string ThumbnailImageUrl { get; set; } + /// + /// Gets or Sets UdonProducts + /// + [DataMember(Name = "udonProducts", EmitDefaultValue = false)] + public List UdonProducts { get; set; } + /// /// Empty if unauthenticated. /// @@ -410,12 +416,6 @@ public World(string authorId = default, string authorName = default, int capacit [DataMember(Name = "visits", IsRequired = true, EmitDefaultValue = true)] public int Visits { get; set; } - /// - /// Gets or Sets UdonProducts - /// - [DataMember(Name = "udonProducts", EmitDefaultValue = false)] - public List UdonProducts { get; set; } - /// /// Returns the string presentation of the object /// @@ -427,7 +427,6 @@ public override string ToString() sb.Append(" AuthorId: ").Append(AuthorId).Append("\n"); sb.Append(" AuthorName: ").Append(AuthorName).Append("\n"); sb.Append(" Capacity: ").Append(Capacity).Append("\n"); - sb.Append(" RecommendedCapacity: ").Append(RecommendedCapacity).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" DefaultContentSettings: ").Append(DefaultContentSettings).Append("\n"); sb.Append(" Description: ").Append(Description).Append("\n"); @@ -447,16 +446,17 @@ public override string ToString() sb.Append(" PrivateOccupants: ").Append(PrivateOccupants).Append("\n"); sb.Append(" PublicOccupants: ").Append(PublicOccupants).Append("\n"); sb.Append(" PublicationDate: ").Append(PublicationDate).Append("\n"); + sb.Append(" RecommendedCapacity: ").Append(RecommendedCapacity).Append("\n"); sb.Append(" ReleaseStatus: ").Append(ReleaseStatus).Append("\n"); sb.Append(" StoreId: ").Append(StoreId).Append("\n"); sb.Append(" Tags: ").Append(Tags).Append("\n"); sb.Append(" ThumbnailImageUrl: ").Append(ThumbnailImageUrl).Append("\n"); + sb.Append(" UdonProducts: ").Append(UdonProducts).Append("\n"); sb.Append(" UnityPackages: ").Append(UnityPackages).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append(" UrlList: ").Append(UrlList).Append("\n"); sb.Append(" VarVersion: ").Append(VarVersion).Append("\n"); sb.Append(" Visits: ").Append(Visits).Append("\n"); - sb.Append(" UdonProducts: ").Append(UdonProducts).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -506,10 +506,6 @@ public bool Equals(World input) this.Capacity == input.Capacity || this.Capacity.Equals(input.Capacity) ) && - ( - this.RecommendedCapacity == input.RecommendedCapacity || - this.RecommendedCapacity.Equals(input.RecommendedCapacity) - ) && ( this.CreatedAt == input.CreatedAt || (this.CreatedAt != null && @@ -599,6 +595,10 @@ public bool Equals(World input) (this.PublicationDate != null && this.PublicationDate.Equals(input.PublicationDate)) ) && + ( + this.RecommendedCapacity == input.RecommendedCapacity || + this.RecommendedCapacity.Equals(input.RecommendedCapacity) + ) && ( this.ReleaseStatus == input.ReleaseStatus || this.ReleaseStatus.Equals(input.ReleaseStatus) @@ -619,6 +619,12 @@ public bool Equals(World input) (this.ThumbnailImageUrl != null && this.ThumbnailImageUrl.Equals(input.ThumbnailImageUrl)) ) && + ( + this.UdonProducts == input.UdonProducts || + this.UdonProducts != null && + input.UdonProducts != null && + this.UdonProducts.SequenceEqual(input.UdonProducts) + ) && ( this.UnityPackages == input.UnityPackages || this.UnityPackages != null && @@ -643,12 +649,6 @@ public bool Equals(World input) ( this.Visits == input.Visits || this.Visits.Equals(input.Visits) - ) && - ( - this.UdonProducts == input.UdonProducts || - this.UdonProducts != null && - input.UdonProducts != null && - this.UdonProducts.SequenceEqual(input.UdonProducts) ); } @@ -670,7 +670,6 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.AuthorName.GetHashCode(); } hashCode = (hashCode * 59) + this.Capacity.GetHashCode(); - hashCode = (hashCode * 59) + this.RecommendedCapacity.GetHashCode(); if (this.CreatedAt != null) { hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); @@ -726,6 +725,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.PublicationDate.GetHashCode(); } + hashCode = (hashCode * 59) + this.RecommendedCapacity.GetHashCode(); hashCode = (hashCode * 59) + this.ReleaseStatus.GetHashCode(); if (this.StoreId != null) { @@ -739,6 +739,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ThumbnailImageUrl.GetHashCode(); } + if (this.UdonProducts != null) + { + hashCode = (hashCode * 59) + this.UdonProducts.GetHashCode(); + } if (this.UnityPackages != null) { hashCode = (hashCode * 59) + this.UnityPackages.GetHashCode(); @@ -753,10 +757,6 @@ public override int GetHashCode() } hashCode = (hashCode * 59) + this.VarVersion.GetHashCode(); hashCode = (hashCode * 59) + this.Visits.GetHashCode(); - if (this.UdonProducts != null) - { - hashCode = (hashCode * 59) + this.UdonProducts.GetHashCode(); - } return hashCode; } } diff --git a/src/VRChat.API/Model/WorldMetadata.cs b/src/VRChat.API/Model/WorldMetadata.cs index 64fb0745..63024a42 100644 --- a/src/VRChat.API/Model/WorldMetadata.cs +++ b/src/VRChat.API/Model/WorldMetadata.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/WorldPublishStatus.cs b/src/VRChat.API/Model/WorldPublishStatus.cs index bd6df224..e066b25f 100644 --- a/src/VRChat.API/Model/WorldPublishStatus.cs +++ b/src/VRChat.API/Model/WorldPublishStatus.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.20.5 + * The version of the OpenAPI document: 1.20.7-nightly.3 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/README.md b/src/VRChat.API/README.md index 9e22bca6..2e8c7b7e 100644 --- a/src/VRChat.API/README.md +++ b/src/VRChat.API/README.md @@ -133,8 +133,16 @@ public class MyController : Controller Console app (login): see [VRChat.API.Examples.Console](examples/VRChat.API.Examples.Console/) +Console app (WebSocket): see [VRChat.API.Examples.WebSocket](examples/VRChat.API.Examples.WebSocket/) + ASP.NET Core (depedency injection): see [VRChat.API.Examples.AspNetCore](examples/VRChat.API.Examples.AspNetCore/) +# WebSockets / VRChat Pipeline + +You can use the `VRChat.API.Realtime` library to connect to VRChat's WebSocket and listen to events. + +The documentation for it is available at [WEBSOCKET.md](WEBSOCKET.md). + # Manually authenticating Sometimes, we don't have two-factor authentication set up on our accounts. While it's **reccomended** for most bots or apps, your app may be a WPF/WinForms application that requires user credential input. In these cases, the `LoginAsync()` methods on `IVRChat` won't work, because they only support token-based two-factor authentication. diff --git a/src/VRChat.API/VRChat.API.csproj b/src/VRChat.API/VRChat.API.csproj index 670583fa..a35f4d7f 100644 --- a/src/VRChat.API/VRChat.API.csproj +++ b/src/VRChat.API/VRChat.API.csproj @@ -10,9 +10,9 @@ VRChat API Docs Community VRChat API Library for .NET VRChat API Library for .NET - Copyright © 2021 Owners of GitHub organisation "vrchatapi" and individual contributors. + Copyright © 2021 Owners of GitHub organisation "vrchatapi" and individual contributors. VRChat.API - 2.20.5 + 2.20.7-nightly.3 bin\$(Configuration)\$(TargetFramework)\VRChat.API.xml MIT https://github.com/vrchatapi/vrchatapi-csharp.git diff --git a/wrapper/VRChat.API.Extensions.Hosting/VRChat.API.Extensions.Hosting.csproj b/wrapper/VRChat.API.Extensions.Hosting/VRChat.API.Extensions.Hosting.csproj index 95b66eba..3c58516b 100644 --- a/wrapper/VRChat.API.Extensions.Hosting/VRChat.API.Extensions.Hosting.csproj +++ b/wrapper/VRChat.API.Extensions.Hosting/VRChat.API.Extensions.Hosting.csproj @@ -12,7 +12,7 @@ Extensions for hosting and dependency injection for the VRChat API Library for .NET Copyright © 2021 Owners of GitHub organisation "vrchatapi" and individual contributors. VRChat.API.Extensions.Hosting - 2.20.5 + 2.20.7-nightly.3 bin\$(Configuration)\$(TargetFramework)\VRChat.API.Extensions.Hosting.xml MIT https://github.com/vrchatapi/vrchatapi-csharp.git diff --git a/wrapper/VRChat.API.Realtime/Messages/Friend/FriendActiveContent.cs b/wrapper/VRChat.API.Realtime/Messages/Friend/FriendActiveContent.cs new file mode 100644 index 00000000..67a0806c --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Friend/FriendActiveContent.cs @@ -0,0 +1,48 @@ +using System.Text.Json.Serialization; + +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "friend-active" WebSocket event. + /// + /// + /// This event is raised when a friend becomes active on the VRChat website + /// (not in-game). This is different from which + /// indicates a friend is online in the VRChat game client. + /// + /// + /// + public class FriendActiveContent + { + /// + /// Gets or sets the unique identifier of the friend who became active. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// Legacy players can have old IDs in the form of 8JoV9XEdpo. + /// + /// + /// Note: The VRChat API sends this as lowercase "userid" instead of "userId", + /// hence the . + /// + [JsonPropertyName("userid")] + public string UserId { get; set; } + + /// + /// Gets or sets the platform the friend is active on. + /// + /// + /// The platform identifier, typically "web" for website activity. + /// + public string Platform { get; set; } + + /// + /// Gets or sets the friend's user information. + /// + /// + /// A object containing the friend's profile information, + /// or null if not provided. + /// + public LimitedUser User { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Friend/FriendAddContent.cs b/wrapper/VRChat.API.Realtime/Messages/Friend/FriendAddContent.cs new file mode 100644 index 00000000..09f0270a --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Friend/FriendAddContent.cs @@ -0,0 +1,32 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "friend-add" WebSocket event. + /// + /// + /// This event is raised when a new friend is added to your friends list. + /// This occurs when either you accept a friend request, or someone accepts + /// your friend request. + /// + /// + public class FriendAddContent + { + /// + /// Gets or sets the unique identifier of the newly added friend. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// Legacy players can have old IDs in the form of 8JoV9XEdpo. + /// + public string UserId { get; set; } + + /// + /// Gets or sets the new friend's user information. + /// + /// + /// A object containing the friend's profile information, + /// or null if not provided. + /// + public LimitedUser User { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Friend/FriendDeleteContent.cs b/wrapper/VRChat.API.Realtime/Messages/Friend/FriendDeleteContent.cs new file mode 100644 index 00000000..659bb065 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Friend/FriendDeleteContent.cs @@ -0,0 +1,22 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "friend-delete" WebSocket event. + /// + /// + /// This event is raised when a friend is removed from your friends list. + /// This can occur when either you unfriend someone, or they unfriend you. + /// + /// + public class FriendDeleteContent + { + /// + /// Gets or sets the unique identifier of the friend who was removed. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// Legacy players can have old IDs in the form of 8JoV9XEdpo. + /// + public string UserId { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Friend/FriendLocationContent.cs b/wrapper/VRChat.API.Realtime/Messages/Friend/FriendLocationContent.cs new file mode 100644 index 00000000..85a7f4ca --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Friend/FriendLocationContent.cs @@ -0,0 +1,68 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "friend-location" WebSocket event. + /// + /// + /// This event is raised when a friend changes their location (world/instance). + /// The location may be "private" if the friend is in a private instance and + /// you don't have permission to see their location. + /// + /// + public class FriendLocationContent + { + /// + /// Gets or sets the unique identifier of the friend whose location changed. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// Legacy players can have old IDs in the form of 8JoV9XEdpo. + /// + public string UserId { get; set; } + + /// + /// Gets or sets the friend's current location. + /// + /// + /// A location string in the format worldId:instanceId, such as + /// wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd:12345~private(usr_xxx). + /// May be "private" or "offline" depending on visibility settings. + /// + public string Location { get; set; } + + /// + /// Gets or sets the location the friend is currently traveling to. + /// + /// + /// A location string if the friend is in transit to a new world, or null + /// if they are not currently traveling. + /// + public string TravelingToLocation { get; set; } + + /// + /// Gets or sets the world ID of the friend's current world. + /// + /// + /// A world's unique ID in the form of wrld_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public string WorldId { get; set; } + + /// + /// Gets or sets whether you can request an invite to the friend's instance. + /// + /// + /// true if you can request an invite to join the friend's instance; + /// false if the instance is private or invites are restricted. + /// + public bool CanRequestInvite { get; set; } + + /// + /// Gets or sets the friend's user information. + /// + /// + /// A object containing updated profile information, + /// or null if not provided. + /// + public LimitedUser User { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Friend/FriendOfflineContent.cs b/wrapper/VRChat.API.Realtime/Messages/Friend/FriendOfflineContent.cs new file mode 100644 index 00000000..1b3b929f --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Friend/FriendOfflineContent.cs @@ -0,0 +1,30 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "friend-offline" WebSocket event. + /// + /// + /// This event is raised when a friend goes offline from VRChat. + /// + /// + /// + public class FriendOfflineContent + { + /// + /// Gets or sets the unique identifier of the friend who went offline. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// Legacy players can have old IDs in the form of 8JoV9XEdpo. + /// + public string UserId { get; set; } + + /// + /// Gets or sets the platform the friend was on before going offline. + /// + /// + /// The platform identifier, such as "standalonewindows", "android", or other Unity version strings. + /// + public string Platform { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Friend/FriendOnlineContent.cs b/wrapper/VRChat.API.Realtime/Messages/Friend/FriendOnlineContent.cs new file mode 100644 index 00000000..d9fcde4c --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Friend/FriendOnlineContent.cs @@ -0,0 +1,61 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "friend-online" WebSocket event. + /// + /// + /// This event is raised when a friend comes online in the VRChat game client. + /// This is different from which indicates + /// a friend is active on the VRChat website. + /// + /// + /// + /// + public class FriendOnlineContent + { + /// + /// Gets or sets the unique identifier of the friend who came online. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// Legacy players can have old IDs in the form of 8JoV9XEdpo. + /// + public string UserId { get; set; } + + /// + /// Gets or sets the platform the friend is online on. + /// + /// + /// The platform identifier, such as "standalonewindows", "android", or other Unity version strings. + /// + public string Platform { get; set; } + + /// + /// Gets or sets the friend's current location. + /// + /// + /// A location string in the format worldId:instanceId, such as + /// wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd:12345~private(usr_xxx). + /// May be "private" depending on visibility settings. + /// + public string Location { get; set; } + + /// + /// Gets or sets whether you can request an invite to the friend's instance. + /// + /// + /// true if you can request an invite to join the friend's instance; + /// false if the instance is private or invites are restricted. + /// + public bool CanRequestInvite { get; set; } + + /// + /// Gets or sets the friend's user information. + /// + /// + /// A object containing the friend's profile information, + /// or null if not provided. + /// + public LimitedUser User { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Friend/FriendUpdateContent.cs b/wrapper/VRChat.API.Realtime/Messages/Friend/FriendUpdateContent.cs new file mode 100644 index 00000000..bcf396c3 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Friend/FriendUpdateContent.cs @@ -0,0 +1,30 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "friend-update" WebSocket event. + /// + /// + /// This event is raised when a friend's profile information is updated. + /// This includes changes to display name, status, avatar, bio, and other profile fields. + /// + /// + public class FriendUpdateContent + { + /// + /// Gets or sets the unique identifier of the friend whose profile was updated. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// Legacy players can have old IDs in the form of 8JoV9XEdpo. + /// + public string UserId { get; set; } + + /// + /// Gets or sets the friend's updated user information. + /// + /// + /// A object containing the friend's updated profile information. + /// + public LimitedUser User { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Group/GroupJoinedContent.cs b/wrapper/VRChat.API.Realtime/Messages/Group/GroupJoinedContent.cs new file mode 100644 index 00000000..82fa7e4f --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Group/GroupJoinedContent.cs @@ -0,0 +1,21 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "group-joined" WebSocket event. + /// + /// + /// This event is raised when you join a group or have a group join request accepted. + /// + /// + /// + public class GroupJoinedContent + { + /// + /// Gets or sets the unique identifier of the group that was joined. + /// + /// + /// A group's unique ID in the form of grp_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public string GroupId { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Group/GroupLeftContent.cs b/wrapper/VRChat.API.Realtime/Messages/Group/GroupLeftContent.cs new file mode 100644 index 00000000..f8e2498d --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Group/GroupLeftContent.cs @@ -0,0 +1,20 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "group-left" WebSocket event. + /// + /// + /// This event is raised when you leave a group or are removed from a group. + /// + /// + public class GroupLeftContent + { + /// + /// Gets or sets the unique identifier of the group that was left. + /// + /// + /// A group's unique ID in the form of grp_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public string GroupId { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Group/GroupLimitedMember.cs b/wrapper/VRChat.API.Realtime/Messages/Group/GroupLimitedMember.cs new file mode 100644 index 00000000..ce1a72b2 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Group/GroupLimitedMember.cs @@ -0,0 +1,144 @@ +using System; +using System.Collections.Generic; + +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents group member information received in WebSocket messages. + /// + /// + /// This class contains membership details for a user within a group, + /// including their roles, status, and subscription preferences. + /// + /// + public class GroupLimitedMember + { + /// + /// Gets or sets the unique identifier of this membership record. + /// + /// + /// A membership record ID in the form of gmem_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public string Id { get; set; } + + /// + /// Gets or sets the unique identifier of the group. + /// + /// + /// A group's unique ID in the form of grp_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public string GroupId { get; set; } + + /// + /// Gets or sets the unique identifier of the user. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// + public string UserId { get; set; } + + /// + /// Gets or sets whether the user is representing this group. + /// + /// + /// true if the user has this group set as their represented group; otherwise, false. + /// + public bool IsRepresenting { get; set; } + + /// + /// Gets or sets the list of role IDs assigned to this member. + /// + /// + /// A list of role IDs in the form of grol_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public List RoleIds { get; set; } + + /// + /// Gets or sets the list of management role IDs assigned to this member. + /// + /// + /// A list of management role IDs that grant administrative permissions. + /// + public List MRoleIds { get; set; } + + /// + /// Gets or sets the date and time when the user joined the group. + /// + /// + /// The UTC timestamp of when the membership was created. + /// + public DateTime JoinedAt { get; set; } + + /// + /// Gets or sets the current membership status. + /// + /// + /// The membership status, such as "member", "requested", "invited", or "banned". + /// + public string MembershipStatus { get; set; } + + /// + /// Gets or sets the visibility of the membership. + /// + /// + /// The visibility setting, such as "visible" or "hidden". + /// + public string Visibility { get; set; } + + /// + /// Gets or sets whether the member is subscribed to group announcements. + /// + /// + /// true if the member receives notifications for group announcements; otherwise, false. + /// + public bool IsSubscribedToAnnouncements { get; set; } + + /// + /// Gets or sets whether the member is subscribed to event announcements. + /// + /// + /// true if the member receives notifications for group events; otherwise, false. + /// + public bool IsSubscribedToEventAnnouncements { get; set; } + + /// + /// Gets or sets the date and time when the membership record was created. + /// + /// + /// The UTC timestamp of record creation. + /// + public DateTime CreatedAt { get; set; } + + /// + /// Gets or sets the date and time when the member was banned, if applicable. + /// + /// + /// The UTC timestamp of when the ban was applied, or null if the member is not banned. + /// + public DateTime? BannedAt { get; set; } + + /// + /// Gets or sets notes about this member visible to group managers. + /// + /// + /// Manager notes as a string, or null if no notes exist. + /// + public string ManagerNotes { get; set; } + + /// + /// Gets or sets the date and time when the member last read group posts. + /// + /// + /// The UTC timestamp of the last post read, or null if no posts have been read. + /// + public DateTime? LastPostReadAt { get; set; } + + /// + /// Gets or sets whether the member joined through a purchase. + /// + /// + /// true if the membership was gained through a purchase; otherwise, false. + /// + public bool HasJoinedFromPurchase { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Group/GroupMemberUpdatedContent.cs b/wrapper/VRChat.API.Realtime/Messages/Group/GroupMemberUpdatedContent.cs new file mode 100644 index 00000000..69460f0b --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Group/GroupMemberUpdatedContent.cs @@ -0,0 +1,22 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "group-member-updated" WebSocket event. + /// + /// + /// This event is raised when your group membership information is updated, + /// such as role changes, visibility settings, or subscription preferences. + /// + /// + /// + public class GroupMemberUpdatedContent + { + /// + /// Gets or sets the updated group member information. + /// + /// + /// A object containing the updated membership details. + /// + public GroupLimitedMember Member { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Group/GroupRole.cs b/wrapper/VRChat.API.Realtime/Messages/Group/GroupRole.cs new file mode 100644 index 00000000..ca0b304f --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Group/GroupRole.cs @@ -0,0 +1,113 @@ +using System; +using System.Collections.Generic; + +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents group role information received in WebSocket messages. + /// + /// + /// Group roles define permissions and capabilities for members within a group. + /// Roles can be assigned to members and may grant various permissions. + /// + /// + /// + public class GroupRole + { + /// + /// Gets or sets the unique identifier of this role. + /// + /// + /// A role ID in the form of grol_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public string Id { get; set; } + + /// + /// Gets or sets the unique identifier of the group this role belongs to. + /// + /// + /// A group's unique ID in the form of grp_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public string GroupId { get; set; } + + /// + /// Gets or sets the display name of the role. + /// + /// + /// The human-readable name of the role, such as "Member" or "Moderator". + /// + public string Name { get; set; } + + /// + /// Gets or sets the description of the role. + /// + /// + /// A description explaining the purpose and permissions of the role. + /// + public string Description { get; set; } + + /// + /// Gets or sets whether members can self-assign this role. + /// + /// + /// true if members can assign this role to themselves; otherwise, false. + /// + public bool IsSelfAssignable { get; set; } + + /// + /// Gets or sets the list of permissions granted by this role. + /// + /// + /// A list of permission strings, such as "group-posts-manage" or "group-members-manage". + /// + public List Permissions { get; set; } + + /// + /// Gets or sets whether this is a management role. + /// + /// + /// true if this role grants management/administrative capabilities; otherwise, false. + /// + public bool IsManagementRole { get; set; } + + /// + /// Gets or sets whether this role requires two-factor authentication. + /// + /// + /// true if members must have 2FA enabled to use this role; otherwise, false. + /// + public bool RequiresTwoFactor { get; set; } + + /// + /// Gets or sets whether this role requires a purchase to obtain. + /// + /// + /// true if this role must be purchased; otherwise, false. + /// + public bool RequiresPurchase { get; set; } + + /// + /// Gets or sets the display order of the role. + /// + /// + /// An integer indicating the sort order, with lower numbers appearing first. + /// + public int Order { get; set; } + + /// + /// Gets or sets the date and time when the role was created. + /// + /// + /// The UTC timestamp of role creation. + /// + public DateTime CreatedAt { get; set; } + + /// + /// Gets or sets the date and time when the role was last updated. + /// + /// + /// The UTC timestamp of the last modification. + /// + public DateTime UpdatedAt { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Group/GroupRoleUpdatedContent.cs b/wrapper/VRChat.API.Realtime/Messages/Group/GroupRoleUpdatedContent.cs new file mode 100644 index 00000000..07bbd056 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Group/GroupRoleUpdatedContent.cs @@ -0,0 +1,22 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "group-role-updated" WebSocket event. + /// + /// + /// This event is raised when a group role is updated or modified. + /// This includes changes to role permissions, name, description, or other properties. + /// + /// + /// + public class GroupRoleUpdatedContent + { + /// + /// Gets or sets the updated group role information. + /// + /// + /// A object containing the updated role details. + /// + public GroupRole Role { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/HeartbeatMessage.cs b/wrapper/VRChat.API.Realtime/Messages/HeartbeatMessage.cs new file mode 100644 index 00000000..420f1c92 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/HeartbeatMessage.cs @@ -0,0 +1,38 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents a heartbeat message sent to keep the WebSocket connection alive. + /// + /// + /// Heartbeat messages are sent periodically (typically every 30 seconds) to maintain + /// the WebSocket connection with VRChat's Pipeline API. The server uses these to + /// detect disconnected clients. + /// + /// + public class HeartbeatMessage + { + /// + /// Gets or sets the message type identifier. + /// + /// + /// Always "heartbeat" for heartbeat messages. + /// + public string Type { get; set; } = "heartbeat"; + + /// + /// Gets or sets whether the client is connected. + /// + /// + /// Always true for heartbeat messages. + /// + public bool Connected { get; set; } = true; + + /// + /// Gets or sets a unique nonce for this heartbeat. + /// + /// + /// A unique identifier (typically a GUID) to track this specific heartbeat message. + /// + public string Nonce { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/LimitedUser.cs b/wrapper/VRChat.API.Realtime/Messages/LimitedUser.cs new file mode 100644 index 00000000..598b81a4 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/LimitedUser.cs @@ -0,0 +1,409 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents limited user information received in WebSocket messages. + /// + /// + /// This class contains a subset of user profile information that is included + /// in various WebSocket events such as friend updates and location changes. + /// For full user information, use the REST API. + /// + /// + /// + /// + public class LimitedUser + { + /// + /// Gets or sets the unique identifier of the user. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// Legacy players can have old IDs in the form of 8JoV9XEdpo. + /// + public string Id { get; set; } + + /// + /// Gets or sets the user's unique username. + /// + /// + /// The user's login name, which is different from . + /// + /// + /// DEPRECATED: VRChat API no longer returns usernames of other users. + /// See this issue for more information. + /// + [Obsolete("VRChat API no longer returns usernames of other users.")] + public string Username { get; set; } + + /// + /// Gets or sets the user's display name. + /// + /// + /// The user's visual display name shown in-game. Changing display name is restricted to a cooldown period. + /// + public string DisplayName { get; set; } + + /// + /// Gets or sets the user's biography text. + /// + /// + /// The user's bio, limited to 512 characters. + /// + public string Bio { get; set; } + + /// + /// Gets or sets the user's biography links. + /// + /// + /// A list of URLs included in the user's bio. + /// + public List BioLinks { get; set; } + + /// + /// Gets or sets the URL of the user's current avatar image. + /// + /// + /// A URL to the full avatar image. When is not empty, + /// that should be used instead. + /// + public string CurrentAvatarImageUrl { get; set; } + + /// + /// Gets or sets the URL of the user's current avatar thumbnail image. + /// + /// + /// A URL to the avatar thumbnail image. When is not empty, + /// that should be used instead. + /// + public string CurrentAvatarThumbnailImageUrl { get; set; } + + /// + /// Gets or sets the tags associated with the user's current avatar. + /// + /// + /// A list of avatar feature tags. + /// + public List CurrentAvatarTags { get; set; } + + /// + /// Gets or sets the user's developer type. + /// + /// + /// The developer type, such as "none", "trusted", or "internal". + /// + public string DeveloperType { get; set; } + + /// + /// Gets or sets whether the user is a friend. + /// + /// + /// true if the user is in your friends list; otherwise, false. + /// + public bool IsFriend { get; set; } + + /// + /// Gets or sets the friend key. + /// + /// + /// Either the user's friend key, or an empty string if you are not friends. + /// + public string FriendKey { get; set; } + + /// + /// Gets or sets the friend request status. + /// + /// + /// The status of any pending friend request between you and this user. + /// + public string FriendRequestStatus { get; set; } + + /// + /// Gets or sets the platform the user was last active on. + /// + /// + /// The platform identifier, such as "standalonewindows", "android", or other Unity version strings. + /// + public string LastPlatform { get; set; } + + /// + /// Gets or sets the user's current location. + /// + /// + /// A location string in the format worldId:instanceId. + /// May be "offline" if not friends, or "private" if in a private instance. + /// + public string Location { get; set; } + + /// + /// Gets or sets the instance ID of the user's current location. + /// + /// + /// The instance portion of the location, or "offline"/"private" depending on visibility. + /// + public string InstanceId { get; set; } + + /// + /// Gets or sets the world ID of the user's current world. + /// + /// + /// A world's unique ID in the form of wrld_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, + /// or "offline" if not friends with the user. + /// + public string WorldId { get; set; } + + /// + /// Gets or sets the user's current platform. + /// + /// + /// The platform identifier for the user's current session. + /// + public string Platform { get; set; } + + /// + /// Gets or sets the URL of the user's profile picture override. + /// + /// + /// A URL to a custom profile picture. When set, this should be displayed + /// instead of the avatar image URLs. + /// + public string ProfilePicOverride { get; set; } + + /// + /// Gets or sets the URL of the user's profile picture override thumbnail. + /// + /// + /// A URL to a thumbnail version of the custom profile picture. + /// + public string ProfilePicOverrideThumbnail { get; set; } + + /// + /// Gets or sets the user's pronouns. + /// + /// + /// The user's preferred pronouns as displayed on their profile. + /// + public string Pronouns { get; set; } + + /// + /// Gets or sets the user's current status. + /// + /// + /// The status type, such as "active", "join me", "ask me", "busy", or "offline". + /// + public string Status { get; set; } + + /// + /// Gets or sets the user's custom status description. + /// + /// + /// A custom status message set by the user. + /// + public string StatusDescription { get; set; } + + /// + /// Gets or sets the user's state. + /// + /// + /// The user's current state, such as "online", "active", or "offline". + /// + public string State { get; set; } + + /// + /// Gets or sets the user's tags. + /// + /// + /// A list of system and user-assigned tags, such as trust rank tags and feature flags. + /// Note: This is always empty when querying friends via the friend list endpoint. + /// + public List Tags { get; set; } + + /// + /// Gets or sets the URL of the user's custom icon. + /// + /// + /// A URL to the user's custom icon image, or null if not set. + /// + public string UserIcon { get; set; } + + /// + /// Gets or sets a note about this user. + /// + /// + /// A personal note you've saved about this user, or null if no note exists. + /// + public string Note { get; set; } + + /// + /// Gets or sets the user's age verification status. + /// + /// + /// The age verification status string. + /// + public string AgeVerificationStatus { get; set; } + + /// + /// Gets or sets whether the user is age verified. + /// + /// + /// true if the user has completed age verification; otherwise, false. + /// Note: This is not the same as being 18+ verified. + /// + public bool AgeVerified { get; set; } + + /// + /// Gets or sets whether the user allows avatar copying. + /// + /// + /// true if the user allows their avatar to be cloned; otherwise, false. + /// + public bool AllowAvatarCopying { get; set; } + + /// + /// Gets or sets the instance the user is traveling to. + /// + /// + /// The target instance ID if the user is traveling, or null if not traveling. + /// + public string TravelingToInstance { get; set; } + + /// + /// Gets or sets the location the user is traveling to. + /// + /// + /// The full location string of the destination, or null if not traveling. + /// + public string TravelingToLocation { get; set; } + + /// + /// Gets or sets the world the user is traveling to. + /// + /// + /// The world ID of the destination, or null if not traveling. + /// + public string TravelingToWorld { get; set; } + + /// + /// Gets or sets the date the user joined VRChat. + /// + /// + /// A date string in ISO format, or null if not available. + /// + [JsonPropertyName("date_joined")] + public string DateJoined { get; set; } + + /// + /// Gets or sets the user's last activity timestamp. + /// + /// + /// A date-time string of the user's last activity, or an empty string. + /// + [JsonPropertyName("last_activity")] + public string LastActivity { get; set; } + + /// + /// Gets or sets the user's last login timestamp. + /// + /// + /// A date-time string of the user's last login, or an empty string. + /// + [JsonPropertyName("last_login")] + public string LastLogin { get; set; } + + /// + /// Gets or sets the user's last mobile login timestamp. + /// + /// + /// A date-time string of the user's last mobile login, or null. + /// + [JsonPropertyName("last_mobile")] + public string LastMobile { get; set; } + + /// + /// Gets or sets the user's badges. + /// + /// + /// A list of objects representing the user's earned badges. + /// + public List Badges { get; set; } + } + + /// + /// Represents a badge that can be assigned to a user. + /// + /// + /// Badges are visual indicators of achievements, subscriptions (like VRChat+), + /// or special recognitions displayed on user profiles. + /// + /// + /// + public class Badge + { + /// + /// Gets or sets the unique identifier of the badge. + /// + /// + /// A badge ID in the form of bdge_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public string BadgeId { get; set; } + + /// + /// Gets or sets the display name of the badge. + /// + /// + /// The human-readable name of the badge, such as "VRChat Plus Supporter". + /// + public string BadgeName { get; set; } + + /// + /// Gets or sets the description of the badge. + /// + /// + /// A description explaining how the badge was earned or what it represents. + /// + public string BadgeDescription { get; set; } + + /// + /// Gets or sets the URL of the badge image. + /// + /// + /// A URL to the badge icon image. + /// + public string BadgeImageUrl { get; set; } + + /// + /// Gets or sets the date and time when the badge was assigned. + /// + /// + /// The UTC timestamp of when the badge was given to the user. + /// + public DateTime AssignedAt { get; set; } + + /// + /// Gets or sets the date and time when the badge was last updated. + /// + /// + /// The UTC timestamp of the last modification to this badge assignment. + /// + public DateTime UpdatedAt { get; set; } + + /// + /// Gets or sets whether the badge is hidden. + /// + /// + /// true if the user has chosen to hide this badge; otherwise, false. + /// + public bool Hidden { get; set; } + + /// + /// Gets or sets whether the badge is showcased on the user's profile. + /// + /// + /// true if the badge is featured/showcased; otherwise, false. + /// + public bool Showcased { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Notification.cs b/wrapper/VRChat.API.Realtime/Messages/Notification.cs new file mode 100644 index 00000000..3e7523d1 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Notification.cs @@ -0,0 +1,107 @@ +using System; +using System.Collections.Generic; +using System.Text.Json.Serialization; + +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents a notification received from the VRChat WebSocket API. + /// + /// + /// Notifications include friend requests, invites, invite responses, and other + /// in-game notifications. The property contains additional + /// information specific to the notification type. + /// + /// + /// + public class Notification + { + /// + /// Gets or sets the unique identifier of the notification. + /// + /// + /// A notification ID in the form of not_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public string Id { get; set; } + + /// + /// Gets or sets the type of notification. + /// + /// + /// The notification type, such as "friendRequest", "invite", "requestInvite", + /// "inviteResponse", "requestInviteResponse", or "votetokick". + /// + public string Type { get; set; } + + /// + /// Gets or sets the unique identifier of the user who sent the notification. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// Legacy players can have old IDs in the form of 8JoV9XEdpo. + /// + public string SenderUserId { get; set; } + + /// + /// Gets or sets the username of the sender. + /// + /// + /// The sender's username, or null if not provided. + /// + /// + /// DEPRECATED: VRChat API no longer returns usernames of other users. + /// See this issue for more information. + /// + [Obsolete("VRChat API no longer returns usernames of other users.")] + public string SenderUsername { get; set; } + + /// + /// Gets or sets the unique identifier of the user receiving the notification. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// + public string ReceiverUserId { get; set; } + + /// + /// Gets or sets the notification message text. + /// + /// + /// The human-readable notification message, such as "This is a generated invite to VRChat Hub". + /// + public string Message { get; set; } + + /// + /// Gets or sets additional details specific to the notification type. + /// + /// + /// A dictionary containing notification-specific data. The contents vary based on + /// and may include world information, invite details, etc. + /// + /// + /// NOTICE: When received from the WebSocket API, this is already deserialized as an object. + /// When received from the REST API, this is a JSON-encoded string that must be parsed separately. + /// + public Dictionary Details { get; set; } + + /// + /// Gets or sets the date and time when the notification was created. + /// + /// + /// The UTC timestamp of notification creation. + /// + [JsonPropertyName("created_at")] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or sets whether the notification has been seen. + /// + /// + /// true if the notification has been marked as seen; otherwise, false. + /// + /// + /// This property is not included in notification objects received from the WebSocket API. + /// + public bool Seen { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Notification/NotificationContent.cs b/wrapper/VRChat.API.Realtime/Messages/Notification/NotificationContent.cs new file mode 100644 index 00000000..5d467cbd --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Notification/NotificationContent.cs @@ -0,0 +1,32 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents generic notification content containing user information. + /// + /// + /// This is a base content type used for notifications that include user data. + /// For the full notification object, see . + /// + /// + /// + public class NotificationContent + { + /// + /// Gets or sets the unique identifier of the user associated with the notification. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// Legacy players can have old IDs in the form of 8JoV9XEdpo. + /// + public string UserId { get; set; } + + /// + /// Gets or sets the user information associated with the notification. + /// + /// + /// A object containing user profile information, + /// or null if not provided. + /// + public LimitedUser User { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Notification/NotificationV2Content.cs b/wrapper/VRChat.API.Realtime/Messages/Notification/NotificationV2Content.cs new file mode 100644 index 00000000..421ee7d4 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Notification/NotificationV2Content.cs @@ -0,0 +1,205 @@ +using System; +using System.Collections.Generic; + +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "notification-v2" WebSocket event. + /// + /// + /// V2 notifications are an enhanced notification system used for group announcements, + /// system messages, and other rich notifications that support responses and expiration. + /// + /// + /// + /// + public class NotificationV2Content + { + /// + /// Gets or sets the unique identifier of the notification. + /// + /// + /// A notification ID in the form of not_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public string Id { get; set; } + + /// + /// Gets or sets the version number of the notification. + /// + /// + /// An integer version number that increments when the notification is updated. + /// + public int Version { get; set; } + + /// + /// Gets or sets the type of the notification. + /// + /// + /// The notification type, such as "group.announcement", "group.informative", etc. + /// + public string Type { get; set; } + + /// + /// Gets or sets the category of the notification. + /// + /// + /// The notification category, such as "social", "system", etc. + /// + public string Category { get; set; } + + /// + /// Gets or sets whether this is a system notification. + /// + /// + /// true if this is a system-generated notification; otherwise, false. + /// + public bool IsSystem { get; set; } + + /// + /// Gets or sets whether this notification should ignore Do Not Disturb settings. + /// + /// + /// true if the notification should bypass DND; otherwise, false. + /// + public bool IgnoreDND { get; set; } + + /// + /// Gets or sets the unique identifier of the user who sent the notification. + /// + /// + /// A user's unique ID, or null for system notifications. + /// + public string SenderUserId { get; set; } + + /// + /// Gets or sets the username of the sender. + /// + /// + /// The sender's username, or null for system notifications. + /// Note: VRChat no longer returns usernames in most API responses. + /// + [Obsolete("VRChat API no longer returns usernames of other users in most cases.")] + public string SenderUsername { get; set; } + + /// + /// Gets or sets the unique identifier of the user receiving the notification. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// + public string ReceiverUserId { get; set; } + + /// + /// Gets or sets the ID of related notifications. + /// + /// + /// An ID linking related notifications together, or null if standalone. + /// + public string RelatedNotificationsId { get; set; } + + /// + /// Gets or sets the title of the notification. + /// + /// + /// The notification title displayed to the user. + /// + public string Title { get; set; } + + /// + /// Gets or sets the main message content of the notification. + /// + /// + /// The notification body text. + /// + public string Message { get; set; } + + /// + /// Gets or sets the URL of an image associated with the notification. + /// + /// + /// A URL to an image, or null if no image is attached. + /// + public string ImageUrl { get; set; } + + /// + /// Gets or sets a link associated with the notification. + /// + /// + /// A URL the user can navigate to, or null if no link is provided. + /// + public string Link { get; set; } + + /// + /// Gets or sets the display text for the link. + /// + /// + /// The text shown for the link, or null if no link is provided. + /// + public string LinkText { get; set; } + + /// + /// Gets or sets the available response options for the notification. + /// + /// + /// A list of objects representing + /// possible user responses, or null if no responses are available. + /// + public List Responses { get; set; } + + /// + /// Gets or sets the expiration date and time of the notification. + /// + /// + /// The UTC timestamp when the notification expires and should be removed. + /// + public DateTime ExpiresAt { get; set; } + + /// + /// Gets or sets the number of seconds after being seen before the notification expires. + /// + /// + /// The expiry delay in seconds after the notification is marked as seen. + /// + public int ExpiryAfterSeen { get; set; } + + /// + /// Gets or sets whether the notification requires acknowledgment. + /// + /// + /// true if the notification must be marked as seen; otherwise, false. + /// + public bool RequireSeen { get; set; } + + /// + /// Gets or sets whether the notification has been seen. + /// + /// + /// true if the notification has been marked as seen; otherwise, false. + /// + public bool Seen { get; set; } + + /// + /// Gets or sets whether the notification can be deleted by the user. + /// + /// + /// true if the user can delete this notification; otherwise, false. + /// + public bool CanDelete { get; set; } + + /// + /// Gets or sets the date and time when the notification was created. + /// + /// + /// The UTC timestamp of notification creation. + /// + public DateTime CreatedAt { get; set; } + + /// + /// Gets or sets the date and time when the notification was last updated. + /// + /// + /// The UTC timestamp of the last modification. + /// + public DateTime UpdatedAt { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Notification/NotificationV2DeleteContent.cs b/wrapper/VRChat.API.Realtime/Messages/Notification/NotificationV2DeleteContent.cs new file mode 100644 index 00000000..d54716d5 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Notification/NotificationV2DeleteContent.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; + +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "notification-v2-delete" WebSocket event. + /// + /// + /// This event is raised when one or more V2 notifications should be deleted from the client. + /// + /// + /// + public class NotificationV2DeleteContent + { + /// + /// Gets or sets the list of notification IDs to delete. + /// + /// + /// A list of notification IDs in the form of not_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public List Ids { get; set; } + + /// + /// Gets or sets the version number of this delete operation. + /// + /// + /// An integer version number for tracking purposes. + /// + public int Version { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Notification/NotificationV2ResponseItem.cs b/wrapper/VRChat.API.Realtime/Messages/Notification/NotificationV2ResponseItem.cs new file mode 100644 index 00000000..b95f0b6d --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Notification/NotificationV2ResponseItem.cs @@ -0,0 +1,46 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents a response option for a V2 notification. + /// + /// + /// V2 notifications can include interactive response options that users can select. + /// Each response item defines an action the user can take in response to the notification. + /// + /// + public class NotificationV2ResponseItem + { + /// + /// Gets or sets the type of response action. + /// + /// + /// The response type, such as "accept", "decline", "block", etc. + /// + public string Type { get; set; } + + /// + /// Gets or sets additional data associated with the response. + /// + /// + /// Response-specific data that will be sent when this response is selected, + /// or null if no additional data is needed. + /// + public string Data { get; set; } + + /// + /// Gets or sets the icon identifier for the response button. + /// + /// + /// An icon identifier or URL for display, or null if no icon is specified. + /// + public string Icon { get; set; } + + /// + /// Gets or sets the display text for the response button. + /// + /// + /// The human-readable text shown on the response button. + /// + public string Text { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Notification/NotificationV2UpdateContent.cs b/wrapper/VRChat.API.Realtime/Messages/Notification/NotificationV2UpdateContent.cs new file mode 100644 index 00000000..6f5fde58 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Notification/NotificationV2UpdateContent.cs @@ -0,0 +1,41 @@ +using System.Collections.Generic; + +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "notification-v2-update" WebSocket event. + /// + /// + /// This event is raised when a V2 notification should be updated with new property values. + /// Only the properties that changed are included in the update. + /// + /// + /// + public class NotificationV2UpdateContent + { + /// + /// Gets or sets the unique identifier of the notification to update. + /// + /// + /// A notification ID in the form of not_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public string Id { get; set; } + + /// + /// Gets or sets the new version number of the notification. + /// + /// + /// An integer version number that increments with each update. + /// + public int Version { get; set; } + + /// + /// Gets or sets the property updates to apply to the notification. + /// + /// + /// A dictionary containing property names as keys and their new values. + /// Only changed properties are included. + /// + public Dictionary Updates { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/Notification/ResponseNotificationContent.cs b/wrapper/VRChat.API.Realtime/Messages/Notification/ResponseNotificationContent.cs new file mode 100644 index 00000000..4296236e --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/Notification/ResponseNotificationContent.cs @@ -0,0 +1,38 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "response-notification" WebSocket event. + /// + /// + /// This event is raised when a response to a previously sent notification is received. + /// This typically occurs when another user responds to a notification you sent, + /// such as accepting or declining an invite request. + /// + /// + public class ResponseNotificationContent + { + /// + /// Gets or sets the unique identifier of the notification that was responded to. + /// + /// + /// A notification ID in the form of not_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public string NotificationId { get; set; } + + /// + /// Gets or sets the unique identifier of the user who received and responded to the notification. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// + public string ReceiverId { get; set; } + + /// + /// Gets or sets the unique identifier of the response. + /// + /// + /// A response ID identifying the specific response action taken. + /// + public string ResponseId { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/User/ContentRefreshContent.cs b/wrapper/VRChat.API.Realtime/Messages/User/ContentRefreshContent.cs new file mode 100644 index 00000000..2168e20c --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/User/ContentRefreshContent.cs @@ -0,0 +1,54 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "content-refresh" WebSocket event. + /// + /// + /// This event is raised when content is added, removed, or modified on your profile. + /// This includes avatars, worlds, images, stickers, and other user-uploaded content. + /// + public class ContentRefreshContent + { + /// + /// Gets or sets the type of content that was refreshed. + /// + /// + /// The content type, such as "gallery", "avatar", "world", "emoji", etc. + /// + public string ContentType { get; set; } + + /// + /// Gets or sets the unique identifier of the associated file. + /// + /// + /// A file ID in the form of file_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx, + /// or null if not applicable. + /// + public string FileId { get; set; } + + /// + /// Gets or sets the unique identifier of the content item. + /// + /// + /// The item ID, such as an avatar ID (avtr_xxx), world ID (wrld_xxx), + /// or other content-specific identifier. + /// + public string ItemId { get; set; } + + /// + /// Gets or sets the type of the content item. + /// + /// + /// The item type classification, providing more specific information about the content. + /// + public string ItemType { get; set; } + + /// + /// Gets or sets the action that triggered the refresh. + /// + /// + /// The action type, such as "add", "remove", "update", etc. + /// + public string ActionType { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/User/CurrentUserInfo.cs b/wrapper/VRChat.API.Realtime/Messages/User/CurrentUserInfo.cs new file mode 100644 index 00000000..2c893a9b --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/User/CurrentUserInfo.cs @@ -0,0 +1,127 @@ +using System.Collections.Generic; + +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the current user's profile information in WebSocket messages. + /// + /// + /// This class contains a subset of user profile fields that are included + /// in user update events. For full user information, use the REST API. + /// + /// + public class CurrentUserInfo + { + /// + /// Gets or sets the user's biography text. + /// + /// + /// The user's bio, limited to 512 characters. + /// + public string Bio { get; set; } + + /// + /// Gets or sets the unique identifier of the user's current avatar. + /// + /// + /// An avatar ID in the form of avtr_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public string CurrentAvatar { get; set; } + + /// + /// Gets or sets the URL of the user's current avatar image. + /// + /// + /// A URL to the full avatar image. When is not empty, + /// that should be used instead. + /// + public string CurrentAvatarImageUrl { get; set; } + + /// + /// Gets or sets the URL of the user's current avatar thumbnail image. + /// + /// + /// A URL to the avatar thumbnail image. When is not empty, + /// that should be used instead. + /// + public string CurrentAvatarThumbnailImageUrl { get; set; } + + /// + /// Gets or sets the user's display name. + /// + /// + /// The user's visual display name shown in-game. This can be different from the username. + /// + public string DisplayName { get; set; } + + /// + /// Gets or sets the unique identifier of the user's fallback avatar. + /// + /// + /// An avatar ID used when the primary avatar cannot be loaded. + /// + public string FallbackAvatar { get; set; } + + /// + /// Gets or sets the unique identifier of the user. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// Legacy players can have old IDs in the form of 8JoV9XEdpo. + /// + public string Id { get; set; } + + /// + /// Gets or sets the URL of the user's profile picture override. + /// + /// + /// A URL to a custom profile picture, or null if using the avatar image. + /// When set, this should be displayed instead of the avatar image URLs. + /// + public string ProfilePicOverride { get; set; } + + /// + /// Gets or sets the user's current status. + /// + /// + /// The status type, such as "active", "join me", "ask me", "busy", or "offline". + /// + public string Status { get; set; } + + /// + /// Gets or sets the user's custom status description. + /// + /// + /// A custom status message set by the user. + /// + public string StatusDescription { get; set; } + + /// + /// Gets or sets the user's tags. + /// + /// + /// A list of system and user-assigned tags, such as trust rank tags and feature flags. + /// + public List Tags { get; set; } + + /// + /// Gets or sets the URL of the user's custom icon. + /// + /// + /// A URL to the user's custom icon image, or null if not set. + /// + public string UserIcon { get; set; } + + /// + /// Gets or sets the user's username. + /// + /// + /// The user's unique login name. This is different from . + /// + /// + /// Note: VRChat no longer returns usernames of other users in most API responses, + /// but this may be available for the current user. + /// + public string Username { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/User/InstanceQueueJoinedContent.cs b/wrapper/VRChat.API.Realtime/Messages/User/InstanceQueueJoinedContent.cs new file mode 100644 index 00000000..2e19ebe7 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/User/InstanceQueueJoinedContent.cs @@ -0,0 +1,31 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of an "instance-queue-joined" WebSocket event. + /// + /// + /// This event is raised when you join a queue to enter a full or restricted instance. + /// You will receive an event when you reach + /// the front of the queue and can join. + /// + /// + public class InstanceQueueJoinedContent + { + /// + /// Gets or sets the location of the instance you are queued for. + /// + /// + /// A location string in the format worldId:instanceId, such as + /// wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd:12345~private(usr_xxx). + /// + public string InstanceLocation { get; set; } + + /// + /// Gets or sets your current position in the queue. + /// + /// + /// A 1-based position number, where 1 means you are next in line to join. + /// + public int Position { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/User/InstanceQueueReadyContent.cs b/wrapper/VRChat.API.Realtime/Messages/User/InstanceQueueReadyContent.cs new file mode 100644 index 00000000..470f8e7e --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/User/InstanceQueueReadyContent.cs @@ -0,0 +1,32 @@ +using System; + +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of an "instance-queue-ready" WebSocket event. + /// + /// + /// This event is raised when you reach the front of an instance queue and can join. + /// You should join the instance before the expiry time, or you will lose your spot. + /// + /// + public class InstanceQueueReadyContent + { + /// + /// Gets or sets the location of the instance you can now join. + /// + /// + /// A location string in the format worldId:instanceId, such as + /// wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd:12345~private(usr_xxx). + /// + public string InstanceLocation { get; set; } + + /// + /// Gets or sets the expiration time for joining the instance. + /// + /// + /// The UTC timestamp by which you must join the instance, or you will lose your queue spot. + /// + public DateTime Expiry { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/User/ModifiedImageUpdateContent.cs b/wrapper/VRChat.API.Realtime/Messages/User/ModifiedImageUpdateContent.cs new file mode 100644 index 00000000..d7fd772a --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/User/ModifiedImageUpdateContent.cs @@ -0,0 +1,45 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "modified-image-update" WebSocket event. + /// + /// + /// This event is raised when an image file is modified or processed. + /// This typically occurs when uploading new images or when VRChat processes + /// images for different resolutions. + /// + public class ModifiedImageUpdateContent + { + /// + /// Gets or sets the unique identifier of the file that was modified. + /// + /// + /// A file ID in the form of file_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public string FileId { get; set; } + + /// + /// Gets or sets the pixel size of the processed image. + /// + /// + /// The size in pixels, such as 256, 512, or 1024 for standard thumbnail sizes. + /// + public int PixelSize { get; set; } + + /// + /// Gets or sets the version number of the file. + /// + /// + /// An integer version number that increments with each file modification. + /// + public int VersionNumber { get; set; } + + /// + /// Gets or sets whether the image still needs processing. + /// + /// + /// true if additional processing is required; false if processing is complete. + /// + public bool NeedsProcessing { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/User/UserBadgeAssignedContent.cs b/wrapper/VRChat.API.Realtime/Messages/User/UserBadgeAssignedContent.cs new file mode 100644 index 00000000..b8a7df94 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/User/UserBadgeAssignedContent.cs @@ -0,0 +1,27 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "user-badge-assigned" WebSocket event. + /// + /// + /// This event is raised when you are assigned a badge, such as a VRChat+ + /// subscription badge or special event badges. + /// + /// + /// + public class UserBadgeAssignedContent + { + /// + /// Gets or sets the badge information as a JSON string. + /// + /// + /// A JSON string containing the badge details, including badgeId, badgeName, + /// badgeDescription, and badgeImageUrl. + /// + /// + /// This is provided as a string and may need to be deserialized separately + /// to access individual badge properties. + /// + public string Badge { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/User/UserBadgeUnassignedContent.cs b/wrapper/VRChat.API.Realtime/Messages/User/UserBadgeUnassignedContent.cs new file mode 100644 index 00000000..44665fd7 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/User/UserBadgeUnassignedContent.cs @@ -0,0 +1,21 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "user-badge-unassigned" WebSocket event. + /// + /// + /// This event is raised when a badge is removed from your account, such as when + /// a VRChat+ subscription expires or a temporary badge is revoked. + /// + /// + public class UserBadgeUnassignedContent + { + /// + /// Gets or sets the unique identifier of the badge that was removed. + /// + /// + /// A badge ID in the form of bdge_xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. + /// + public string BadgeId { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/User/UserLocationContent.cs b/wrapper/VRChat.API.Realtime/Messages/User/UserLocationContent.cs new file mode 100644 index 00000000..7954d306 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/User/UserLocationContent.cs @@ -0,0 +1,57 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "user-location" WebSocket event. + /// + /// + /// This event is raised when the current user changes their location (world/instance). + /// This is different from which tracks friends' locations. + /// + /// + /// + public class UserLocationContent + { + /// + /// Gets or sets the unique identifier of the current user. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// + public string UserId { get; set; } + + /// + /// Gets or sets the current user's information. + /// + /// + /// A object containing profile information, + /// or null if not provided. + /// + public LimitedUser User { get; set; } + + /// + /// Gets or sets the current location. + /// + /// + /// A location string in the format worldId:instanceId, such as + /// wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd:12345~private(usr_xxx). + /// + public string Location { get; set; } + + /// + /// Gets or sets the current instance identifier. + /// + /// + /// The instance portion of the location string, such as 12345~private(usr_xxx). + /// + public string Instance { get; set; } + + /// + /// Gets or sets the location the user is currently traveling to. + /// + /// + /// A location string if the user is in transit to a new world, or null + /// if they are not currently traveling. + /// + public string TravelingToLocation { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/User/UserUpdateContent.cs b/wrapper/VRChat.API.Realtime/Messages/User/UserUpdateContent.cs new file mode 100644 index 00000000..952e66e6 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/User/UserUpdateContent.cs @@ -0,0 +1,30 @@ +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents the content of a "user-update" WebSocket event. + /// + /// + /// This event is raised when the current user's profile information is updated. + /// This includes changes to display name, status, avatar, bio, and other profile fields. + /// + /// + /// + public class UserUpdateContent + { + /// + /// Gets or sets the unique identifier of the current user. + /// + /// + /// A user's unique ID, usually in the form of usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469. + /// + public string UserId { get; set; } + + /// + /// Gets or sets the current user's updated information. + /// + /// + /// A object containing the updated profile information. + /// + public CurrentUserInfo User { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/Messages/WebSocketMessageWrapper.cs b/wrapper/VRChat.API.Realtime/Messages/WebSocketMessageWrapper.cs new file mode 100644 index 00000000..273a8748 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Messages/WebSocketMessageWrapper.cs @@ -0,0 +1,95 @@ +using System.Text.Json; + +namespace VRChat.API.Realtime.Messages +{ + /// + /// Represents a parsed WebSocket message received from the VRChat Pipeline API. + /// + /// The type of the deserialized message content. + /// + /// VRChat WebSocket messages typically have a "type" field indicating the event type + /// and a "content" field containing the event data. This class provides convenient + /// access to both the typed content and raw JSON for debugging or custom processing. + /// + public class WebSocketMessage + { + /// + /// Gets or sets the message type identifier from VRChat. + /// + /// + /// The message type string, such as "friend-online", "notification", or "user-update". + /// + public string Type { get; set; } + + /// + /// Gets or sets the deserialized message content. + /// + /// + /// The strongly-typed content object deserialized from the JSON payload. + /// + public T Content { get; set; } + + /// + /// Gets or sets the complete raw JSON string of the entire WebSocket message. + /// + /// + /// The original JSON string as received from the WebSocket, including type and content fields. + /// Useful for debugging, logging, or custom deserialization scenarios. + /// + public string RawMessage { get; set; } + + /// + /// Gets or sets the raw JSON string of just the content field. + /// + /// + /// The JSON string representation of the content field before deserialization. + /// For double-encoded messages, this is the inner JSON string that was decoded. + /// + public string RawContent { get; set; } + + /// + /// Creates a new from pre-extracted type and content. + /// + /// The message type identifier. + /// The complete raw JSON message string. + /// The raw content JSON string to deserialize. + /// The to use for deserialization. + /// A new with the deserialized content. + /// + /// Use this method for double-encoded messages where the content is already extracted + /// as a JSON string from the outer message structure. + /// + public static WebSocketMessage FromContent(string type, string rawMessage, string rawContent, JsonSerializerOptions options) + { + return new WebSocketMessage + { + Type = type, + Content = JsonSerializer.Deserialize(rawContent, options), + RawMessage = rawMessage, + RawContent = rawContent + }; + } + + /// + /// Creates a new with string content that requires no deserialization. + /// + /// The message type identifier. + /// The complete raw JSON message string. + /// The string content value. + /// A new where T is . + /// + /// Use this method for simple messages where the content is a plain string value, + /// such as notification IDs in "see-notification" or "hide-notification" events. + /// + public static WebSocketMessage FromStringContent(string type, string rawMessage, string rawContent) + { + return new WebSocketMessage + { + Type = type, + Content = rawContent, + RawMessage = rawMessage, + RawContent = rawContent + }; + } + } +} diff --git a/wrapper/VRChat.API.Realtime/Models/LogEventArgs.cs b/wrapper/VRChat.API.Realtime/Models/LogEventArgs.cs new file mode 100644 index 00000000..ee490e19 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Models/LogEventArgs.cs @@ -0,0 +1,89 @@ +using System; + +namespace VRChat.API.Realtime.Models +{ + /// + /// Provides data for log events generated by the . + /// + /// + /// Subscribe to the event to receive + /// diagnostic messages from the realtime client, including connection status, + /// message processing details, and error information. + /// + /// + /// + public class LogEventArgs : EventArgs + { + /// + /// Gets or sets the exception associated with this log entry, if any. + /// + /// + /// The that caused this log entry, or null + /// if no exception is associated with this log message. + /// + public Exception Exception { get; set; } + + /// + /// Gets or sets the log message text. + /// + /// + /// A human-readable description of the log event, such as connection status changes, + /// processing information, or error details. + /// + public string Message { get; set; } + + /// + /// Gets or sets the severity level of this log entry. + /// + /// + /// The indicating the importance and type of the log message. + /// + public LogLevel Level { get; set; } + } + + /// + /// Specifies the severity level of a log message. + /// + /// + /// Log levels are ordered from most verbose () to most severe (). + /// Use these levels to filter log output based on your debugging needs. + /// + public enum LogLevel + { + /// + /// Very detailed diagnostic information, typically only useful for debugging specific issues. + /// Includes raw message data and internal processing details. + /// + Trace, + + /// + /// Diagnostic information useful during development. + /// Includes detailed operation information and state changes. + /// + Debug, + + /// + /// General operational information about normal application flow. + /// Includes connection status and major state transitions. + /// + Info, + + /// + /// Indicates a potential problem that doesn't prevent operation but may require attention. + /// Includes recoverable errors and unexpected but handled conditions. + /// + Warning, + + /// + /// Indicates an error that prevented an operation from completing. + /// The application can continue but some functionality may be impaired. + /// + Error, + + /// + /// Indicates a severe error that may cause the application to terminate or become unstable. + /// Immediate attention is required. + /// + Critical + } +} diff --git a/wrapper/VRChat.API.Realtime/Models/VRChatEventArgs.cs b/wrapper/VRChat.API.Realtime/Models/VRChatEventArgs.cs new file mode 100644 index 00000000..93e09603 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/Models/VRChatEventArgs.cs @@ -0,0 +1,57 @@ +using System; + +namespace VRChat.API.Realtime.Models +{ + /// + /// Provides data for VRChat realtime events containing typed message content. + /// + /// The type of the deserialized message content. + /// + /// This class is used as the event argument for all typed VRChat WebSocket events, + /// providing access to both the strongly-typed content and raw JSON data for + /// debugging or custom processing scenarios. + /// + /// + public class VRChatEventArgs : EventArgs + { + /// + /// Gets or sets the deserialized message content. + /// + /// + /// The strongly-typed content object deserialized from the WebSocket message. + /// The type depends on the specific event (e.g., + /// for friend-online events). + /// + public T Message { get; set; } + + /// + /// Gets or sets the complete raw JSON string received from the WebSocket. + /// + /// + /// The original JSON string as received from VRChat's Pipeline API, + /// including both the "type" and "content" fields. + /// Useful for debugging, logging, or custom deserialization scenarios. + /// + public string RawMessage { get; set; } + + /// + /// Gets or sets the raw JSON string of the content field before deserialization. + /// + /// + /// The JSON string representation of the "content" field from the VRChat message. + /// For double-encoded messages, this is the inner JSON string that was decoded + /// before being deserialized to type . + /// + public string RawContent { get; set; } + + /// + /// Gets or sets the message type identifier. + /// + /// + /// The message type string from VRChat, such as "friend-online", "notification", + /// "user-update", "group-joined", etc. + /// + /// VRChat WebSocket API Documentation + public string Type { get; set; } + } +} diff --git a/wrapper/VRChat.API.Realtime/README.md b/wrapper/VRChat.API.Realtime/README.md new file mode 100644 index 00000000..d26e4576 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/README.md @@ -0,0 +1,132 @@ +![](https://raw.githubusercontent.com/vrchatapi/vrchatapi.github.io/main/static/assets/img/lang/lang_csharp_banner_1500x300.png) + +# VRChat Realtime WebSocket API for .NET + +A .NET client for VRChat's Realtime WebSocket API (Pipeline). Receive real-time updates about notifications, friends, user status, and more. + +## Disclaimer + +This is the official response of the VRChat Team (from Tupper more specifically) on the usage of the VRChat API. + +> Use of the API using applications other than the approved methods (website, VRChat application) are not officially supported. You may use the API for your own application, but keep these guidelines in mind: +> * We do not provide documentation or support for the API. +> * Do not make queries to the API more than once per 60 seconds. +> * Abuse of the API may result in account termination. +> * Access to API endpoints may break at any given time, with no warning. + +As stated, this documentation was not created with the help of the official VRChat team. Therefore this documentation is not an official documentation of the VRChat API and may not be always up to date with the latest versions. If you find that a page or endpoint is not longer valid please create an issue and tell us so we can fix it. + +## Installation + +Install with NuGet: + +```bash +# With .NET CLI +dotnet add package VRChat.API.Realtime + +# Or with Package Manager +Install-Package VRChat.API.Realtime +``` + +## Quick Start + +```cs +using VRChat.API.Realtime; +using VRChat.API.Realtime.Models; + +// Create client using builder pattern +var client = new VRChatRealtimeClientBuilder() + .WithAuthToken("authcookie_...") + .WithApplication(name: "Example", version: "1.0.0", contact: "youremail.com") + .WithAutoReconnect(AutoReconnectMode.OnDisconnect) + .Build(); + +// Subscribe to events +client.OnConnected += (sender, e) => +{ + Console.WriteLine("Connected to VRChat Pipeline!"); +}; + +client.OnFriendOnline += (sender, e) => +{ + Console.WriteLine($"Friend {e.User?.DisplayName} came online!"); +}; + +client.OnNotification += (sender, e) => +{ + Console.WriteLine($"Notification: {e.Notification?.Type}"); +}; + +// Connect +await client.ConnectAsync(); +await Task.Delay(-1); +``` + +## Auto-Reconnect Modes + +- **None**: Do not automatically reconnect +- **OnDisconnect**: Reconnect when disconnected unexpectedly +- **Every10Minutes**: Reconnect every 10 minutes +- **Every20Minutes**: Reconnect every 20 minutes +- **Every30Minutes**: Reconnect every 30 minutes + +## Available Events + +### Connection Events +- `OnConnected` - Connected to WebSocket +- `OnDisconnected` - Disconnected from WebSocket +- `OnAutoReconnecting` - Auto-reconnect triggered +- `Log` - Log messages with levels (Trace, Debug, Info, Warning, Error, Critical) + +### Notification Events +- `OnNotification` - Standard notification +- `OnResponseNotification` - Response to previous notification +- `OnSeeNotification` - Mark notification as seen +- `OnHideNotification` - Hide notification +- `OnClearNotification` - Clear all notifications +- `OnNotificationV2` - V2 notification system +- `OnNotificationV2Update` - Update V2 notification +- `OnNotificationV2Delete` - Delete V2 notifications + +### Friend Events +- `OnFriendAdd` - Friend added +- `OnFriendDelete` - Friend removed +- `OnFriendOnline` - Friend came online +- `OnFriendActive` - Friend active on website +- `OnFriendOffline` - Friend went offline +- `OnFriendUpdate` - Friend profile updated +- `OnFriendLocation` - Friend changed location + +### User Events +- `OnUserUpdate` - Your profile updated +- `OnUserLocation` - Your location changed +- `OnUserBadgeAssigned` - Badge obtained +- `OnUserBadgeUnassigned` - Badge lost +- `OnContentRefresh` - Content added/removed +- `OnModifiedImageUpdate` - Image file modified +- `OnInstanceQueueJoined` - Joined instance queue +- `OnInstanceQueueReady` - Ready to join instance + +### Group Events +- `OnGroupJoined` - Joined a group +- `OnGroupLeft` - Left a group +- `OnGroupMemberUpdated` - Group membership changed +- `OnGroupRoleUpdated` - Group role changed + +## Examples + +See the [example code](../../examples/VRChat.API.Examples.WebSocket/) for a sample codebase. + +## Authentication + +You need a VRChat authentication cookie (`authcookie_...`) to connect to the Pipeline. You can obtain this by: +1. Using the main VRChat.API library to authenticate +2. Logging in through the VRChat website and extracting the cookie + +**Note**: Keep your auth token secure and never commit it to version control! + +## Contributing + +Contributions are welcome, but do not add features that should be handled by the OpenAPI specification. + +Join the [Discord server](https://discord.gg/Ge2APMhPfD) to get in touch with us. diff --git a/wrapper/VRChat.API.Realtime/VRChat.API.Realtime.csproj b/wrapper/VRChat.API.Realtime/VRChat.API.Realtime.csproj new file mode 100644 index 00000000..c88085ca --- /dev/null +++ b/wrapper/VRChat.API.Realtime/VRChat.API.Realtime.csproj @@ -0,0 +1,40 @@ + + + + true + net8.0 + VRChat.API.Realtime + VRChat.API.Realtime + Library + VRChat API Docs Community + VRChat API Docs Community + VRChat API Realtime library for VRChat API + VRChat Realtime WebSocket API library for .NET + Copyright © 2021 Owners of GitHub organisation "vrchatapi" and individual contributors. + VRChat.API.Realtime + 1.0.0 + bin\$(Configuration)\$(TargetFramework)\VRChat.API.Realtime.xml + MIT + https://github.com/vrchatapi/vrchatapi-csharp.git + git + Automated deployment + README.md + vrchat,vrcapi,websocket,realtime,vrc-api,vrc + vrc_cat.ico + + + + + + + + + True + \ + + + True + \ + + + diff --git a/wrapper/VRChat.API.Realtime/VRChatRealtimeClient.MessageProcessor.cs b/wrapper/VRChat.API.Realtime/VRChatRealtimeClient.MessageProcessor.cs new file mode 100644 index 00000000..78bd0789 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/VRChatRealtimeClient.MessageProcessor.cs @@ -0,0 +1,160 @@ +using System.Text.Json; +using VRChat.API.Realtime.Models; +using VRChat.API.Realtime.Messages; +using System; + +namespace VRChat.API.Realtime +{ + public partial class VRChatRealtimeClient + { + /// + /// JSON serialization options used for deserializing WebSocket message content. + /// + private static readonly JsonSerializerOptions JsonOptions = new JsonSerializerOptions + { + PropertyNameCaseInsensitive = true, + PropertyNamingPolicy = JsonNamingPolicy.CamelCase + }; + + /// + /// Routes and processes an incoming WebSocket message based on its type. + /// + /// The message type identifier from VRChat. + /// The complete raw JSON message string. + /// The extracted content field as a JSON string. + private void ProcessMessage(string messageType, string rawJson, string rawContent) + { + object parsedContent = null; + + try + { + var result = messageType switch + { + // Notification Events + "notification" => ProcessContent(messageType, rawJson, rawContent, OnNotification), + "response-notification" => ProcessContent(messageType, rawJson, rawContent, OnResponseNotification), + "see-notification" => ProcessStringContent(messageType, rawJson, rawContent, OnSeeNotification), + "hide-notification" => ProcessStringContent(messageType, rawJson, rawContent, OnHideNotification), + "clear-notification" => ProcessClearNotification(), + "notification-v2" => ProcessContent(messageType, rawJson, rawContent, OnNotificationV2), + "notification-v2-update" => ProcessContent(messageType, rawJson, rawContent, OnNotificationV2Update), + "notification-v2-delete" => ProcessContent(messageType, rawJson, rawContent, OnNotificationV2Delete), + + // Friend Events + "friend-add" => ProcessContent(messageType, rawJson, rawContent, OnFriendAdd), + "friend-delete" => ProcessContent(messageType, rawJson, rawContent, OnFriendDelete), + "friend-online" => ProcessContent(messageType, rawJson, rawContent, OnFriendOnline), + "friend-active" => ProcessContent(messageType, rawJson, rawContent, OnFriendActive), + "friend-offline" => ProcessContent(messageType, rawJson, rawContent, OnFriendOffline), + "friend-update" => ProcessContent(messageType, rawJson, rawContent, OnFriendUpdate), + "friend-location" => ProcessContent(messageType, rawJson, rawContent, OnFriendLocation), + + // User Events + "user-update" => ProcessContent(messageType, rawJson, rawContent, OnUserUpdate), + "user-location" => ProcessContent(messageType, rawJson, rawContent, OnUserLocation), + "user-badge-assigned" => ProcessContent(messageType, rawJson, rawContent, OnUserBadgeAssigned), + "user-badge-unassigned" => ProcessContent(messageType, rawJson, rawContent, OnUserBadgeUnassigned), + "content-refresh" => ProcessContent(messageType, rawJson, rawContent, OnContentRefresh), + "modified-image-update" => ProcessContent(messageType, rawJson, rawContent, OnModifiedImageUpdate), + "instance-queue-joined" => ProcessContent(messageType, rawJson, rawContent, OnInstanceQueueJoined), + "instance-queue-ready" => ProcessContent(messageType, rawJson, rawContent, OnInstanceQueueReady), + + // Group Events + "group-joined" => ProcessContent(messageType, rawJson, rawContent, OnGroupJoined), + "group-left" => ProcessContent(messageType, rawJson, rawContent, OnGroupLeft), + "group-member-updated" => ProcessContent(messageType, rawJson, rawContent, OnGroupMemberUpdated), + "group-role-updated" => ProcessContent(messageType, rawJson, rawContent, OnGroupRoleUpdated), + + // Unknown + _ => LogUnknownMessage(messageType) + }; + + parsedContent = result; + } + catch (Exception ex) + { + LogMessage(LogLevel.Error, $"Error processing {messageType} message: {ex.Message}", ex); + } + + // Fire generic OnEvent with parsed content + if (parsedContent != null) + { + OnEvent?.Invoke(this, new VRChatEventArgs + { + Message = parsedContent, + RawMessage = rawJson, + RawContent = rawContent, + Type = messageType + }); + } + } + + /// + /// Deserializes and processes a typed message content, invoking the specified event handler. + /// + /// The type to deserialize the content to. + /// The message type identifier. + /// The complete raw JSON message string. + /// The content field JSON string to deserialize. + /// The event handler to invoke with the deserialized content. + /// The deserialized content object, or null if deserialization fails. + private object ProcessContent(string type, string rawJson, string rawContent, EventHandler> eventHandler) + { + var message = WebSocketMessage.FromContent(type, rawJson, rawContent, JsonOptions); + + eventHandler?.Invoke(this, new VRChatEventArgs + { + Message = message.Content, + RawMessage = message.RawMessage, + RawContent = message.RawContent, + Type = message.Type + }); + + return message.Content; + } + + /// + /// Processes string content that requires no JSON deserialization. + /// + /// The message type identifier. + /// The complete raw JSON message string. + /// The string content value. + /// The event handler to invoke with the string content. + /// The string content value. + private object ProcessStringContent(string type, string rawJson, string rawContent, EventHandler> eventHandler) + { + var message = WebSocketMessage.FromStringContent(type, rawJson, rawContent); + + eventHandler?.Invoke(this, new VRChatEventArgs + { + Message = message.Content, + RawMessage = message.RawMessage, + RawContent = message.RawContent, + Type = message.Type + }); + + return message.Content; + } + + /// + /// Logs an unknown message type for debugging purposes. + /// + /// The unrecognized message type identifier. + /// null as no content is processed. + private object LogUnknownMessage(string messageType) + { + LogMessage(LogLevel.Debug, $"Unknown message type: {messageType}"); + return null; + } + + /// + /// Processes the clear-notification event which has no content payload. + /// + /// null as no content is associated with this event. + private object ProcessClearNotification() + { + OnClearNotification?.Invoke(this, EventArgs.Empty); + return null; + } + } +} diff --git a/wrapper/VRChat.API.Realtime/VRChatRealtimeClient.cs b/wrapper/VRChat.API.Realtime/VRChatRealtimeClient.cs new file mode 100644 index 00000000..69dd21e6 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/VRChatRealtimeClient.cs @@ -0,0 +1,732 @@ +using System; +using System.Net.WebSockets; +using System.Text; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using VRChat.API.Realtime.Models; +using VRChat.API.Realtime.Messages; + +namespace VRChat.API.Realtime +{ + /// + /// A generic interface for communicating with VRChat's Realtime WebSocket API (Pipeline). + /// + public interface IVRChatRealtime : IDisposable + { + #region Connection Events + + /// + /// Raised when a log message is generated by the client. + /// + event EventHandler Log; + + /// + /// Raised when the WebSocket connection is disconnected. + /// + event EventHandler OnDisconnected; + + /// + /// Raised when the WebSocket connection is successfully established. + /// + event EventHandler OnConnected; + + /// + /// Raised when the client is attempting to auto-reconnect to the WebSocket. + /// + event EventHandler OnAutoReconnecting; + + /// + /// Raised when any raw message is received from the WebSocket. + /// + event EventHandler> OnMessageReceived; + + /// + /// Raised when a heartbeat message is sent to the server. + /// + event EventHandler OnHeartbeat; + + /// + /// Raised when any parsed event is received from the WebSocket. + /// + event EventHandler> OnEvent; + + #endregion + + #region Notification Events + + /// + /// Raised when a notification is received from VRChat.
+ /// This includes friend requests, invites, and other in-game notifications. + ///
+ event EventHandler> OnNotification; + + /// + /// Raised when a response to a previously sent notification is received. + /// + event EventHandler> OnResponseNotification; + + /// + /// Raised when the client should mark a specific notification as seen. + /// + event EventHandler> OnSeeNotification; + + /// + /// Raised when the client should hide a specific notification. + /// + event EventHandler> OnHideNotification; + + /// + /// Raised when the client should clear all notifications. + /// + event EventHandler OnClearNotification; + + /// + /// Raised when a V2 notification is received from VRChat.
+ /// V2 notifications include group announcements and other system messages. + ///
+ event EventHandler> OnNotificationV2; + + /// + /// Raised when a V2 notification should be updated with new properties. + /// + event EventHandler> OnNotificationV2Update; + + /// + /// Raised when one or more V2 notifications should be deleted. + /// + event EventHandler> OnNotificationV2Delete; + + #endregion + + #region Friend Events + + /// + /// Raised when a friend is added or a friend request is accepted. + /// + event EventHandler> OnFriendAdd; + + /// + /// Raised when a friend is removed or unfriended. + /// + event EventHandler> OnFriendDelete; + + /// + /// Raised when a friend comes online in VRChat. + /// + event EventHandler> OnFriendOnline; + + /// + /// Raised when a friend becomes active on the VRChat website. + /// + event EventHandler> OnFriendActive; + + /// + /// Raised when a friend goes offline. + /// + event EventHandler> OnFriendOffline; + + /// + /// Raised when a friend's profile information is updated. + /// + event EventHandler> OnFriendUpdate; + + /// + /// Raised when a friend changes their location or instance. + /// + event EventHandler> OnFriendLocation; + + #endregion + + #region User Events + + /// + /// Raised when the current user's profile information is updated. + /// + event EventHandler> OnUserUpdate; + + /// + /// Raised when the current user changes their location or instance. + /// + event EventHandler> OnUserLocation; + + /// + /// Raised when the current user is assigned a badge (e.g., VRChat+ subscription). + /// + event EventHandler> OnUserBadgeAssigned; + + /// + /// Raised when the current user loses a badge (e.g., VRChat+ subscription expires). + /// + event EventHandler> OnUserBadgeUnassigned; + + /// + /// Raised when content is added or removed from the user's profile.
+ /// This includes avatars, worlds, images, and other user-uploaded content. + ///
+ event EventHandler> OnContentRefresh; + + /// + /// Raised when an image file is modified or updated. + /// + event EventHandler> OnModifiedImageUpdate; + + /// + /// Raised when the user joins a queue to enter an instance. + /// + event EventHandler> OnInstanceQueueJoined; + + /// + /// Raised when the user reaches the front of the instance queue and can join. + /// + event EventHandler> OnInstanceQueueReady; + + #endregion + + #region Group Events + + /// + /// Raised when the user joins a group or has a group join request accepted. + /// + event EventHandler> OnGroupJoined; + + /// + /// Raised when the user leaves a group or is removed from a group. + /// + event EventHandler> OnGroupLeft; + + /// + /// Raised when the user's group membership information is updated. + /// + event EventHandler> OnGroupMemberUpdated; + + /// + /// Raised when a group role is updated or modified. + /// + event EventHandler> OnGroupRoleUpdated; + + #endregion + + #region Methods + + /// + /// Connects to the VRChat WebSocket API (Pipeline) asynchronously. + /// + /// Cancellation token for cancelling the connection operation. + /// A representing the asynchronous connection operation. + Task ConnectAsync(CancellationToken cancellationToken = default); + + /// + /// Disconnects from the VRChat WebSocket API asynchronously. + /// + /// A representing the asynchronous disconnection operation. + Task DisconnectAsync(); + + /// + /// Gets a value indicating whether the client is currently connected to the WebSocket. + /// + bool IsConnected { get; } + + /// + /// Releases all resources used by the VRChat realtime client. + /// + /// + /// This method is inherited from . + /// + new void Dispose(); + + #endregion + } + + /// + /// Implementation of that provides realtime communication + /// with VRChat's Pipeline WebSocket API. + /// + /// + /// Use to create and configure instances of this class. + /// + /// + /// + public partial class VRChatRealtimeClient : IVRChatRealtime, IDisposable + { + private readonly VRChatRealtimeConfiguration _configuration; + private ClientWebSocket _client; + private Timer _reconnectTimer; + private Timer _heartbeatTimer; + private CancellationTokenSource _receiveCts; + private Task _receiveTask; + private bool _isManualDisconnect; + private bool _disposed; + private readonly SemaphoreSlim _sendLock = new SemaphoreSlim(1, 1); + + #region Connection Events + + /// + public event EventHandler Log; + + /// + public event EventHandler OnDisconnected; + + /// + public event EventHandler OnConnected; + + /// + public event EventHandler OnAutoReconnecting; + + /// + public event EventHandler> OnMessageReceived; + + /// + public event EventHandler OnHeartbeat; + + /// + public event EventHandler> OnEvent; + + #endregion + + #region Notification Events + + /// + public event EventHandler> OnNotification; + + /// + public event EventHandler> OnResponseNotification; + + /// + public event EventHandler> OnSeeNotification; + + /// + public event EventHandler> OnHideNotification; + + /// + public event EventHandler OnClearNotification; + + /// + public event EventHandler> OnNotificationV2; + + /// + public event EventHandler> OnNotificationV2Update; + + /// + public event EventHandler> OnNotificationV2Delete; + + #endregion + + #region Friend Events + + /// + public event EventHandler> OnFriendAdd; + + /// + public event EventHandler> OnFriendDelete; + + /// + public event EventHandler> OnFriendOnline; + + /// + public event EventHandler> OnFriendActive; + + /// + public event EventHandler> OnFriendOffline; + + /// + public event EventHandler> OnFriendUpdate; + + /// + public event EventHandler> OnFriendLocation; + + #endregion + + #region User Events + + /// + public event EventHandler> OnUserUpdate; + + /// + public event EventHandler> OnUserLocation; + + /// + public event EventHandler> OnUserBadgeAssigned; + + /// + public event EventHandler> OnUserBadgeUnassigned; + + /// + public event EventHandler> OnContentRefresh; + + /// + public event EventHandler> OnModifiedImageUpdate; + + /// + public event EventHandler> OnInstanceQueueJoined; + + /// + public event EventHandler> OnInstanceQueueReady; + + #endregion + + #region Group Events + + /// + public event EventHandler> OnGroupJoined; + + /// + public event EventHandler> OnGroupLeft; + + /// + public event EventHandler> OnGroupMemberUpdated; + + /// + public event EventHandler> OnGroupRoleUpdated; + + #endregion + + /// + public bool IsConnected => _client?.State == WebSocketState.Open; + + /// + /// Initializes a new instance of the class. + /// + /// The configuration settings for the client. + /// Thrown if is null. + /// Thrown if is not set. + /// + /// Use for a more convenient way to create and configure the client. + /// + public VRChatRealtimeClient(VRChatRealtimeConfiguration configuration) + { + _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); + + if (string.IsNullOrWhiteSpace(_configuration.AuthToken)) + throw new ArgumentException("AuthToken is required", nameof(configuration)); + } + + /// + public async Task ConnectAsync(CancellationToken cancellationToken = default) + { + if (_client?.State == WebSocketState.Open) + { + LogMessage(LogLevel.Warning, "Already connected to VRChat WebSocket"); + return; + } + + try + { + _isManualDisconnect = false; + _receiveCts?.Cancel(); + _receiveCts?.Dispose(); + _receiveCts = new CancellationTokenSource(); + + var url = $"{_configuration.EndpointURL.TrimEnd('/')}/?authToken={_configuration.AuthToken}"; + + _client?.Dispose(); + _client = new ClientWebSocket(); + + if (!string.IsNullOrWhiteSpace(_configuration.UserAgent)) + { + _client.Options.SetRequestHeader("User-Agent", _configuration.UserAgent); + } + + await _client.ConnectAsync(new Uri(url), cancellationToken); + + LogMessage(LogLevel.Info, "Connected to VRChat WebSocket"); + OnConnected?.Invoke(this, EventArgs.Empty); + + // Start receiving messages + _receiveTask = ReceiveLoop(_receiveCts.Token); + + // Setup periodic reconnect timer + SetupReconnectTimer(); + + // Setup heartbeat timer (every 30 seconds) + SetupHeartbeatTimer(); + } + catch (Exception ex) + { + LogMessage(LogLevel.Error, $"Failed to connect to VRChat WebSocket: {ex.Message}", ex); + throw; + } + } + + /// + public async Task DisconnectAsync() + { + _isManualDisconnect = true; + + // Stop timers + _reconnectTimer?.Dispose(); + _reconnectTimer = null; + _heartbeatTimer?.Dispose(); + _heartbeatTimer = null; + + // Cancel receiving + _receiveCts?.Cancel(); + + if (_client != null && _client.State == WebSocketState.Open) + { + try + { + await _client.CloseAsync(WebSocketCloseStatus.NormalClosure, "Client disconnecting", CancellationToken.None); + } + catch (Exception ex) + { + LogMessage(LogLevel.Warning, $"Error during disconnect: {ex.Message}", ex); + } + } + + _client?.Dispose(); + _client = null; + + if (_receiveTask != null) + { + try + { + await _receiveTask; + } + catch (OperationCanceledException) + { + // Expected + } + catch (Exception ex) + { + LogMessage(LogLevel.Warning, $"Error waiting for receive task: {ex.Message}", ex); + } + } + + LogMessage(LogLevel.Info, "Disconnected from VRChat WebSocket"); + } + + private async Task ReceiveLoop(CancellationToken cancellationToken) + { + var buffer = new byte[8192]; + var messageBuffer = new StringBuilder(); + + try + { + while (!cancellationToken.IsCancellationRequested && _client.State == WebSocketState.Open) + { + WebSocketReceiveResult result; + messageBuffer.Clear(); + + do + { + result = await _client.ReceiveAsync(new ArraySegment(buffer), cancellationToken); + + if (result.MessageType == WebSocketMessageType.Close) + { + await HandleDisconnection(); + return; + } + + messageBuffer.Append(Encoding.UTF8.GetString(buffer, 0, result.Count)); + } + while (!result.EndOfMessage); + + if (result.MessageType == WebSocketMessageType.Text) + { + var message = messageBuffer.ToString(); + HandleMessage(message); + } + } + } + catch (OperationCanceledException) + { + // Expected when cancelling + } + catch (WebSocketException ex) + { + LogMessage(LogLevel.Error, $"WebSocket error: {ex.Message}", ex); + await HandleDisconnection(); + } + catch (Exception ex) + { + LogMessage(LogLevel.Error, $"Receive loop error: {ex.Message}", ex); + await HandleDisconnection(); + } + } + + private async Task SendHeartbeatAsync() + { + if (_client?.State != WebSocketState.Open) + return; + + try + { + var heartbeat = new HeartbeatMessage + { + Nonce = Guid.NewGuid().ToString() + }; + + var json = JsonSerializer.Serialize(heartbeat); + var bytes = Encoding.UTF8.GetBytes(json); + + await _sendLock.WaitAsync(); + try + { + await _client.SendAsync( + new ArraySegment(bytes), + WebSocketMessageType.Text, + true, + CancellationToken.None); + + LogMessage(LogLevel.Trace, $"Heartbeat sent: {heartbeat.Nonce}"); + OnHeartbeat?.Invoke(this, EventArgs.Empty); + } + finally + { + _sendLock.Release(); + } + } + catch (Exception ex) + { + LogMessage(LogLevel.Warning, $"Failed to send heartbeat: {ex.Message}", ex); + } + } + + private void SetupReconnectTimer() + { + _reconnectTimer?.Dispose(); + + TimeSpan? interval = _configuration.AutoReconnectMode switch + { + AutoReconnectMode.Every10Minutes => TimeSpan.FromMinutes(10), + AutoReconnectMode.Every20Minutes => TimeSpan.FromMinutes(20), + AutoReconnectMode.Every30Minutes => TimeSpan.FromMinutes(30), + _ => null + }; + + if (interval.HasValue) + { + _reconnectTimer = new Timer(async _ => + { + try + { + OnAutoReconnecting?.Invoke(this, EventArgs.Empty); + LogMessage(LogLevel.Info, $"Auto-reconnecting (mode: {_configuration.AutoReconnectMode})"); + + await DisconnectAsync(); + await Task.Delay(150); // Brief delay before reconnecting + await ConnectAsync(); + } + catch (Exception ex) + { + LogMessage(LogLevel.Error, $"Auto-reconnect failed: {ex.Message}", ex); + } + }, null, interval.Value, interval.Value); + } + } + + private void SetupHeartbeatTimer() + { + _heartbeatTimer?.Dispose(); + + _heartbeatTimer = new Timer(async _ => + { + await SendHeartbeatAsync(); + }, null, TimeSpan.FromSeconds(30), TimeSpan.FromSeconds(30)); + } + + private void HandleMessage(string json) + { + try + { + LogMessage(LogLevel.Trace, $"Received message: {json}"); + + // Fire raw message received event + OnMessageReceived?.Invoke(this, new VRChatEventArgs + { + Message = json, + RawMessage = json, + RawContent = null, + Type = "raw" + }); + + using var document = JsonDocument.Parse(json); + var root = document.RootElement; + + if (!root.TryGetProperty("type", out var typeElement)) + { + LogMessage(LogLevel.Warning, "Received message without type field"); + return; + } + + var messageType = typeElement.GetString(); + if (string.IsNullOrWhiteSpace(messageType)) + { + LogMessage(LogLevel.Warning, "Received message with empty type"); + return; + } + + // Extract content once at the top level to avoid re-parsing JSON in processors + string rawContent = null; + if (root.TryGetProperty("content", out var contentElement)) + { + rawContent = contentElement.ValueKind == JsonValueKind.String + ? contentElement.GetString() + : contentElement.GetRawText(); + } + + ProcessMessage(messageType, json, rawContent); + } + catch (Exception ex) + { + LogMessage(LogLevel.Error, $"Error processing message: {ex.Message}", ex); + } + } + + private async Task HandleDisconnection() + { + LogMessage(LogLevel.Info, "WebSocket disconnected"); + OnDisconnected?.Invoke(this, EventArgs.Empty); + + if (!_isManualDisconnect && _configuration.AutoReconnectMode >= AutoReconnectMode.OnDisconnect) + { + await Task.Run(async () => + { + try + { + OnAutoReconnecting?.Invoke(this, EventArgs.Empty); + LogMessage(LogLevel.Info, "Attempting to reconnect..."); + await Task.Delay(2000); // Wait 2 seconds before reconnecting + await ConnectAsync(); + } + catch (Exception ex) + { + LogMessage(LogLevel.Error, $"Reconnection failed: {ex.Message}", ex); + } + }); + } + } + + private void LogMessage(LogLevel level, string message, Exception exception = null) + { + Log?.Invoke(this, new LogEventArgs + { + Level = level, + Message = message, + Exception = exception + }); + } + + /// + /// Releases all resources used by the . + /// + /// + /// Call this method when you are done using the client to release WebSocket connections, + /// timers, and other resources. After calling Dispose, the client cannot be reused. + /// + public void Dispose() + { + if (!_disposed) + { + _reconnectTimer?.Dispose(); + _heartbeatTimer?.Dispose(); + _receiveCts?.Cancel(); + _receiveCts?.Dispose(); + _client?.Dispose(); + _sendLock?.Dispose(); + _disposed = true; + } + } + } +} diff --git a/wrapper/VRChat.API.Realtime/VRChatRealtimeClientBuilder.cs b/wrapper/VRChat.API.Realtime/VRChatRealtimeClientBuilder.cs new file mode 100644 index 00000000..1d599f93 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/VRChatRealtimeClientBuilder.cs @@ -0,0 +1,152 @@ +using System; +using System.Reflection; + +namespace VRChat.API.Realtime +{ + /// + /// Provides a fluent builder pattern for creating and configuring instances. + /// + /// + /// Use this builder to configure the VRChat realtime client with the required authentication token, + /// optional User-Agent header, and reconnection settings. + /// + /// + /// + /// var client = new VRChatRealtimeClientBuilder(new VRChatRealtimeConfiguration()) + /// .WithAuthToken("authcookie_xxx") + /// .WithApplication("MyApp", "1.0.0", "myapp@example.com") + /// .WithAutoReconnect(AutoReconnectMode.OnDisconnect) + /// .Build(); + /// + /// + /// + /// + public class VRChatRealtimeClientBuilder + { + /// + /// The configuration being built. + /// + private readonly VRChatRealtimeConfiguration _configuration; + + /// + /// Initializes a new instance of the class. + /// + /// + /// An existing to start with, or null to use defaults. + /// + public VRChatRealtimeClientBuilder(VRChatRealtimeConfiguration incomingConfiguration = null) + { + _configuration = incomingConfiguration ?? new VRChatRealtimeConfiguration(); + } + + /// + /// Sets the WebSocket endpoint URL for the VRChat Pipeline API. + /// + /// The WebSocket URL to connect to. + /// The current instance for method chaining. + /// + /// The default endpoint is wss://pipeline.vrchat.cloud/. Only change this if you + /// need to connect to a different server for testing or development purposes. + /// + public VRChatRealtimeClientBuilder WithEndpoint(string endpointUrl) + { + _configuration.EndpointURL = endpointUrl; + return this; + } + + /// + /// Sets the authentication token (authcookie) for the WebSocket connection. + /// + /// The VRChat authentication cookie value. + /// The current instance for method chaining. + /// + /// This is required. The authcookie can be obtained after logging in via the VRChat API. + /// It is typically found in the Set-Cookie header of the authentication response. + /// + /// + /// Thrown by if this method is not called with a valid token. + /// + public VRChatRealtimeClientBuilder WithAuthToken(string authToken) + { + _configuration.AuthToken = authToken; + return this; + } + + /// + /// Sets a custom User-Agent header for the WebSocket connection. + /// + /// The User-Agent string to send with WebSocket requests. + /// The current instance for method chaining. + /// + /// VRChat requires applications to identify themselves with a proper User-Agent header. + /// Consider using instead for automatic formatting. + /// + /// + public VRChatRealtimeClientBuilder WithUserAgent(string userAgent) + { + _configuration.UserAgent = userAgent; + return this; + } + + /// + /// Configures the User-Agent header with standardized application information. + /// + /// The name of your application. + /// The version of your application. + /// Contact information (typically an email or URL) for the application author. + /// The current instance for method chaining. + /// + /// This method automatically formats the User-Agent string to include your application + /// information along with the VRChat.API.Realtime library version. The format follows + /// VRChat's recommended User-Agent guidelines. + /// + /// + /// + /// builder.WithApplication("MyVRChatBot", "2.1.0", "contact@example.com"); + /// // Produces: MyVRChatBot/2.1.0 (contact@example.com), VRChat.API.Realtime/x.x.x (https://vrchat.community/dotnet) + /// + /// + public VRChatRealtimeClientBuilder WithApplication(string name, string version, string contact) + { + string libraryVersion = Assembly.GetExecutingAssembly().GetName().Version!.ToString(); + string userAgent = $"{name}/{version} ({contact}), VRChat.API/{libraryVersion} (https://vrchat.community/dotnet)"; + return this.WithUserAgent(userAgent); + } + + /// + /// Sets the auto-reconnect behavior for the WebSocket connection. + /// + /// The specifying when to reconnect. + /// The current instance for method chaining. + /// + /// Auto-reconnection helps maintain a stable connection to VRChat's Pipeline API. + /// Some users prefer periodic reconnection (every 10-30 minutes) to avoid connection + /// issues that can occur with long-lived WebSocket connections. + /// + /// + public VRChatRealtimeClientBuilder WithAutoReconnect(AutoReconnectMode mode) + { + _configuration.AutoReconnectMode = mode; + return this; + } + + /// + /// Builds and returns a configured instance. + /// + /// A new instance ready for connection. + /// + /// Thrown if was not called with a valid authentication token. + /// + /// + /// After building, call to establish the + /// WebSocket connection to VRChat's Pipeline API. + /// + public IVRChatRealtime Build() + { + if (string.IsNullOrWhiteSpace(_configuration.AuthToken)) + throw new InvalidOperationException("AuthToken is required. Use WithAuthToken() to set it."); + + return new VRChatRealtimeClient(_configuration); + } + } +} diff --git a/wrapper/VRChat.API.Realtime/VRChatRealtimeConfiguration.cs b/wrapper/VRChat.API.Realtime/VRChatRealtimeConfiguration.cs new file mode 100644 index 00000000..7daea573 --- /dev/null +++ b/wrapper/VRChat.API.Realtime/VRChatRealtimeConfiguration.cs @@ -0,0 +1,130 @@ +namespace VRChat.API.Realtime +{ + /// + /// Configuration options for the VRChat realtime WebSocket client. + /// + /// + /// Use this class to configure the WebSocket endpoint, authentication, and reconnection behavior. + /// Pass an instance to to create a configured client. + /// + /// + /// + /// var config = new VRChatRealtimeConfiguration + /// { + /// AuthToken = "authcookie_xxx", + /// AutoReconnectMode = AutoReconnectMode.Every20Minutes + /// }; + /// var client = new VRChatRealtimeClientBuilder(config).Build(); + /// + /// + /// + /// + public class VRChatRealtimeConfiguration + { + /// + /// Gets or sets the WebSocket endpoint URL for VRChat's Pipeline API. + /// + /// + /// The WebSocket URL to connect to. Defaults to wss://pipeline.vrchat.cloud/. + /// + /// + /// You typically don't need to change this unless connecting to a test server. + /// + public string EndpointURL { get; set; } = "wss://pipeline.vrchat.cloud/"; + + /// + /// Gets or sets the auto-reconnection mode for the WebSocket connection. + /// + /// + /// The determining when to automatically reconnect. + /// Defaults to . + /// + /// + /// Some users find that periodic reconnection helps maintain a more stable connection + /// over extended periods of use. + /// + public AutoReconnectMode AutoReconnectMode { get; set; } = AutoReconnectMode.OnDisconnect; + + /// + /// Gets or sets the VRChat authentication token (authcookie). + /// + /// + /// The authentication cookie value obtained from logging in to VRChat. + /// This is required for establishing a WebSocket connection. + /// + /// + /// The authcookie is obtained from the REST API authentication response. + /// It is included in the Set-Cookie header after successful login. + /// + public string AuthToken { get; set; } + + /// + /// Gets or sets the User-Agent header for the WebSocket connection. + /// + /// + /// A User-Agent string identifying your application to VRChat's servers. + /// + /// + /// VRChat requires applications to identify themselves with a proper User-Agent header. + /// Use for automatic formatting, + /// or set this manually with a string in the format: + /// AppName/Version (Contact), VRChat.API.Realtime/Version (URL) + /// + /// + public string UserAgent { get; set; } + } + + /// + /// Specifies when the VRChat realtime client should automatically reconnect to the WebSocket. + /// + /// + /// Periodic reconnection can help maintain a stable connection over long periods. + /// Choose a mode based on your application's requirements and VRChat's connection stability. + /// + /// + public enum AutoReconnectMode + { + /// + /// Do not automatically reconnect. The client will remain disconnected if the connection is lost. + /// + /// + /// Use this mode if you want full control over reconnection logic in your application. + /// + None, + + /// + /// Automatically reconnect when the connection is unexpectedly lost. + /// + /// + /// This is the default mode. The client will attempt to reconnect after a brief delay + /// when the WebSocket connection is closed unexpectedly. + /// + OnDisconnect, + + /// + /// Automatically reconnect every 10 minutes, in addition to reconnecting on disconnect. + /// + /// + /// Periodic reconnection can help prevent connection issues that may occur + /// with very long-lived WebSocket connections. + /// + Every10Minutes, + + /// + /// Automatically reconnect every 20 minutes, in addition to reconnecting on disconnect. + /// + /// + /// A balance between frequent reconnection and connection stability. + /// + Every20Minutes, + + /// + /// Automatically reconnect every 30 minutes, in addition to reconnecting on disconnect. + /// + /// + /// Less frequent reconnection, suitable for applications that prefer + /// longer uninterrupted connection periods. + /// + Every30Minutes + } +} diff --git a/wrapper/VRChat.API.Realtime/vrc_cat.ico b/wrapper/VRChat.API.Realtime/vrc_cat.ico new file mode 100644 index 00000000..0eb11b22 Binary files /dev/null and b/wrapper/VRChat.API.Realtime/vrc_cat.ico differ diff --git a/wrapper/VRChat.API.Realtime/vrc_cat.png b/wrapper/VRChat.API.Realtime/vrc_cat.png new file mode 100644 index 00000000..e91d5ba4 Binary files /dev/null and b/wrapper/VRChat.API.Realtime/vrc_cat.png differ