From 9a3414aaa79469cfd9073abefd1885eefcfef1a0 Mon Sep 17 00:00:00 2001 From: Istvan Szabo Date: Tue, 25 May 2021 23:55:12 +0100 Subject: [PATCH] Added new DTO to store the data --- .../qortal/crosschain/SimpleTransaction.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/main/java/org/qortal/crosschain/SimpleTransaction.java diff --git a/src/main/java/org/qortal/crosschain/SimpleTransaction.java b/src/main/java/org/qortal/crosschain/SimpleTransaction.java new file mode 100644 index 00000000..0fae20a5 --- /dev/null +++ b/src/main/java/org/qortal/crosschain/SimpleTransaction.java @@ -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; + } +} \ No newline at end of file