/* Options: Date: 2024-12-22 22:04:22 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: CreatePlayer.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack public class CreatePlayer : IReturn, Codable { public typealias Return = IdResponse // @Validate(Validator="NotEmpty") public var firstName:String? public var lastName:String? public var email:String? public var phoneNumbers:[Phone]? // @Validate(Validator="NotNull") public var profileId:Int? public var savedLevelId: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 class Phone : Codable { public var kind:PhoneKind? public var number:String? public var ext:String? required public init(){} } public enum PhoneKind : String, Codable { case Home case Mobile case Work }