From c08e584a439ff0c2c69c4ec143d678ee0b4736ae Mon Sep 17 00:00:00 2001 From: VRCCat Date: Sun, 20 Oct 2024 22:21:49 +0000 Subject: [PATCH] Upgrade C# SDK to spec 1.18.6 --- .openapi-generator/FILES | 10 + docs/FavoritedWorld.md | 37 + docs/GroupMember.md | 2 +- docs/GroupMyMember.md | 2 +- docs/Jam.md | 19 + docs/JamStateChangeDates.md | 13 + docs/JamsApi.md | 300 +++++++ docs/LimitedWorld.md | 1 - docs/NotificationsApi.md | 99 +++ docs/PlayermoderationApi.md | 198 ----- docs/Submission.md | 16 + docs/World.md | 1 - docs/WorldsApi.md | 10 +- package-lock.json | 14 +- package.json | 2 +- src/VRChat.API/Api/AuthenticationApi.cs | 2 +- src/VRChat.API/Api/AvatarsApi.cs | 2 +- src/VRChat.API/Api/EconomyApi.cs | 2 +- src/VRChat.API/Api/FavoritesApi.cs | 2 +- src/VRChat.API/Api/FilesApi.cs | 2 +- src/VRChat.API/Api/FriendsApi.cs | 2 +- src/VRChat.API/Api/GroupsApi.cs | 2 +- src/VRChat.API/Api/InstancesApi.cs | 2 +- src/VRChat.API/Api/InviteApi.cs | 2 +- src/VRChat.API/Api/JamsApi.cs | 765 ++++++++++++++++++ src/VRChat.API/Api/NotificationsApi.cs | 206 ++++- src/VRChat.API/Api/PermissionsApi.cs | 2 +- src/VRChat.API/Api/PlayermoderationApi.cs | 410 +--------- src/VRChat.API/Api/SystemApi.cs | 2 +- src/VRChat.API/Api/UsersApi.cs | 2 +- src/VRChat.API/Api/WorldsApi.cs | 42 +- src/VRChat.API/Client/ApiClient.cs | 2 +- src/VRChat.API/Client/ApiException.cs | 2 +- src/VRChat.API/Client/ApiResponse.cs | 2 +- src/VRChat.API/Client/ClientUtils.cs | 2 +- src/VRChat.API/Client/Configuration.cs | 8 +- src/VRChat.API/Client/ExceptionFactory.cs | 2 +- src/VRChat.API/Client/GlobalConfiguration.cs | 2 +- src/VRChat.API/Client/HttpMethod.cs | 2 +- src/VRChat.API/Client/IApiAccessor.cs | 2 +- src/VRChat.API/Client/IAsynchronousClient.cs | 2 +- .../Client/IReadableConfiguration.cs | 2 +- src/VRChat.API/Client/ISynchronousClient.cs | 2 +- src/VRChat.API/Client/Multimap.cs | 2 +- src/VRChat.API/Client/OpenAPIDateConverter.cs | 2 +- src/VRChat.API/Client/RequestOptions.cs | 2 +- src/VRChat.API/Client/RetryConfiguration.cs | 2 +- src/VRChat.API/Model/APIConfig.cs | 2 +- src/VRChat.API/Model/APIConfigAnnouncement.cs | 2 +- src/VRChat.API/Model/APIConfigConstants.cs | 2 +- .../Model/APIConfigConstantsGROUPS.cs | 2 +- .../Model/APIConfigConstantsINSTANCE.cs | 2 +- ...nfigConstantsINSTANCEPOPULATIONBRACKETS.cs | 2 +- ...stantsINSTANCEPOPULATIONBRACKETSCROWDED.cs | 2 +- ...gConstantsINSTANCEPOPULATIONBRACKETSFEW.cs | 2 +- ...ConstantsINSTANCEPOPULATIONBRACKETSMANY.cs | 2 +- .../Model/APIConfigConstantsLANGUAGE.cs | 2 +- .../Model/APIConfigDownloadURLList.cs | 2 +- src/VRChat.API/Model/APIConfigEvents.cs | 2 +- .../APIConfigMinSupportedClientBuildNumber.cs | 2 +- .../Model/APIConfigOfflineAnalysis.cs | 2 +- .../Model/APIConfigReportCategories.cs | 2 +- .../Model/APIConfigReportReasons.cs | 2 +- src/VRChat.API/Model/APIHealth.cs | 2 +- src/VRChat.API/Model/AbstractOpenAPISchema.cs | 2 +- src/VRChat.API/Model/AccountDeletionLog.cs | 2 +- src/VRChat.API/Model/AddFavoriteRequest.cs | 2 +- .../Model/AddGroupGalleryImageRequest.cs | 2 +- src/VRChat.API/Model/Avatar.cs | 2 +- .../Model/AvatarUnityPackageUrlObject.cs | 2 +- src/VRChat.API/Model/Badge.cs | 2 +- src/VRChat.API/Model/BanGroupMemberRequest.cs | 2 +- src/VRChat.API/Model/CreateAvatarRequest.cs | 2 +- src/VRChat.API/Model/CreateFileRequest.cs | 2 +- .../Model/CreateFileVersionRequest.cs | 2 +- .../Model/CreateGroupAnnouncementRequest.cs | 2 +- .../Model/CreateGroupGalleryRequest.cs | 2 +- .../Model/CreateGroupInviteRequest.cs | 2 +- .../Model/CreateGroupPostRequest.cs | 2 +- src/VRChat.API/Model/CreateGroupRequest.cs | 2 +- .../Model/CreateGroupRoleRequest.cs | 2 +- src/VRChat.API/Model/CreateInstanceRequest.cs | 2 +- src/VRChat.API/Model/CreateWorldRequest.cs | 2 +- src/VRChat.API/Model/CurrentUser.cs | 2 +- src/VRChat.API/Model/CurrentUserPresence.cs | 2 +- src/VRChat.API/Model/DeploymentGroup.cs | 2 +- src/VRChat.API/Model/DeveloperType.cs | 2 +- src/VRChat.API/Model/DynamicContentRow.cs | 2 +- src/VRChat.API/Model/Error.cs | 2 +- src/VRChat.API/Model/Favorite.cs | 2 +- src/VRChat.API/Model/FavoriteGroup.cs | 2 +- .../Model/FavoriteGroupVisibility.cs | 2 +- src/VRChat.API/Model/FavoriteType.cs | 2 +- src/VRChat.API/Model/FavoritedWorld.cs | 746 +++++++++++++++++ src/VRChat.API/Model/File.cs | 2 +- src/VRChat.API/Model/FileData.cs | 2 +- src/VRChat.API/Model/FileStatus.cs | 2 +- src/VRChat.API/Model/FileUploadURL.cs | 2 +- src/VRChat.API/Model/FileVersion.cs | 2 +- .../Model/FileVersionUploadStatus.cs | 2 +- .../Model/FinishFileDataUploadRequest.cs | 2 +- src/VRChat.API/Model/FriendStatus.cs | 2 +- src/VRChat.API/Model/Group.cs | 2 +- src/VRChat.API/Model/GroupAccessType.cs | 2 +- src/VRChat.API/Model/GroupAnnouncement.cs | 2 +- src/VRChat.API/Model/GroupAuditLogEntry.cs | 2 +- src/VRChat.API/Model/GroupGallery.cs | 2 +- src/VRChat.API/Model/GroupGalleryImage.cs | 2 +- src/VRChat.API/Model/GroupInstance.cs | 2 +- .../Model/GroupJoinRequestAction.cs | 2 +- src/VRChat.API/Model/GroupJoinState.cs | 2 +- src/VRChat.API/Model/GroupLimitedMember.cs | 2 +- src/VRChat.API/Model/GroupMember.cs | 11 +- .../Model/GroupMemberLimitedUser.cs | 2 +- src/VRChat.API/Model/GroupMemberStatus.cs | 2 +- src/VRChat.API/Model/GroupMyMember.cs | 9 +- src/VRChat.API/Model/GroupPermission.cs | 2 +- src/VRChat.API/Model/GroupPost.cs | 2 +- src/VRChat.API/Model/GroupPostVisibility.cs | 2 +- src/VRChat.API/Model/GroupPrivacy.cs | 2 +- src/VRChat.API/Model/GroupRole.cs | 2 +- src/VRChat.API/Model/GroupRoleTemplate.cs | 2 +- src/VRChat.API/Model/GroupSearchSort.cs | 2 +- src/VRChat.API/Model/GroupUserVisibility.cs | 2 +- src/VRChat.API/Model/InfoPush.cs | 2 +- src/VRChat.API/Model/InfoPushData.cs | 2 +- src/VRChat.API/Model/InfoPushDataArticle.cs | 2 +- .../Model/InfoPushDataArticleContent.cs | 2 +- src/VRChat.API/Model/InfoPushDataClickable.cs | 2 +- src/VRChat.API/Model/Instance.cs | 2 +- src/VRChat.API/Model/InstancePlatforms.cs | 2 +- src/VRChat.API/Model/InstanceRegion.cs | 2 +- .../Model/InstanceShortNameResponse.cs | 2 +- src/VRChat.API/Model/InstanceType.cs | 2 +- src/VRChat.API/Model/InviteMessage.cs | 2 +- src/VRChat.API/Model/InviteMessageType.cs | 2 +- src/VRChat.API/Model/InviteRequest.cs | 2 +- src/VRChat.API/Model/InviteResponse.cs | 2 +- src/VRChat.API/Model/Jam.cs | 353 ++++++++ src/VRChat.API/Model/JamStateChangeDates.cs | 182 +++++ src/VRChat.API/Model/License.cs | 2 +- src/VRChat.API/Model/LicenseAction.cs | 2 +- src/VRChat.API/Model/LicenseGroup.cs | 2 +- src/VRChat.API/Model/LicenseType.cs | 2 +- src/VRChat.API/Model/LimitedGroup.cs | 2 +- src/VRChat.API/Model/LimitedUnityPackage.cs | 2 +- src/VRChat.API/Model/LimitedUser.cs | 2 +- src/VRChat.API/Model/LimitedUserGroups.cs | 2 +- src/VRChat.API/Model/LimitedWorld.cs | 27 +- src/VRChat.API/Model/MIMEType.cs | 2 +- src/VRChat.API/Model/ModerateUserRequest.cs | 2 +- src/VRChat.API/Model/Notification.cs | 2 +- .../Model/NotificationDetailInvite.cs | 2 +- .../Model/NotificationDetailInviteResponse.cs | 2 +- .../Model/NotificationDetailRequestInvite.cs | 2 +- ...NotificationDetailRequestInviteResponse.cs | 2 +- .../Model/NotificationDetailVoteToKick.cs | 2 +- src/VRChat.API/Model/NotificationType.cs | 2 +- src/VRChat.API/Model/OrderOption.cs | 2 +- .../Model/PaginatedGroupAuditLogEntryList.cs | 2 +- src/VRChat.API/Model/PastDisplayName.cs | 2 +- src/VRChat.API/Model/PerformanceRatings.cs | 2 +- src/VRChat.API/Model/Permission.cs | 2 +- src/VRChat.API/Model/PlatformBuildInfo.cs | 2 +- src/VRChat.API/Model/PlayerModeration.cs | 2 +- src/VRChat.API/Model/PlayerModerationType.cs | 2 +- src/VRChat.API/Model/Region.cs | 2 +- src/VRChat.API/Model/ReleaseStatus.cs | 2 +- src/VRChat.API/Model/ReportCategory.cs | 2 +- src/VRChat.API/Model/ReportReason.cs | 2 +- src/VRChat.API/Model/RepresentedGroup.cs | 2 +- src/VRChat.API/Model/RequestInviteRequest.cs | 2 +- .../Model/RespondGroupJoinRequest.cs | 2 +- src/VRChat.API/Model/Response.cs | 2 +- src/VRChat.API/Model/SentNotification.cs | 2 +- src/VRChat.API/Model/SortOption.cs | 2 +- src/VRChat.API/Model/Submission.cs | 288 +++++++ src/VRChat.API/Model/Subscription.cs | 2 +- src/VRChat.API/Model/SubscriptionPeriod.cs | 2 +- src/VRChat.API/Model/Success.cs | 2 +- src/VRChat.API/Model/Transaction.cs | 2 +- src/VRChat.API/Model/TransactionAgreement.cs | 2 +- src/VRChat.API/Model/TransactionStatus.cs | 2 +- src/VRChat.API/Model/TransactionSteamInfo.cs | 2 +- .../Model/TransactionSteamWalletInfo.cs | 2 +- src/VRChat.API/Model/TwoFactorAuthCode.cs | 2 +- src/VRChat.API/Model/TwoFactorEmailCode.cs | 2 +- src/VRChat.API/Model/UnityPackage.cs | 2 +- src/VRChat.API/Model/UpdateAvatarRequest.cs | 2 +- .../Model/UpdateFavoriteGroupRequest.cs | 2 +- .../Model/UpdateGroupGalleryRequest.cs | 2 +- .../Model/UpdateGroupMemberRequest.cs | 2 +- src/VRChat.API/Model/UpdateGroupRequest.cs | 2 +- .../Model/UpdateGroupRoleRequest.cs | 2 +- .../Model/UpdateInviteMessageRequest.cs | 2 +- src/VRChat.API/Model/UpdateUserRequest.cs | 2 +- src/VRChat.API/Model/UpdateWorldRequest.cs | 2 +- src/VRChat.API/Model/User.cs | 2 +- src/VRChat.API/Model/UserExists.cs | 2 +- src/VRChat.API/Model/UserState.cs | 2 +- src/VRChat.API/Model/UserStatus.cs | 2 +- src/VRChat.API/Model/UserSubscription.cs | 2 +- .../Model/Verify2FAEmailCodeResult.cs | 2 +- src/VRChat.API/Model/Verify2FAResult.cs | 2 +- src/VRChat.API/Model/VerifyAuthTokenResult.cs | 2 +- src/VRChat.API/Model/World.cs | 27 +- src/VRChat.API/Model/WorldMetadata.cs | 2 +- src/VRChat.API/Model/WorldPublishStatus.cs | 2 +- src/VRChat.API/VRChat.API.csproj | 2 +- 209 files changed, 3268 insertions(+), 892 deletions(-) create mode 100644 docs/FavoritedWorld.md create mode 100644 docs/Jam.md create mode 100644 docs/JamStateChangeDates.md create mode 100644 docs/JamsApi.md create mode 100644 docs/Submission.md create mode 100644 src/VRChat.API/Api/JamsApi.cs create mode 100644 src/VRChat.API/Model/FavoritedWorld.cs create mode 100644 src/VRChat.API/Model/Jam.cs create mode 100644 src/VRChat.API/Model/JamStateChangeDates.cs create mode 100644 src/VRChat.API/Model/Submission.cs diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index c38324b8..2c06c16e 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -48,6 +48,7 @@ docs/Favorite.md docs/FavoriteGroup.md docs/FavoriteGroupVisibility.md docs/FavoriteType.md +docs/FavoritedWorld.md docs/FavoritesApi.md docs/File.md docs/FileData.md @@ -98,6 +99,9 @@ docs/InviteMessage.md docs/InviteMessageType.md docs/InviteRequest.md docs/InviteResponse.md +docs/Jam.md +docs/JamStateChangeDates.md +docs/JamsApi.md docs/License.md docs/LicenseAction.md docs/LicenseGroup.md @@ -137,6 +141,7 @@ docs/RespondGroupJoinRequest.md docs/Response.md docs/SentNotification.md docs/SortOption.md +docs/Submission.md docs/Subscription.md docs/SubscriptionPeriod.md docs/Success.md @@ -181,6 +186,7 @@ src/VRChat.API/Api/FriendsApi.cs src/VRChat.API/Api/GroupsApi.cs src/VRChat.API/Api/InstancesApi.cs src/VRChat.API/Api/InviteApi.cs +src/VRChat.API/Api/JamsApi.cs src/VRChat.API/Api/NotificationsApi.cs src/VRChat.API/Api/PermissionsApi.cs src/VRChat.API/Api/PlayermoderationApi.cs @@ -249,6 +255,7 @@ src/VRChat.API/Model/Favorite.cs src/VRChat.API/Model/FavoriteGroup.cs src/VRChat.API/Model/FavoriteGroupVisibility.cs src/VRChat.API/Model/FavoriteType.cs +src/VRChat.API/Model/FavoritedWorld.cs src/VRChat.API/Model/File.cs src/VRChat.API/Model/FileData.cs src/VRChat.API/Model/FileStatus.cs @@ -293,6 +300,8 @@ src/VRChat.API/Model/InviteMessage.cs src/VRChat.API/Model/InviteMessageType.cs src/VRChat.API/Model/InviteRequest.cs src/VRChat.API/Model/InviteResponse.cs +src/VRChat.API/Model/Jam.cs +src/VRChat.API/Model/JamStateChangeDates.cs src/VRChat.API/Model/License.cs src/VRChat.API/Model/LicenseAction.cs src/VRChat.API/Model/LicenseGroup.cs @@ -329,6 +338,7 @@ src/VRChat.API/Model/RespondGroupJoinRequest.cs src/VRChat.API/Model/Response.cs src/VRChat.API/Model/SentNotification.cs src/VRChat.API/Model/SortOption.cs +src/VRChat.API/Model/Submission.cs src/VRChat.API/Model/Subscription.cs src/VRChat.API/Model/SubscriptionPeriod.cs src/VRChat.API/Model/Success.cs diff --git a/docs/FavoritedWorld.md b/docs/FavoritedWorld.md new file mode 100644 index 00000000..65e49e92 --- /dev/null +++ b/docs/FavoritedWorld.md @@ -0,0 +1,37 @@ +# VRChat.API.Model.FavoritedWorld + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthorId** | **string** | 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** | **string** | | +**Capacity** | **int** | | +**Description** | **string** | | +**RecommendedCapacity** | **int** | | [optional] +**CreatedAt** | **DateTime** | | +**Favorites** | **int** | | [default to 0] +**FavoriteGroup** | **string** | | +**FavoriteId** | **string** | | +**Featured** | **bool** | | [default to false] +**Visits** | **int** | | [optional] [default to 0] +**Heat** | **int** | | [default to 0] +**Id** | **string** | WorldID be \"offline\" on User profiles if you are not friends with that user. | +**ImageUrl** | **string** | | +**LabsPublicationDate** | **string** | | +**Name** | **string** | | +**Occupants** | **int** | | [default to 0] +**Organization** | **string** | | [default to "vrchat"] +**Popularity** | **int** | | [default to 0] +**PreviewYoutubeId** | **string** | | [optional] +**PublicationDate** | **string** | | +**ReleaseStatus** | **ReleaseStatus** | | +**Tags** | **List<string>** | | +**ThumbnailImageUrl** | **string** | | +**UnityPackages** | [**List<UnityPackage>**](UnityPackage.md) | | +**UpdatedAt** | **DateTime** | | +**UdonProducts** | **List<string>** | | [optional] +**_Version** | **int** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/GroupMember.md b/docs/GroupMember.md index b93ee6d0..f694f436 100644 --- a/docs/GroupMember.md +++ b/docs/GroupMember.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AcceptedByDisplayName** | **string** | | [optional] -**AcceptedById** | **string** | 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. | [optional] +**AcceptedById** | **string** | | [optional] **Id** | **string** | | [optional] **GroupId** | **string** | | [optional] **UserId** | **string** | 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. | [optional] diff --git a/docs/GroupMyMember.md b/docs/GroupMyMember.md index 2badaf0b..74ad6aaa 100644 --- a/docs/GroupMyMember.md +++ b/docs/GroupMyMember.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **UserId** | **string** | 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. | [optional] **RoleIds** | **List<string>** | | [optional] **AcceptedByDisplayName** | **string** | | [optional] -**AcceptedById** | **string** | 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. | [optional] +**AcceptedById** | **string** | | [optional] **CreatedAt** | **DateTime** | | [optional] **ManagerNotes** | **string** | | [optional] **MembershipStatus** | **string** | | [optional] diff --git a/docs/Jam.md b/docs/Jam.md new file mode 100644 index 00000000..3024ece9 --- /dev/null +++ b/docs/Jam.md @@ -0,0 +1,19 @@ +# VRChat.API.Model.Jam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | **string** | | +**Id** | **string** | | +**IsVisible** | **bool** | | +**MoreInfo** | **string** | | +**State** | **string** | One of: - submissions_open - closed | +**StateChangeDates** | [**JamStateChangeDates**](JamStateChangeDates.md) | | +**SubmissionContentGateDate** | **DateTime?** | | +**SubmissionContentGated** | **bool** | | +**Title** | **string** | | +**UpdatedAt** | **DateTime** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/JamStateChangeDates.md b/docs/JamStateChangeDates.md new file mode 100644 index 00000000..c45c5699 --- /dev/null +++ b/docs/JamStateChangeDates.md @@ -0,0 +1,13 @@ +# VRChat.API.Model.JamStateChangeDates + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Closed** | **DateTime?** | | [optional] +**SubmissionsClosed** | **DateTime?** | | [optional] +**SubmissionsOpened** | **DateTime?** | | [optional] +**WinnersSelected** | **DateTime?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/JamsApi.md b/docs/JamsApi.md new file mode 100644 index 00000000..fdd3ae4d --- /dev/null +++ b/docs/JamsApi.md @@ -0,0 +1,300 @@ +# VRChat.API.Api.JamsApi + +All URIs are relative to *https://vrchat.com/api/1* + +| Method | HTTP request | Description | +|--------|--------------|-------------| +| [**GetJam**](JamsApi.md#getjam) | **GET** /jams/{jamId} | Show jam information | +| [**GetJamSubmissions**](JamsApi.md#getjamsubmissions) | **GET** /jams/{jamId}/submissions | Show jam submissions | +| [**GetJams**](JamsApi.md#getjams) | **GET** /jams | Show jams list | + + +# **GetJam** +> Jam GetJam (string jamId) + +Show jam information + +Returns a jam. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using VRChat.API.Api; +using VRChat.API.Client; +using VRChat.API.Model; + +namespace Example +{ + public class GetJamExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://vrchat.com/api/1"; + // Configure API key authorization: authCookie + config.AddApiKey("auth", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("auth", "Bearer"); + + var apiInstance = new JamsApi(config); + var jamId = jam_0b7e3f6d-4647-4648-b2a1-1431e76906d9; // string | Must be a valid query ID. + + try + { + // Show jam information + Jam result = apiInstance.GetJam(jamId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling JamsApi.GetJam: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetJamWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Show jam information + ApiResponse response = apiInstance.GetJamWithHttpInfo(jamId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling JamsApi.GetJamWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **jamId** | **string** | Must be a valid query ID. | | + +### Return type + +[**Jam**](Jam.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Returns a Jam object. | - | +| **404** | Error response when trying to show information about a non-existent jam. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetJamSubmissions** +> List<Submission> GetJamSubmissions (string jamId) + +Show jam submissions + +Returns all submissions of a jam. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using VRChat.API.Api; +using VRChat.API.Client; +using VRChat.API.Model; + +namespace Example +{ + public class GetJamSubmissionsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://vrchat.com/api/1"; + // Configure API key authorization: authCookie + config.AddApiKey("auth", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("auth", "Bearer"); + + var apiInstance = new JamsApi(config); + var jamId = jam_0b7e3f6d-4647-4648-b2a1-1431e76906d9; // string | Must be a valid query ID. + + try + { + // Show jam submissions + List result = apiInstance.GetJamSubmissions(jamId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling JamsApi.GetJamSubmissions: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetJamSubmissionsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Show jam submissions + ApiResponse> response = apiInstance.GetJamSubmissionsWithHttpInfo(jamId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling JamsApi.GetJamSubmissionsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **jamId** | **string** | Must be a valid query ID. | | + +### Return type + +[**List<Submission>**](Submission.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Returns a list of Submission objects. | - | +| **404** | Error response when trying to show information about a non-existent jam. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + + +# **GetJams** +> List<Jam> GetJams (string type = null) + +Show jams list + +Lists World Jams or Avatar Jams, both currently running and ones that have ended. `isActive` is used to select only active or already ended jams. `type` is used to select only world or avatar jams, and can only take `world` or `avatar`. `` + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using VRChat.API.Api; +using VRChat.API.Client; +using VRChat.API.Model; + +namespace Example +{ + public class GetJamsExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://vrchat.com/api/1"; + // Configure API key authorization: authCookie + config.AddApiKey("auth", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("auth", "Bearer"); + + var apiInstance = new JamsApi(config); + var type = avatar; // string | Only show jams of this type (`avatar` or `world`). (optional) + + try + { + // Show jams list + List result = apiInstance.GetJams(type); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling JamsApi.GetJams: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetJamsWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Show jams list + ApiResponse> response = apiInstance.GetJamsWithHttpInfo(type); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling JamsApi.GetJamsWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **type** | **string** | Only show jams of this type (`avatar` or `world`). | [optional] | + +### Return type + +[**List<Jam>**](Jam.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Returns a list of Jam objects. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/LimitedWorld.md b/docs/LimitedWorld.md index 5fb63bd3..67c6edb1 100644 --- a/docs/LimitedWorld.md +++ b/docs/LimitedWorld.md @@ -22,7 +22,6 @@ Name | Type | Description | Notes **PreviewYoutubeId** | **string** | | [optional] **PublicationDate** | **string** | | **ReleaseStatus** | **ReleaseStatus** | | -**StoreId** | **string** | | **Tags** | **List<string>** | | **ThumbnailImageUrl** | **string** | | **UnityPackages** | [**List<LimitedUnityPackage>**](LimitedUnityPackage.md) | | diff --git a/docs/NotificationsApi.md b/docs/NotificationsApi.md index 6d6826a8..5f31613a 100644 --- a/docs/NotificationsApi.md +++ b/docs/NotificationsApi.md @@ -7,6 +7,7 @@ All URIs are relative to *https://vrchat.com/api/1* | [**AcceptFriendRequest**](NotificationsApi.md#acceptfriendrequest) | **PUT** /auth/user/notifications/{notificationId}/accept | Accept Friend Request | | [**ClearNotifications**](NotificationsApi.md#clearnotifications) | **PUT** /auth/user/notifications/clear | Clear All Notifications | | [**DeleteNotification**](NotificationsApi.md#deletenotification) | **PUT** /auth/user/notifications/{notificationId}/hide | Delete Notification | +| [**GetNotification**](NotificationsApi.md#getnotification) | **GET** /auth/user/notifications/{notificationId} | Show notification | | [**GetNotifications**](NotificationsApi.md#getnotifications) | **GET** /auth/user/notifications | List Notifications | | [**MarkNotificationAsRead**](NotificationsApi.md#marknotificationasread) | **PUT** /auth/user/notifications/{notificationId}/see | Mark Notification As Read | @@ -297,6 +298,104 @@ catch (ApiException e) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **GetNotification** +> Notification GetNotification (string notificationId) + +Show notification + +Get a notification by notification `not_` ID. + +### Example +```csharp +using System.Collections.Generic; +using System.Diagnostics; +using VRChat.API.Api; +using VRChat.API.Client; +using VRChat.API.Model; + +namespace Example +{ + public class GetNotificationExample + { + public static void Main() + { + Configuration config = new Configuration(); + config.BasePath = "https://vrchat.com/api/1"; + // Configure API key authorization: authCookie + config.AddApiKey("auth", "YOUR_API_KEY"); + // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed + // config.AddApiKeyPrefix("auth", "Bearer"); + + var apiInstance = new NotificationsApi(config); + var notificationId = "notificationId_example"; // string | Must be a valid notification ID. + + try + { + // Show notification + Notification result = apiInstance.GetNotification(notificationId); + Debug.WriteLine(result); + } + catch (ApiException e) + { + Debug.Print("Exception when calling NotificationsApi.GetNotification: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); + } + } + } +} +``` + +#### Using the GetNotificationWithHttpInfo variant +This returns an ApiResponse object which contains the response data, status code and headers. + +```csharp +try +{ + // Show notification + ApiResponse response = apiInstance.GetNotificationWithHttpInfo(notificationId); + Debug.Write("Status Code: " + response.StatusCode); + Debug.Write("Response Headers: " + response.Headers); + Debug.Write("Response Body: " + response.Data); +} +catch (ApiException e) +{ + Debug.Print("Exception when calling NotificationsApi.GetNotificationWithHttpInfo: " + e.Message); + Debug.Print("Status Code: " + e.ErrorCode); + Debug.Print(e.StackTrace); +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------|------|-------------|-------| +| **notificationId** | **string** | Must be a valid notification ID. | | + +### Return type + +[**Notification**](Notification.md) + +### Authorization + +[authCookie](../README.md#authCookie) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Returns a single Notifcation object. | - | +| **401** | Error response due to missing auth cookie. | - | +| **404** | Error response when trying to perform operations on a non-existing notification. | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **GetNotifications** > List<Notification> GetNotifications (string type = null, bool? sent = null, bool? hidden = null, string after = null, int? n = null, int? offset = null) diff --git a/docs/PlayermoderationApi.md b/docs/PlayermoderationApi.md index 5c2cb7d9..31a87809 100644 --- a/docs/PlayermoderationApi.md +++ b/docs/PlayermoderationApi.md @@ -5,8 +5,6 @@ All URIs are relative to *https://vrchat.com/api/1* | Method | HTTP request | Description | |--------|--------------|-------------| | [**ClearAllPlayerModerations**](PlayermoderationApi.md#clearallplayermoderations) | **DELETE** /auth/user/playermoderations | Clear All Player Moderations | -| [**DeletePlayerModeration**](PlayermoderationApi.md#deleteplayermoderation) | **DELETE** /auth/user/playermoderations/{playerModerationId} | Delete Player Moderation | -| [**GetPlayerModeration**](PlayermoderationApi.md#getplayermoderation) | **GET** /auth/user/playermoderations/{playerModerationId} | Get Player Moderation | | [**GetPlayerModerations**](PlayermoderationApi.md#getplayermoderations) | **GET** /auth/user/playermoderations | Search Player Moderations | | [**ModerateUser**](PlayermoderationApi.md#moderateuser) | **POST** /auth/user/playermoderations | Moderate User | | [**UnmoderateUser**](PlayermoderationApi.md#unmoderateuser) | **PUT** /auth/user/unplayermoderate | Unmoderate User | @@ -103,202 +101,6 @@ This endpoint does not need any parameter. [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -# **DeletePlayerModeration** -> Success DeletePlayerModeration (string playerModerationId) - -Delete Player Moderation - -Deletes a specific player moderation based on it's `pmod_` ID. The website uses `unmoderateUser` instead. You can delete the same player moderation multiple times successfully. - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using VRChat.API.Api; -using VRChat.API.Client; -using VRChat.API.Model; - -namespace Example -{ - public class DeletePlayerModerationExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://vrchat.com/api/1"; - // Configure API key authorization: authCookie - config.AddApiKey("auth", "YOUR_API_KEY"); - // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed - // config.AddApiKeyPrefix("auth", "Bearer"); - - var apiInstance = new PlayermoderationApi(config); - var playerModerationId = "playerModerationId_example"; // string | Must be a valid `pmod_` ID. - - try - { - // Delete Player Moderation - Success result = apiInstance.DeletePlayerModeration(playerModerationId); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling PlayermoderationApi.DeletePlayerModeration: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the DeletePlayerModerationWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - // Delete Player Moderation - ApiResponse response = apiInstance.DeletePlayerModerationWithHttpInfo(playerModerationId); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling PlayermoderationApi.DeletePlayerModerationWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **playerModerationId** | **string** | Must be a valid `pmod_` ID. | | - -### Return type - -[**Success**](Success.md) - -### Authorization - -[authCookie](../README.md#authCookie) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Success response after removing a PlayerModeration by ID. | - | -| **401** | Error response due to missing auth cookie. | - | -| **403** | Error response when trying to delete someone else's player moderation. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - - -# **GetPlayerModeration** -> PlayerModeration GetPlayerModeration (string playerModerationId) - -Get Player Moderation - -Returns a single Player Moderation. This returns the exact same amount of information as the more generalised `getPlayerModerations`. - -### Example -```csharp -using System.Collections.Generic; -using System.Diagnostics; -using VRChat.API.Api; -using VRChat.API.Client; -using VRChat.API.Model; - -namespace Example -{ - public class GetPlayerModerationExample - { - public static void Main() - { - Configuration config = new Configuration(); - config.BasePath = "https://vrchat.com/api/1"; - // Configure API key authorization: authCookie - config.AddApiKey("auth", "YOUR_API_KEY"); - // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed - // config.AddApiKeyPrefix("auth", "Bearer"); - - var apiInstance = new PlayermoderationApi(config); - var playerModerationId = "playerModerationId_example"; // string | Must be a valid `pmod_` ID. - - try - { - // Get Player Moderation - PlayerModeration result = apiInstance.GetPlayerModeration(playerModerationId); - Debug.WriteLine(result); - } - catch (ApiException e) - { - Debug.Print("Exception when calling PlayermoderationApi.GetPlayerModeration: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); - } - } - } -} -``` - -#### Using the GetPlayerModerationWithHttpInfo variant -This returns an ApiResponse object which contains the response data, status code and headers. - -```csharp -try -{ - // Get Player Moderation - ApiResponse response = apiInstance.GetPlayerModerationWithHttpInfo(playerModerationId); - Debug.Write("Status Code: " + response.StatusCode); - Debug.Write("Response Headers: " + response.Headers); - Debug.Write("Response Body: " + response.Data); -} -catch (ApiException e) -{ - Debug.Print("Exception when calling PlayermoderationApi.GetPlayerModerationWithHttpInfo: " + e.Message); - Debug.Print("Status Code: " + e.ErrorCode); - Debug.Print(e.StackTrace); -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------|------|-------------|-------| -| **playerModerationId** | **string** | Must be a valid `pmod_` ID. | | - -### Return type - -[**PlayerModeration**](PlayerModeration.md) - -### Authorization - -[authCookie](../README.md#authCookie) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | Returns a single PlayerModeration object. | - | -| **401** | Error response due to missing auth cookie. | - | -| **404** | Error response when trying to show information about a non-existent player moderation. | - | - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - # **GetPlayerModerations** > List<PlayerModeration> GetPlayerModerations (string type = null, string targetUserId = null) diff --git a/docs/Submission.md b/docs/Submission.md new file mode 100644 index 00000000..373b6a56 --- /dev/null +++ b/docs/Submission.md @@ -0,0 +1,16 @@ +# VRChat.API.Model.Submission + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContentId** | **string** | Either world ID or avatar ID | +**CreatedAt** | **DateTime** | | +**Description** | **string** | | +**Id** | **string** | | +**JamId** | **string** | | +**RatingScore** | **int** | | [optional] +**SubmitterId** | **string** | 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. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/World.md b/docs/World.md index 7f001612..fb32e7a8 100644 --- a/docs/World.md +++ b/docs/World.md @@ -27,7 +27,6 @@ Name | Type | Description | Notes **PublicOccupants** | **int** | Will always be `0` when unauthenticated. | [optional] [default to 0] **PublicationDate** | **string** | | **ReleaseStatus** | **ReleaseStatus** | | -**StoreId** | **string** | | **Tags** | **List<string>** | | **ThumbnailImageUrl** | **string** | | **UnityPackages** | [**List<UnityPackage>**](UnityPackage.md) | Empty if unauthenticated. | [optional] diff --git a/docs/WorldsApi.md b/docs/WorldsApi.md index ee4c738e..93f0163c 100644 --- a/docs/WorldsApi.md +++ b/docs/WorldsApi.md @@ -326,7 +326,7 @@ catch (ApiException e) # **GetFavoritedWorlds** -> List<LimitedWorld> GetFavoritedWorlds (bool? featured = null, SortOption? sort = null, int? n = null, OrderOption? order = null, int? offset = null, string search = null, string tag = null, string notag = null, ReleaseStatus? releaseStatus = null, string maxUnityVersion = null, string minUnityVersion = null, string platform = null, string userId = null) +> List<FavoritedWorld> GetFavoritedWorlds (bool? featured = null, SortOption? sort = null, int? n = null, OrderOption? order = null, int? offset = null, string search = null, string tag = null, string notag = null, ReleaseStatus? releaseStatus = null, string maxUnityVersion = null, string minUnityVersion = null, string platform = null, string userId = null) List Favorited Worlds @@ -371,7 +371,7 @@ namespace Example try { // List Favorited Worlds - List result = apiInstance.GetFavoritedWorlds(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId); + List result = apiInstance.GetFavoritedWorlds(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId); Debug.WriteLine(result); } catch (ApiException e) @@ -392,7 +392,7 @@ This returns an ApiResponse object which contains the response data, status code try { // List Favorited Worlds - ApiResponse> response = apiInstance.GetFavoritedWorldsWithHttpInfo(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId); + ApiResponse> response = apiInstance.GetFavoritedWorldsWithHttpInfo(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -425,7 +425,7 @@ catch (ApiException e) ### Return type -[**List<LimitedWorld>**](LimitedWorld.md) +[**List<FavoritedWorld>**](FavoritedWorld.md) ### Authorization @@ -440,7 +440,7 @@ catch (ApiException e) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Returns a list of LimitedWorld objects. | - | +| **200** | Returns a list of FavoritedWorld objects. | - | | **401** | Error response due to missing auth cookie. | - | | **403** | Error response when trying to see favourited worlds of another user without sufficient admin permissions. | - | diff --git a/package-lock.json b/package-lock.json index b502076e..6b2d6cc6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,7 @@ "packages": { "": { "dependencies": { - "@openapitools/openapi-generator-cli": "^2.13.13" + "@openapitools/openapi-generator-cli": "^2.14.0" } }, "node_modules/@lukeed/csprng": { @@ -109,9 +109,9 @@ } }, "node_modules/@openapitools/openapi-generator-cli": { - "version": "2.13.13", - "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.13.tgz", - "integrity": "sha512-uioqbxB6TfiLoOEE3T8kqTn/ffaRzOwS3ATMQnoMvh2lwADKMT6bDLfE3YO3XTEj+HflXcsLXQGK6PLiqa8Mmw==", + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.14.0.tgz", + "integrity": "sha512-k+ioQLtXLXgNbhQbp1UOxtaUnnYTWwAPev88hP5qauFA+eq4NyeQGNojknFssXg2x0VT0TUGmU3PZ2DiQ70IVg==", "hasInstallScript": true, "dependencies": { "@nestjs/axios": "3.0.3", @@ -1268,9 +1268,9 @@ } }, "@openapitools/openapi-generator-cli": { - "version": "2.13.13", - "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.13.13.tgz", - "integrity": "sha512-uioqbxB6TfiLoOEE3T8kqTn/ffaRzOwS3ATMQnoMvh2lwADKMT6bDLfE3YO3XTEj+HflXcsLXQGK6PLiqa8Mmw==", + "version": "2.14.0", + "resolved": "https://registry.npmjs.org/@openapitools/openapi-generator-cli/-/openapi-generator-cli-2.14.0.tgz", + "integrity": "sha512-k+ioQLtXLXgNbhQbp1UOxtaUnnYTWwAPev88hP5qauFA+eq4NyeQGNojknFssXg2x0VT0TUGmU3PZ2DiQ70IVg==", "requires": { "@nestjs/axios": "3.0.3", "@nestjs/common": "10.4.3", diff --git a/package.json b/package.json index 725653c9..ab9a9388 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "@openapitools/openapi-generator-cli": "^2.13.13" + "@openapitools/openapi-generator-cli": "^2.14.0" } } diff --git a/src/VRChat.API/Api/AuthenticationApi.cs b/src/VRChat.API/Api/AuthenticationApi.cs index 4ef252ee..38d62a5d 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 95697acf..bd1a5a07 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/EconomyApi.cs b/src/VRChat.API/Api/EconomyApi.cs index bf318c8d..201b12cc 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/FavoritesApi.cs b/src/VRChat.API/Api/FavoritesApi.cs index d3c02659..11d56bd5 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 d9356e3d..584ee5c4 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/FriendsApi.cs b/src/VRChat.API/Api/FriendsApi.cs index 35e9d70e..a45f5ab2 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/GroupsApi.cs b/src/VRChat.API/Api/GroupsApi.cs index 2a86982e..45144d2b 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/InstancesApi.cs b/src/VRChat.API/Api/InstancesApi.cs index 6acaff29..85e4cd46 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/InviteApi.cs b/src/VRChat.API/Api/InviteApi.cs index 3ab6bcc3..dc651a01 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/JamsApi.cs b/src/VRChat.API/Api/JamsApi.cs new file mode 100644 index 00000000..b86446bb --- /dev/null +++ b/src/VRChat.API/Api/JamsApi.cs @@ -0,0 +1,765 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.18.6 + * Contact: vrchatapi.lpv0t@aries.fyi + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Net; +using System.Net.Mime; +using VRChat.API.Client; +using VRChat.API.Model; + +namespace VRChat.API.Api +{ + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IJamsApiSync : IApiAccessor + { + #region Synchronous Operations + /// + /// Show jam information + /// + /// + /// Returns a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// Jam + Jam GetJam(string jamId, int operationIndex = 0); + + /// + /// Show jam information + /// + /// + /// Returns a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// ApiResponse of Jam + ApiResponse GetJamWithHttpInfo(string jamId, int operationIndex = 0); + /// + /// Show jam submissions + /// + /// + /// Returns all submissions of a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// List<Submission> + List GetJamSubmissions(string jamId, int operationIndex = 0); + + /// + /// Show jam submissions + /// + /// + /// Returns all submissions of a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// ApiResponse of List<Submission> + ApiResponse> GetJamSubmissionsWithHttpInfo(string jamId, int operationIndex = 0); + /// + /// Show jams list + /// + /// + /// Lists World Jams or Avatar Jams, both currently running and ones that have ended. `isActive` is used to select only active or already ended jams. `type` is used to select only world or avatar jams, and can only take `world` or `avatar`. `` + /// + /// Thrown when fails to make API call + /// Only show jams of this type (`avatar` or `world`). (optional) + /// Index associated with the operation. + /// List<Jam> + List GetJams(string type = default(string), int operationIndex = 0); + + /// + /// Show jams list + /// + /// + /// Lists World Jams or Avatar Jams, both currently running and ones that have ended. `isActive` is used to select only active or already ended jams. `type` is used to select only world or avatar jams, and can only take `world` or `avatar`. `` + /// + /// Thrown when fails to make API call + /// Only show jams of this type (`avatar` or `world`). (optional) + /// Index associated with the operation. + /// ApiResponse of List<Jam> + ApiResponse> GetJamsWithHttpInfo(string type = default(string), int operationIndex = 0); + #endregion Synchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IJamsApiAsync : IApiAccessor + { + #region Asynchronous Operations + /// + /// Show jam information + /// + /// + /// Returns a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Jam + System.Threading.Tasks.Task GetJamAsync(string jamId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Show jam information + /// + /// + /// Returns a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Jam) + System.Threading.Tasks.Task> GetJamWithHttpInfoAsync(string jamId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Show jam submissions + /// + /// + /// Returns all submissions of a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Submission> + System.Threading.Tasks.Task> GetJamSubmissionsAsync(string jamId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Show jam submissions + /// + /// + /// Returns all submissions of a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Submission>) + System.Threading.Tasks.Task>> GetJamSubmissionsWithHttpInfoAsync(string jamId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// + /// Show jams list + /// + /// + /// Lists World Jams or Avatar Jams, both currently running and ones that have ended. `isActive` is used to select only active or already ended jams. `type` is used to select only world or avatar jams, and can only take `world` or `avatar`. `` + /// + /// Thrown when fails to make API call + /// Only show jams of this type (`avatar` or `world`). (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Jam> + System.Threading.Tasks.Task> GetJamsAsync(string type = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Show jams list + /// + /// + /// Lists World Jams or Avatar Jams, both currently running and ones that have ended. `isActive` is used to select only active or already ended jams. `type` is used to select only world or avatar jams, and can only take `world` or `avatar`. `` + /// + /// Thrown when fails to make API call + /// Only show jams of this type (`avatar` or `world`). (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Jam>) + System.Threading.Tasks.Task>> GetJamsWithHttpInfoAsync(string type = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + #endregion Asynchronous Operations + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public interface IJamsApi : IJamsApiSync, IJamsApiAsync + { + + } + + /// + /// Represents a collection of functions to interact with the API endpoints + /// + public partial class JamsApi : IJamsApi + { + private VRChat.API.Client.ExceptionFactory _exceptionFactory = (name, response) => null; + + /// + /// Initializes a new instance of the class. + /// + /// + public JamsApi() : this((string)null) + { + } + + /// + /// Initializes a new instance of the class. + /// + /// + public JamsApi(string basePath) + { + this.Configuration = VRChat.API.Client.Configuration.MergeConfigurations( + VRChat.API.Client.GlobalConfiguration.Instance, + new VRChat.API.Client.Configuration { BasePath = basePath } + ); + this.Client = new VRChat.API.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new VRChat.API.Client.ApiClient(this.Configuration.BasePath); + this.ExceptionFactory = VRChat.API.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using Configuration object + /// + /// An instance of Configuration + /// + public JamsApi(VRChat.API.Client.Configuration configuration) + { + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Configuration = VRChat.API.Client.Configuration.MergeConfigurations( + VRChat.API.Client.GlobalConfiguration.Instance, + configuration + ); + this.Client = new VRChat.API.Client.ApiClient(this.Configuration.BasePath); + this.AsynchronousClient = new VRChat.API.Client.ApiClient(this.Configuration.BasePath); + ExceptionFactory = VRChat.API.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// Initializes a new instance of the class + /// using a Configuration object and client instance. + /// + /// The client interface for synchronous API access. + /// The client interface for asynchronous API access. + /// The configuration object. + public JamsApi(VRChat.API.Client.ISynchronousClient client, VRChat.API.Client.IAsynchronousClient asyncClient, VRChat.API.Client.IReadableConfiguration configuration) + { + if (client == null) throw new ArgumentNullException("client"); + if (asyncClient == null) throw new ArgumentNullException("asyncClient"); + if (configuration == null) throw new ArgumentNullException("configuration"); + + this.Client = client; + this.AsynchronousClient = asyncClient; + this.Configuration = configuration; + this.ExceptionFactory = VRChat.API.Client.Configuration.DefaultExceptionFactory; + } + + /// + /// The client for accessing this underlying API asynchronously. + /// + public VRChat.API.Client.IAsynchronousClient AsynchronousClient { get; set; } + + /// + /// The client for accessing this underlying API synchronously. + /// + public VRChat.API.Client.ISynchronousClient Client { get; set; } + + /// + /// Gets the base path of the API client. + /// + /// The base path + public string GetBasePath() + { + return this.Configuration.BasePath; + } + + /// + /// Gets or sets the configuration object + /// + /// An instance of the Configuration + public VRChat.API.Client.IReadableConfiguration Configuration { get; set; } + + /// + /// Provides a factory method hook for the creation of exceptions. + /// + public VRChat.API.Client.ExceptionFactory ExceptionFactory + { + get + { + if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1) + { + throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported."); + } + return _exceptionFactory; + } + set { _exceptionFactory = value; } + } + + /// + /// Show jam information Returns a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// Jam + public Jam GetJam(string jamId, int operationIndex = 0) + { + VRChat.API.Client.ApiResponse localVarResponse = GetJamWithHttpInfo(jamId); + return localVarResponse.Data; + } + + /// + /// Show jam information Returns a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// ApiResponse of Jam + public VRChat.API.Client.ApiResponse GetJamWithHttpInfo(string jamId, int operationIndex = 0) + { + // verify the required parameter 'jamId' is set + if (jamId == null) + { + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'jamId' when calling JamsApi->GetJam"); + } + + 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("jamId", VRChat.API.Client.ClientUtils.ParameterToString(jamId)); // path parameter + + localVarRequestOptions.Operation = "JamsApi.GetJam"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "vrchat.com")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/jams/{jamId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetJam", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Show jam information Returns a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Jam + public async System.Threading.Tasks.Task GetJamAsync(string jamId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + VRChat.API.Client.ApiResponse localVarResponse = await GetJamWithHttpInfoAsync(jamId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Show jam information Returns a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Jam) + public async System.Threading.Tasks.Task> GetJamWithHttpInfoAsync(string jamId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'jamId' is set + if (jamId == null) + { + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'jamId' when calling JamsApi->GetJam"); + } + + + 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("jamId", VRChat.API.Client.ClientUtils.ParameterToString(jamId)); // path parameter + + localVarRequestOptions.Operation = "JamsApi.GetJam"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "vrchat.com")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/jams/{jamId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetJam", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Show jam submissions Returns all submissions of a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// List<Submission> + public List GetJamSubmissions(string jamId, int operationIndex = 0) + { + VRChat.API.Client.ApiResponse> localVarResponse = GetJamSubmissionsWithHttpInfo(jamId); + return localVarResponse.Data; + } + + /// + /// Show jam submissions Returns all submissions of a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// ApiResponse of List<Submission> + public VRChat.API.Client.ApiResponse> GetJamSubmissionsWithHttpInfo(string jamId, int operationIndex = 0) + { + // verify the required parameter 'jamId' is set + if (jamId == null) + { + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'jamId' when calling JamsApi->GetJamSubmissions"); + } + + 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("jamId", VRChat.API.Client.ClientUtils.ParameterToString(jamId)); // path parameter + + localVarRequestOptions.Operation = "JamsApi.GetJamSubmissions"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "vrchat.com")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/jams/{jamId}/submissions", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetJamSubmissions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Show jam submissions Returns all submissions of a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Submission> + public async System.Threading.Tasks.Task> GetJamSubmissionsAsync(string jamId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + VRChat.API.Client.ApiResponse> localVarResponse = await GetJamSubmissionsWithHttpInfoAsync(jamId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Show jam submissions Returns all submissions of a jam. + /// + /// Thrown when fails to make API call + /// Must be a valid query ID. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Submission>) + public async System.Threading.Tasks.Task>> GetJamSubmissionsWithHttpInfoAsync(string jamId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'jamId' is set + if (jamId == null) + { + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'jamId' when calling JamsApi->GetJamSubmissions"); + } + + + 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("jamId", VRChat.API.Client.ClientUtils.ParameterToString(jamId)); // path parameter + + localVarRequestOptions.Operation = "JamsApi.GetJamSubmissions"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "vrchat.com")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/jams/{jamId}/submissions", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetJamSubmissions", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Show jams list Lists World Jams or Avatar Jams, both currently running and ones that have ended. `isActive` is used to select only active or already ended jams. `type` is used to select only world or avatar jams, and can only take `world` or `avatar`. `` + /// + /// Thrown when fails to make API call + /// Only show jams of this type (`avatar` or `world`). (optional) + /// Index associated with the operation. + /// List<Jam> + public List GetJams(string type = default(string), int operationIndex = 0) + { + VRChat.API.Client.ApiResponse> localVarResponse = GetJamsWithHttpInfo(type); + return localVarResponse.Data; + } + + /// + /// Show jams list Lists World Jams or Avatar Jams, both currently running and ones that have ended. `isActive` is used to select only active or already ended jams. `type` is used to select only world or avatar jams, and can only take `world` or `avatar`. `` + /// + /// Thrown when fails to make API call + /// Only show jams of this type (`avatar` or `world`). (optional) + /// Index associated with the operation. + /// ApiResponse of List<Jam> + public VRChat.API.Client.ApiResponse> GetJamsWithHttpInfo(string type = default(string), int operationIndex = 0) + { + 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 (type != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "type", type)); + } + + localVarRequestOptions.Operation = "JamsApi.GetJams"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "vrchat.com")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get>("/jams", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetJams", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Show jams list Lists World Jams or Avatar Jams, both currently running and ones that have ended. `isActive` is used to select only active or already ended jams. `type` is used to select only world or avatar jams, and can only take `world` or `avatar`. `` + /// + /// Thrown when fails to make API call + /// Only show jams of this type (`avatar` or `world`). (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of List<Jam> + public async System.Threading.Tasks.Task> GetJamsAsync(string type = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + VRChat.API.Client.ApiResponse> localVarResponse = await GetJamsWithHttpInfoAsync(type, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Show jams list Lists World Jams or Avatar Jams, both currently running and ones that have ended. `isActive` is used to select only active or already ended jams. `type` is used to select only world or avatar jams, and can only take `world` or `avatar`. `` + /// + /// Thrown when fails to make API call + /// Only show jams of this type (`avatar` or `world`). (optional) + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (List<Jam>) + public async System.Threading.Tasks.Task>> GetJamsWithHttpInfoAsync(string type = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + + 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 (type != null) + { + localVarRequestOptions.QueryParameters.Add(VRChat.API.Client.ClientUtils.ParameterToMultiMap("", "type", type)); + } + + localVarRequestOptions.Operation = "JamsApi.GetJams"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "vrchat.com")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync>("/jams", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetJams", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + } +} diff --git a/src/VRChat.API/Api/NotificationsApi.cs b/src/VRChat.API/Api/NotificationsApi.cs index 4783030f..20e788bf 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -94,6 +94,29 @@ public interface INotificationsApiSync : IApiAccessor /// ApiResponse of Notification ApiResponse DeleteNotificationWithHttpInfo(string notificationId, int operationIndex = 0); /// + /// Show notification + /// + /// + /// Get a notification by notification `not_` ID. + /// + /// Thrown when fails to make API call + /// Must be a valid notification ID. + /// Index associated with the operation. + /// Notification + Notification GetNotification(string notificationId, int operationIndex = 0); + + /// + /// Show notification + /// + /// + /// Get a notification by notification `not_` ID. + /// + /// Thrown when fails to make API call + /// Must be a valid notification ID. + /// Index associated with the operation. + /// ApiResponse of Notification + ApiResponse GetNotificationWithHttpInfo(string notificationId, int operationIndex = 0); + /// /// List Notifications /// /// @@ -232,6 +255,31 @@ public interface INotificationsApiAsync : IApiAccessor /// Task of ApiResponse (Notification) System.Threading.Tasks.Task> DeleteNotificationWithHttpInfoAsync(string notificationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// + /// Show notification + /// + /// + /// Get a notification by notification `not_` ID. + /// + /// Thrown when fails to make API call + /// Must be a valid notification ID. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Notification + System.Threading.Tasks.Task GetNotificationAsync(string notificationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + + /// + /// Show notification + /// + /// + /// Get a notification by notification `not_` ID. + /// + /// Thrown when fails to make API call + /// Must be a valid notification ID. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Notification) + System.Threading.Tasks.Task> GetNotificationWithHttpInfoAsync(string notificationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// /// List Notifications /// /// @@ -861,6 +909,162 @@ public VRChat.API.Client.ApiResponse DeleteNotificationWithHttpInf return localVarResponse; } + /// + /// Show notification Get a notification by notification `not_` ID. + /// + /// Thrown when fails to make API call + /// Must be a valid notification ID. + /// Index associated with the operation. + /// Notification + public Notification GetNotification(string notificationId, int operationIndex = 0) + { + VRChat.API.Client.ApiResponse localVarResponse = GetNotificationWithHttpInfo(notificationId); + return localVarResponse.Data; + } + + /// + /// Show notification Get a notification by notification `not_` ID. + /// + /// Thrown when fails to make API call + /// Must be a valid notification ID. + /// Index associated with the operation. + /// ApiResponse of Notification + public VRChat.API.Client.ApiResponse GetNotificationWithHttpInfo(string notificationId, int operationIndex = 0) + { + // verify the required parameter 'notificationId' is set + if (notificationId == null) + { + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'notificationId' when calling NotificationsApi->GetNotification"); + } + + 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("notificationId", VRChat.API.Client.ClientUtils.ParameterToString(notificationId)); // path parameter + + localVarRequestOptions.Operation = "NotificationsApi.GetNotification"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "vrchat.com")); + } + + // make the HTTP request + var localVarResponse = this.Client.Get("/auth/user/notifications/{notificationId}", localVarRequestOptions, this.Configuration); + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNotification", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + + /// + /// Show notification Get a notification by notification `not_` ID. + /// + /// Thrown when fails to make API call + /// Must be a valid notification ID. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of Notification + public async System.Threading.Tasks.Task GetNotificationAsync(string notificationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + VRChat.API.Client.ApiResponse localVarResponse = await GetNotificationWithHttpInfoAsync(notificationId, operationIndex, cancellationToken).ConfigureAwait(false); + return localVarResponse.Data; + } + + /// + /// Show notification Get a notification by notification `not_` ID. + /// + /// Thrown when fails to make API call + /// Must be a valid notification ID. + /// Index associated with the operation. + /// Cancellation Token to cancel the request. + /// Task of ApiResponse (Notification) + public async System.Threading.Tasks.Task> GetNotificationWithHttpInfoAsync(string notificationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + { + // verify the required parameter 'notificationId' is set + if (notificationId == null) + { + throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'notificationId' when calling NotificationsApi->GetNotification"); + } + + + 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("notificationId", VRChat.API.Client.ClientUtils.ParameterToString(notificationId)); // path parameter + + localVarRequestOptions.Operation = "NotificationsApi.GetNotification"; + localVarRequestOptions.OperationIndex = operationIndex; + + // authentication (authCookie) required + // cookie parameter support + if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) + { + localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "vrchat.com")); + } + + // make the HTTP request + var localVarResponse = await this.AsynchronousClient.GetAsync("/auth/user/notifications/{notificationId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + + if (this.ExceptionFactory != null) + { + Exception _exception = this.ExceptionFactory("GetNotification", localVarResponse); + if (_exception != null) + { + throw _exception; + } + } + + return localVarResponse; + } + /// /// List Notifications Retrieve all of the current user's notifications. /// diff --git a/src/VRChat.API/Api/PermissionsApi.cs b/src/VRChat.API/Api/PermissionsApi.cs index 46188488..165431c5 100644 --- a/src/VRChat.API/Api/PermissionsApi.cs +++ b/src/VRChat.API/Api/PermissionsApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 c53e4298..90a4b309 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -48,52 +48,6 @@ public interface IPlayermoderationApiSync : IApiAccessor /// ApiResponse of Success ApiResponse ClearAllPlayerModerationsWithHttpInfo(int operationIndex = 0); /// - /// Delete Player Moderation - /// - /// - /// Deletes a specific player moderation based on it's `pmod_` ID. The website uses `unmoderateUser` instead. You can delete the same player moderation multiple times successfully. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// Success - Success DeletePlayerModeration(string playerModerationId, int operationIndex = 0); - - /// - /// Delete Player Moderation - /// - /// - /// Deletes a specific player moderation based on it's `pmod_` ID. The website uses `unmoderateUser` instead. You can delete the same player moderation multiple times successfully. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// ApiResponse of Success - ApiResponse DeletePlayerModerationWithHttpInfo(string playerModerationId, int operationIndex = 0); - /// - /// Get Player Moderation - /// - /// - /// Returns a single Player Moderation. This returns the exact same amount of information as the more generalised `getPlayerModerations`. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// PlayerModeration - PlayerModeration GetPlayerModeration(string playerModerationId, int operationIndex = 0); - - /// - /// Get Player Moderation - /// - /// - /// Returns a single Player Moderation. This returns the exact same amount of information as the more generalised `getPlayerModerations`. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// ApiResponse of PlayerModeration - ApiResponse GetPlayerModerationWithHttpInfo(string playerModerationId, int operationIndex = 0); - /// /// Search Player Moderations /// /// @@ -197,56 +151,6 @@ public interface IPlayermoderationApiAsync : IApiAccessor /// Task of ApiResponse (Success) System.Threading.Tasks.Task> ClearAllPlayerModerationsWithHttpInfoAsync(int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Delete Player Moderation - /// - /// - /// Deletes a specific player moderation based on it's `pmod_` ID. The website uses `unmoderateUser` instead. You can delete the same player moderation multiple times successfully. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Success - System.Threading.Tasks.Task DeletePlayerModerationAsync(string playerModerationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Delete Player Moderation - /// - /// - /// Deletes a specific player moderation based on it's `pmod_` ID. The website uses `unmoderateUser` instead. You can delete the same player moderation multiple times successfully. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Success) - System.Threading.Tasks.Task> DeletePlayerModerationWithHttpInfoAsync(string playerModerationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - /// - /// Get Player Moderation - /// - /// - /// Returns a single Player Moderation. This returns the exact same amount of information as the more generalised `getPlayerModerations`. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of PlayerModeration - System.Threading.Tasks.Task GetPlayerModerationAsync(string playerModerationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - - /// - /// Get Player Moderation - /// - /// - /// Returns a single Player Moderation. This returns the exact same amount of information as the more generalised `getPlayerModerations`. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (PlayerModeration) - System.Threading.Tasks.Task> GetPlayerModerationWithHttpInfoAsync(string playerModerationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); - /// /// Search Player Moderations /// /// @@ -581,318 +485,6 @@ public VRChat.API.Client.ApiResponse ClearAllPlayerModerationsWithHttpI return localVarResponse; } - /// - /// Delete Player Moderation Deletes a specific player moderation based on it's `pmod_` ID. The website uses `unmoderateUser` instead. You can delete the same player moderation multiple times successfully. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// Success - public Success DeletePlayerModeration(string playerModerationId, int operationIndex = 0) - { - VRChat.API.Client.ApiResponse localVarResponse = DeletePlayerModerationWithHttpInfo(playerModerationId); - return localVarResponse.Data; - } - - /// - /// Delete Player Moderation Deletes a specific player moderation based on it's `pmod_` ID. The website uses `unmoderateUser` instead. You can delete the same player moderation multiple times successfully. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// ApiResponse of Success - public VRChat.API.Client.ApiResponse DeletePlayerModerationWithHttpInfo(string playerModerationId, int operationIndex = 0) - { - // verify the required parameter 'playerModerationId' is set - if (playerModerationId == null) - { - throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'playerModerationId' when calling PlayermoderationApi->DeletePlayerModeration"); - } - - 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("playerModerationId", VRChat.API.Client.ClientUtils.ParameterToString(playerModerationId)); // path parameter - - localVarRequestOptions.Operation = "PlayermoderationApi.DeletePlayerModeration"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (authCookie) required - // cookie parameter support - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) - { - localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "vrchat.com")); - } - - // make the HTTP request - var localVarResponse = this.Client.Delete("/auth/user/playermoderations/{playerModerationId}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("DeletePlayerModeration", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Delete Player Moderation Deletes a specific player moderation based on it's `pmod_` ID. The website uses `unmoderateUser` instead. You can delete the same player moderation multiple times successfully. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of Success - public async System.Threading.Tasks.Task DeletePlayerModerationAsync(string playerModerationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - VRChat.API.Client.ApiResponse localVarResponse = await DeletePlayerModerationWithHttpInfoAsync(playerModerationId, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Delete Player Moderation Deletes a specific player moderation based on it's `pmod_` ID. The website uses `unmoderateUser` instead. You can delete the same player moderation multiple times successfully. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (Success) - public async System.Threading.Tasks.Task> DeletePlayerModerationWithHttpInfoAsync(string playerModerationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // verify the required parameter 'playerModerationId' is set - if (playerModerationId == null) - { - throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'playerModerationId' when calling PlayermoderationApi->DeletePlayerModeration"); - } - - - 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("playerModerationId", VRChat.API.Client.ClientUtils.ParameterToString(playerModerationId)); // path parameter - - localVarRequestOptions.Operation = "PlayermoderationApi.DeletePlayerModeration"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (authCookie) required - // cookie parameter support - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) - { - localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "vrchat.com")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.DeleteAsync("/auth/user/playermoderations/{playerModerationId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("DeletePlayerModeration", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get Player Moderation Returns a single Player Moderation. This returns the exact same amount of information as the more generalised `getPlayerModerations`. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// PlayerModeration - public PlayerModeration GetPlayerModeration(string playerModerationId, int operationIndex = 0) - { - VRChat.API.Client.ApiResponse localVarResponse = GetPlayerModerationWithHttpInfo(playerModerationId); - return localVarResponse.Data; - } - - /// - /// Get Player Moderation Returns a single Player Moderation. This returns the exact same amount of information as the more generalised `getPlayerModerations`. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// ApiResponse of PlayerModeration - public VRChat.API.Client.ApiResponse GetPlayerModerationWithHttpInfo(string playerModerationId, int operationIndex = 0) - { - // verify the required parameter 'playerModerationId' is set - if (playerModerationId == null) - { - throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'playerModerationId' when calling PlayermoderationApi->GetPlayerModeration"); - } - - 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("playerModerationId", VRChat.API.Client.ClientUtils.ParameterToString(playerModerationId)); // path parameter - - localVarRequestOptions.Operation = "PlayermoderationApi.GetPlayerModeration"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (authCookie) required - // cookie parameter support - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) - { - localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "vrchat.com")); - } - - // make the HTTP request - var localVarResponse = this.Client.Get("/auth/user/playermoderations/{playerModerationId}", localVarRequestOptions, this.Configuration); - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetPlayerModeration", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - - /// - /// Get Player Moderation Returns a single Player Moderation. This returns the exact same amount of information as the more generalised `getPlayerModerations`. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of PlayerModeration - public async System.Threading.Tasks.Task GetPlayerModerationAsync(string playerModerationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - VRChat.API.Client.ApiResponse localVarResponse = await GetPlayerModerationWithHttpInfoAsync(playerModerationId, operationIndex, cancellationToken).ConfigureAwait(false); - return localVarResponse.Data; - } - - /// - /// Get Player Moderation Returns a single Player Moderation. This returns the exact same amount of information as the more generalised `getPlayerModerations`. - /// - /// Thrown when fails to make API call - /// Must be a valid `pmod_` ID. - /// Index associated with the operation. - /// Cancellation Token to cancel the request. - /// Task of ApiResponse (PlayerModeration) - public async System.Threading.Tasks.Task> GetPlayerModerationWithHttpInfoAsync(string playerModerationId, int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) - { - // verify the required parameter 'playerModerationId' is set - if (playerModerationId == null) - { - throw new VRChat.API.Client.ApiException(400, "Missing required parameter 'playerModerationId' when calling PlayermoderationApi->GetPlayerModeration"); - } - - - 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("playerModerationId", VRChat.API.Client.ClientUtils.ParameterToString(playerModerationId)); // path parameter - - localVarRequestOptions.Operation = "PlayermoderationApi.GetPlayerModeration"; - localVarRequestOptions.OperationIndex = operationIndex; - - // authentication (authCookie) required - // cookie parameter support - if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("auth"))) - { - localVarRequestOptions.Cookies.Add(new Cookie("auth", this.Configuration.GetApiKeyWithPrefix("auth"), "/", "vrchat.com")); - } - - // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync("/auth/user/playermoderations/{playerModerationId}", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); - - if (this.ExceptionFactory != null) - { - Exception _exception = this.ExceptionFactory("GetPlayerModeration", localVarResponse); - if (_exception != null) - { - throw _exception; - } - } - - return localVarResponse; - } - /// /// Search Player Moderations Returns a list of all player moderations made by **you**. This endpoint does not have pagination, and will return *all* results. Use query parameters to limit your query if needed. /// diff --git a/src/VRChat.API/Api/SystemApi.cs b/src/VRChat.API/Api/SystemApi.cs index e2b3ab01..47b353e7 100644 --- a/src/VRChat.API/Api/SystemApi.cs +++ b/src/VRChat.API/Api/SystemApi.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 7f20237f..9ae518e8 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Api/WorldsApi.cs b/src/VRChat.API/Api/WorldsApi.cs index 1b82c2a7..7c6f7e27 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -138,8 +138,8 @@ public interface IWorldsApiSync : IApiAccessor /// The platform the asset supports. (optional) /// Target user to see information on, admin-only. (optional) /// Index associated with the operation. - /// List<LimitedWorld> - List GetFavoritedWorlds(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0); + /// List<FavoritedWorld> + List GetFavoritedWorlds(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0); /// /// List Favorited Worlds @@ -162,8 +162,8 @@ public interface IWorldsApiSync : IApiAccessor /// The platform the asset supports. (optional) /// Target user to see information on, admin-only. (optional) /// Index associated with the operation. - /// ApiResponse of List<LimitedWorld> - ApiResponse> GetFavoritedWorldsWithHttpInfo(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0); + /// ApiResponse of List<FavoritedWorld> + ApiResponse> GetFavoritedWorldsWithHttpInfo(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0); /// /// List Recent Worlds /// @@ -557,8 +557,8 @@ public interface IWorldsApiAsync : IApiAccessor /// Target user to see information on, admin-only. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<LimitedWorld> - System.Threading.Tasks.Task> GetFavoritedWorldsAsync(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of List<FavoritedWorld> + System.Threading.Tasks.Task> GetFavoritedWorldsAsync(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Favorited Worlds @@ -582,8 +582,8 @@ public interface IWorldsApiAsync : IApiAccessor /// Target user to see information on, admin-only. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<LimitedWorld>) - System.Threading.Tasks.Task>> GetFavoritedWorldsWithHttpInfoAsync(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (List<FavoritedWorld>) + System.Threading.Tasks.Task>> GetFavoritedWorldsWithHttpInfoAsync(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Recent Worlds /// @@ -1575,10 +1575,10 @@ public VRChat.API.Client.ApiResponse DeleteWorldWithHttpInfo(string worl /// The platform the asset supports. (optional) /// Target user to see information on, admin-only. (optional) /// Index associated with the operation. - /// List<LimitedWorld> - public List GetFavoritedWorlds(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0) + /// List<FavoritedWorld> + public List GetFavoritedWorlds(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0) { - VRChat.API.Client.ApiResponse> localVarResponse = GetFavoritedWorldsWithHttpInfo(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId); + VRChat.API.Client.ApiResponse> localVarResponse = GetFavoritedWorldsWithHttpInfo(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId); return localVarResponse.Data; } @@ -1600,8 +1600,8 @@ public VRChat.API.Client.ApiResponse DeleteWorldWithHttpInfo(string worl /// The platform the asset supports. (optional) /// Target user to see information on, admin-only. (optional) /// Index associated with the operation. - /// ApiResponse of List<LimitedWorld> - public VRChat.API.Client.ApiResponse> GetFavoritedWorldsWithHttpInfo(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0) + /// ApiResponse of List<FavoritedWorld> + public VRChat.API.Client.ApiResponse> GetFavoritedWorldsWithHttpInfo(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0) { VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); @@ -1689,7 +1689,7 @@ public VRChat.API.Client.ApiResponse DeleteWorldWithHttpInfo(string worl } // make the HTTP request - var localVarResponse = this.Client.Get>("/worlds/favorites", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/worlds/favorites", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetFavoritedWorlds", localVarResponse); @@ -1721,10 +1721,10 @@ public VRChat.API.Client.ApiResponse DeleteWorldWithHttpInfo(string worl /// Target user to see information on, admin-only. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of List<LimitedWorld> - public async System.Threading.Tasks.Task> GetFavoritedWorldsAsync(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of List<FavoritedWorld> + public async System.Threading.Tasks.Task> GetFavoritedWorldsAsync(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - VRChat.API.Client.ApiResponse> localVarResponse = await GetFavoritedWorldsWithHttpInfoAsync(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId, operationIndex, cancellationToken).ConfigureAwait(false); + VRChat.API.Client.ApiResponse> localVarResponse = await GetFavoritedWorldsWithHttpInfoAsync(featured, sort, n, order, offset, search, tag, notag, releaseStatus, maxUnityVersion, minUnityVersion, platform, userId, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1747,8 +1747,8 @@ public VRChat.API.Client.ApiResponse DeleteWorldWithHttpInfo(string worl /// Target user to see information on, admin-only. (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<LimitedWorld>) - public async System.Threading.Tasks.Task>> GetFavoritedWorldsWithHttpInfoAsync(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (List<FavoritedWorld>) + public async System.Threading.Tasks.Task>> GetFavoritedWorldsWithHttpInfoAsync(bool? featured = default(bool?), SortOption? sort = default(SortOption?), int? n = default(int?), OrderOption? order = default(OrderOption?), int? offset = default(int?), string search = default(string), string tag = default(string), string notag = default(string), ReleaseStatus? releaseStatus = default(ReleaseStatus?), string maxUnityVersion = default(string), string minUnityVersion = default(string), string platform = default(string), string userId = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { VRChat.API.Client.RequestOptions localVarRequestOptions = new VRChat.API.Client.RequestOptions(); @@ -1837,7 +1837,7 @@ public VRChat.API.Client.ApiResponse DeleteWorldWithHttpInfo(string worl } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/worlds/favorites", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/worlds/favorites", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { diff --git a/src/VRChat.API/Client/ApiClient.cs b/src/VRChat.API/Client/ApiClient.cs index 74b7d50f..e820b71e 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 cd18eba5..377c3005 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 e0a728a4..d1a739fe 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 16d4453a..a248b736 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 1f3226c1..36ccd255 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,7 +32,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "1.18.5"; + public const string Version = "1.18.6"; /// /// Identifier for ISO 8601 DateTime Format @@ -516,8 +516,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.18.5\n"; - report += " SDK Package Version: 1.18.5\n"; + report += " Version of the API: 1.18.6\n"; + report += " SDK Package Version: 1.18.6\n"; return report; } diff --git a/src/VRChat.API/Client/ExceptionFactory.cs b/src/VRChat.API/Client/ExceptionFactory.cs index a781dc81..f1f49b3e 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 a0be6220..a0c6753a 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Client/HttpMethod.cs b/src/VRChat.API/Client/HttpMethod.cs index a6bfa422..10e061a1 100644 --- a/src/VRChat.API/Client/HttpMethod.cs +++ b/src/VRChat.API/Client/HttpMethod.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 c4a05f12..5010e520 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 0ec065ee..7eae31f1 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 4978e3e3..7c671ce6 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 1ab38374..e570fc76 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 775df52a..f0b95bf0 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 1897e720..eb41f8fd 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 e3b695a3..af9a1bf2 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 3957d943..d2e205ab 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 0fb3d058..5b62a0e8 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 ddbbff9a..28703614 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 a15c8601..f6c1bf3d 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 eb7a7ff9..f1e19eee 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 734820a6..bdecb229 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 264c7d0e..5f2c4680 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 950be04f..a7002b5e 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 43ab97d1..f458fe0a 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 d03d392f..be22e1dc 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 0c9b9d4b..35767aec 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 230d7b38..b9ab349b 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/APIConfigEvents.cs b/src/VRChat.API/Model/APIConfigEvents.cs index 78f2b839..99496b23 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 9424ed4b..06f3f442 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 6280e1ef..ecf0ce2a 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 bf1ef9c5..b3bc249f 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 c2e26416..e39e1c1d 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 916f6736..2de785df 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/AbstractOpenAPISchema.cs b/src/VRChat.API/Model/AbstractOpenAPISchema.cs index 5e2e1263..aeec8ca8 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 2fbad592..1decf2cf 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/AddFavoriteRequest.cs b/src/VRChat.API/Model/AddFavoriteRequest.cs index 0e15e0a0..87d0665e 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/AddGroupGalleryImageRequest.cs b/src/VRChat.API/Model/AddGroupGalleryImageRequest.cs index 44b11c22..9c9a5d59 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Avatar.cs b/src/VRChat.API/Model/Avatar.cs index f1ea2fcd..cf711157 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 1416aedc..d8fbfff5 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 0e2bb586..d3769438 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 4c00cd12..53e0fbfd 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/CreateAvatarRequest.cs b/src/VRChat.API/Model/CreateAvatarRequest.cs index 1d07ff0c..c69bba3b 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/CreateFileRequest.cs b/src/VRChat.API/Model/CreateFileRequest.cs index 0b9ce132..5aab51a8 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/CreateFileVersionRequest.cs b/src/VRChat.API/Model/CreateFileVersionRequest.cs index 0110aff7..d2ffabce 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/CreateGroupAnnouncementRequest.cs b/src/VRChat.API/Model/CreateGroupAnnouncementRequest.cs index 2f9f02f4..f0b8a952 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/CreateGroupGalleryRequest.cs b/src/VRChat.API/Model/CreateGroupGalleryRequest.cs index 01a472ae..96868c6f 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/CreateGroupInviteRequest.cs b/src/VRChat.API/Model/CreateGroupInviteRequest.cs index 811af3f8..eee7d2a6 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/CreateGroupPostRequest.cs b/src/VRChat.API/Model/CreateGroupPostRequest.cs index a57361e8..633125e2 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/CreateGroupRequest.cs b/src/VRChat.API/Model/CreateGroupRequest.cs index 0093f0c9..347dde10 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/CreateGroupRoleRequest.cs b/src/VRChat.API/Model/CreateGroupRoleRequest.cs index 930a41e6..8eae9812 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/CreateInstanceRequest.cs b/src/VRChat.API/Model/CreateInstanceRequest.cs index cabf929e..53dc950c 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/CreateWorldRequest.cs b/src/VRChat.API/Model/CreateWorldRequest.cs index 00dce459..b2e803ef 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 aeae6cf2..32cc5cee 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 04f6f396..0e860ce3 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/DeploymentGroup.cs b/src/VRChat.API/Model/DeploymentGroup.cs index e3ffc874..4f5d262f 100644 --- a/src/VRChat.API/Model/DeploymentGroup.cs +++ b/src/VRChat.API/Model/DeploymentGroup.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/DeveloperType.cs b/src/VRChat.API/Model/DeveloperType.cs index eb81be3e..575a1ce9 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 c5f7ea00..e04537a5 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Error.cs b/src/VRChat.API/Model/Error.cs index 6277c7a8..9cb2b913 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 f39ba90a..1c07f902 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 67850797..5b844f33 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 551f180b..3697b979 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 c25e2fd7..d88c6fa9 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/FavoritedWorld.cs b/src/VRChat.API/Model/FavoritedWorld.cs new file mode 100644 index 00000000..88bb241d --- /dev/null +++ b/src/VRChat.API/Model/FavoritedWorld.cs @@ -0,0 +1,746 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.18.6 + * 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 OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// FavoritedWorld + /// + [DataContract(Name = "FavoritedWorld")] + public partial class FavoritedWorld : IEquatable, IValidatableObject + { + + /// + /// Gets or Sets ReleaseStatus + /// + [DataMember(Name = "releaseStatus", IsRequired = true, EmitDefaultValue = true)] + public ReleaseStatus ReleaseStatus { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected FavoritedWorld() { } + /// + /// 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). + /// authorName (required). + /// capacity (required). + /// description (required). + /// recommendedCapacity. + /// createdAt (required). + /// favorites (required) (default to 0). + /// favoriteGroup (required). + /// favoriteId (required). + /// 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). + /// labsPublicationDate (required). + /// name (required). + /// occupants (required) (default to 0). + /// organization (required) (default to "vrchat"). + /// popularity (required) (default to 0). + /// previewYoutubeId. + /// publicationDate (required). + /// releaseStatus (required). + /// (required). + /// thumbnailImageUrl (required). + /// (required). + /// updatedAt (required). + /// udonProducts. + /// version (required). + public FavoritedWorld(string authorId = default(string), string authorName = default(string), int capacity = default(int), string description = default(string), int recommendedCapacity = default(int), DateTime createdAt = default(DateTime), int favorites = 0, string favoriteGroup = default(string), string favoriteId = default(string), bool featured = false, int visits = 0, int heat = 0, string id = default(string), string imageUrl = default(string), string labsPublicationDate = default(string), string name = default(string), int occupants = 0, string organization = "vrchat", int popularity = 0, string previewYoutubeId = default(string), string publicationDate = default(string), ReleaseStatus releaseStatus = default(ReleaseStatus), List tags = default(List), string thumbnailImageUrl = default(string), List unityPackages = default(List), DateTime updatedAt = default(DateTime), List udonProducts = default(List), int version = default(int)) + { + // to ensure "authorId" is required (not null) + if (authorId == null) + { + throw new ArgumentNullException("authorId is a required property for FavoritedWorld and cannot be null"); + } + this.AuthorId = authorId; + // to ensure "authorName" is required (not null) + if (authorName == null) + { + throw new ArgumentNullException("authorName is a required property for FavoritedWorld and cannot be null"); + } + this.AuthorName = authorName; + this.Capacity = capacity; + // 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) + { + throw new ArgumentNullException("favoriteGroup is a required property for FavoritedWorld and cannot be null"); + } + this.FavoriteGroup = favoriteGroup; + // to ensure "favoriteId" is required (not null) + if (favoriteId == null) + { + throw new ArgumentNullException("favoriteId is a required property for FavoritedWorld and cannot be null"); + } + this.FavoriteId = favoriteId; + this.Featured = featured; + this.Heat = heat; + // to ensure "id" is required (not null) + if (id == null) + { + throw new ArgumentNullException("id is a required property for FavoritedWorld 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 FavoritedWorld and cannot be null"); + } + this.ImageUrl = imageUrl; + // to ensure "labsPublicationDate" is required (not null) + if (labsPublicationDate == null) + { + throw new ArgumentNullException("labsPublicationDate is a required property for FavoritedWorld and cannot be null"); + } + this.LabsPublicationDate = labsPublicationDate; + // to ensure "name" is required (not null) + if (name == null) + { + throw new ArgumentNullException("name is a required property for FavoritedWorld and cannot be null"); + } + this.Name = name; + this.Occupants = occupants; + // to ensure "organization" is required (not null) + if (organization == null) + { + throw new ArgumentNullException("organization is a required property for FavoritedWorld and cannot be null"); + } + this.Organization = organization; + this.Popularity = popularity; + // to ensure "publicationDate" is required (not null) + if (publicationDate == null) + { + throw new ArgumentNullException("publicationDate is a required property for FavoritedWorld and cannot be null"); + } + this.PublicationDate = publicationDate; + this.ReleaseStatus = releaseStatus; + // to ensure "tags" is required (not null) + if (tags == null) + { + throw new ArgumentNullException("tags is a required property for FavoritedWorld and cannot be null"); + } + this.Tags = tags; + // to ensure "thumbnailImageUrl" is required (not null) + if (thumbnailImageUrl == null) + { + throw new ArgumentNullException("thumbnailImageUrl is a required property for FavoritedWorld and cannot be null"); + } + this.ThumbnailImageUrl = thumbnailImageUrl; + // to ensure "unityPackages" is required (not null) + if (unityPackages == null) + { + throw new ArgumentNullException("unityPackages is a required property for FavoritedWorld and cannot be null"); + } + this.UnityPackages = unityPackages; + this.UpdatedAt = updatedAt; + this._Version = version; + this.RecommendedCapacity = recommendedCapacity; + this.Visits = visits; + this.PreviewYoutubeId = previewYoutubeId; + this.UdonProducts = udonProducts; + } + + /// + /// 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. + [DataMember(Name = "authorId", IsRequired = true, EmitDefaultValue = true)] + public string AuthorId { get; set; } + + /// + /// Gets or Sets AuthorName + /// + [DataMember(Name = "authorName", IsRequired = true, EmitDefaultValue = true)] + public string AuthorName { get; set; } + + /// + /// Gets or Sets Capacity + /// + [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 + /// + [DataMember(Name = "recommendedCapacity", EmitDefaultValue = false)] + public int RecommendedCapacity { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Favorites + /// + [DataMember(Name = "favorites", IsRequired = true, EmitDefaultValue = true)] + public int Favorites { get; set; } + + /// + /// Gets or Sets FavoriteGroup + /// + [DataMember(Name = "favoriteGroup", IsRequired = true, EmitDefaultValue = true)] + public string FavoriteGroup { get; set; } + + /// + /// Gets or Sets FavoriteId + /// + [DataMember(Name = "favoriteId", IsRequired = true, EmitDefaultValue = true)] + public string FavoriteId { get; set; } + + /// + /// Gets or Sets Featured + /// + [DataMember(Name = "featured", IsRequired = true, EmitDefaultValue = true)] + public bool Featured { get; set; } + + /// + /// Gets or Sets Visits + /// + [DataMember(Name = "visits", EmitDefaultValue = false)] + public int Visits { get; set; } + + /// + /// Gets or Sets Heat + /// + [DataMember(Name = "heat", IsRequired = true, EmitDefaultValue = true)] + public int Heat { 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. + [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 LabsPublicationDate + /// + [DataMember(Name = "labsPublicationDate", IsRequired = true, EmitDefaultValue = true)] + public string LabsPublicationDate { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)] + public string Name { get; set; } + + /// + /// Gets or Sets Occupants + /// + [DataMember(Name = "occupants", IsRequired = true, EmitDefaultValue = true)] + public int Occupants { get; set; } + + /// + /// Gets or Sets Organization + /// + [DataMember(Name = "organization", IsRequired = true, EmitDefaultValue = true)] + public string Organization { get; set; } + + /// + /// Gets or Sets Popularity + /// + [DataMember(Name = "popularity", IsRequired = true, EmitDefaultValue = true)] + public int Popularity { get; set; } + + /// + /// Gets or Sets PreviewYoutubeId + /// + [DataMember(Name = "previewYoutubeId", EmitDefaultValue = true)] + public string PreviewYoutubeId { get; set; } + + /// + /// Gets or Sets PublicationDate + /// + [DataMember(Name = "publicationDate", IsRequired = true, EmitDefaultValue = true)] + public string PublicationDate { get; set; } + + /// + /// + /// + /// + [DataMember(Name = "tags", IsRequired = true, EmitDefaultValue = true)] + public List Tags { get; set; } + + /// + /// Gets or Sets ThumbnailImageUrl + /// + [DataMember(Name = "thumbnailImageUrl", IsRequired = true, EmitDefaultValue = true)] + public string ThumbnailImageUrl { get; set; } + + /// + /// + /// + /// + [DataMember(Name = "unityPackages", IsRequired = true, EmitDefaultValue = true)] + public List UnityPackages { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { get; set; } + + /// + /// Gets or Sets UdonProducts + /// + [DataMember(Name = "udonProducts", EmitDefaultValue = false)] + public List UdonProducts { get; set; } + + /// + /// Gets or Sets _Version + /// + [DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)] + public int _Version { 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 FavoritedWorld {\n"); + 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(" Favorites: ").Append(Favorites).Append("\n"); + sb.Append(" FavoriteGroup: ").Append(FavoriteGroup).Append("\n"); + sb.Append(" FavoriteId: ").Append(FavoriteId).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"); + sb.Append(" LabsPublicationDate: ").Append(LabsPublicationDate).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Occupants: ").Append(Occupants).Append("\n"); + sb.Append(" Organization: ").Append(Organization).Append("\n"); + sb.Append(" Popularity: ").Append(Popularity).Append("\n"); + sb.Append(" PreviewYoutubeId: ").Append(PreviewYoutubeId).Append("\n"); + sb.Append(" PublicationDate: ").Append(PublicationDate).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(" UnityPackages: ").Append(UnityPackages).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" UdonProducts: ").Append(UdonProducts).Append("\n"); + sb.Append(" _Version: ").Append(_Version).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 FavoritedWorld); + } + + /// + /// Returns true if FavoritedWorld instances are equal + /// + /// Instance of FavoritedWorld to be compared + /// Boolean + public bool Equals(FavoritedWorld input) + { + if (input == null) + { + return false; + } + return + ( + this.AuthorId == input.AuthorId || + (this.AuthorId != null && + this.AuthorId.Equals(input.AuthorId)) + ) && + ( + this.AuthorName == input.AuthorName || + (this.AuthorName != null && + this.AuthorName.Equals(input.AuthorName)) + ) && + ( + 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 && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Favorites == input.Favorites || + this.Favorites.Equals(input.Favorites) + ) && + ( + this.FavoriteGroup == input.FavoriteGroup || + (this.FavoriteGroup != null && + this.FavoriteGroup.Equals(input.FavoriteGroup)) + ) && + ( + this.FavoriteId == input.FavoriteId || + (this.FavoriteId != null && + this.FavoriteId.Equals(input.FavoriteId)) + ) && + ( + this.Featured == input.Featured || + this.Featured.Equals(input.Featured) + ) && + ( + this.Visits == input.Visits || + this.Visits.Equals(input.Visits) + ) && + ( + this.Heat == input.Heat || + this.Heat.Equals(input.Heat) + ) && + ( + 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.LabsPublicationDate == input.LabsPublicationDate || + (this.LabsPublicationDate != null && + this.LabsPublicationDate.Equals(input.LabsPublicationDate)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Occupants == input.Occupants || + this.Occupants.Equals(input.Occupants) + ) && + ( + this.Organization == input.Organization || + (this.Organization != null && + this.Organization.Equals(input.Organization)) + ) && + ( + this.Popularity == input.Popularity || + this.Popularity.Equals(input.Popularity) + ) && + ( + this.PreviewYoutubeId == input.PreviewYoutubeId || + (this.PreviewYoutubeId != null && + this.PreviewYoutubeId.Equals(input.PreviewYoutubeId)) + ) && + ( + this.PublicationDate == input.PublicationDate || + (this.PublicationDate != null && + this.PublicationDate.Equals(input.PublicationDate)) + ) && + ( + this.ReleaseStatus == input.ReleaseStatus || + this.ReleaseStatus.Equals(input.ReleaseStatus) + ) && + ( + this.Tags == input.Tags || + this.Tags != null && + input.Tags != null && + this.Tags.SequenceEqual(input.Tags) + ) && + ( + this.ThumbnailImageUrl == input.ThumbnailImageUrl || + (this.ThumbnailImageUrl != null && + this.ThumbnailImageUrl.Equals(input.ThumbnailImageUrl)) + ) && + ( + this.UnityPackages == input.UnityPackages || + this.UnityPackages != null && + input.UnityPackages != null && + this.UnityPackages.SequenceEqual(input.UnityPackages) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) && + ( + this.UdonProducts == input.UdonProducts || + this.UdonProducts != null && + input.UdonProducts != null && + this.UdonProducts.SequenceEqual(input.UdonProducts) + ) && + ( + this._Version == input._Version || + this._Version.Equals(input._Version) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AuthorId != null) + { + hashCode = (hashCode * 59) + this.AuthorId.GetHashCode(); + } + if (this.AuthorName != null) + { + 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(); + } + hashCode = (hashCode * 59) + this.Favorites.GetHashCode(); + if (this.FavoriteGroup != null) + { + hashCode = (hashCode * 59) + this.FavoriteGroup.GetHashCode(); + } + if (this.FavoriteId != null) + { + hashCode = (hashCode * 59) + this.FavoriteId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Featured.GetHashCode(); + hashCode = (hashCode * 59) + this.Visits.GetHashCode(); + hashCode = (hashCode * 59) + this.Heat.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.ImageUrl != null) + { + hashCode = (hashCode * 59) + this.ImageUrl.GetHashCode(); + } + if (this.LabsPublicationDate != null) + { + hashCode = (hashCode * 59) + this.LabsPublicationDate.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Occupants.GetHashCode(); + if (this.Organization != null) + { + hashCode = (hashCode * 59) + this.Organization.GetHashCode(); + } + hashCode = (hashCode * 59) + this.Popularity.GetHashCode(); + if (this.PreviewYoutubeId != null) + { + hashCode = (hashCode * 59) + this.PreviewYoutubeId.GetHashCode(); + } + if (this.PublicationDate != null) + { + hashCode = (hashCode * 59) + this.PublicationDate.GetHashCode(); + } + hashCode = (hashCode * 59) + this.ReleaseStatus.GetHashCode(); + if (this.Tags != null) + { + hashCode = (hashCode * 59) + this.Tags.GetHashCode(); + } + if (this.ThumbnailImageUrl != null) + { + hashCode = (hashCode * 59) + this.ThumbnailImageUrl.GetHashCode(); + } + if (this.UnityPackages != null) + { + hashCode = (hashCode * 59) + this.UnityPackages.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + if (this.UdonProducts != null) + { + hashCode = (hashCode * 59) + this.UdonProducts.GetHashCode(); + } + hashCode = (hashCode * 59) + this._Version.GetHashCode(); + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // AuthorName (string) minLength + if (this.AuthorName != null && this.AuthorName.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for AuthorName, length must be greater than 1.", new [] { "AuthorName" }); + } + + // Description (string) minLength + if (this.Description != null && this.Description.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be greater than 1.", new [] { "Description" }); + } + + // Favorites (int) minimum + if (this.Favorites < (int)0) + { + yield return new System.ComponentModel.DataAnnotations.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 System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for FavoriteGroup, length must be greater than 1.", new [] { "FavoriteGroup" }); + } + + // Visits (int) minimum + if (this.Visits < (int)0) + { + yield return new System.ComponentModel.DataAnnotations.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) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Heat, must be a value greater than or equal to 0.", new [] { "Heat" }); + } + + // ImageUrl (string) minLength + if (this.ImageUrl != null && this.ImageUrl.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ImageUrl, length must be greater than 1.", new [] { "ImageUrl" }); + } + + // LabsPublicationDate (string) minLength + if (this.LabsPublicationDate != null && this.LabsPublicationDate.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for LabsPublicationDate, length must be greater than 1.", new [] { "LabsPublicationDate" }); + } + + // Name (string) minLength + if (this.Name != null && this.Name.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Name, length must be greater than 1.", new [] { "Name" }); + } + + // Occupants (int) minimum + if (this.Occupants < (int)0) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Occupants, must be a value greater than or equal to 0.", new [] { "Occupants" }); + } + + // Organization (string) minLength + if (this.Organization != null && this.Organization.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Organization, length must be greater than 1.", new [] { "Organization" }); + } + + // Popularity (int) minimum + if (this.Popularity < (int)0) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Popularity, must be a value greater than or equal to 0.", new [] { "Popularity" }); + } + + // PublicationDate (string) minLength + if (this.PublicationDate != null && this.PublicationDate.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PublicationDate, length must be greater than 1.", new [] { "PublicationDate" }); + } + + // ThumbnailImageUrl (string) minLength + if (this.ThumbnailImageUrl != null && this.ThumbnailImageUrl.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ThumbnailImageUrl, length must be greater than 1.", new [] { "ThumbnailImageUrl" }); + } + + // _Version (int) minimum + if (this._Version < (int)1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for _Version, must be a value greater than or equal to 1.", new [] { "_Version" }); + } + + yield break; + } + } + +} diff --git a/src/VRChat.API/Model/File.cs b/src/VRChat.API/Model/File.cs index d69b5b72..e38a4233 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 b7edf541..1582b44c 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 384ff8a2..4a31cb50 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/FileUploadURL.cs b/src/VRChat.API/Model/FileUploadURL.cs index 18a8829b..e606ed0e 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 540760e5..194aacea 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 9237d520..c4ec3d1a 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/FinishFileDataUploadRequest.cs b/src/VRChat.API/Model/FinishFileDataUploadRequest.cs index 6dfe2742..f06e1baa 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 35565ac5..90a90f5b 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 473222ce..00f3502f 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupAccessType.cs b/src/VRChat.API/Model/GroupAccessType.cs index d9cb9488..e98cb055 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupAnnouncement.cs b/src/VRChat.API/Model/GroupAnnouncement.cs index 03e9e9ac..8f6752ed 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupAuditLogEntry.cs b/src/VRChat.API/Model/GroupAuditLogEntry.cs index 3da3720e..04dd8a5a 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupGallery.cs b/src/VRChat.API/Model/GroupGallery.cs index 6a07e08a..dbcd222c 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupGalleryImage.cs b/src/VRChat.API/Model/GroupGalleryImage.cs index 2dc56387..5ac9e689 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupInstance.cs b/src/VRChat.API/Model/GroupInstance.cs index 10c2f8bc..71aaf5fe 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupJoinRequestAction.cs b/src/VRChat.API/Model/GroupJoinRequestAction.cs index 06321326..3f72005b 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 06d08523..fe5dbd07 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupLimitedMember.cs b/src/VRChat.API/Model/GroupLimitedMember.cs index ce1f83c7..91f4a39d 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupMember.cs b/src/VRChat.API/Model/GroupMember.cs index 701532e0..58232b31 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,7 +41,7 @@ public partial class GroupMember : IEquatable, IValidatableObject /// Initializes a new instance of the class. /// /// acceptedByDisplayName. - /// 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.. + /// acceptedById. /// 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.. @@ -83,14 +83,13 @@ public partial class GroupMember : IEquatable, IValidatableObject /// /// Gets or Sets AcceptedByDisplayName /// - [DataMember(Name = "acceptedByDisplayName", EmitDefaultValue = false)] + [DataMember(Name = "acceptedByDisplayName", EmitDefaultValue = true)] public string AcceptedByDisplayName { 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 AcceptedById /// - /// 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 = "acceptedById", EmitDefaultValue = false)] + [DataMember(Name = "acceptedById", EmitDefaultValue = true)] public string AcceptedById { get; set; } /// diff --git a/src/VRChat.API/Model/GroupMemberLimitedUser.cs b/src/VRChat.API/Model/GroupMemberLimitedUser.cs index 676ddca1..8d5238b1 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupMemberStatus.cs b/src/VRChat.API/Model/GroupMemberStatus.cs index 8542b0b2..0853f794 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupMyMember.cs b/src/VRChat.API/Model/GroupMyMember.cs index f545d62a..c09dd797 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,7 +39,7 @@ public partial class GroupMyMember : IEquatable, IValidatableObje /// 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. - /// 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.. + /// acceptedById. /// createdAt. /// managerNotes. /// membershipStatus. @@ -108,10 +108,9 @@ public partial class GroupMyMember : IEquatable, IValidatableObje public string AcceptedByDisplayName { 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 AcceptedById /// - /// 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 = "acceptedById", EmitDefaultValue = false)] + [DataMember(Name = "acceptedById", EmitDefaultValue = true)] public string AcceptedById { get; set; } /// diff --git a/src/VRChat.API/Model/GroupPermission.cs b/src/VRChat.API/Model/GroupPermission.cs index ef9935c2..e9faeee3 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupPost.cs b/src/VRChat.API/Model/GroupPost.cs index b17692d8..9b6e7e52 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupPostVisibility.cs b/src/VRChat.API/Model/GroupPostVisibility.cs index 082db7df..0ce1da99 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 5efbf456..fe8425bf 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 4393a4cf..ca1118f5 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupRoleTemplate.cs b/src/VRChat.API/Model/GroupRoleTemplate.cs index 8503d174..7f6e79ad 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/GroupSearchSort.cs b/src/VRChat.API/Model/GroupSearchSort.cs index 99a1dd0c..8a81bd1f 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 ff549bb9..f891da54 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InfoPush.cs b/src/VRChat.API/Model/InfoPush.cs index 00dc2f59..5cac2c24 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InfoPushData.cs b/src/VRChat.API/Model/InfoPushData.cs index 2200f119..2a91731c 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InfoPushDataArticle.cs b/src/VRChat.API/Model/InfoPushDataArticle.cs index 850e8a7b..32339b08 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 459c1db3..3987114a 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InfoPushDataClickable.cs b/src/VRChat.API/Model/InfoPushDataClickable.cs index b146f077..a1227841 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Instance.cs b/src/VRChat.API/Model/Instance.cs index b2297b66..65d38cab 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InstancePlatforms.cs b/src/VRChat.API/Model/InstancePlatforms.cs index 84b1b65d..8d60d6b4 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 f3d3068d..d39985c2 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InstanceShortNameResponse.cs b/src/VRChat.API/Model/InstanceShortNameResponse.cs index a70873d6..6177b1e3 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 44a2f885..85d93861 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 56c4d566..3a33b3d3 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 bab23a1a..a78845a4 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/InviteRequest.cs b/src/VRChat.API/Model/InviteRequest.cs index 27ff1682..3a7ecc67 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 1d0e60c5..45942b71 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 new file mode 100644 index 00000000..75127a79 --- /dev/null +++ b/src/VRChat.API/Model/Jam.cs @@ -0,0 +1,353 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.18.6 + * 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 OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// Jam + /// + [DataContract(Name = "Jam")] + public partial class Jam : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Jam() { } + /// + /// Initializes a new instance of the class. + /// + /// description (required). + /// id (required). + /// isVisible (required). + /// moreInfo (required). + /// One of: - submissions_open - closed (required). + /// stateChangeDates (required). + /// submissionContentGateDate (required). + /// submissionContentGated (required). + /// title (required). + /// updatedAt (required). + public Jam(string description = default(string), string id = default(string), bool isVisible = default(bool), string moreInfo = default(string), string state = default(string), JamStateChangeDates stateChangeDates = default(JamStateChangeDates), DateTime? submissionContentGateDate = default(DateTime?), bool submissionContentGated = default(bool), string title = default(string), DateTime updatedAt = default(DateTime)) + { + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for Jam 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 Jam and cannot be null"); + } + this.Id = id; + this.IsVisible = isVisible; + // to ensure "moreInfo" is required (not null) + if (moreInfo == null) + { + throw new ArgumentNullException("moreInfo is a required property for Jam and cannot be null"); + } + this.MoreInfo = moreInfo; + // to ensure "state" is required (not null) + if (state == null) + { + throw new ArgumentNullException("state is a required property for Jam and cannot be null"); + } + this.State = state; + // to ensure "stateChangeDates" is required (not null) + if (stateChangeDates == null) + { + throw new ArgumentNullException("stateChangeDates is a required property for Jam and cannot be null"); + } + this.StateChangeDates = stateChangeDates; + // to ensure "submissionContentGateDate" is required (not null) + if (submissionContentGateDate == null) + { + throw new ArgumentNullException("submissionContentGateDate is a required property for Jam and cannot be null"); + } + this.SubmissionContentGateDate = submissionContentGateDate; + this.SubmissionContentGated = submissionContentGated; + // to ensure "title" is required (not null) + if (title == null) + { + throw new ArgumentNullException("title is a required property for Jam and cannot be null"); + } + this.Title = title; + this.UpdatedAt = updatedAt; + } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Gets or Sets IsVisible + /// + [DataMember(Name = "isVisible", IsRequired = true, EmitDefaultValue = true)] + public bool IsVisible { get; set; } + + /// + /// Gets or Sets MoreInfo + /// + [DataMember(Name = "moreInfo", IsRequired = true, EmitDefaultValue = true)] + public string MoreInfo { get; set; } + + /// + /// One of: - submissions_open - closed + /// + /// One of: - submissions_open - closed + [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] + public string State { get; set; } + + /// + /// Gets or Sets StateChangeDates + /// + [DataMember(Name = "stateChangeDates", IsRequired = true, EmitDefaultValue = true)] + public JamStateChangeDates StateChangeDates { get; set; } + + /// + /// Gets or Sets SubmissionContentGateDate + /// + [DataMember(Name = "submissionContentGateDate", IsRequired = true, EmitDefaultValue = true)] + public DateTime? SubmissionContentGateDate { get; set; } + + /// + /// Gets or Sets SubmissionContentGated + /// + [DataMember(Name = "submissionContentGated", IsRequired = true, EmitDefaultValue = true)] + public bool SubmissionContentGated { get; set; } + + /// + /// Gets or Sets Title + /// + [DataMember(Name = "title", IsRequired = true, EmitDefaultValue = true)] + public string Title { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime UpdatedAt { 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 Jam {\n"); + sb.Append(" Description: ").Append(Description).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" IsVisible: ").Append(IsVisible).Append("\n"); + sb.Append(" MoreInfo: ").Append(MoreInfo).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" StateChangeDates: ").Append(StateChangeDates).Append("\n"); + sb.Append(" SubmissionContentGateDate: ").Append(SubmissionContentGateDate).Append("\n"); + sb.Append(" SubmissionContentGated: ").Append(SubmissionContentGated).Append("\n"); + sb.Append(" Title: ").Append(Title).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).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 Jam); + } + + /// + /// Returns true if Jam instances are equal + /// + /// Instance of Jam to be compared + /// Boolean + public bool Equals(Jam input) + { + if (input == null) + { + 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.IsVisible == input.IsVisible || + this.IsVisible.Equals(input.IsVisible) + ) && + ( + this.MoreInfo == input.MoreInfo || + (this.MoreInfo != null && + this.MoreInfo.Equals(input.MoreInfo)) + ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && + ( + this.StateChangeDates == input.StateChangeDates || + (this.StateChangeDates != null && + this.StateChangeDates.Equals(input.StateChangeDates)) + ) && + ( + this.SubmissionContentGateDate == input.SubmissionContentGateDate || + (this.SubmissionContentGateDate != null && + this.SubmissionContentGateDate.Equals(input.SubmissionContentGateDate)) + ) && + ( + this.SubmissionContentGated == input.SubmissionContentGated || + this.SubmissionContentGated.Equals(input.SubmissionContentGated) + ) && + ( + this.Title == input.Title || + (this.Title != null && + this.Title.Equals(input.Title)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + 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.IsVisible.GetHashCode(); + if (this.MoreInfo != null) + { + hashCode = (hashCode * 59) + this.MoreInfo.GetHashCode(); + } + if (this.State != null) + { + hashCode = (hashCode * 59) + this.State.GetHashCode(); + } + if (this.StateChangeDates != null) + { + hashCode = (hashCode * 59) + this.StateChangeDates.GetHashCode(); + } + if (this.SubmissionContentGateDate != null) + { + hashCode = (hashCode * 59) + this.SubmissionContentGateDate.GetHashCode(); + } + hashCode = (hashCode * 59) + this.SubmissionContentGated.GetHashCode(); + if (this.Title != null) + { + hashCode = (hashCode * 59) + this.Title.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // Description (string) minLength + if (this.Description != null && this.Description.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Description, length must be greater than 1.", new [] { "Description" }); + } + + // Id (string) minLength + if (this.Id != null && this.Id.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than 1.", new [] { "Id" }); + } + + // MoreInfo (string) minLength + if (this.MoreInfo != null && this.MoreInfo.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for MoreInfo, length must be greater than 1.", new [] { "MoreInfo" }); + } + + // State (string) minLength + if (this.State != null && this.State.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for State, length must be greater than 1.", new [] { "State" }); + } + + // Title (string) minLength + if (this.Title != null && this.Title.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Title, length must be greater than 1.", new [] { "Title" }); + } + + yield break; + } + } + +} diff --git a/src/VRChat.API/Model/JamStateChangeDates.cs b/src/VRChat.API/Model/JamStateChangeDates.cs new file mode 100644 index 00000000..068e37a2 --- /dev/null +++ b/src/VRChat.API/Model/JamStateChangeDates.cs @@ -0,0 +1,182 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.18.6 + * 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 OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// JamStateChangeDates + /// + [DataContract(Name = "Jam_stateChangeDates")] + public partial class JamStateChangeDates : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// closed. + /// submissionsClosed. + /// submissionsOpened. + /// winnersSelected. + public JamStateChangeDates(DateTime? closed = default(DateTime?), DateTime? submissionsClosed = default(DateTime?), DateTime? submissionsOpened = default(DateTime?), DateTime? winnersSelected = default(DateTime?)) + { + this.Closed = closed; + this.SubmissionsClosed = submissionsClosed; + this.SubmissionsOpened = submissionsOpened; + this.WinnersSelected = winnersSelected; + } + + /// + /// Gets or Sets Closed + /// + [DataMember(Name = "closed", EmitDefaultValue = true)] + public DateTime? Closed { get; set; } + + /// + /// Gets or Sets SubmissionsClosed + /// + [DataMember(Name = "submissionsClosed", EmitDefaultValue = true)] + public DateTime? SubmissionsClosed { get; set; } + + /// + /// Gets or Sets SubmissionsOpened + /// + [DataMember(Name = "submissionsOpened", EmitDefaultValue = true)] + public DateTime? SubmissionsOpened { get; set; } + + /// + /// Gets or Sets WinnersSelected + /// + [DataMember(Name = "winnersSelected", EmitDefaultValue = true)] + public DateTime? WinnersSelected { 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 JamStateChangeDates {\n"); + sb.Append(" Closed: ").Append(Closed).Append("\n"); + sb.Append(" SubmissionsClosed: ").Append(SubmissionsClosed).Append("\n"); + sb.Append(" SubmissionsOpened: ").Append(SubmissionsOpened).Append("\n"); + sb.Append(" WinnersSelected: ").Append(WinnersSelected).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 JamStateChangeDates); + } + + /// + /// Returns true if JamStateChangeDates instances are equal + /// + /// Instance of JamStateChangeDates to be compared + /// Boolean + public bool Equals(JamStateChangeDates input) + { + if (input == null) + { + return false; + } + return + ( + this.Closed == input.Closed || + (this.Closed != null && + this.Closed.Equals(input.Closed)) + ) && + ( + this.SubmissionsClosed == input.SubmissionsClosed || + (this.SubmissionsClosed != null && + this.SubmissionsClosed.Equals(input.SubmissionsClosed)) + ) && + ( + this.SubmissionsOpened == input.SubmissionsOpened || + (this.SubmissionsOpened != null && + this.SubmissionsOpened.Equals(input.SubmissionsOpened)) + ) && + ( + this.WinnersSelected == input.WinnersSelected || + (this.WinnersSelected != null && + this.WinnersSelected.Equals(input.WinnersSelected)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Closed != null) + { + hashCode = (hashCode * 59) + this.Closed.GetHashCode(); + } + if (this.SubmissionsClosed != null) + { + hashCode = (hashCode * 59) + this.SubmissionsClosed.GetHashCode(); + } + if (this.SubmissionsOpened != null) + { + hashCode = (hashCode * 59) + this.SubmissionsOpened.GetHashCode(); + } + if (this.WinnersSelected != null) + { + hashCode = (hashCode * 59) + this.WinnersSelected.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/src/VRChat.API/Model/License.cs b/src/VRChat.API/Model/License.cs index a64d5b42..83ae8eb5 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/LicenseAction.cs b/src/VRChat.API/Model/LicenseAction.cs index 1491ddac..db1761de 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/LicenseGroup.cs b/src/VRChat.API/Model/LicenseGroup.cs index 384f7431..d07be48b 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/LicenseType.cs b/src/VRChat.API/Model/LicenseType.cs index cd27e2d8..e9ca050a 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 fd8a68c8..717feebf 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/LimitedUnityPackage.cs b/src/VRChat.API/Model/LimitedUnityPackage.cs index de0891b5..4b49a449 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/LimitedUser.cs b/src/VRChat.API/Model/LimitedUser.cs index f8e7962b..b1510b50 100644 --- a/src/VRChat.API/Model/LimitedUser.cs +++ b/src/VRChat.API/Model/LimitedUser.cs @@ -2,7 +2,7 @@ * VRChat API Documentation * * - * The version of the OpenAPI document: 1.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/LimitedUserGroups.cs b/src/VRChat.API/Model/LimitedUserGroups.cs index e02edfe0..f51df3e9 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/LimitedWorld.cs b/src/VRChat.API/Model/LimitedWorld.cs index 4bb0ba23..4c2db4f2 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -63,13 +63,12 @@ protected LimitedWorld() { } /// previewYoutubeId. /// publicationDate (required). /// releaseStatus (required). - /// storeId (required). /// (required). /// thumbnailImageUrl (required). /// (required). /// updatedAt (required). /// udonProducts. - public LimitedWorld(string authorId = default(string), string authorName = default(string), int capacity = default(int), int recommendedCapacity = default(int), DateTime createdAt = default(DateTime), int favorites = 0, int visits = 0, int heat = 0, string id = default(string), string imageUrl = default(string), string labsPublicationDate = default(string), string name = default(string), int occupants = 0, string organization = "vrchat", int popularity = 0, string previewYoutubeId = default(string), string publicationDate = default(string), ReleaseStatus releaseStatus = default(ReleaseStatus), string storeId = default(string), List tags = default(List), string thumbnailImageUrl = default(string), List unityPackages = default(List), DateTime updatedAt = default(DateTime), List udonProducts = default(List)) + public LimitedWorld(string authorId = default(string), string authorName = default(string), int capacity = default(int), int recommendedCapacity = default(int), DateTime createdAt = default(DateTime), int favorites = 0, int visits = 0, int heat = 0, string id = default(string), string imageUrl = default(string), string labsPublicationDate = default(string), string name = default(string), int occupants = 0, string organization = "vrchat", int popularity = 0, string previewYoutubeId = default(string), string publicationDate = default(string), ReleaseStatus releaseStatus = default(ReleaseStatus), List tags = default(List), string thumbnailImageUrl = default(string), List unityPackages = default(List), DateTime updatedAt = default(DateTime), List udonProducts = default(List)) { // to ensure "authorId" is required (not null) if (authorId == null) @@ -126,12 +125,6 @@ protected LimitedWorld() { } } this.PublicationDate = publicationDate; this.ReleaseStatus = releaseStatus; - // to ensure "storeId" is required (not null) - if (storeId == null) - { - throw new ArgumentNullException("storeId is a required property for LimitedWorld and cannot be null"); - } - this.StoreId = storeId; // to ensure "tags" is required (not null) if (tags == null) { @@ -261,12 +254,6 @@ protected LimitedWorld() { } [DataMember(Name = "publicationDate", IsRequired = true, EmitDefaultValue = true)] public string PublicationDate { get; set; } - /// - /// Gets or Sets StoreId - /// - [DataMember(Name = "storeId", IsRequired = true, EmitDefaultValue = true)] - public string StoreId { get; set; } - /// /// /// @@ -325,7 +312,6 @@ public override string ToString() sb.Append(" PreviewYoutubeId: ").Append(PreviewYoutubeId).Append("\n"); sb.Append(" PublicationDate: ").Append(PublicationDate).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(" UnityPackages: ").Append(UnityPackages).Append("\n"); @@ -448,11 +434,6 @@ public bool Equals(LimitedWorld input) this.ReleaseStatus == input.ReleaseStatus || this.ReleaseStatus.Equals(input.ReleaseStatus) ) && - ( - this.StoreId == input.StoreId || - (this.StoreId != null && - this.StoreId.Equals(input.StoreId)) - ) && ( this.Tags == input.Tags || this.Tags != null && @@ -540,10 +521,6 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.PublicationDate.GetHashCode(); } hashCode = (hashCode * 59) + this.ReleaseStatus.GetHashCode(); - if (this.StoreId != null) - { - hashCode = (hashCode * 59) + this.StoreId.GetHashCode(); - } if (this.Tags != null) { hashCode = (hashCode * 59) + this.Tags.GetHashCode(); diff --git a/src/VRChat.API/Model/MIMEType.cs b/src/VRChat.API/Model/MIMEType.cs index 6eb6a1e6..04d1c19c 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/ModerateUserRequest.cs b/src/VRChat.API/Model/ModerateUserRequest.cs index 6b7ee52d..2baa5fe3 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Notification.cs b/src/VRChat.API/Model/Notification.cs index 2c06d309..35064b1d 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/NotificationDetailInvite.cs b/src/VRChat.API/Model/NotificationDetailInvite.cs index edb2b542..2369b284 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 061e58f4..07e6da79 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 07b76977..e87b5093 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 c2f24fed..ace6ef4b 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 5e5248f7..4c01d10f 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 fc028312..c039639d 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 bb9b374e..c02f086d 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/PaginatedGroupAuditLogEntryList.cs b/src/VRChat.API/Model/PaginatedGroupAuditLogEntryList.cs index c3e3d660..4250c435 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/PastDisplayName.cs b/src/VRChat.API/Model/PastDisplayName.cs index 2bbfdb60..3f51e69f 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 a0ee973c..43647f46 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Permission.cs b/src/VRChat.API/Model/Permission.cs index 1fa4ed13..43148d61 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/PlatformBuildInfo.cs b/src/VRChat.API/Model/PlatformBuildInfo.cs index cdfde243..96d62b94 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 9dc7d4fb..53c4534b 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 14282008..852b8827 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Region.cs b/src/VRChat.API/Model/Region.cs index 6591dafd..b5d4d405 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/ReleaseStatus.cs b/src/VRChat.API/Model/ReleaseStatus.cs index cdb86829..479c23cf 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/ReportCategory.cs b/src/VRChat.API/Model/ReportCategory.cs index 1437b62d..ff44ea1a 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/ReportReason.cs b/src/VRChat.API/Model/ReportReason.cs index a072a1df..c6b6f273 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 fc11919d..c245cdac 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/RequestInviteRequest.cs b/src/VRChat.API/Model/RequestInviteRequest.cs index 25e0b958..53cb50d9 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 de6276c7..e0119207 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 b5f9fe6f..022338dd 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 984b5ef8..cd53e567 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 78f35b4c..87b172b8 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Submission.cs b/src/VRChat.API/Model/Submission.cs new file mode 100644 index 00000000..7ef2f807 --- /dev/null +++ b/src/VRChat.API/Model/Submission.cs @@ -0,0 +1,288 @@ +/* + * VRChat API Documentation + * + * + * The version of the OpenAPI document: 1.18.6 + * 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 OpenAPIDateConverter = VRChat.API.Client.OpenAPIDateConverter; + +namespace VRChat.API.Model +{ + /// + /// Submission + /// + [DataContract(Name = "Submission")] + public partial class Submission : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected Submission() { } + /// + /// Initializes a new instance of the class. + /// + /// Either world ID or avatar ID (required). + /// createdAt (required). + /// description (required). + /// id (required). + /// jamId (required). + /// ratingScore. + /// 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 Submission(string contentId = default(string), DateTime createdAt = default(DateTime), string description = default(string), string id = default(string), string jamId = default(string), int ratingScore = default(int), string submitterId = default(string)) + { + // to ensure "contentId" is required (not null) + if (contentId == null) + { + throw new ArgumentNullException("contentId is a required property for Submission and cannot be null"); + } + this.ContentId = contentId; + this.CreatedAt = createdAt; + // to ensure "description" is required (not null) + if (description == null) + { + throw new ArgumentNullException("description is a required property for Submission 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 Submission and cannot be null"); + } + this.Id = id; + // to ensure "jamId" is required (not null) + if (jamId == null) + { + throw new ArgumentNullException("jamId is a required property for Submission and cannot be null"); + } + this.JamId = jamId; + // to ensure "submitterId" is required (not null) + if (submitterId == null) + { + throw new ArgumentNullException("submitterId is a required property for Submission and cannot be null"); + } + this.SubmitterId = submitterId; + this.RatingScore = ratingScore; + } + + /// + /// Either world ID or avatar ID + /// + /// Either world ID or avatar ID + [DataMember(Name = "contentId", IsRequired = true, EmitDefaultValue = true)] + public string ContentId { get; set; } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = true)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Description + /// + [DataMember(Name = "description", IsRequired = true, EmitDefaultValue = true)] + public string Description { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)] + public string Id { get; set; } + + /// + /// Gets or Sets JamId + /// + [DataMember(Name = "jamId", IsRequired = true, EmitDefaultValue = true)] + public string JamId { get; set; } + + /// + /// Gets or Sets RatingScore + /// + [DataMember(Name = "ratingScore", EmitDefaultValue = false)] + public int RatingScore { 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. + [DataMember(Name = "submitterId", IsRequired = true, EmitDefaultValue = true)] + public string SubmitterId { 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 Submission {\n"); + sb.Append(" ContentId: ").Append(ContentId).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(" JamId: ").Append(JamId).Append("\n"); + sb.Append(" RatingScore: ").Append(RatingScore).Append("\n"); + sb.Append(" SubmitterId: ").Append(SubmitterId).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 Submission); + } + + /// + /// Returns true if Submission instances are equal + /// + /// Instance of Submission to be compared + /// Boolean + public bool Equals(Submission input) + { + if (input == null) + { + return false; + } + return + ( + this.ContentId == input.ContentId || + (this.ContentId != null && + this.ContentId.Equals(input.ContentId)) + ) && + ( + 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.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.JamId == input.JamId || + (this.JamId != null && + this.JamId.Equals(input.JamId)) + ) && + ( + this.RatingScore == input.RatingScore || + this.RatingScore.Equals(input.RatingScore) + ) && + ( + this.SubmitterId == input.SubmitterId || + (this.SubmitterId != null && + this.SubmitterId.Equals(input.SubmitterId)) + ); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.ContentId != null) + { + hashCode = (hashCode * 59) + this.ContentId.GetHashCode(); + } + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Description != null) + { + hashCode = (hashCode * 59) + this.Description.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.JamId != null) + { + hashCode = (hashCode * 59) + this.JamId.GetHashCode(); + } + hashCode = (hashCode * 59) + this.RatingScore.GetHashCode(); + if (this.SubmitterId != null) + { + hashCode = (hashCode * 59) + this.SubmitterId.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + // ContentId (string) minLength + if (this.ContentId != null && this.ContentId.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for ContentId, length must be greater than 1.", new [] { "ContentId" }); + } + + // Id (string) minLength + if (this.Id != null && this.Id.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Id, length must be greater than 1.", new [] { "Id" }); + } + + // JamId (string) minLength + if (this.JamId != null && this.JamId.Length < 1) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for JamId, length must be greater than 1.", new [] { "JamId" }); + } + + // RatingScore (int) minimum + if (this.RatingScore < (int)0) + { + yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for RatingScore, must be a value greater than or equal to 0.", new [] { "RatingScore" }); + } + + yield break; + } + } + +} diff --git a/src/VRChat.API/Model/Subscription.cs b/src/VRChat.API/Model/Subscription.cs index 82e012e1..15fa22bd 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/SubscriptionPeriod.cs b/src/VRChat.API/Model/SubscriptionPeriod.cs index 53b64bb9..58639be2 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Success.cs b/src/VRChat.API/Model/Success.cs index c1e2b121..e03ead34 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/Transaction.cs b/src/VRChat.API/Model/Transaction.cs index cfde8f9d..a16b8589 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/TransactionAgreement.cs b/src/VRChat.API/Model/TransactionAgreement.cs index 6b9f7cf8..ccad309b 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/TransactionStatus.cs b/src/VRChat.API/Model/TransactionStatus.cs index 2fde8322..2fd87b21 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/TransactionSteamInfo.cs b/src/VRChat.API/Model/TransactionSteamInfo.cs index a387f17e..1db0c947 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/TransactionSteamWalletInfo.cs b/src/VRChat.API/Model/TransactionSteamWalletInfo.cs index 4060ebd9..331e9dbc 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/TwoFactorAuthCode.cs b/src/VRChat.API/Model/TwoFactorAuthCode.cs index 27b091d7..036679ae 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 a07f4d97..3e2d424d 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 821c5265..0c6c21a2 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UpdateAvatarRequest.cs b/src/VRChat.API/Model/UpdateAvatarRequest.cs index b56ff06b..8d8eb966 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UpdateFavoriteGroupRequest.cs b/src/VRChat.API/Model/UpdateFavoriteGroupRequest.cs index db91870c..b7ab95ad 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UpdateGroupGalleryRequest.cs b/src/VRChat.API/Model/UpdateGroupGalleryRequest.cs index b4d727bb..6f4efc27 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UpdateGroupMemberRequest.cs b/src/VRChat.API/Model/UpdateGroupMemberRequest.cs index 51d6252f..fe5b8815 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 37a410d9..071eceed 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UpdateGroupRoleRequest.cs b/src/VRChat.API/Model/UpdateGroupRoleRequest.cs index 76758dfa..f6f61b9f 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 9c080c97..48096d8a 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UpdateUserRequest.cs b/src/VRChat.API/Model/UpdateUserRequest.cs index e46b9353..fce121ea 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UpdateWorldRequest.cs b/src/VRChat.API/Model/UpdateWorldRequest.cs index cea482fd..88c6ddf4 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 3bf52e45..965e9dc5 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 88665af7..e38148f1 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UserState.cs b/src/VRChat.API/Model/UserState.cs index a4655df7..6b294848 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UserStatus.cs b/src/VRChat.API/Model/UserStatus.cs index e71f3c18..a653e4d3 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/UserSubscription.cs b/src/VRChat.API/Model/UserSubscription.cs index 1767cd71..1e665f90 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 759e838a..a0f8b6a2 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 76f5c76c..51c86071 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/Model/VerifyAuthTokenResult.cs b/src/VRChat.API/Model/VerifyAuthTokenResult.cs index 3d04590c..613b2868 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 a6aaa6c8..9793c6dc 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -68,7 +68,6 @@ protected World() { } /// Will always be `0` when unauthenticated. (default to 0). /// publicationDate (required). /// releaseStatus (required). - /// storeId (required). /// (required). /// thumbnailImageUrl (required). /// Empty if unauthenticated.. @@ -76,7 +75,7 @@ protected World() { } /// version (required) (default to 0). /// visits (required) (default to 0). /// udonProducts. - public World(string authorId = default(string), string authorName = default(string), int capacity = default(int), int recommendedCapacity = default(int), DateTime createdAt = default(DateTime), string description = default(string), int favorites = 0, bool featured = false, int heat = 0, string id = default(string), string imageUrl = default(string), List> instances = default(List>), string labsPublicationDate = default(string), string name = default(string), string _namespace = default(string), int occupants = 0, string organization = "vrchat", int popularity = 0, string previewYoutubeId = default(string), int privateOccupants = 0, int publicOccupants = 0, string publicationDate = default(string), ReleaseStatus releaseStatus = default(ReleaseStatus), string storeId = default(string), List tags = default(List), string thumbnailImageUrl = default(string), List unityPackages = default(List), DateTime updatedAt = default(DateTime), int version = 0, int visits = 0, List udonProducts = default(List)) + public World(string authorId = default(string), string authorName = default(string), int capacity = default(int), int recommendedCapacity = default(int), DateTime createdAt = default(DateTime), string description = default(string), int favorites = 0, bool featured = false, int heat = 0, string id = default(string), string imageUrl = default(string), List> instances = default(List>), string labsPublicationDate = default(string), string name = default(string), string _namespace = default(string), int occupants = 0, string organization = "vrchat", int popularity = 0, string previewYoutubeId = default(string), int privateOccupants = 0, int publicOccupants = 0, string publicationDate = default(string), ReleaseStatus releaseStatus = default(ReleaseStatus), List tags = default(List), string thumbnailImageUrl = default(string), List unityPackages = default(List), DateTime updatedAt = default(DateTime), int version = 0, int visits = 0, List udonProducts = default(List)) { // to ensure "authorId" is required (not null) if (authorId == null) @@ -139,12 +138,6 @@ protected World() { } } this.PublicationDate = publicationDate; this.ReleaseStatus = releaseStatus; - // to ensure "storeId" is required (not null) - if (storeId == null) - { - throw new ArgumentNullException("storeId is a required property for World and cannot be null"); - } - this.StoreId = storeId; // to ensure "tags" is required (not null) if (tags == null) { @@ -309,12 +302,6 @@ protected World() { } [DataMember(Name = "publicationDate", IsRequired = true, EmitDefaultValue = true)] public string PublicationDate { get; set; } - /// - /// Gets or Sets StoreId - /// - [DataMember(Name = "storeId", IsRequired = true, EmitDefaultValue = true)] - public string StoreId { get; set; } - /// /// /// @@ -390,7 +377,6 @@ public override string ToString() sb.Append(" PublicOccupants: ").Append(PublicOccupants).Append("\n"); sb.Append(" PublicationDate: ").Append(PublicationDate).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(" UnityPackages: ").Append(UnityPackages).Append("\n"); @@ -539,11 +525,6 @@ public bool Equals(World input) this.ReleaseStatus == input.ReleaseStatus || this.ReleaseStatus.Equals(input.ReleaseStatus) ) && - ( - this.StoreId == input.StoreId || - (this.StoreId != null && - this.StoreId.Equals(input.StoreId)) - ) && ( this.Tags == input.Tags || this.Tags != null && @@ -653,10 +634,6 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.PublicationDate.GetHashCode(); } hashCode = (hashCode * 59) + this.ReleaseStatus.GetHashCode(); - if (this.StoreId != null) - { - hashCode = (hashCode * 59) + this.StoreId.GetHashCode(); - } if (this.Tags != null) { hashCode = (hashCode * 59) + this.Tags.GetHashCode(); diff --git a/src/VRChat.API/Model/WorldMetadata.cs b/src/VRChat.API/Model/WorldMetadata.cs index fb1bd62d..ea31e93d 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.18.5 + * The version of the OpenAPI document: 1.18.6 * 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 3c784407..5e60793d 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.18.5 + * The version of the OpenAPI document: 1.18.6 * Contact: vrchatapi.lpv0t@aries.fyi * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/src/VRChat.API/VRChat.API.csproj b/src/VRChat.API/VRChat.API.csproj index bb839d62..14c99d10 100644 --- a/src/VRChat.API/VRChat.API.csproj +++ b/src/VRChat.API/VRChat.API.csproj @@ -12,7 +12,7 @@ VRChat API Library for .NET Copyright © 2021 Owners of GitHub organisation "vrchatapi" and individual contributors. VRChat.API - 1.18.5 + 1.18.6 bin\$(Configuration)\$(TargetFramework)\VRChat.API.xml MIT https://github.com/vrchatapi/vrchatapi-csharp.git