/* Options: Date: 2024-12-22 21:45:18 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: CreateProfile.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { public static class CreateProfile implements IReturn, ICreateDb { public PlayerRole role = null; public PlayerRegion region = null; @Validate(Validator="NotEmpty") public String username = null; public Long highScore = null; public Long gamesPlayed = null; @Validate(Validator="InclusiveBetween(0,100)") public Integer energy = null; public String profileUrl = null; public String coverUrl = null; public PlayerRole getRole() { return role; } public CreateProfile setRole(PlayerRole value) { this.role = value; return this; } public PlayerRegion getRegion() { return region; } public CreateProfile setRegion(PlayerRegion value) { this.region = value; return this; } public String getUsername() { return username; } public CreateProfile setUsername(String value) { this.username = value; return this; } public Long getHighScore() { return highScore; } public CreateProfile setHighScore(Long value) { this.highScore = value; return this; } public Long getGamesPlayed() { return gamesPlayed; } public CreateProfile setGamesPlayed(Long value) { this.gamesPlayed = value; return this; } public Integer getEnergy() { return energy; } public CreateProfile setEnergy(Integer value) { this.energy = value; return this; } public String getProfileUrl() { return profileUrl; } public CreateProfile setProfileUrl(String value) { this.profileUrl = value; return this; } public String getCoverUrl() { return coverUrl; } public CreateProfile setCoverUrl(String value) { this.coverUrl = value; return this; } private static Object responseType = IdResponse.class; public Object getResponseType() { return responseType; } } @DataContract public static class IdResponse { @DataMember(Order=1) public String id = null; @DataMember(Order=2) public ResponseStatus responseStatus = null; public String getId() { return id; } public IdResponse setId(String value) { this.id = value; return this; } public ResponseStatus getResponseStatus() { return responseStatus; } public IdResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; } } public static class Profile extends AuditBase { public Integer id = null; public PlayerRole role = null; public PlayerRegion region = null; public String username = null; public Long highScore = null; public Long gamesPlayed = null; public Integer energy = null; public String profileUrl = null; public String coverUrl = null; public HashMap meta = null; public Integer getId() { return id; } public Profile setId(Integer value) { this.id = value; return this; } public PlayerRole getRole() { return role; } public Profile setRole(PlayerRole value) { this.role = value; return this; } public PlayerRegion getRegion() { return region; } public Profile setRegion(PlayerRegion value) { this.region = value; return this; } public String getUsername() { return username; } public Profile setUsername(String value) { this.username = value; return this; } public Long getHighScore() { return highScore; } public Profile setHighScore(Long value) { this.highScore = value; return this; } public Long getGamesPlayed() { return gamesPlayed; } public Profile setGamesPlayed(Long value) { this.gamesPlayed = value; return this; } public Integer getEnergy() { return energy; } public Profile setEnergy(Integer value) { this.energy = value; return this; } public String getProfileUrl() { return profileUrl; } public Profile setProfileUrl(String value) { this.profileUrl = value; return this; } public String getCoverUrl() { return coverUrl; } public Profile setCoverUrl(String value) { this.coverUrl = value; return this; } public HashMap getMeta() { return meta; } public Profile setMeta(HashMap value) { this.meta = value; return this; } } public static enum PlayerRole { Leader, Player, NonPlayer; } public static enum PlayerRegion { Africa(1), Americas(2), Asia(3), Australasia(4), Europe(5); private final int value; PlayerRegion(final int intValue) { value = intValue; } public int getValue() { return value; } } }