/* Options: Date: 2024-12-22 22:02:26 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: False //ExportValueTypes: False IncludeTypes: CreateProfile.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.IO; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using MyApp.ServiceModel; namespace MyApp.ServiceModel { public partial class CreateProfile : IReturn, ICreateDb { public virtual PlayerRole Role { get; set; } public virtual PlayerRegion Region { get; set; } [Validate("NotEmpty")] public virtual string Username { get; set; } public virtual long HighScore { get; set; } public virtual long GamesPlayed { get; set; } [Validate("InclusiveBetween(0,100)")] public virtual int Energy { get; set; } public virtual string ProfileUrl { get; set; } public virtual string CoverUrl { get; set; } } public enum PlayerRegion { Africa = 1, Americas = 2, Asia = 3, Australasia = 4, Europe = 5, } public enum PlayerRole { Leader, Player, NonPlayer, } public partial class Profile : AuditBase { public virtual int Id { get; set; } public virtual PlayerRole Role { get; set; } public virtual PlayerRegion Region { get; set; } public virtual string Username { get; set; } public virtual long HighScore { get; set; } public virtual long GamesPlayed { get; set; } public virtual int Energy { get; set; } public virtual string ProfileUrl { get; set; } public virtual string CoverUrl { get; set; } public virtual Dictionary Meta { get; set; } } }