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';
|
|
|
|
|
2020-05-26 15:27:10 +00:00
|
|
|
@HiveType(typeId: 4)
|
2020-01-04 19:31:52 +00:00
|
|
|
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;
|
|
|
|
}
|