All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
net.accelbyte.sdk.api.platform.models.AppInfo Maven / Gradle / Ivy
/*
* 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.platform.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 AppInfo extends Model {
@JsonProperty("announcement")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String announcement;
@JsonProperty("carousel")
@JsonInclude(JsonInclude.Include.NON_NULL)
private List carousel;
@JsonProperty("developer")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String developer;
@JsonProperty("forumUrl")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String forumUrl;
@JsonProperty("genres")
@JsonInclude(JsonInclude.Include.NON_NULL)
private List genres;
@JsonProperty("itemId")
private String itemId;
@JsonProperty("language")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String language;
@JsonProperty("namespace")
private String namespace;
@JsonProperty("platformRequirements")
@JsonInclude(JsonInclude.Include.NON_NULL)
private Map> platformRequirements;
@JsonProperty("platforms")
@JsonInclude(JsonInclude.Include.NON_NULL)
private List platforms;
@JsonProperty("players")
@JsonInclude(JsonInclude.Include.NON_NULL)
private List players;
@JsonProperty("primaryGenre")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String primaryGenre;
@JsonProperty("publisher")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String publisher;
@JsonProperty("region")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String region;
@JsonProperty("releaseDate")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String releaseDate;
@JsonProperty("slogan")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String slogan;
@JsonProperty("websiteUrl")
@JsonInclude(JsonInclude.Include.NON_NULL)
private String websiteUrl;
@JsonIgnore
public List getGenres() {
return this.genres;
}
@JsonIgnore
public List getGenresAsEnum() {
ArrayList en = new ArrayList();
for (String e : this.genres) en.add(Genres.valueOf(e));
return en;
}
@JsonIgnore
public void setGenres(final List genres) {
this.genres = genres;
}
@JsonIgnore
public void setGenresFromEnum(final List genres) {
ArrayList en = new ArrayList();
for (Genres e : genres) en.add(e.toString());
this.genres = en;
}
@JsonIgnore
public List getPlatforms() {
return this.platforms;
}
@JsonIgnore
public List getPlatformsAsEnum() {
ArrayList en = new ArrayList();
for (String e : this.platforms) en.add(Platforms.valueOf(e));
return en;
}
@JsonIgnore
public void setPlatforms(final List platforms) {
this.platforms = platforms;
}
@JsonIgnore
public void setPlatformsFromEnum(final List platforms) {
ArrayList en = new ArrayList();
for (Platforms e : platforms) en.add(e.toString());
this.platforms = en;
}
@JsonIgnore
public List getPlayers() {
return this.players;
}
@JsonIgnore
public List getPlayersAsEnum() {
ArrayList en = new ArrayList();
for (String e : this.players) en.add(Players.valueOf(e));
return en;
}
@JsonIgnore
public void setPlayers(final List players) {
this.players = players;
}
@JsonIgnore
public void setPlayersFromEnum(final List players) {
ArrayList en = new ArrayList();
for (Players e : players) en.add(e.toString());
this.players = en;
}
@JsonIgnore
public String getPrimaryGenre() {
return this.primaryGenre;
}
@JsonIgnore
public PrimaryGenre getPrimaryGenreAsEnum() {
return PrimaryGenre.valueOf(this.primaryGenre);
}
@JsonIgnore
public void setPrimaryGenre(final String primaryGenre) {
this.primaryGenre = primaryGenre;
}
@JsonIgnore
public void setPrimaryGenreFromEnum(final PrimaryGenre primaryGenre) {
this.primaryGenre = primaryGenre.toString();
}
@JsonIgnore
public AppInfo 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>() {});
}
public enum Genres {
Action("Action"),
Adventure("Adventure"),
Casual("Casual"),
FreeToPlay("FreeToPlay"),
Indie("Indie"),
MassivelyMultiplayer("MassivelyMultiplayer"),
RPG("RPG"),
Racing("Racing"),
Simulation("Simulation"),
Sports("Sports"),
Strategy("Strategy");
private String value;
Genres(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
}
public enum Platforms {
Android("Android"),
IOS("IOS"),
Linux("Linux"),
MacOS("MacOS"),
Windows("Windows");
private String value;
Platforms(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
}
public enum Players {
Coop("Coop"),
CrossPlatformMulti("CrossPlatformMulti"),
LocalCoop("LocalCoop"),
MMO("MMO"),
Multi("Multi"),
Single("Single");
private String value;
Players(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
}
public enum PrimaryGenre {
Action("Action"),
Adventure("Adventure"),
Casual("Casual"),
FreeToPlay("FreeToPlay"),
Indie("Indie"),
MassivelyMultiplayer("MassivelyMultiplayer"),
RPG("RPG"),
Racing("Racing"),
Simulation("Simulation"),
Sports("Sports"),
Strategy("Strategy");
private String value;
PrimaryGenre(String value) {
this.value = value;
}
@Override
public String toString() {
return this.value;
}
}
public static class AppInfoBuilder {
private List genres;
private List platforms;
private List players;
private String primaryGenre;
public AppInfoBuilder genres(final List genres) {
this.genres = genres;
return this;
}
public AppInfoBuilder genresFromEnum(final List genres) {
ArrayList en = new ArrayList();
for (Genres e : genres) en.add(e.toString());
this.genres = en;
return this;
}
public AppInfoBuilder platforms(final List platforms) {
this.platforms = platforms;
return this;
}
public AppInfoBuilder platformsFromEnum(final List platforms) {
ArrayList en = new ArrayList();
for (Platforms e : platforms) en.add(e.toString());
this.platforms = en;
return this;
}
public AppInfoBuilder players(final List players) {
this.players = players;
return this;
}
public AppInfoBuilder playersFromEnum(final List players) {
ArrayList en = new ArrayList();
for (Players e : players) en.add(e.toString());
this.players = en;
return this;
}
public AppInfoBuilder primaryGenre(final String primaryGenre) {
this.primaryGenre = primaryGenre;
return this;
}
public AppInfoBuilder primaryGenreFromEnum(final PrimaryGenre primaryGenre) {
this.primaryGenre = primaryGenre.toString();
return this;
}
}
}