/* Options: Date: 2024-12-23 12:15:23 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://consumer-api.brovs.com //GlobalNamespace: ConsumerApi //MakePartial: True //MakeVirtual: False //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: True //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: LotteryGetRequest.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using ConsumerApi; namespace ConsumerApi { public partial class ActiveLotteryDto { public ActiveLotteryDto() { ImageUrls = new List{}; } public long Id { get; set; } public List ImageUrls { get; set; } public DateTimeOffset StartAt { get; set; } public DateTimeOffset StopAt { get; set; } public string Title { get; set; } public string Description { get; set; } public long YourTicketCount { get; set; } } [Route("/lottery", "GET")] public partial class LotteryGetRequest : IReturn, IGet { } public partial class LotteryGetResponse { public ActiveLotteryDto? ActiveLottery { get; set; } public PreviousLotteryDto? RelevantPreviousLottery { get; set; } } public partial class PreviousLotteryDto { public long Id { get; set; } public DateTimeOffset StartAt { get; set; } public DateTimeOffset StopAt { get; set; } public string Title { get; set; } public long YourTicketCount { get; set; } public string Winner { get; set; } public bool YouAreTheWinner { get; set; } } }