/* Options: Date: 2026-09-01 21:27:39 Version: 10.09 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateProfile.* //ExcludeTypes: //DefaultImports: */ package dtos import ( ss "github.com/ServiceStack/servicestack-go" ) type PlayerRole string const ( PlayerRoleLeader PlayerRole = "Leader" PlayerRolePlayer = "Player" PlayerRoleNonPlayer = "NonPlayer" ) type PlayerRegion string const ( PlayerRegionAfrica PlayerRegion = "Africa" PlayerRegionAmericas = "Americas" PlayerRegionAsia = "Asia" PlayerRegionAustralasia = "Australasia" PlayerRegionEurope = "Europe" ) type Profile struct { ss.AuditBase Id int `json:"id,omitempty"` Role PlayerRole `json:"role,omitempty"` Region PlayerRegion `json:"region,omitempty"` Username *string `json:"username,omitempty"` HighScore int64 `json:"highScore,omitempty"` GamesPlayed int64 `json:"gamesPlayed,omitempty"` Energy int `json:"energy,omitempty"` ProfileUrl *string `json:"profileUrl,omitempty"` CoverUrl *string `json:"coverUrl,omitempty"` Meta map[string]string `json:"meta,omitempty"` } type CreateProfile struct { Role PlayerRole `json:"role,omitempty"` Region PlayerRegion `json:"region,omitempty"` // @Validate(Validator="NotEmpty") Username string `json:"username"` HighScore int64 `json:"highScore,omitempty"` GamesPlayed int64 `json:"gamesPlayed,omitempty"` // @Validate(Validator="InclusiveBetween(0,100)") Energy int `json:"energy,omitempty"` ProfileUrl *string `json:"profileUrl,omitempty"` CoverUrl *string `json:"coverUrl,omitempty"` } func (CreateProfile) CreateResponse() (r ss.IdResponse) { return } func (CreateProfile) HttpMethod() string { return "POST" }