mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
40 lines
689 B
Dart
40 lines
689 B
Dart
import 'package:hive/hive.dart';
|
|
|
|
part 'template.g.dart';
|
|
|
|
@HiveType(typeId: Template.typeId)
|
|
class Template extends HiveObject {
|
|
Template({
|
|
required this.name,
|
|
required this.isCurrencySelected,
|
|
required this.address,
|
|
required this.cryptoCurrency,
|
|
required this.amount,
|
|
required this.fiatCurrency,
|
|
required this.amountFiat});
|
|
|
|
static const typeId = 6;
|
|
static const boxName = 'Template';
|
|
|
|
@HiveField(0)
|
|
String name;
|
|
|
|
@HiveField(1)
|
|
String address;
|
|
|
|
@HiveField(2)
|
|
String cryptoCurrency;
|
|
|
|
@HiveField(3)
|
|
String amount;
|
|
|
|
@HiveField(4)
|
|
String fiatCurrency;
|
|
|
|
@HiveField(5)
|
|
bool isCurrencySelected;
|
|
|
|
@HiveField(6)
|
|
String amountFiat;
|
|
}
|
|
|