mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 12:09:43 +00:00
23 lines
556 B
Dart
23 lines
556 B
Dart
import 'package:hive/hive.dart';
|
|
|
|
part 'transaction_description.g.dart';
|
|
|
|
@HiveType(typeId: TransactionDescription.typeId)
|
|
class TransactionDescription extends HiveObject {
|
|
TransactionDescription({this.id, this.recipientAddress, this.transactionNote});
|
|
|
|
static const typeId = 2;
|
|
static const boxName = 'TransactionDescriptions';
|
|
static const boxKey = 'transactionDescriptionsBoxKey';
|
|
|
|
@HiveField(0)
|
|
String id;
|
|
|
|
@HiveField(1)
|
|
String recipientAddress;
|
|
|
|
@HiveField(2)
|
|
String transactionNote;
|
|
|
|
String get note => transactionNote ?? '';
|
|
}
|