forked from Sudakatux/api-v1-client-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vedran
committed
Sep 19, 2014
1 parent
653e020
commit 65b180a
Showing
9 changed files
with
468 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package info.blockchain.api.wallet; | ||
|
||
/** | ||
* Used in combination with the `Wallet` class | ||
* | ||
*/ | ||
public class Address | ||
{ | ||
private long balance; | ||
private String address; | ||
private String label; | ||
private long totalReceived; | ||
|
||
public Address(long balance, String address, String label, long totalReceived) | ||
{ | ||
this.balance = balance; | ||
this.address = address; | ||
this.label = label; | ||
this.totalReceived = totalReceived; | ||
} | ||
|
||
/** | ||
* @return Balance in satoshi | ||
*/ | ||
public long getBalance() | ||
{ | ||
return balance; | ||
} | ||
|
||
/** | ||
* @return String representation of the address | ||
*/ | ||
public String getAddress() | ||
{ | ||
return address; | ||
} | ||
|
||
/** | ||
* @return Label attached to the address | ||
*/ | ||
public String getLabel() | ||
{ | ||
return label; | ||
} | ||
|
||
/** | ||
* @return Total received amount in satoshi | ||
*/ | ||
public long getTotalReceived() | ||
{ | ||
return totalReceived; | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
src/main/java/info/blockchain/api/wallet/PaymentResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package info.blockchain.api.wallet; | ||
|
||
/** | ||
* Used in response to the `send` and `sendMany` methods in the `Wallet` class. | ||
* | ||
*/ | ||
public class PaymentResponse | ||
{ | ||
private String message; | ||
private String txHash; | ||
private String notice; | ||
|
||
public PaymentResponse(String message, String txHash, String notice) | ||
{ | ||
this.message = message; | ||
this.txHash = txHash; | ||
this.notice = notice; | ||
} | ||
|
||
/** | ||
* @return Response message from the server | ||
*/ | ||
public String getMessage() | ||
{ | ||
return message; | ||
} | ||
|
||
/** | ||
* @return Transaction hash | ||
*/ | ||
public String getTxHash() | ||
{ | ||
return txHash; | ||
} | ||
|
||
/** | ||
* @return Additional response message from the server | ||
*/ | ||
public String getNotice() | ||
{ | ||
return notice; | ||
} | ||
|
||
} |
Oops, something went wrong.