net.accelbyte.sdk.api.iam.models.OauthmodelTokenResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
AccelByte Gaming Services Java Extend SDK generated from OpenAPI specs
/*
* Copyright (c) 2022 AccelByte Inc. All Rights Reserved
* This is licensed software from AccelByte Inc, for limitations
* and restrictions contact your company contract manager.
*
* Code generated. DO NOT EDIT.
*/
package net.accelbyte.sdk.api.iam.models;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.*;
import lombok.*;
import net.accelbyte.sdk.core.Model;
@JsonIgnoreProperties(ignoreUnknown = true)
@Builder
@Getter
@Setter
// @deprecated 2022-08-29 - All args constructor may cause problems. Use builder instead.
@AllArgsConstructor(onConstructor = @__(@Deprecated))
@NoArgsConstructor
public class OauthmodelTokenResponse extends Model {
@JsonProperty("access_token")
private String accessToken;
@JsonProperty("bans")
private List bans;
@JsonProperty("device_id")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String deviceId;
@JsonProperty("display_name")
private String displayName;
@JsonProperty("expires_in")
private Integer expiresIn;
@JsonProperty("is_comply")
@JsonInclude(JsonInclude.Include.NON_NULL)
private Boolean isComply;
@JsonProperty("jflgs")
@JsonInclude(JsonInclude.Include.NON_NULL)
private Integer jflgs;
@JsonProperty("namespace")
private String namespace;
@JsonProperty("namespace_roles")
private List namespaceRoles;
@JsonProperty("permissions")
private List permissions;
@JsonProperty("platform_id")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String platformId;
@JsonProperty("platform_user_id")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String platformUserId;
@JsonProperty("refresh_expires_in")
@JsonInclude(JsonInclude.Include.NON_NULL)
private Integer refreshExpiresIn;
@JsonProperty("refresh_token")
private String refreshToken;
@JsonProperty("roles")
private List roles;
@JsonProperty("token_type")
private String tokenType;
@JsonProperty("user_id")
private String userId;
@JsonIgnore
public OauthmodelTokenResponse createFromJson(String json) throws JsonProcessingException {
return new ObjectMapper().readValue(json, this.getClass());
}
@JsonIgnore
public List createFromJsonList(String json)
throws JsonProcessingException {
return new ObjectMapper()
.readValue(json, new TypeReference>() {});
}
}