-
Notifications
You must be signed in to change notification settings - Fork 3
/
LatestBlock.java
37 lines (30 loc) · 1.09 KB
/
LatestBlock.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package io.quicktype;
import java.util.Map;
import com.fasterxml.jackson.annotation.*;
public class LatestBlock {
private String hash;
private long time;
private long blockIndex;
private long height;
private long[] txIndexes;
@JsonProperty("hash")
public String getHash() { return hash; }
@JsonProperty("hash")
public void setHash(String value) { this.hash = value; }
@JsonProperty("time")
public long getTime() { return time; }
@JsonProperty("time")
public void setTime(long value) { this.time = value; }
@JsonProperty("block_index")
public long getBlockIndex() { return blockIndex; }
@JsonProperty("block_index")
public void setBlockIndex(long value) { this.blockIndex = value; }
@JsonProperty("height")
public long getHeight() { return height; }
@JsonProperty("height")
public void setHeight(long value) { this.height = value; }
@JsonProperty("txIndexes")
public long[] getTxIndexes() { return txIndexes; }
@JsonProperty("txIndexes")
public void setTxIndexes(long[] value) { this.txIndexes = value; }
}