2020-05-14 17:29:10 +00:00
|
|
|
import 'package:hive/hive.dart';
|
|
|
|
|
|
|
|
part 'exchange_template.g.dart';
|
|
|
|
|
2021-01-15 17:41:30 +00:00
|
|
|
@HiveType(typeId: ExchangeTemplate.typeId)
|
2020-05-14 17:29:10 +00:00
|
|
|
class ExchangeTemplate extends HiveObject {
|
|
|
|
ExchangeTemplate({
|
|
|
|
this.amount,
|
|
|
|
this.depositCurrency,
|
|
|
|
this.receiveCurrency,
|
|
|
|
this.provider,
|
|
|
|
this.depositAddress,
|
|
|
|
this.receiveAddress
|
|
|
|
});
|
|
|
|
|
2021-01-15 17:41:30 +00:00
|
|
|
static const typeId = 7;
|
2020-05-14 17:29:10 +00:00
|
|
|
static const boxName = 'ExchangeTemplate';
|
|
|
|
|
|
|
|
@HiveField(0)
|
|
|
|
String amount;
|
|
|
|
|
|
|
|
@HiveField(1)
|
|
|
|
String depositCurrency;
|
|
|
|
|
|
|
|
@HiveField(2)
|
|
|
|
String receiveCurrency;
|
|
|
|
|
|
|
|
@HiveField(3)
|
|
|
|
String provider;
|
|
|
|
|
|
|
|
@HiveField(4)
|
|
|
|
String depositAddress;
|
|
|
|
|
|
|
|
@HiveField(5)
|
|
|
|
String receiveAddress;
|
|
|
|
}
|