Package-level declarations

Types

Link copied to clipboard
data class CampaignDrawInfo(val drawDate: Date, val bundles: List<Int>, val drawResult: CampaignDrawResult?, val totalTickets: Int)

The campaign draw info contains the draw date, the list of bundle numbers and the campaignDrawResult. The campaignDrawResult is only available when the drawing was completed.

Link copied to clipboard
data class CampaignDrawResult(val totalWinAmount: Double, val totalPlayerWinAmount: Double, val prizes: List<Prize>)

The campaign draw result contains the totalWinAmount, totalPlayerWinAmount and the list of prizes. TotalWinAmount, totalPlayerWinAmount and prizes will indicate if there is any prizes won on this campaign.

Link copied to clipboard
data class CampaignGame(val campaignNo: Int, val campaignName: String, val drawInfo: List<CampaignDrawInfo>)

CampaignGame contains the drawDate and name of the campaign, the prize is available if campaign has been won on this coupon.

Link copied to clipboard
data class Coupon(val couponId: String, val playType: PlayType, val transactionDate: Date, val price: Double, val state: CouponState, val canRebuy: Boolean, val rebuyCostPrice: Double, val primaryGame: Game, val secondaryGames: List<Game>, val campaignGames: List<CampaignGame>, val systemPlayInfo: SystemPlayInfo?, val groupPlayInfo: GroupPlayInfo?, val rebuyInfo: RebuyInfo?)

The Coupon contains all information of a number games Coupon like Lotto, keno, etc.

Link copied to clipboard
Link copied to clipboard
data class DrawInfo(val drawNo: Int, val drawDate: Date, val drawInProgress: Boolean, val bundle: Int, val drawResult: DrawResult?)

The DrawInfo contains all information of a drawing. Number, date, status, bundle and drawResult. DrawResult is only available if the result of the drawing is known else it will be null.

Link copied to clipboard
data class DrawResult(val drawNumbers: List<Int>, val drawExtraNumbers: List<Int>, val totalWinAmount: Double, val totalPlayerWinAmount: Double, val prizes: List<Prize>)

The draw result contains a list of drawNumbers, a list of drawExtraNumbers, the totalWinAmount and the list of prizes. The winning numbers, can be checked against the row numbers. TotalWinAmount, totalPlayerWinAmount and prizes will indicate if there are any prizes won on this coupon

Link copied to clipboard
Link copied to clipboard
data class FavoriteCoupon(val favoriteId: String, val favoriteName: String, val creationDate: Date, val expirationDate: Date, val linkedCoupons: List<String>, val couponDetails: Coupon?)
Link copied to clipboard
data class Game(val gameType: GameType, val rows: List<Row>, val drawInfo: List<DrawInfo>)

The Game itself contains its type, list of Rows and list of DrawInfos. The drawInfo list contains more than one if the coupon is a multi week coupon.

Link copied to clipboard
Link copied to clipboard
data class GroupPlayInfo(val groupId: Long, val playerRowCount: Int, val playerSharePercentage: Double)
Link copied to clipboard
data class GroupPlayListItem(val groupId: Long, val groupPlayId: Long, val couponId: String?, val fundingId: Long, val fundingDate: Date, val gameType: GameType, val numberOfDraws: Int, val depositType: GroupPlayListItemDepositType, val fixedRowCountPerDraw: Int, val fundingEndTime: Date, val state: GroupPlayListItemState, val totalStakeAmountPerDraw: Double, val totalPrizeAmount: Double, val totalRowCountPerDraw: Int, val playerSharePercentage: Double, val playerStakeAmountPerDraw: Double, val playerPrizeAmount: Double, val playerRowCountPerDraw: Int, val drawInfo: List<GroupPlayListItemDrawInfo>, val subscriptionGroupGameId: String, val subscriptionId: String)
Link copied to clipboard
data class GroupPlayListItemDrawInfo(val drawDate: Date, val drawNo: Int, val finalized: Boolean)
Link copied to clipboard
Link copied to clipboard
data class Prize(val amount: Double, val playerAmount: Double, val name: String, val state: PrizeState, val type: PrizeType, val count: Int, val bundle: Int)

Prize is a prize won, and it contains the amount, playerAmount, name, count, state, this indicates if the prize is available, expired or paid out, type, this indicates if the prize is in Cash or a physical form of Merchandise, bundle, this indicates what bundle the prize is associated with, (The prize bundle will only be important for campaignGame draws with multiple bundles)

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class RebuyInfo(val rebuyCostPrice: Double, val draws: List<DrawType>, val validUntil: Date)
Link copied to clipboard
data class Row(val numbers: List<Int>, val extraNumbers: List<Int>)

The row contains a list of numbers and a list of extraNumbers

Link copied to clipboard
data class Rules(lottoPrizesStart: Int, vikingLottoPrizesStart: Int, euroJackpotPrizesStart: Int, jokerPrizesStart: Int, kenoRule: Rules.KenoPrizeRule, allOrNothingRule: Rules.AllOrNothingPrizeRule, retailPayoutLimit: Double)
Link copied to clipboard
data class SystemPlayInfo(val systemName: String, val systemLevel: Int?, val systemRows: Int, val systemNumbers: List<Int>, val systemExtraNumbers: List<Int>)
Link copied to clipboard
data class TemporaryGroupCoupon(val fundingId: Long, val groupId: Long, val groupPlayId: Long, val gameType: GameType, val fundingDate: Date, val rowCount: Int, val fundingSharePercentage: Double, val totalShareAmount: Double, val totalShareAmountPerDraw: Double, val drawInfo: List<TemporaryGroupCouponDrawInfo>, val campaignGames: List<TemporaryGroupCouponCampaignGame>)
Link copied to clipboard
data class TemporaryGroupCouponCampaignGame(val campaignNo: Int, val campaignName: String, val bundles: List<Int>)

TemporaryGroupCouponCampaignGame contains the name, number and bundles of the campaign.

Link copied to clipboard
data class TemporaryGroupCouponDrawInfo(val drawNo: Int, val drawDate: Date, val bundle: Int)