Repository navigation
Expand file tree
/
Copy pathTransfer.java
More file actions
97 lines (76 loc) · 1.94 KB
/
Copy pathTransfer.java
File metadata and controls
97 lines (76 loc) · 1.94 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
package jota.model;
import com.google.gson.Gson;
/**
* Created by pinpong on 02.12.16.
*/
public class Transfer {
private String timestamp;
private String address;
private String hash;
private Boolean persistence;
private long value;
private String message;
private String tag;
public Transfer(String timestamp, String address, String hash, Boolean persistence, long value, String message,
String tag) {
this.timestamp = timestamp;
this.address = address;
this.hash = hash;
this.persistence = persistence;
this.value = value;
this.message = message;
this.tag = tag;
}
public Transfer(String address, long value, String message, String tag) {
this.address = address;
this.value = value;
this.message = message;
this.tag = tag;
}
@Override
public String toString() {
return new Gson().toJson(this);
}
public String getAddress() {
return address;
}
public String getHash() {
return hash;
}
public Boolean getPersistence() {
return persistence;
}
public String getTimestamp() {
return timestamp;
}
public long getValue() {
return value;
}
public String getMessage() {
return message;
}
public String getTag() {
return tag;
}
public void setTimestamp(String timestamp) {
this.timestamp = timestamp;
}
public void setAddress(String address) {
this.address = address;
}
public void setHash(String hash) {
this.hash = hash;
}
public void setPersistence(Boolean persistence) {
this.persistence = persistence;
}
public void setValue(long value) {
this.value = value;
}
public void setMessage(String message) {
this.message = message;
}
public void setTag(String tag) {
this.tag = tag;
}
}