/* Options: Date: 2024-12-23 11:59:14 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://consumer-api.brovs.com //Package: //GlobalNamespace: ConsumerApi //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: LotteryGetRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class ConsumerApi { @Route(Path="/lottery", Verbs="GET") public static class LotteryGetRequest implements IReturn, IGet { private static Object responseType = LotteryGetResponse.class; public Object getResponseType() { return responseType; } } public static class LotteryGetResponse { public ActiveLotteryDto activeLottery = null; public PreviousLotteryDto relevantPreviousLottery = null; public ActiveLotteryDto getActiveLottery() { return activeLottery; } public LotteryGetResponse setActiveLottery(ActiveLotteryDto value) { this.activeLottery = value; return this; } public PreviousLotteryDto getRelevantPreviousLottery() { return relevantPreviousLottery; } public LotteryGetResponse setRelevantPreviousLottery(PreviousLotteryDto value) { this.relevantPreviousLottery = value; return this; } } public static class ActiveLotteryDto { public Long id = null; public ArrayList imageUrls = null; public Date startAt = null; public Date stopAt = null; public String title = null; public String description = null; public Long yourTicketCount = null; public Long getId() { return id; } public ActiveLotteryDto setId(Long value) { this.id = value; return this; } public ArrayList getImageUrls() { return imageUrls; } public ActiveLotteryDto setImageUrls(ArrayList value) { this.imageUrls = value; return this; } public Date getStartAt() { return startAt; } public ActiveLotteryDto setStartAt(Date value) { this.startAt = value; return this; } public Date getStopAt() { return stopAt; } public ActiveLotteryDto setStopAt(Date value) { this.stopAt = value; return this; } public String getTitle() { return title; } public ActiveLotteryDto setTitle(String value) { this.title = value; return this; } public String getDescription() { return description; } public ActiveLotteryDto setDescription(String value) { this.description = value; return this; } public Long getYourTicketCount() { return yourTicketCount; } public ActiveLotteryDto setYourTicketCount(Long value) { this.yourTicketCount = value; return this; } } public static class PreviousLotteryDto { public Long id = null; public Date startAt = null; public Date stopAt = null; public String title = null; public Long yourTicketCount = null; public String winner = null; public Boolean youAreTheWinner = null; public Long getId() { return id; } public PreviousLotteryDto setId(Long value) { this.id = value; return this; } public Date getStartAt() { return startAt; } public PreviousLotteryDto setStartAt(Date value) { this.startAt = value; return this; } public Date getStopAt() { return stopAt; } public PreviousLotteryDto setStopAt(Date value) { this.stopAt = value; return this; } public String getTitle() { return title; } public PreviousLotteryDto setTitle(String value) { this.title = value; return this; } public Long getYourTicketCount() { return yourTicketCount; } public PreviousLotteryDto setYourTicketCount(Long value) { this.yourTicketCount = value; return this; } public String getWinner() { return winner; } public PreviousLotteryDto setWinner(String value) { this.winner = value; return this; } public Boolean isYouAreTheWinner() { return youAreTheWinner; } public PreviousLotteryDto setYouAreTheWinner(Boolean value) { this.youAreTheWinner = value; return this; } } }