/* Options: Date: 2024-12-22 21:22:30 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: QueryPlayer.* //ExcludeTypes: //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.*,com.google.gson.annotations.*,com.google.gson.reflect.* */ import java.math.* import java.util.* import java.io.InputStream import net.servicestack.client.* import com.google.gson.annotations.* import com.google.gson.reflect.* open class QueryPlayer : QueryDb(), IReturn> { companion object { private val responseType = object : TypeToken>(){}.type } override fun getResponseType(): Any? = QueryPlayer.responseType } @DataContract open class QueryResponse { @DataMember(Order=1) open var offset:Int? = null @DataMember(Order=2) open var total:Int? = null @DataMember(Order=3) open var results:ArrayList? = null @DataMember(Order=4) open var meta:HashMap? = null @DataMember(Order=5) open var responseStatus:ResponseStatus? = null } open class QueryDb : QueryBase() { } open class Player : AuditBase() { open var id:Int? = null @Required() open var firstName:String? = null open var lastName:String? = null open var email:String? = null open var phoneNumbers:ArrayList = ArrayList() open var gameItems:ArrayList = ArrayList() open var profile:Profile? = null open var profileId:Int? = null open var savedLevelId:UUID? = null open var rowVersion:BigInteger? = 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 } open class GameItem : AuditBase() { @StringLength(MaximumLength=50) open var name:String? = null open var imageUrl:String? = null @StringLength(MaximumLength=2147483647) open var description:String? = null open var dateAdded:Date? = null } open class PlayerGameItem { open var id:Int? = null @References(Type=Player::class) open var playerId:Int? = null @References(Type=GameItem::class) open var gameItemName:String? = null } open class Phone { open var kind:PhoneKind? = null open var number:String? = null open var ext:String? = null } enum class PlayerRole { Leader, Player, NonPlayer, } enum class PlayerRegion(val value:Int) { Africa(1), Americas(2), Asia(3), Australasia(4), Europe(5), } @DataContract open class AuditBase { @DataMember(Order=1) open var createdDate:Date? = null @DataMember(Order=2) @Required() open var createdBy:String? = null @DataMember(Order=3) open var modifiedDate:Date? = null @DataMember(Order=4) @Required() open var modifiedBy:String? = null @DataMember(Order=5) open var deletedDate:Date? = null @DataMember(Order=6) open var deletedBy:String? = null } @DataContract open class QueryBase { @DataMember(Order=1) open var skip:Int? = null @DataMember(Order=2) open var take:Int? = null @DataMember(Order=3) open var orderBy:String? = null @DataMember(Order=4) open var orderByDesc:String? = null @DataMember(Order=5) open var include:String? = null @DataMember(Order=6) open var fields:String? = null @DataMember(Order=7) open var meta:HashMap? = null } enum class PhoneKind { Home, Mobile, Work, }