/* Options: Date: 2025-12-06 07:01:18 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://backoffice-api.brovs.com //Package: //GlobalNamespace: BackofficeApi //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: LotteryGetRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class BackofficeApi { @Route(Path="/lottery/get", Verbs="GET") public static class LotteryGetRequest implements IReturn, IGet { public Long lotteryId = null; public Long getLotteryId() { return lotteryId; } public LotteryGetRequest setLotteryId(Long value) { this.lotteryId = value; return this; } private static Object responseType = LotteryGetResponse.class; public Object getResponseType() { return responseType; } } public static class LotteryGetResponse { public LotteryDetailsDto lottery = null; public LotteryDetailsDto getLottery() { return lottery; } public LotteryGetResponse setLottery(LotteryDetailsDto value) { this.lottery = value; return this; } } public static class LotteryDetailsDto { public Long id = null; public Date startAt = null; public Date stopAt = null; public ArrayList images = new ArrayList(); public String title = null; public String description = null; public String winnerToDisplay = null; public LotteryWinnerDto winner = null; public String countryCode = null; public TimeRelativeLotteryState state = null; public Date updatedAt = null; public Long getId() { return id; } public LotteryDetailsDto setId(Long value) { this.id = value; return this; } public Date getStartAt() { return startAt; } public LotteryDetailsDto setStartAt(Date value) { this.startAt = value; return this; } public Date getStopAt() { return stopAt; } public LotteryDetailsDto setStopAt(Date value) { this.stopAt = value; return this; } public ArrayList getImages() { return images; } public LotteryDetailsDto setImages(ArrayList value) { this.images = value; return this; } public String getTitle() { return title; } public LotteryDetailsDto setTitle(String value) { this.title = value; return this; } public String getDescription() { return description; } public LotteryDetailsDto setDescription(String value) { this.description = value; return this; } public String getWinnerToDisplay() { return winnerToDisplay; } public LotteryDetailsDto setWinnerToDisplay(String value) { this.winnerToDisplay = value; return this; } public LotteryWinnerDto getWinner() { return winner; } public LotteryDetailsDto setWinner(LotteryWinnerDto value) { this.winner = value; return this; } public String getCountryCode() { return countryCode; } public LotteryDetailsDto setCountryCode(String value) { this.countryCode = value; return this; } public TimeRelativeLotteryState getState() { return state; } public LotteryDetailsDto setState(TimeRelativeLotteryState value) { this.state = value; return this; } public Date getUpdatedAt() { return updatedAt; } public LotteryDetailsDto setUpdatedAt(Date value) { this.updatedAt = value; return this; } } public static class LotteryWinnerDto { public Long userId = null; public String firstName = null; public String lastName = null; public UserAddress homeAddress = null; public String mobilePhone = null; public Date mobilePhoneConfirmedAt = null; public String email = null; public Date emailConfirmedAt = null; public Long getUserId() { return userId; } public LotteryWinnerDto setUserId(Long value) { this.userId = value; return this; } public String getFirstName() { return firstName; } public LotteryWinnerDto setFirstName(String value) { this.firstName = value; return this; } public String getLastName() { return lastName; } public LotteryWinnerDto setLastName(String value) { this.lastName = value; return this; } public UserAddress getHomeAddress() { return homeAddress; } public LotteryWinnerDto setHomeAddress(UserAddress value) { this.homeAddress = value; return this; } public String getMobilePhone() { return mobilePhone; } public LotteryWinnerDto setMobilePhone(String value) { this.mobilePhone = value; return this; } public Date getMobilePhoneConfirmedAt() { return mobilePhoneConfirmedAt; } public LotteryWinnerDto setMobilePhoneConfirmedAt(Date value) { this.mobilePhoneConfirmedAt = value; return this; } public String getEmail() { return email; } public LotteryWinnerDto setEmail(String value) { this.email = value; return this; } public Date getEmailConfirmedAt() { return emailConfirmedAt; } public LotteryWinnerDto setEmailConfirmedAt(Date value) { this.emailConfirmedAt = value; return this; } } public static class LotteryImageDto { public Long id = null; public ImageUrls imageUrl = null; public Integer position = null; public Long getId() { return id; } public LotteryImageDto setId(Long value) { this.id = value; return this; } public ImageUrls getImageUrl() { return imageUrl; } public LotteryImageDto setImageUrl(ImageUrls value) { this.imageUrl = value; return this; } public Integer getPosition() { return position; } public LotteryImageDto setPosition(Integer value) { this.position = value; return this; } } public static enum TimeRelativeLotteryState { Draft, PublishedUpcoming, PublishedActive, PublishedEndedDrawWinner, PublishedEndedContactWinner, Archived; } public static class UserAddress { public String streetName = null; public String streetNumber = null; public String postalCode = null; public String region = null; public String countryCode = null; public String getStreetName() { return streetName; } public UserAddress setStreetName(String value) { this.streetName = value; return this; } public String getStreetNumber() { return streetNumber; } public UserAddress setStreetNumber(String value) { this.streetNumber = value; return this; } public String getPostalCode() { return postalCode; } public UserAddress setPostalCode(String value) { this.postalCode = value; return this; } public String getRegion() { return region; } public UserAddress setRegion(String value) { this.region = value; return this; } public String getCountryCode() { return countryCode; } public UserAddress setCountryCode(String value) { this.countryCode = value; return this; } } public static class ImageUrls { public String preview = null; public String small = null; public String medium = null; public String large = null; public String getPreview() { return preview; } public ImageUrls setPreview(String value) { this.preview = value; return this; } public String getSmall() { return small; } public ImageUrls setSmall(String value) { this.small = value; return this; } public String getMedium() { return medium; } public ImageUrls setMedium(String value) { this.medium = value; return this; } public String getLarge() { return large; } public ImageUrls setLarge(String value) { this.large = value; return this; } } }