mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +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;
|
||||
ExchangeExceptionType type;
|
||||
ExchangeException(this.errorMessage, this.type);
|
||||
BuyExceptionType type;
|
||||
BuyException(this.errorMessage, this.type);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
|
@ -11,11 +11,11 @@ class ExchangeException implements Exception {
|
|||
}
|
||||
}
|
||||
|
||||
class ExchangeResponse<T> {
|
||||
class BuyResponse<T> {
|
||||
late final T? value;
|
||||
late final ExchangeException? exception;
|
||||
late final BuyException? exception;
|
||||
|
||||
ExchangeResponse({this.value, this.exception});
|
||||
BuyResponse({this.value, this.exception});
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
|
|
Loading…
Reference in a new issue