mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
update buy response
Exchange -> Buy
This commit is contained in:
parent
ac2775dc42
commit
9d6ec18057
1 changed files with 7 additions and 7 deletions
|
@ -1,9 +1,9 @@
|
||||||
enum ExchangeExceptionType { generic, serializeResponseError }
|
enum BuyExceptionType { generic, serializeResponseError }
|
||||||
|
|
||||||
class ExchangeException implements Exception {
|
class BuyException implements Exception {
|
||||||
String errorMessage;
|
String errorMessage;
|
||||||
ExchangeExceptionType type;
|
BuyExceptionType type;
|
||||||
ExchangeException(this.errorMessage, this.type);
|
BuyException(this.errorMessage, this.type);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
|
@ -11,11 +11,11 @@ class ExchangeException implements Exception {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class ExchangeResponse<T> {
|
class BuyResponse<T> {
|
||||||
late final T? value;
|
late final T? value;
|
||||||
late final ExchangeException? exception;
|
late final BuyException? exception;
|
||||||
|
|
||||||
ExchangeResponse({this.value, this.exception});
|
BuyResponse({this.value, this.exception});
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
|
|
Loading…
Reference in a new issue