Skip to content

Commit

Permalink
Upgrade C# SDK to spec 1.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
VRCCat committed Sep 11, 2024
1 parent 244e847 commit fe088df
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 38 deletions.
6 changes: 3 additions & 3 deletions docs/Group.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ Name | Type | Description | Notes
**MemberCountSyncedAt** | **DateTime** | | [optional]
**IsVerified** | **bool** | | [optional] [default to false]
**JoinState** | **GroupJoinState** | | [optional]
**Tags** | **List<string>** | | [optional]
**Tags** | **List<string>** | | [optional]
**TransferTargetId** | **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]
**Galleries** | [**List<GroupGallery>**](GroupGallery.md) | | [optional]
**Galleries** | [**List<GroupGallery>**](GroupGallery.md) | | [optional]
**CreatedAt** | **DateTime** | | [optional]
**UpdatedAt** | **DateTime** | | [optional]
**LastPostCreatedAt** | **DateTime** | | [optional]
**LastPostCreatedAt** | **DateTime?** | | [optional]
**OnlineMemberCount** | **int** | | [optional]
**MembershipStatus** | **GroupMemberStatus** | | [optional]
**MyMember** | [**GroupMyMember**](GroupMyMember.md) | | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/GroupMyMember.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Name | Type | Description | Notes
**BannedAt** | **string** | | [optional]
**Has2FA** | **bool** | | [optional] [default to false]
**HasJoinedFromPurchase** | **bool** | | [optional] [default to false]
**LastPostReadAt** | **DateTime** | | [optional]
**LastPostReadAt** | **DateTime?** | | [optional]
**MRoleIds** | **List<string>** | | [optional]
**Permissions** | **List<string>** | | [optional]

Expand Down
1 change: 1 addition & 0 deletions docs/UserExists.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Status object representing if a queried user by username or userId exists or not
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**_UserExists** | **bool** | Status if a user exist with that username or userId. | [default to false]
**NameOk** | **bool** | Is the username valid? | [default to false]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

2 changes: 1 addition & 1 deletion docs/UserSubscription.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Name | Type | Description | Notes
**Tier** | **decimal** | |
**Active** | **bool** | | [default to true]
**Status** | **TransactionStatus** | |
**Starts** | **DateTime** | | [optional]
**Starts** | **string** | | [optional]
**Expires** | **DateTime** | |
**CreatedAt** | **DateTime** | |
**UpdatedAt** | **DateTime** | |
Expand Down
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"@openapitools/openapi-generator-cli": "^2.13.4"
"@openapitools/openapi-generator-cli": "^2.13.5"
}
}
16 changes: 7 additions & 9 deletions src/VRChat.API/Model/Group.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,17 @@ public partial class Group : IEquatable<Group>, IValidatableObject
/// <param name="memberCountSyncedAt">memberCountSyncedAt.</param>
/// <param name="isVerified">isVerified (default to false).</param>
/// <param name="joinState">joinState.</param>
/// <param name="tags"> .</param>
/// <param name="tags">tags.</param>
/// <param name="transferTargetId">A users unique ID, usually in the form of &#x60;usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469&#x60;. Legacy players can have old IDs in the form of &#x60;8JoV9XEdpo&#x60;. The ID can never be changed..</param>
/// <param name="galleries"> .</param>
/// <param name="galleries">galleries.</param>
/// <param name="createdAt">createdAt.</param>
/// <param name="updatedAt">updatedAt.</param>
/// <param name="lastPostCreatedAt">lastPostCreatedAt.</param>
/// <param name="onlineMemberCount">onlineMemberCount.</param>
/// <param name="membershipStatus">membershipStatus.</param>
/// <param name="myMember">myMember.</param>
/// <param name="roles">Only returned if ?includeRoles&#x3D;true is specified..</param>
public Group(string id = default(string), string name = default(string), string shortCode = default(string), string discriminator = default(string), string description = default(string), string iconUrl = default(string), string bannerUrl = default(string), GroupPrivacy? privacy = default(GroupPrivacy?), string ownerId = default(string), string rules = default(string), List<string> links = default(List<string>), List<string> languages = default(List<string>), string iconId = default(string), string bannerId = default(string), int memberCount = default(int), DateTime memberCountSyncedAt = default(DateTime), bool isVerified = false, GroupJoinState? joinState = default(GroupJoinState?), List<string> tags = default(List<string>), string transferTargetId = default(string), List<GroupGallery> galleries = default(List<GroupGallery>), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), DateTime lastPostCreatedAt = default(DateTime), int onlineMemberCount = default(int), GroupMemberStatus? membershipStatus = default(GroupMemberStatus?), GroupMyMember myMember = default(GroupMyMember), List<GroupRole> roles = default(List<GroupRole>))
public Group(string id = default(string), string name = default(string), string shortCode = default(string), string discriminator = default(string), string description = default(string), string iconUrl = default(string), string bannerUrl = default(string), GroupPrivacy? privacy = default(GroupPrivacy?), string ownerId = default(string), string rules = default(string), List<string> links = default(List<string>), List<string> languages = default(List<string>), string iconId = default(string), string bannerId = default(string), int memberCount = default(int), DateTime memberCountSyncedAt = default(DateTime), bool isVerified = false, GroupJoinState? joinState = default(GroupJoinState?), List<string> tags = default(List<string>), string transferTargetId = default(string), List<GroupGallery> galleries = default(List<GroupGallery>), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), DateTime? lastPostCreatedAt = default(DateTime?), int onlineMemberCount = default(int), GroupMemberStatus? membershipStatus = default(GroupMemberStatus?), GroupMyMember myMember = default(GroupMyMember), List<GroupRole> roles = default(List<GroupRole>))
{
this.Id = id;
this.Name = name;
Expand Down Expand Up @@ -210,9 +210,8 @@ public partial class Group : IEquatable<Group>, IValidatableObject
public bool IsVerified { get; set; }

/// <summary>
///
/// Gets or Sets Tags
/// </summary>
/// <value> </value>
[DataMember(Name = "tags", EmitDefaultValue = false)]
public List<string> Tags { get; set; }

Expand All @@ -224,9 +223,8 @@ public partial class Group : IEquatable<Group>, IValidatableObject
public string TransferTargetId { get; set; }

/// <summary>
///
/// Gets or Sets Galleries
/// </summary>
/// <value> </value>
[DataMember(Name = "galleries", EmitDefaultValue = false)]
public List<GroupGallery> Galleries { get; set; }

Expand All @@ -245,8 +243,8 @@ public partial class Group : IEquatable<Group>, IValidatableObject
/// <summary>
/// Gets or Sets LastPostCreatedAt
/// </summary>
[DataMember(Name = "lastPostCreatedAt", EmitDefaultValue = false)]
public DateTime LastPostCreatedAt { get; set; }
[DataMember(Name = "lastPostCreatedAt", EmitDefaultValue = true)]
public DateTime? LastPostCreatedAt { get; set; }

/// <summary>
/// Gets or Sets OnlineMemberCount
Expand Down
8 changes: 4 additions & 4 deletions src/VRChat.API/Model/GroupMyMember.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public partial class GroupMyMember : IEquatable<GroupMyMember>, IValidatableObje
/// <param name="lastPostReadAt">lastPostReadAt.</param>
/// <param name="mRoleIds">mRoleIds.</param>
/// <param name="permissions">permissions.</param>
public GroupMyMember(string id = default(string), string groupId = default(string), string userId = default(string), List<string> roleIds = default(List<string>), string acceptedByDisplayName = default(string), string acceptedById = default(string), DateTime createdAt = default(DateTime), string managerNotes = default(string), string membershipStatus = default(string), bool isSubscribedToAnnouncements = true, string visibility = default(string), bool isRepresenting = false, DateTime joinedAt = default(DateTime), string bannedAt = default(string), bool has2FA = false, bool hasJoinedFromPurchase = false, DateTime lastPostReadAt = default(DateTime), List<string> mRoleIds = default(List<string>), List<string> permissions = default(List<string>))
public GroupMyMember(string id = default(string), string groupId = default(string), string userId = default(string), List<string> roleIds = default(List<string>), string acceptedByDisplayName = default(string), string acceptedById = default(string), DateTime createdAt = default(DateTime), string managerNotes = default(string), string membershipStatus = default(string), bool isSubscribedToAnnouncements = true, string visibility = default(string), bool isRepresenting = false, DateTime joinedAt = default(DateTime), string bannedAt = default(string), bool has2FA = false, bool hasJoinedFromPurchase = false, DateTime? lastPostReadAt = default(DateTime?), List<string> mRoleIds = default(List<string>), List<string> permissions = default(List<string>))
{
this.Id = id;
this.GroupId = groupId;
Expand Down Expand Up @@ -104,7 +104,7 @@ public partial class GroupMyMember : IEquatable<GroupMyMember>, IValidatableObje
/// <summary>
/// Gets or Sets AcceptedByDisplayName
/// </summary>
[DataMember(Name = "acceptedByDisplayName", EmitDefaultValue = false)]
[DataMember(Name = "acceptedByDisplayName", EmitDefaultValue = true)]
public string AcceptedByDisplayName { get; set; }

/// <summary>
Expand Down Expand Up @@ -177,8 +177,8 @@ public partial class GroupMyMember : IEquatable<GroupMyMember>, IValidatableObje
/// <summary>
/// Gets or Sets LastPostReadAt
/// </summary>
[DataMember(Name = "lastPostReadAt", EmitDefaultValue = false)]
public DateTime LastPostReadAt { get; set; }
[DataMember(Name = "lastPostReadAt", EmitDefaultValue = true)]
public DateTime? LastPostReadAt { get; set; }

/// <summary>
/// Gets or Sets MRoleIds
Expand Down
8 changes: 7 additions & 1 deletion src/VRChat.API/Model/InstanceRegion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,13 @@ public enum InstanceRegion
/// Enum Jp for value: jp
/// </summary>
[EnumMember(Value = "jp")]
Jp = 4
Jp = 4,

/// <summary>
/// Enum Unknown for value: unknown
/// </summary>
[EnumMember(Value = "unknown")]
Unknown = 5

}

Expand Down
17 changes: 16 additions & 1 deletion src/VRChat.API/Model/UserExists.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ protected UserExists() { }
/// Initializes a new instance of the <see cref="UserExists" /> class.
/// </summary>
/// <param name="userExists">Status if a user exist with that username or userId. (required) (default to false).</param>
public UserExists(bool userExists = false)
/// <param name="nameOk">Is the username valid? (required) (default to false).</param>
public UserExists(bool userExists = false, bool nameOk = false)
{
this._UserExists = userExists;
this.NameOk = nameOk;
}

/// <summary>
Expand All @@ -52,6 +54,13 @@ public UserExists(bool userExists = false)
[DataMember(Name = "userExists", IsRequired = true, EmitDefaultValue = true)]
public bool _UserExists { get; set; }

/// <summary>
/// Is the username valid?
/// </summary>
/// <value>Is the username valid?</value>
[DataMember(Name = "nameOk", IsRequired = true, EmitDefaultValue = true)]
public bool NameOk { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -61,6 +70,7 @@ public override string ToString()
StringBuilder sb = new StringBuilder();
sb.Append("class UserExists {\n");
sb.Append(" _UserExists: ").Append(_UserExists).Append("\n");
sb.Append(" NameOk: ").Append(NameOk).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -99,6 +109,10 @@ public bool Equals(UserExists input)
(
this._UserExists == input._UserExists ||
this._UserExists.Equals(input._UserExists)
) &&
(
this.NameOk == input.NameOk ||
this.NameOk.Equals(input.NameOk)
);
}

Expand All @@ -112,6 +126,7 @@ public override int GetHashCode()
{
int hashCode = 41;
hashCode = (hashCode * 59) + this._UserExists.GetHashCode();
hashCode = (hashCode * 59) + this.NameOk.GetHashCode();
return hashCode;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/VRChat.API/Model/UserSubscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected UserSubscription() { }
/// <param name="updatedAt">updatedAt (required).</param>
/// <param name="licenseGroups">licenseGroups (required).</param>
/// <param name="isGift">isGift (required) (default to false).</param>
public UserSubscription(string id = default(string), string transactionId = default(string), string store = default(string), string steamItemId = default(string), decimal amount = default(decimal), string description = default(string), SubscriptionPeriod period = default(SubscriptionPeriod), decimal tier = default(decimal), bool active = true, TransactionStatus status = default(TransactionStatus), DateTime starts = default(DateTime), DateTime expires = default(DateTime), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), List<string> licenseGroups = default(List<string>), bool isGift = false)
public UserSubscription(string id = default(string), string transactionId = default(string), string store = default(string), string steamItemId = default(string), decimal amount = default(decimal), string description = default(string), SubscriptionPeriod period = default(SubscriptionPeriod), decimal tier = default(decimal), bool active = true, TransactionStatus status = default(TransactionStatus), string starts = default(string), DateTime expires = default(DateTime), DateTime createdAt = default(DateTime), DateTime updatedAt = default(DateTime), List<string> licenseGroups = default(List<string>), bool isGift = false)
{
// to ensure "id" is required (not null)
if (id == null)
Expand Down Expand Up @@ -165,7 +165,7 @@ protected UserSubscription() { }
/// Gets or Sets Starts
/// </summary>
[DataMember(Name = "starts", EmitDefaultValue = false)]
public DateTime Starts { get; set; }
public string Starts { get; set; }

/// <summary>
/// Gets or Sets Expires
Expand Down

0 comments on commit fe088df

Please sign in to comment.