net.accelbyte.sdk.api.sessionhistory.models.ModelsMatchmakingResult Maven / Gradle / Ivy
/*
* Copyright (c) 2024 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.sessionhistory.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 ModelsMatchmakingResult extends Model {
@JsonProperty("channel")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String channel;
@JsonProperty("client_version")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String clientVersion;
@JsonProperty("deployment")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String deployment;
@JsonProperty("error_code")
@JsonInclude(JsonInclude.Include.NON_NULL)
private Integer errorCode;
@JsonProperty("error_message")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String errorMessage;
@JsonProperty("game_mode")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String gameMode;
@JsonProperty("joinable")
@JsonInclude(JsonInclude.Include.NON_NULL)
private Boolean joinable;
@JsonProperty("match_id")
private String matchId;
@JsonProperty("match_session_id")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String matchSessionId;
@JsonProperty("matching_allies")
private List matchingAllies;
@JsonProperty("namespace")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String namespace;
@JsonProperty("party_attributes")
@JsonInclude(JsonInclude.Include.NON_NULL)
private Map partyAttributes;
@JsonProperty("party_id")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String partyId;
@JsonProperty("queued_at")
private Long queuedAt;
@JsonProperty("region")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String region;
@JsonProperty("server_name")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String serverName;
@JsonProperty("status")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String status;
@JsonProperty("ticket_id")
private String ticketId;
@JsonProperty("updated_at")
private String updatedAt;
@JsonIgnore
public ModelsMatchmakingResult 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>() {});
}
}