Skip to content

Commit 49a48da

Browse files
committed
Upgrade .NET SDK to spec 2.20.8-nightly.19
1 parent 5be1596 commit 49a48da

7 files changed

Lines changed: 92 additions & 146 deletions

File tree

‎src/VRChat.API/Client/Configuration.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class Configuration : IReadableConfiguration
3333
/// Version of the package.
3434
/// </summary>
3535
/// <value>Version of the package.</value>
36-
public const string Version = "2.20.8-nightly.18";
36+
public const string Version = "2.20.8-nightly.19";
3737

3838
/// <summary>
3939
/// Identifier for ISO 8601 DateTime Format
@@ -540,7 +540,7 @@ public static string ToDebugReport()
540540
report += " OS: " + System.Environment.OSVersion + "\n";
541541
report += " .NET Framework Version: " + System.Environment.Version + "\n";
542542
report += " Version of the API: 1.20.7\n";
543-
report += " SDK Package Version: 2.20.8-nightly.18\n";
543+
report += " SDK Package Version: 2.20.8-nightly.19\n";
544544

545545
return report;
546546
}

‎src/VRChat.API/Model/PrivateProfile.cs‎

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,40 +36,31 @@ public partial class PrivateProfile : IEquatable<PrivateProfile>, IValidatableOb
3636
/// <summary>
3737
/// Gets or Sets Status
3838
/// </summary>
39-
[DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)]
40-
public UserStatus Status { get; set; }
39+
[DataMember(Name = "status", EmitDefaultValue = false)]
40+
public UserStatus? Status { get; set; }
4141
/// <summary>
4242
/// Initializes a new instance of the <see cref="PrivateProfile" /> class.
4343
/// </summary>
44-
[JsonConstructorAttribute]
45-
protected PrivateProfile() { }
46-
/// <summary>
47-
/// Initializes a new instance of the <see cref="PrivateProfile" /> class.
48-
/// </summary>
49-
/// <param name="activity">activity (required).</param>
50-
/// <param name="id">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. (required).</param>
51-
/// <param name="isFriend">isFriend (required).</param>
52-
/// <param name="note">note (required).</param>
53-
/// <param name="status">status (required).</param>
54-
/// <param name="statusDescription">statusDescription (required).</param>
55-
public PrivateProfile(PrivateProfileActivity activity = default, string id = default, bool isFriend = default, string note = default, UserStatus status = default, string statusDescription = default)
44+
/// <param name="activity">activity.</param>
45+
/// <param name="id">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>
46+
/// <param name="isFriend">isFriend.</param>
47+
/// <param name="note">note.</param>
48+
/// <param name="status">status.</param>
49+
/// <param name="statusDescription">statusDescription.</param>
50+
public PrivateProfile(PrivateProfileActivity activity = default, string id = default, bool isFriend = default, string note = default, UserStatus? status = default, string statusDescription = default)
5651
{
57-
// Allow null values for required properties to handle unexpected API responses gracefully
5852
this.Activity = activity;
59-
// Allow null values for required properties to handle unexpected API responses gracefully
6053
this.Id = id;
6154
this.IsFriend = isFriend;
62-
// Allow null values for required properties to handle unexpected API responses gracefully
6355
this.Note = note;
6456
this.Status = status;
65-
// Allow null values for required properties to handle unexpected API responses gracefully
6657
this.StatusDescription = statusDescription;
6758
}
6859

6960
/// <summary>
7061
/// Gets or Sets Activity
7162
/// </summary>
72-
[DataMember(Name = "activity", IsRequired = true, EmitDefaultValue = true)]
63+
[DataMember(Name = "activity", EmitDefaultValue = false)]
7364
public PrivateProfileActivity Activity { get; set; }
7465

7566
/// <summary>
@@ -79,25 +70,25 @@ public PrivateProfile(PrivateProfileActivity activity = default, string id = def
7970
/*
8071
<example>usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469</example>
8172
*/
82-
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
73+
[DataMember(Name = "id", EmitDefaultValue = false)]
8374
public string Id { get; set; }
8475

8576
/// <summary>
8677
/// Gets or Sets IsFriend
8778
/// </summary>
88-
[DataMember(Name = "isFriend", IsRequired = true, EmitDefaultValue = true)]
79+
[DataMember(Name = "isFriend", EmitDefaultValue = true)]
8980
public bool IsFriend { get; set; }
9081

9182
/// <summary>
9283
/// Gets or Sets Note
9384
/// </summary>
94-
[DataMember(Name = "note", IsRequired = true, EmitDefaultValue = true)]
85+
[DataMember(Name = "note", EmitDefaultValue = false)]
9586
public string Note { get; set; }
9687

9788
/// <summary>
9889
/// Gets or Sets StatusDescription
9990
/// </summary>
100-
[DataMember(Name = "statusDescription", IsRequired = true, EmitDefaultValue = true)]
91+
[DataMember(Name = "statusDescription", EmitDefaultValue = false)]
10192
public string StatusDescription { get; set; }
10293

10394
/// <summary>

‎src/VRChat.API/Model/PrivateProfileActivity.cs‎

Lines changed: 22 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -36,46 +36,32 @@ public partial class PrivateProfileActivity : IEquatable<PrivateProfileActivity>
3636
/// <summary>
3737
/// Gets or Sets State
3838
/// </summary>
39-
[DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)]
40-
public UserState State { get; set; }
39+
[DataMember(Name = "state", EmitDefaultValue = false)]
40+
public UserState? State { get; set; }
4141
/// <summary>
4242
/// Initializes a new instance of the <see cref="PrivateProfileActivity" /> class.
4343
/// </summary>
44-
[JsonConstructorAttribute]
45-
protected PrivateProfileActivity() { }
46-
/// <summary>
47-
/// Initializes a new instance of the <see cref="PrivateProfileActivity" /> class.
48-
/// </summary>
49-
/// <param name="instanceId">InstanceID can be \&quot;offline\&quot; on User profiles if you are not friends with that user and \&quot;private\&quot; if you are friends and user is in private instance. (required).</param>
50-
/// <param name="lastActivity">Either a date-time or an empty string. (required).</param>
51-
/// <param name="lastLogin">Either a date-time or an empty string. (required).</param>
52-
/// <param name="location">Represents a unique location, consisting of a world identifier and an instance identifier, or \&quot;offline\&quot; if the user is not on your friends list. (required).</param>
53-
/// <param name="platform">This is normally &#x60;android&#x60;, &#x60;ios&#x60;, &#x60;standalonewindows&#x60;, &#x60;web&#x60;, or the empty value &#x60;&#x60;, but also supposedly can be any random Unity version such as &#x60;2019.2.4-801-Release&#x60; or &#x60;2019.2.2-772-Release&#x60; or even &#x60;unknownplatform&#x60;. (required).</param>
54-
/// <param name="state">state (required).</param>
55-
/// <param name="travelingToInstance">travelingToInstance (required).</param>
56-
/// <param name="travelingToLocation">travelingToLocation (required).</param>
57-
/// <param name="travelingToWorld">travelingToWorld (required).</param>
58-
/// <param name="worldId">WorldID be \&quot;offline\&quot; on User profiles if you are not friends with that user. (required).</param>
59-
public PrivateProfileActivity(string instanceId = default, string lastActivity = default, string lastLogin = default, string location = default, string platform = default, UserState state = default, string travelingToInstance = default, string travelingToLocation = default, string travelingToWorld = default, string worldId = default)
44+
/// <param name="instanceId">InstanceID can be \&quot;offline\&quot; on User profiles if you are not friends with that user and \&quot;private\&quot; if you are friends and user is in private instance..</param>
45+
/// <param name="lastActivity">Either a date-time or an empty string..</param>
46+
/// <param name="lastLogin">Either a date-time or an empty string..</param>
47+
/// <param name="location">Represents a unique location, consisting of a world identifier and an instance identifier, or \&quot;offline\&quot; if the user is not on your friends list..</param>
48+
/// <param name="platform">This is normally &#x60;android&#x60;, &#x60;ios&#x60;, &#x60;standalonewindows&#x60;, &#x60;web&#x60;, or the empty value &#x60;&#x60;, but also supposedly can be any random Unity version such as &#x60;2019.2.4-801-Release&#x60; or &#x60;2019.2.2-772-Release&#x60; or even &#x60;unknownplatform&#x60;..</param>
49+
/// <param name="state">state.</param>
50+
/// <param name="travelingToInstance">travelingToInstance.</param>
51+
/// <param name="travelingToLocation">travelingToLocation.</param>
52+
/// <param name="travelingToWorld">travelingToWorld.</param>
53+
/// <param name="worldId">WorldID be \&quot;offline\&quot; on User profiles if you are not friends with that user..</param>
54+
public PrivateProfileActivity(string instanceId = default, string lastActivity = default, string lastLogin = default, string location = default, string platform = default, UserState? state = default, string travelingToInstance = default, string travelingToLocation = default, string travelingToWorld = default, string worldId = default)
6055
{
61-
// Allow null values for required properties to handle unexpected API responses gracefully
6256
this.InstanceId = instanceId;
63-
// Allow null values for required properties to handle unexpected API responses gracefully
6457
this.LastActivity = lastActivity;
65-
// Allow null values for required properties to handle unexpected API responses gracefully
6658
this.LastLogin = lastLogin;
67-
// Allow null values for required properties to handle unexpected API responses gracefully
6859
this.Location = location;
69-
// Allow null values for required properties to handle unexpected API responses gracefully
7060
this.Platform = platform;
7161
this.State = state;
72-
// Allow null values for required properties to handle unexpected API responses gracefully
7362
this.TravelingToInstance = travelingToInstance;
74-
// Allow null values for required properties to handle unexpected API responses gracefully
7563
this.TravelingToLocation = travelingToLocation;
76-
// Allow null values for required properties to handle unexpected API responses gracefully
7764
this.TravelingToWorld = travelingToWorld;
78-
// Allow null values for required properties to handle unexpected API responses gracefully
7965
this.WorldId = worldId;
8066
}
8167

@@ -86,21 +72,21 @@ public PrivateProfileActivity(string instanceId = default, string lastActivity =
8672
/*
8773
<example>12345~hidden(usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469)~region(eu)~nonce(27e8414a-59a0-4f3d-af1f-f27557eb49a2)</example>
8874
*/
89-
[DataMember(Name = "instanceId", IsRequired = true, EmitDefaultValue = true)]
75+
[DataMember(Name = "instanceId", EmitDefaultValue = false)]
9076
public string InstanceId { get; set; }
9177

9278
/// <summary>
9379
/// Either a date-time or an empty string.
9480
/// </summary>
9581
/// <value>Either a date-time or an empty string.</value>
96-
[DataMember(Name = "last_activity", IsRequired = true, EmitDefaultValue = true)]
82+
[DataMember(Name = "last_activity", EmitDefaultValue = false)]
9783
public string LastActivity { get; set; }
9884

9985
/// <summary>
10086
/// Either a date-time or an empty string.
10187
/// </summary>
10288
/// <value>Either a date-time or an empty string.</value>
103-
[DataMember(Name = "last_login", IsRequired = true, EmitDefaultValue = true)]
89+
[DataMember(Name = "last_login", EmitDefaultValue = false)]
10490
public string LastLogin { get; set; }
10591

10692
/// <summary>
@@ -110,7 +96,7 @@ public PrivateProfileActivity(string instanceId = default, string lastActivity =
11096
/*
11197
<example>wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd:12345~hidden(usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469)~region(eu)~nonce(27e8414a-59a0-4f3d-af1f-f27557eb49a2)</example>
11298
*/
113-
[DataMember(Name = "location", IsRequired = true, EmitDefaultValue = true)]
99+
[DataMember(Name = "location", EmitDefaultValue = false)]
114100
public string Location { get; set; }
115101

116102
/// <summary>
@@ -120,25 +106,25 @@ public PrivateProfileActivity(string instanceId = default, string lastActivity =
120106
/*
121107
<example>standalonewindows</example>
122108
*/
123-
[DataMember(Name = "platform", IsRequired = true, EmitDefaultValue = true)]
109+
[DataMember(Name = "platform", EmitDefaultValue = false)]
124110
public string Platform { get; set; }
125111

126112
/// <summary>
127113
/// Gets or Sets TravelingToInstance
128114
/// </summary>
129-
[DataMember(Name = "travelingToInstance", IsRequired = true, EmitDefaultValue = true)]
115+
[DataMember(Name = "travelingToInstance", EmitDefaultValue = false)]
130116
public string TravelingToInstance { get; set; }
131117

132118
/// <summary>
133119
/// Gets or Sets TravelingToLocation
134120
/// </summary>
135-
[DataMember(Name = "travelingToLocation", IsRequired = true, EmitDefaultValue = true)]
121+
[DataMember(Name = "travelingToLocation", EmitDefaultValue = false)]
136122
public string TravelingToLocation { get; set; }
137123

138124
/// <summary>
139125
/// Gets or Sets TravelingToWorld
140126
/// </summary>
141-
[DataMember(Name = "travelingToWorld", IsRequired = true, EmitDefaultValue = true)]
127+
[DataMember(Name = "travelingToWorld", EmitDefaultValue = false)]
142128
public string TravelingToWorld { get; set; }
143129

144130
/// <summary>
@@ -148,7 +134,7 @@ public PrivateProfileActivity(string instanceId = default, string lastActivity =
148134
/*
149135
<example>wrld_4432ea9b-729c-46e3-8eaf-846aa0a37fdd</example>
150136
*/
151-
[DataMember(Name = "worldId", IsRequired = true, EmitDefaultValue = true)]
137+
[DataMember(Name = "worldId", EmitDefaultValue = false)]
152138
public string WorldId { get; set; }
153139

154140
/// <summary>

‎src/VRChat.API/Model/ProfileRepresentedGroup.cs‎

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,37 +35,28 @@ public partial class ProfileRepresentedGroup : IEquatable<ProfileRepresentedGrou
3535
/// <summary>
3636
/// Initializes a new instance of the <see cref="ProfileRepresentedGroup" /> class.
3737
/// </summary>
38-
[JsonConstructorAttribute]
39-
protected ProfileRepresentedGroup() { }
40-
/// <summary>
41-
/// Initializes a new instance of the <see cref="ProfileRepresentedGroup" /> class.
42-
/// </summary>
43-
/// <param name="bannerUrl">bannerUrl (required).</param>
44-
/// <param name="iconUrl">iconUrl (required).</param>
45-
/// <param name="id">id (required).</param>
46-
/// <param name="name">name (required).</param>
38+
/// <param name="bannerUrl">bannerUrl.</param>
39+
/// <param name="iconUrl">iconUrl.</param>
40+
/// <param name="id">id.</param>
41+
/// <param name="name">name.</param>
4742
public ProfileRepresentedGroup(string bannerUrl = default, string iconUrl = default, string id = default, string name = default)
4843
{
49-
// Allow null values for required properties to handle unexpected API responses gracefully
5044
this.BannerUrl = bannerUrl;
51-
// Allow null values for required properties to handle unexpected API responses gracefully
5245
this.IconUrl = iconUrl;
53-
// Allow null values for required properties to handle unexpected API responses gracefully
5446
this.Id = id;
55-
// Allow null values for required properties to handle unexpected API responses gracefully
5647
this.Name = name;
5748
}
5849

5950
/// <summary>
6051
/// Gets or Sets BannerUrl
6152
/// </summary>
62-
[DataMember(Name = "bannerUrl", IsRequired = true, EmitDefaultValue = true)]
53+
[DataMember(Name = "bannerUrl", EmitDefaultValue = true)]
6354
public string BannerUrl { get; set; }
6455

6556
/// <summary>
6657
/// Gets or Sets IconUrl
6758
/// </summary>
68-
[DataMember(Name = "iconUrl", IsRequired = true, EmitDefaultValue = true)]
59+
[DataMember(Name = "iconUrl", EmitDefaultValue = true)]
6960
public string IconUrl { get; set; }
7061

7162
/// <summary>
@@ -74,13 +65,13 @@ public ProfileRepresentedGroup(string bannerUrl = default, string iconUrl = defa
7465
/*
7566
<example>grp_71a7ff59-112c-4e78-a990-c7cc650776e5</example>
7667
*/
77-
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
68+
[DataMember(Name = "id", EmitDefaultValue = false)]
7869
public string Id { get; set; }
7970

8071
/// <summary>
8172
/// Gets or Sets Name
8273
/// </summary>
83-
[DataMember(Name = "name", IsRequired = true, EmitDefaultValue = true)]
74+
[DataMember(Name = "name", EmitDefaultValue = false)]
8475
public string Name { get; set; }
8576

8677
/// <summary>

0 commit comments

Comments
 (0)