Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // Source code recreated from a .class file by IntelliJ IDEA
- // (powered by Fernflower decompiler)
- //
- package com.panbet.api.bonus.to.impl;
- import com.panbet.api.bonus.to.CasinoBetPlaceRequest;
- import com.panbet.common.betting.Money;
- import java.io.Serializable;
- import java.util.Objects;
- public class CasinoBetPlaceRequestImpl implements CasinoBetPlaceRequest, Serializable {
- private static final long serialVersionUID = 0L;
- private final Integer punterId;
- private final Integer roundId;
- private final Long transactionId;
- private final Money amount;
- private final Money usedBonus;
- private final Integer currencyId;
- private final Integer gameRefId;
- private final String provider;
- public CasinoBetPlaceRequestImpl(CasinoBetPlaceRequest src) {
- Objects.requireNonNull(src, "Source object should not be null");
- this.punterId = (Integer)Objects.requireNonNull(src.getPunterId(), "Punter id should not be null");
- this.roundId = (Integer)Objects.requireNonNull(src.getRoundId(), "Round id should not be null");
- this.transactionId = (Long)Objects.requireNonNull(src.getTransactionId(), "Transaction id should not be null");
- this.amount = (Money)Objects.requireNonNull(src.getAmount(), "Amount should not be null");
- this.usedBonus = (Money)Objects.requireNonNull(src.getUsedBonus(), "Used bonus should not be null");
- this.currencyId = (Integer)Objects.requireNonNull(src.getCurrencyId(), "Currency id should not be null");
- this.gameRefId = (Integer)Objects.requireNonNull(src.getGameRefId(), "Game ref id should not be null");
- this.provider = (String)Objects.requireNonNull(src.getProvider(), "Provider should not be null");
- }
- public Integer getPunterId() {
- return this.punterId;
- }
- public Integer getRoundId() {
- return this.roundId;
- }
- public Long getTransactionId() {
- return this.transactionId;
- }
- public Money getAmount() {
- return this.amount;
- }
- public Money getUsedBonus() {
- return this.usedBonus;
- }
- public Integer getCurrencyId() {
- return this.currencyId;
- }
- public Integer getGameRefId() {
- return this.gameRefId;
- }
- public String getProvider() {
- return this.provider;
- }
- public String toString() {
- StringBuilder sb = new StringBuilder(this.getClass().getSimpleName());
- sb.append(": punterId=").append(this.punterId);
- sb.append(", roundId=").append(this.roundId);
- sb.append(", transactionId=").append(this.transactionId);
- sb.append(", amount=").append(this.amount);
- sb.append(", usedBonus=").append(this.usedBonus);
- sb.append(", currencyId=").append(this.currencyId);
- sb.append(", gameRefId=").append(this.gameRefId);
- sb.append(", provider=").append(this.provider);
- return sb.toString();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement