mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-12-01 12:04:21 +01:00
Merged 4.0.9
This commit is contained in:
@@ -14,7 +14,8 @@ class Node extends HiveObject with Keyable {
|
||||
{@required this.uri,
|
||||
@required WalletType type,
|
||||
this.login,
|
||||
this.password}) {
|
||||
this.password,
|
||||
this.useSSL}) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@@ -22,7 +23,8 @@ class Node extends HiveObject with Keyable {
|
||||
: uri = map['uri'] as String ?? '',
|
||||
login = map['login'] as String,
|
||||
password = map['password'] as String,
|
||||
typeRaw = map['typeRaw'] as int;
|
||||
typeRaw = map['typeRaw'] as int,
|
||||
useSSL = map['useSSL'] as bool;
|
||||
|
||||
static const boxName = 'Nodes';
|
||||
|
||||
@@ -38,6 +40,11 @@ class Node extends HiveObject with Keyable {
|
||||
@HiveField(3)
|
||||
int typeRaw;
|
||||
|
||||
@HiveField(4)
|
||||
bool useSSL;
|
||||
|
||||
bool get isSSL => useSSL ?? false;
|
||||
|
||||
@override
|
||||
dynamic get keyIndex {
|
||||
_keyIndex ??= key;
|
||||
|
||||
Reference in New Issue
Block a user