Skip to content

Commit dc17b01

Browse files
committed
Upgrade Java SDK to spec 1.20.10-nightly.12
1 parent 2eacd9e commit dc17b01

2 files changed

Lines changed: 7 additions & 16 deletions

File tree

‎docs/CurrentUserPresence.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
|**bannerColor** | **String** | | [optional] |
1414
|**bannerType** | **String** | | [optional] |
1515
|**bannerUrl** | **String** | | [optional] |
16-
|**currentAvatarTags** | **List<String>** | | [optional] |
16+
|**currentAvatarTags** | **String** | | [optional] |
1717
|**debugflag** | **String** | | [optional] |
1818
|**displayName** | **String** | | [optional] |
1919
|**groups** | **List<String>** | | [optional] |

‎src/main/java/io/github/vrchatapi/model/CurrentUserPresence.java‎

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public class CurrentUserPresence {
8585
public static final String SERIALIZED_NAME_CURRENT_AVATAR_TAGS = "currentAvatarTags";
8686
@SerializedName(SERIALIZED_NAME_CURRENT_AVATAR_TAGS)
8787
@javax.annotation.Nullable
88-
private List<String> currentAvatarTags = new ArrayList<>();
88+
private String currentAvatarTags;
8989

9090
public static final String SERIALIZED_NAME_DEBUGFLAG = "debugflag";
9191
@SerializedName(SERIALIZED_NAME_DEBUGFLAG)
@@ -294,29 +294,21 @@ public void setBannerUrl(@javax.annotation.Nullable String bannerUrl) {
294294
}
295295

296296

297-
public CurrentUserPresence currentAvatarTags(@javax.annotation.Nullable List<String> currentAvatarTags) {
297+
public CurrentUserPresence currentAvatarTags(@javax.annotation.Nullable String currentAvatarTags) {
298298
this.currentAvatarTags = currentAvatarTags;
299299
return this;
300300
}
301301

302-
public CurrentUserPresence addCurrentAvatarTagsItem(String currentAvatarTagsItem) {
303-
if (this.currentAvatarTags == null) {
304-
this.currentAvatarTags = new ArrayList<>();
305-
}
306-
this.currentAvatarTags.add(currentAvatarTagsItem);
307-
return this;
308-
}
309-
310302
/**
311303
* Get currentAvatarTags
312304
* @return currentAvatarTags
313305
*/
314306
@javax.annotation.Nullable
315-
public List<String> getCurrentAvatarTags() {
307+
public String getCurrentAvatarTags() {
316308
return currentAvatarTags;
317309
}
318310

319-
public void setCurrentAvatarTags(@javax.annotation.Nullable List<String> currentAvatarTags) {
311+
public void setCurrentAvatarTags(@javax.annotation.Nullable String currentAvatarTags) {
320312
this.currentAvatarTags = currentAvatarTags;
321313
}
322314

@@ -816,9 +808,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti
816808
if ((jsonObj.get("bannerUrl") != null && !jsonObj.get("bannerUrl").isJsonNull()) && !jsonObj.get("bannerUrl").isJsonPrimitive()) {
817809
throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `bannerUrl` to be a primitive type in the JSON string but got `%s`", jsonObj.get("bannerUrl").toString()));
818810
}
819-
// ensure the optional json data is an array if present
820-
if (jsonObj.get("currentAvatarTags") != null && !jsonObj.get("currentAvatarTags").isJsonNull() && !jsonObj.get("currentAvatarTags").isJsonArray()) {
821-
throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `currentAvatarTags` to be an array in the JSON string but got `%s`", jsonObj.get("currentAvatarTags").toString()));
811+
if ((jsonObj.get("currentAvatarTags") != null && !jsonObj.get("currentAvatarTags").isJsonNull()) && !jsonObj.get("currentAvatarTags").isJsonPrimitive()) {
812+
throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `currentAvatarTags` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currentAvatarTags").toString()));
822813
}
823814
if ((jsonObj.get("debugflag") != null && !jsonObj.get("debugflag").isJsonNull()) && !jsonObj.get("debugflag").isJsonPrimitive()) {
824815
throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `debugflag` to be a primitive type in the JSON string but got `%s`", jsonObj.get("debugflag").toString()));

0 commit comments

Comments
 (0)