/* Options: Date: 2024-12-22 21:20:16 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateProfile.* //ExcludeTypes: //InitializeCollections: False //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.* open class CreateProfile : IReturn, ICreateDb { open var role:PlayerRole? = null open var region:PlayerRegion? = null @Validate(Validator="NotEmpty") open var username:String? = null open var highScore:Long? = null open var gamesPlayed:Long? = null @Validate(Validator="InclusiveBetween(0,100)") open var energy:Int? = null open var profileUrl:String? = null open var coverUrl:String? = null companion object { private val responseType = IdResponse::class.java } override fun getResponseType(): Any? = CreateProfile.responseType } @DataContract open class IdResponse { @DataMember(Order=1) open var id:String? = null @DataMember(Order=2) open var responseStatus:ResponseStatus? = null } open class Profile : AuditBase() { open var id:Int? = null open var role:PlayerRole? = null open var region:PlayerRegion? = null open var username:String? = null open var highScore:Long? = null open var gamesPlayed:Long? = null open var energy:Int? = null open var profileUrl:String? = null open var coverUrl:String? = null open var meta:HashMap? = null } enum class PlayerRole { Leader, Player, NonPlayer, } enum class PlayerRegion(val value:Int) { Africa(1), Americas(2), Asia(3), Australasia(4), Europe(5), }