cake_wallet/lib/src/domain/common/wallet_info.dart

28 lines
482 B
Dart
Raw Normal View History

2020-01-04 19:31:52 +00:00
import 'package:cake_wallet/src/domain/common/wallet_type.dart';
import 'package:hive/hive.dart';
part 'wallet_info.g.dart';
@HiveType()
class WalletInfo extends HiveObject {
2020-01-08 12:26:34 +00:00
WalletInfo(
{this.id, this.name, this.type, this.isRecovery, this.restoreHeight});
2020-01-04 19:31:52 +00:00
static const boxName = 'WalletInfo';
2020-01-08 12:26:34 +00:00
2020-01-04 19:31:52 +00:00
@HiveField(0)
String id;
@HiveField(1)
String name;
@HiveField(2)
WalletType type;
@HiveField(3)
bool isRecovery;
@HiveField(4)
int restoreHeight;
}