public class Transfer extends Object
Constructor and Description |
---|
Transfer(String address,
long value)
Initializes a new instance of the Transfer class.
|
Transfer(String address,
long value,
String message,
String tag)
Initializes a new instance of the Transfer class.
|
Transfer(String timestamp,
String address,
String hash,
Boolean persistence,
long value,
String message,
String tag)
Initializes a new instance of the Transfer class.
|
Modifier and Type | Method and Description |
---|---|
String |
getAddress()
Get the address.
|
String |
getHash()
Get the hash.
|
String |
getMessage()
Get the message.
|
Boolean |
getPersistence()
Get the persistence.
|
String |
getTag()
Get the tag.
|
String |
getTimestamp()
Get the timestamp.
|
long |
getValue()
Get the value.
|
void |
setAddress(String address)
Set the address.
|
void |
setHash(String hash)
Set the hash.
|
void |
setMessage(String message)
Set the message.
|
void |
setPersistence(Boolean persistence)
Set the persistence.
|
void |
setTag(String tag)
Set the tag.
|
void |
setTimestamp(String timestamp)
Set the timestamp.
|
void |
setValue(long value)
Set the value.
|
String |
toString()
Returns a Json Object that represents this object.
|
public Transfer(String timestamp, String address, String hash, Boolean persistence, long value, String message, String tag)
timestamp
- address
- hash
- persistence
- value
- message
- tag
- public Transfer(String address, long value)
address
- value
- public String toString()
public String getAddress()
public void setAddress(String address)
address
- The address.public String getHash()
public void setHash(String hash)
hash
- The hash.public Boolean getPersistence()
public void setPersistence(Boolean persistence)
persistence
- The persistence.public String getTimestamp()
public void setTimestamp(String timestamp)
timestamp
- The timestamp in seconds.public long getValue()
public void setValue(long value)
value
- The value.public String getMessage()
public void setMessage(String message)
message
- The message trytes encoded.public String getTag()
public void setTag(String tag)
tag
- The tag max 27 trytes encoded.Copyright © 2018. All rights reserved.