Advertisement
Guest User

2

a guest
Jul 26th, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.94 KB | None | 0 0
  1. //
  2. // Source code recreated from a .class file by IntelliJ IDEA
  3. // (powered by Fernflower decompiler)
  4. //
  5.  
  6. package com.panbet.api.bonus.to.impl;
  7.  
  8. import com.panbet.api.bonus.to.CasinoBetPlaceRequest;
  9. import com.panbet.common.betting.Money;
  10. import java.io.Serializable;
  11. import java.util.Objects;
  12.  
  13. public class CasinoBetPlaceRequestImpl implements CasinoBetPlaceRequest, Serializable {
  14.     private static final long serialVersionUID = 0L;
  15.     private final Integer punterId;
  16.     private final Integer roundId;
  17.     private final Long transactionId;
  18.     private final Money amount;
  19.     private final Money usedBonus;
  20.     private final Integer currencyId;
  21.     private final Integer gameRefId;
  22.     private final String provider;
  23.  
  24.     public CasinoBetPlaceRequestImpl(CasinoBetPlaceRequest src) {
  25.         Objects.requireNonNull(src, "Source object should not be null");
  26.         this.punterId = (Integer)Objects.requireNonNull(src.getPunterId(), "Punter id should not be null");
  27.         this.roundId = (Integer)Objects.requireNonNull(src.getRoundId(), "Round id should not be null");
  28.         this.transactionId = (Long)Objects.requireNonNull(src.getTransactionId(), "Transaction id should not be null");
  29.         this.amount = (Money)Objects.requireNonNull(src.getAmount(), "Amount should not be null");
  30.         this.usedBonus = (Money)Objects.requireNonNull(src.getUsedBonus(), "Used bonus should not be null");
  31.         this.currencyId = (Integer)Objects.requireNonNull(src.getCurrencyId(), "Currency id should not be null");
  32.         this.gameRefId = (Integer)Objects.requireNonNull(src.getGameRefId(), "Game ref id should not be null");
  33.         this.provider = (String)Objects.requireNonNull(src.getProvider(), "Provider should not be null");
  34.     }
  35.  
  36.     public Integer getPunterId() {
  37.         return this.punterId;
  38.     }
  39.  
  40.     public Integer getRoundId() {
  41.         return this.roundId;
  42.     }
  43.  
  44.     public Long getTransactionId() {
  45.         return this.transactionId;
  46.     }
  47.  
  48.     public Money getAmount() {
  49.         return this.amount;
  50.     }
  51.  
  52.     public Money getUsedBonus() {
  53.         return this.usedBonus;
  54.     }
  55.  
  56.     public Integer getCurrencyId() {
  57.         return this.currencyId;
  58.     }
  59.  
  60.     public Integer getGameRefId() {
  61.         return this.gameRefId;
  62.     }
  63.  
  64.     public String getProvider() {
  65.         return this.provider;
  66.     }
  67.  
  68.     public String toString() {
  69.         StringBuilder sb = new StringBuilder(this.getClass().getSimpleName());
  70.         sb.append(": punterId=").append(this.punterId);
  71.         sb.append(", roundId=").append(this.roundId);
  72.         sb.append(", transactionId=").append(this.transactionId);
  73.         sb.append(", amount=").append(this.amount);
  74.         sb.append(", usedBonus=").append(this.usedBonus);
  75.         sb.append(", currencyId=").append(this.currencyId);
  76.         sb.append(", gameRefId=").append(this.gameRefId);
  77.         sb.append(", provider=").append(this.provider);
  78.         return sb.toString();
  79.     }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement