Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 2.68 KB | None | 0 0
  1. package scratch;
  2.  
  3. import java.util.*;
  4. import com.google.gson.annotations.*;
  5.  
  6. public class Json {
  7.    
  8.     @SerializedName("blocks")
  9.     @Expose
  10.     private List<block> blocks = new ArrayList<>();
  11.     @SerializedName("active_workers")
  12.     @Expose
  13.     private Integer activeWorkers;
  14.     @SerializedName("round_started")
  15.     @Expose
  16.     private String roundStarted;
  17.     @SerializedName("luck_30")
  18.     @Expose
  19.     private String luck30;
  20.     @SerializedName("shares_cdf")
  21.     @Expose
  22.     private String sharesCdf;
  23.     @SerializedName("luck_b50")
  24.     @Expose
  25.     private String luckB50;
  26.     @SerializedName("luck_b10")
  27.     @Expose
  28.     private String luckB10;
  29.     @SerializedName("active_stratum")
  30.     @Expose
  31.     private Integer activeStratum;
  32.     @SerializedName("ghashes_ps")
  33.     @Expose
  34.     private String ghashesPs;
  35.     @SerializedName("shares")
  36.     @Expose
  37.     private Integer shares;
  38.     @SerializedName("round_duration")
  39.     @Expose
  40.     private String roundDuration;
  41.     @SerializedName("score")
  42.     @Expose
  43.     private String score;
  44.     @SerializedName("luck_b250")
  45.     @Expose
  46.     private String luckB250;
  47.     @SerializedName("luck_7")
  48.     @Expose
  49.     private String luck7;
  50.     @SerializedName("luck_1")
  51.     @Expose
  52.     private String luck1;
  53.    
  54.     public void currentRound(String blocks, Integer activeWorkers, String roundStarted, String luck30,
  55.             String sharesCdf, String luckB50, String luckB10, Integer activeStratum, String ghashesPs,
  56.             Integer shares, String roundDuration, String score, String luckB250, String luck7, String luck1) {
  57.     this.blocks = blocks;
  58.     this.activeWorkers = activeWorkers;
  59.     this.roundStarted = roundStarted;
  60.     this.luck30 = luck30;
  61.     this.sharesCdf = sharesCdf;
  62.     this.luckB50 = luckB50;
  63.     this.luckB10 = luckB10;
  64.     this.activeStratum = activeStratum;
  65.     this.ghashesPs = ghashesPs;
  66.     this.shares = shares;
  67.     this.roundDuration = roundDuration;
  68.     this.score = score;
  69.     this.luckB250 = luckB250;
  70.     this.luck7 = luck7;
  71.     this.luck1 = luck1;
  72.    
  73.     }
  74.  
  75.    
  76.     public Integer getActiveWorkers() {
  77.     return activeWorkers;
  78.     }
  79.        
  80.     public String getRoundStarted() {
  81.     return roundStarted;
  82.     }
  83.        
  84.     public String getLuck30() {
  85.     return luck30;
  86.     }
  87.        
  88.     public String getSharesCdf() {
  89.     return sharesCdf;
  90.     }
  91.    
  92.     public String getLuckB50() {
  93.     return luckB50;
  94.     }
  95.    
  96.     public String getLuckB10() {
  97.     return luckB10;
  98.     }
  99.        
  100.     public Integer getActiveStratum() {
  101.     return activeStratum;
  102.     }
  103.    
  104.    
  105.     public String getGhashesPs() {
  106.     return ghashesPs;
  107.     }
  108.        
  109.     public Integer getShares() {
  110.     return shares;
  111.     }
  112.        
  113.     public String getRoundDuration() {
  114.     return roundDuration;
  115.     }
  116.    
  117.     public String getScore() {
  118.     return score;
  119.     }
  120.        
  121.     public String getLuckB250() {
  122.     return luckB250;
  123.     }
  124.    
  125.     public String getLuck7() {
  126.     return luck7;
  127.     }
  128.        
  129.     public String getLuck1() {
  130.     return luck1;
  131.     }
  132.    
  133. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement