forked from Qortal/qortal
Added new DTO to store the data
This commit is contained in:
parent
c8897ecf9b
commit
9a3414aaa7
32
src/main/java/org/qortal/crosschain/SimpleTransaction.java
Normal file
32
src/main/java/org/qortal/crosschain/SimpleTransaction.java
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
package org.qortal.crosschain;
|
||||||
|
|
||||||
|
import javax.xml.bind.annotation.XmlAccessType;
|
||||||
|
import javax.xml.bind.annotation.XmlAccessorType;
|
||||||
|
|
||||||
|
@XmlAccessorType(XmlAccessType.FIELD)
|
||||||
|
public class SimpleTransaction {
|
||||||
|
private String txHash;
|
||||||
|
private Integer timestamp;
|
||||||
|
private long totalAmount;
|
||||||
|
|
||||||
|
public SimpleTransaction() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public SimpleTransaction(String txHash, Integer timestamp, long totalAmount) {
|
||||||
|
this.txHash = txHash;
|
||||||
|
this.timestamp = timestamp;
|
||||||
|
this.totalAmount = totalAmount;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTxHash() {
|
||||||
|
return txHash;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Integer getTimestamp() {
|
||||||
|
return timestamp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public long getTotalAmount() {
|
||||||
|
return totalAmount;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user