2020-05-08 16:22:56 +00:00
|
|
|
import 'package:hive/hive.dart';
|
|
|
|
|
|
|
|
part 'template.g.dart';
|
|
|
|
|
2021-01-15 17:41:30 +00:00
|
|
|
@HiveType(typeId: Template.typeId)
|
2020-05-08 16:22:56 +00:00
|
|
|
class Template extends HiveObject {
|
2022-05-03 10:44:13 +00:00
|
|
|
Template({this.name,this.isCurrencySelected, this.address, this.cryptoCurrency, this.amount, this.fiatCurrency, this.amountFiat});
|
2020-05-08 16:22:56 +00:00
|
|
|
|
2021-01-15 17:41:30 +00:00
|
|
|
static const typeId = 6;
|
2020-05-08 16:22:56 +00:00
|
|
|
static const boxName = 'Template';
|
|
|
|
|
|
|
|
@HiveField(0)
|
|
|
|
String name;
|
|
|
|
|
|
|
|
@HiveField(1)
|
|
|
|
String address;
|
|
|
|
|
|
|
|
@HiveField(2)
|
|
|
|
String cryptoCurrency;
|
|
|
|
|
|
|
|
@HiveField(3)
|
|
|
|
String amount;
|
2022-05-03 10:44:13 +00:00
|
|
|
|
|
|
|
@HiveField(4)
|
|
|
|
String fiatCurrency;
|
|
|
|
|
|
|
|
@HiveField(5)
|
|
|
|
bool isCurrencySelected;
|
|
|
|
|
|
|
|
@HiveField(6)
|
|
|
|
String amountFiat;
|
|
|
|
}
|
|
|
|
|