/* Options: Date: 2024-12-22 21:14:30 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: QueryPlayer.* //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 GameItem : AuditBase { [StringLength(50)] public virtual string Name { get; set; } public virtual string ImageUrl { get; set; } [StringLength(int.MaxValue)] public virtual string Description { get; set; } public virtual DateTime DateAdded { get; set; } } public partial class Phone { public virtual PhoneKind Kind { get; set; } public virtual string Number { get; set; } public virtual string Ext { get; set; } } public enum PhoneKind { Home, Mobile, Work, } public partial class Player : AuditBase { public virtual int Id { get; set; } [Required] public virtual string FirstName { get; set; } public virtual string LastName { get; set; } public virtual string Email { get; set; } public virtual List PhoneNumbers { get; set; } = []; public virtual List GameItems { get; set; } = []; public virtual Profile Profile { get; set; } public virtual int ProfileId { get; set; } public virtual Guid SavedLevelId { get; set; } public virtual ulong RowVersion { get; set; } } public partial class PlayerGameItem { public virtual int Id { get; set; } [References(typeof(MyApp.ServiceModel.Player))] public virtual int PlayerId { get; set; } [References(typeof(MyApp.ServiceModel.GameItem))] public virtual string GameItemName { 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; } } public partial class QueryPlayer : QueryDb, IReturn> { } }