-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Took 10 minutes
- Loading branch information
kkyovsky
committed
Jan 26, 2020
1 parent
e9039e4
commit e7fcc0a
Showing
3 changed files
with
104 additions
and
0 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
58 changes: 58 additions & 0 deletions
58
bitrafael-common/src/main/java/com/generalbytes/bitrafael/api/dto/TxFees.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,58 @@ | ||
/************************************************************************************* | ||
* Copyright (C) 2016 GENERAL BYTES s.r.o. All rights reserved. | ||
* | ||
* This software may be distributed and modified under the terms of the GNU | ||
* General Public License version 2 (GPL2) as published by the Free Software | ||
* Foundation and appearing in the file GPL2.TXT included in the packaging of | ||
* this file. Please note that GPL2 Section 2[b] requires that all works based | ||
* on this software must also be made publicly available under the terms of | ||
* the GPL2 ("Copyleft"). | ||
* | ||
* Contact information | ||
* ------------------- | ||
* | ||
* GENERAL BYTES s.r.o. | ||
* Web : http://www.generalbytes.com | ||
* | ||
************************************************************************************/ | ||
|
||
package com.generalbytes.bitrafael.api.dto; | ||
|
||
import java.util.Map; | ||
|
||
public class TxFees { | ||
private long totalFee; | ||
private Map<String,Long> transactionFees; | ||
|
||
public TxFees() { | ||
} | ||
|
||
public TxFees(long totalFee, Map<String, Long> transactionFees) { | ||
this.totalFee = totalFee; | ||
this.transactionFees = transactionFees; | ||
} | ||
|
||
public long getTotalFee() { | ||
return totalFee; | ||
} | ||
|
||
public void setTotalFee(long totalFee) { | ||
this.totalFee = totalFee; | ||
} | ||
|
||
public Map<String, Long> getTransactionFees() { | ||
return transactionFees; | ||
} | ||
|
||
public void setTransactionFees(Map<String, Long> transactionFees) { | ||
this.transactionFees = transactionFees; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "TxFees{" + | ||
"totalFee=" + totalFee + | ||
", transactionFees=" + transactionFees + | ||
'}'; | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
bitrafael-common/src/main/java/com/generalbytes/bitrafael/api/dto/rest/TxFeesResponse.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,41 @@ | ||
/************************************************************************************* | ||
* Copyright (C) 2016 GENERAL BYTES s.r.o. All rights reserved. | ||
* | ||
* This software may be distributed and modified under the terms of the GNU | ||
* General Public License version 2 (GPL2) as published by the Free Software | ||
* Foundation and appearing in the file GPL2.TXT included in the packaging of | ||
* this file. Please note that GPL2 Section 2[b] requires that all works based | ||
* on this software must also be made publicly available under the terms of | ||
* the GPL2 ("Copyleft"). | ||
* | ||
* Contact information | ||
* ------------------- | ||
* | ||
* GENERAL BYTES s.r.o. | ||
* Web : http://www.generalbytes.com | ||
* | ||
************************************************************************************/ | ||
package com.generalbytes.bitrafael.api.dto.rest; | ||
|
||
import com.generalbytes.bitrafael.api.dto.TxFees; | ||
|
||
public class TxFeesResponse extends APIResponse{ | ||
public TxFeesResponse() { | ||
} | ||
|
||
public TxFeesResponse(Object data) { | ||
super(true, data); | ||
} | ||
|
||
public TxFeesResponse(String message) { | ||
super(false, message); | ||
} | ||
|
||
public TxFees getData() { | ||
return (TxFees) data; | ||
} | ||
|
||
public void setData(TxFees data) { | ||
super.data = data; | ||
} | ||
} |