/* Options: Date: 2024-12-22 21:28:14 SwiftVersion: 6.0 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: UpdateProfile.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack public class UpdateProfile : IReturn, Codable { public typealias Return = IdResponse public var id:Int? public var role:PlayerRole? public var region:PlayerRegion? public var username:String? public var highScore:Int? public var gamesPlayed:Int? // @Validate(Validator="InclusiveBetween(0,100)") public var energy:Int? public var profileUrl:String? public var coverUrl:String? required public init(){} } // @DataContract public class IdResponse : Codable { // @DataMember(Order=1) public var id:String? // @DataMember(Order=2) public var responseStatus:ResponseStatus? required public init(){} } public enum PlayerRole : String, Codable { case Leader case Player case NonPlayer } public enum PlayerRegion : Int, Codable { case Africa = 1 case Americas = 2 case Asia = 3 case Australasia = 4 case Europe = 5 }