2020-01-04 21:31:52 +02:00
|
|
|
import 'package:hive/hive.dart';
|
|
|
|
|
|
|
|
part 'transaction_description.g.dart';
|
|
|
|
|
2020-05-26 18:27:10 +03:00
|
|
|
@HiveType(typeId: 2)
|
2020-01-04 21:31:52 +02:00
|
|
|
class TransactionDescription extends HiveObject {
|
2020-12-22 20:42:30 +02:00
|
|
|
TransactionDescription({this.id, this.recipientAddress, this.transactionNote});
|
2020-01-08 14:26:34 +02:00
|
|
|
|
2020-01-04 21:31:52 +02:00
|
|
|
static const boxName = 'TransactionDescriptions';
|
2020-09-21 14:50:26 +03:00
|
|
|
static const boxKey = 'transactionDescriptionsBoxKey';
|
2020-01-04 21:31:52 +02:00
|
|
|
|
|
|
|
@HiveField(0)
|
|
|
|
String id;
|
|
|
|
|
|
|
|
@HiveField(1)
|
|
|
|
String recipientAddress;
|
2020-12-22 20:42:30 +02:00
|
|
|
|
|
|
|
@HiveField(2)
|
|
|
|
String transactionNote;
|
|
|
|
|
|
|
|
String get note => transactionNote ?? '';
|
2020-01-08 14:26:34 +02:00
|
|
|
}
|