mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-18 10:11:03 +00:00
1900 lines
54 KiB
Dart
1900 lines
54 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'wallet_info.dart';
|
|
|
|
// **************************************************************************
|
|
// IsarCollectionGenerator
|
|
// **************************************************************************
|
|
|
|
// coverage:ignore-file
|
|
// ignore_for_file: duplicate_ignore, non_constant_identifier_names, constant_identifier_names, invalid_use_of_protected_member, unnecessary_cast, prefer_const_constructors, lines_longer_than_80_chars, require_trailing_commas, inference_failure_on_function_invocation, unnecessary_parenthesis, unnecessary_raw_strings, unnecessary_null_checks, join_return_with_assignment, prefer_final_locals, avoid_js_rounded_ints, avoid_positional_boolean_parameters
|
|
|
|
extension GetWalletInfoCollection on Isar {
|
|
IsarCollection<WalletInfo> get walletInfo => this.collection();
|
|
}
|
|
|
|
const WalletInfoSchema = CollectionSchema(
|
|
name: r'WalletInfo',
|
|
id: -2861501434900022153,
|
|
properties: {
|
|
r'cachedBalanceString': PropertySchema(
|
|
id: 0,
|
|
name: r'cachedBalanceString',
|
|
type: IsarType.string,
|
|
),
|
|
r'cachedChainHeight': PropertySchema(
|
|
id: 1,
|
|
name: r'cachedChainHeight',
|
|
type: IsarType.long,
|
|
),
|
|
r'coinName': PropertySchema(
|
|
id: 2,
|
|
name: r'coinName',
|
|
type: IsarType.string,
|
|
),
|
|
r'creationHeight': PropertySchema(
|
|
id: 3,
|
|
name: r'creationHeight',
|
|
type: IsarType.long,
|
|
),
|
|
r'favouriteOrderIndex': PropertySchema(
|
|
id: 4,
|
|
name: r'favouriteOrderIndex',
|
|
type: IsarType.long,
|
|
),
|
|
r'isFavourite': PropertySchema(
|
|
id: 5,
|
|
name: r'isFavourite',
|
|
type: IsarType.bool,
|
|
),
|
|
r'isMnemonicVerified': PropertySchema(
|
|
id: 6,
|
|
name: r'isMnemonicVerified',
|
|
type: IsarType.bool,
|
|
),
|
|
r'mainAddressType': PropertySchema(
|
|
id: 7,
|
|
name: r'mainAddressType',
|
|
type: IsarType.byte,
|
|
enumMap: _WalletInfomainAddressTypeEnumValueMap,
|
|
),
|
|
r'name': PropertySchema(
|
|
id: 8,
|
|
name: r'name',
|
|
type: IsarType.string,
|
|
),
|
|
r'restoreHeight': PropertySchema(
|
|
id: 9,
|
|
name: r'restoreHeight',
|
|
type: IsarType.long,
|
|
),
|
|
r'walletId': PropertySchema(
|
|
id: 10,
|
|
name: r'walletId',
|
|
type: IsarType.string,
|
|
),
|
|
r'walletType': PropertySchema(
|
|
id: 11,
|
|
name: r'walletType',
|
|
type: IsarType.byte,
|
|
enumMap: _WalletInfowalletTypeEnumValueMap,
|
|
)
|
|
},
|
|
estimateSize: _walletInfoEstimateSize,
|
|
serialize: _walletInfoSerialize,
|
|
deserialize: _walletInfoDeserialize,
|
|
deserializeProp: _walletInfoDeserializeProp,
|
|
idName: r'id',
|
|
indexes: {
|
|
r'walletId': IndexSchema(
|
|
id: -1783113319798776304,
|
|
name: r'walletId',
|
|
unique: true,
|
|
replace: false,
|
|
properties: [
|
|
IndexPropertySchema(
|
|
name: r'walletId',
|
|
type: IndexType.hash,
|
|
caseSensitive: true,
|
|
)
|
|
],
|
|
)
|
|
},
|
|
links: {},
|
|
embeddedSchemas: {},
|
|
getId: _walletInfoGetId,
|
|
getLinks: _walletInfoGetLinks,
|
|
attach: _walletInfoAttach,
|
|
version: '3.0.5',
|
|
);
|
|
|
|
int _walletInfoEstimateSize(
|
|
WalletInfo object,
|
|
List<int> offsets,
|
|
Map<Type, List<int>> allOffsets,
|
|
) {
|
|
var bytesCount = offsets.last;
|
|
{
|
|
final value = object.cachedBalanceString;
|
|
if (value != null) {
|
|
bytesCount += 3 + value.length * 3;
|
|
}
|
|
}
|
|
bytesCount += 3 + object.coinName.length * 3;
|
|
bytesCount += 3 + object.name.length * 3;
|
|
bytesCount += 3 + object.walletId.length * 3;
|
|
return bytesCount;
|
|
}
|
|
|
|
void _walletInfoSerialize(
|
|
WalletInfo object,
|
|
IsarWriter writer,
|
|
List<int> offsets,
|
|
Map<Type, List<int>> allOffsets,
|
|
) {
|
|
writer.writeString(offsets[0], object.cachedBalanceString);
|
|
writer.writeLong(offsets[1], object.cachedChainHeight);
|
|
writer.writeString(offsets[2], object.coinName);
|
|
writer.writeLong(offsets[3], object.creationHeight);
|
|
writer.writeLong(offsets[4], object.favouriteOrderIndex);
|
|
writer.writeBool(offsets[5], object.isFavourite);
|
|
writer.writeBool(offsets[6], object.isMnemonicVerified);
|
|
writer.writeByte(offsets[7], object.mainAddressType.index);
|
|
writer.writeString(offsets[8], object.name);
|
|
writer.writeLong(offsets[9], object.restoreHeight);
|
|
writer.writeString(offsets[10], object.walletId);
|
|
writer.writeByte(offsets[11], object.walletType.index);
|
|
}
|
|
|
|
WalletInfo _walletInfoDeserialize(
|
|
Id id,
|
|
IsarReader reader,
|
|
List<int> offsets,
|
|
Map<Type, List<int>> allOffsets,
|
|
) {
|
|
final object = WalletInfo(
|
|
cachedBalanceString: reader.readStringOrNull(offsets[0]),
|
|
cachedChainHeight: reader.readLongOrNull(offsets[1]) ?? 0,
|
|
coinName: reader.readString(offsets[2]),
|
|
creationHeight: reader.readLongOrNull(offsets[3]) ?? 0,
|
|
favouriteOrderIndex: reader.readLongOrNull(offsets[4]) ?? 0,
|
|
isFavourite: reader.readBoolOrNull(offsets[5]) ?? false,
|
|
isMnemonicVerified: reader.readBoolOrNull(offsets[6]) ?? false,
|
|
mainAddressType: _WalletInfomainAddressTypeValueEnumMap[
|
|
reader.readByteOrNull(offsets[7])] ??
|
|
AddressType.p2pkh,
|
|
name: reader.readString(offsets[8]),
|
|
restoreHeight: reader.readLongOrNull(offsets[9]) ?? 0,
|
|
walletId: reader.readString(offsets[10]),
|
|
walletType:
|
|
_WalletInfowalletTypeValueEnumMap[reader.readByteOrNull(offsets[11])] ??
|
|
WalletType.bip39,
|
|
);
|
|
object.id = id;
|
|
return object;
|
|
}
|
|
|
|
P _walletInfoDeserializeProp<P>(
|
|
IsarReader reader,
|
|
int propertyId,
|
|
int offset,
|
|
Map<Type, List<int>> allOffsets,
|
|
) {
|
|
switch (propertyId) {
|
|
case 0:
|
|
return (reader.readStringOrNull(offset)) as P;
|
|
case 1:
|
|
return (reader.readLongOrNull(offset) ?? 0) as P;
|
|
case 2:
|
|
return (reader.readString(offset)) as P;
|
|
case 3:
|
|
return (reader.readLongOrNull(offset) ?? 0) as P;
|
|
case 4:
|
|
return (reader.readLongOrNull(offset) ?? 0) as P;
|
|
case 5:
|
|
return (reader.readBoolOrNull(offset) ?? false) as P;
|
|
case 6:
|
|
return (reader.readBoolOrNull(offset) ?? false) as P;
|
|
case 7:
|
|
return (_WalletInfomainAddressTypeValueEnumMap[
|
|
reader.readByteOrNull(offset)] ??
|
|
AddressType.p2pkh) as P;
|
|
case 8:
|
|
return (reader.readString(offset)) as P;
|
|
case 9:
|
|
return (reader.readLongOrNull(offset) ?? 0) as P;
|
|
case 10:
|
|
return (reader.readString(offset)) as P;
|
|
case 11:
|
|
return (_WalletInfowalletTypeValueEnumMap[
|
|
reader.readByteOrNull(offset)] ??
|
|
WalletType.bip39) as P;
|
|
default:
|
|
throw IsarError('Unknown property with id $propertyId');
|
|
}
|
|
}
|
|
|
|
const _WalletInfomainAddressTypeEnumValueMap = {
|
|
'p2pkh': 0,
|
|
'p2sh': 1,
|
|
'p2wpkh': 2,
|
|
'cryptonote': 3,
|
|
'mimbleWimble': 4,
|
|
'unknown': 5,
|
|
'nonWallet': 6,
|
|
'ethereum': 7,
|
|
'nano': 8,
|
|
'banano': 9,
|
|
};
|
|
const _WalletInfomainAddressTypeValueEnumMap = {
|
|
0: AddressType.p2pkh,
|
|
1: AddressType.p2sh,
|
|
2: AddressType.p2wpkh,
|
|
3: AddressType.cryptonote,
|
|
4: AddressType.mimbleWimble,
|
|
5: AddressType.unknown,
|
|
6: AddressType.nonWallet,
|
|
7: AddressType.ethereum,
|
|
8: AddressType.nano,
|
|
9: AddressType.banano,
|
|
};
|
|
const _WalletInfowalletTypeEnumValueMap = {
|
|
'bip39': 0,
|
|
'cryptonote': 1,
|
|
'privateKeyBased': 2,
|
|
};
|
|
const _WalletInfowalletTypeValueEnumMap = {
|
|
0: WalletType.bip39,
|
|
1: WalletType.cryptonote,
|
|
2: WalletType.privateKeyBased,
|
|
};
|
|
|
|
Id _walletInfoGetId(WalletInfo object) {
|
|
return object.id;
|
|
}
|
|
|
|
List<IsarLinkBase<dynamic>> _walletInfoGetLinks(WalletInfo object) {
|
|
return [];
|
|
}
|
|
|
|
void _walletInfoAttach(IsarCollection<dynamic> col, Id id, WalletInfo object) {
|
|
object.id = id;
|
|
}
|
|
|
|
extension WalletInfoByIndex on IsarCollection<WalletInfo> {
|
|
Future<WalletInfo?> getByWalletId(String walletId) {
|
|
return getByIndex(r'walletId', [walletId]);
|
|
}
|
|
|
|
WalletInfo? getByWalletIdSync(String walletId) {
|
|
return getByIndexSync(r'walletId', [walletId]);
|
|
}
|
|
|
|
Future<bool> deleteByWalletId(String walletId) {
|
|
return deleteByIndex(r'walletId', [walletId]);
|
|
}
|
|
|
|
bool deleteByWalletIdSync(String walletId) {
|
|
return deleteByIndexSync(r'walletId', [walletId]);
|
|
}
|
|
|
|
Future<List<WalletInfo?>> getAllByWalletId(List<String> walletIdValues) {
|
|
final values = walletIdValues.map((e) => [e]).toList();
|
|
return getAllByIndex(r'walletId', values);
|
|
}
|
|
|
|
List<WalletInfo?> getAllByWalletIdSync(List<String> walletIdValues) {
|
|
final values = walletIdValues.map((e) => [e]).toList();
|
|
return getAllByIndexSync(r'walletId', values);
|
|
}
|
|
|
|
Future<int> deleteAllByWalletId(List<String> walletIdValues) {
|
|
final values = walletIdValues.map((e) => [e]).toList();
|
|
return deleteAllByIndex(r'walletId', values);
|
|
}
|
|
|
|
int deleteAllByWalletIdSync(List<String> walletIdValues) {
|
|
final values = walletIdValues.map((e) => [e]).toList();
|
|
return deleteAllByIndexSync(r'walletId', values);
|
|
}
|
|
|
|
Future<Id> putByWalletId(WalletInfo object) {
|
|
return putByIndex(r'walletId', object);
|
|
}
|
|
|
|
Id putByWalletIdSync(WalletInfo object, {bool saveLinks = true}) {
|
|
return putByIndexSync(r'walletId', object, saveLinks: saveLinks);
|
|
}
|
|
|
|
Future<List<Id>> putAllByWalletId(List<WalletInfo> objects) {
|
|
return putAllByIndex(r'walletId', objects);
|
|
}
|
|
|
|
List<Id> putAllByWalletIdSync(List<WalletInfo> objects,
|
|
{bool saveLinks = true}) {
|
|
return putAllByIndexSync(r'walletId', objects, saveLinks: saveLinks);
|
|
}
|
|
}
|
|
|
|
extension WalletInfoQueryWhereSort
|
|
on QueryBuilder<WalletInfo, WalletInfo, QWhere> {
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterWhere> anyId() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addWhereClause(const IdWhereClause.any());
|
|
});
|
|
}
|
|
}
|
|
|
|
extension WalletInfoQueryWhere
|
|
on QueryBuilder<WalletInfo, WalletInfo, QWhereClause> {
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterWhereClause> idEqualTo(Id id) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addWhereClause(IdWhereClause.between(
|
|
lower: id,
|
|
upper: id,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterWhereClause> idNotEqualTo(Id id) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
if (query.whereSort == Sort.asc) {
|
|
return query
|
|
.addWhereClause(
|
|
IdWhereClause.lessThan(upper: id, includeUpper: false),
|
|
)
|
|
.addWhereClause(
|
|
IdWhereClause.greaterThan(lower: id, includeLower: false),
|
|
);
|
|
} else {
|
|
return query
|
|
.addWhereClause(
|
|
IdWhereClause.greaterThan(lower: id, includeLower: false),
|
|
)
|
|
.addWhereClause(
|
|
IdWhereClause.lessThan(upper: id, includeUpper: false),
|
|
);
|
|
}
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterWhereClause> idGreaterThan(Id id,
|
|
{bool include = false}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addWhereClause(
|
|
IdWhereClause.greaterThan(lower: id, includeLower: include),
|
|
);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterWhereClause> idLessThan(Id id,
|
|
{bool include = false}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addWhereClause(
|
|
IdWhereClause.lessThan(upper: id, includeUpper: include),
|
|
);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterWhereClause> idBetween(
|
|
Id lowerId,
|
|
Id upperId, {
|
|
bool includeLower = true,
|
|
bool includeUpper = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addWhereClause(IdWhereClause.between(
|
|
lower: lowerId,
|
|
includeLower: includeLower,
|
|
upper: upperId,
|
|
includeUpper: includeUpper,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterWhereClause> walletIdEqualTo(
|
|
String walletId) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addWhereClause(IndexWhereClause.equalTo(
|
|
indexName: r'walletId',
|
|
value: [walletId],
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterWhereClause> walletIdNotEqualTo(
|
|
String walletId) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
if (query.whereSort == Sort.asc) {
|
|
return query
|
|
.addWhereClause(IndexWhereClause.between(
|
|
indexName: r'walletId',
|
|
lower: [],
|
|
upper: [walletId],
|
|
includeUpper: false,
|
|
))
|
|
.addWhereClause(IndexWhereClause.between(
|
|
indexName: r'walletId',
|
|
lower: [walletId],
|
|
includeLower: false,
|
|
upper: [],
|
|
));
|
|
} else {
|
|
return query
|
|
.addWhereClause(IndexWhereClause.between(
|
|
indexName: r'walletId',
|
|
lower: [walletId],
|
|
includeLower: false,
|
|
upper: [],
|
|
))
|
|
.addWhereClause(IndexWhereClause.between(
|
|
indexName: r'walletId',
|
|
lower: [],
|
|
upper: [walletId],
|
|
includeUpper: false,
|
|
));
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
extension WalletInfoQueryFilter
|
|
on QueryBuilder<WalletInfo, WalletInfo, QFilterCondition> {
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedBalanceStringIsNull() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(const FilterCondition.isNull(
|
|
property: r'cachedBalanceString',
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedBalanceStringIsNotNull() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(const FilterCondition.isNotNull(
|
|
property: r'cachedBalanceString',
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedBalanceStringEqualTo(
|
|
String? value, {
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'cachedBalanceString',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedBalanceStringGreaterThan(
|
|
String? value, {
|
|
bool include = false,
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
|
include: include,
|
|
property: r'cachedBalanceString',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedBalanceStringLessThan(
|
|
String? value, {
|
|
bool include = false,
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.lessThan(
|
|
include: include,
|
|
property: r'cachedBalanceString',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedBalanceStringBetween(
|
|
String? lower,
|
|
String? upper, {
|
|
bool includeLower = true,
|
|
bool includeUpper = true,
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.between(
|
|
property: r'cachedBalanceString',
|
|
lower: lower,
|
|
includeLower: includeLower,
|
|
upper: upper,
|
|
includeUpper: includeUpper,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedBalanceStringStartsWith(
|
|
String value, {
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.startsWith(
|
|
property: r'cachedBalanceString',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedBalanceStringEndsWith(
|
|
String value, {
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.endsWith(
|
|
property: r'cachedBalanceString',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedBalanceStringContains(String value, {bool caseSensitive = true}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.contains(
|
|
property: r'cachedBalanceString',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedBalanceStringMatches(String pattern, {bool caseSensitive = true}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.matches(
|
|
property: r'cachedBalanceString',
|
|
wildcard: pattern,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedBalanceStringIsEmpty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'cachedBalanceString',
|
|
value: '',
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedBalanceStringIsNotEmpty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
|
property: r'cachedBalanceString',
|
|
value: '',
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedChainHeightEqualTo(int value) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'cachedChainHeight',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedChainHeightGreaterThan(
|
|
int value, {
|
|
bool include = false,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
|
include: include,
|
|
property: r'cachedChainHeight',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedChainHeightLessThan(
|
|
int value, {
|
|
bool include = false,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.lessThan(
|
|
include: include,
|
|
property: r'cachedChainHeight',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
cachedChainHeightBetween(
|
|
int lower,
|
|
int upper, {
|
|
bool includeLower = true,
|
|
bool includeUpper = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.between(
|
|
property: r'cachedChainHeight',
|
|
lower: lower,
|
|
includeLower: includeLower,
|
|
upper: upper,
|
|
includeUpper: includeUpper,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> coinNameEqualTo(
|
|
String value, {
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'coinName',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
coinNameGreaterThan(
|
|
String value, {
|
|
bool include = false,
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
|
include: include,
|
|
property: r'coinName',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> coinNameLessThan(
|
|
String value, {
|
|
bool include = false,
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.lessThan(
|
|
include: include,
|
|
property: r'coinName',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> coinNameBetween(
|
|
String lower,
|
|
String upper, {
|
|
bool includeLower = true,
|
|
bool includeUpper = true,
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.between(
|
|
property: r'coinName',
|
|
lower: lower,
|
|
includeLower: includeLower,
|
|
upper: upper,
|
|
includeUpper: includeUpper,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
coinNameStartsWith(
|
|
String value, {
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.startsWith(
|
|
property: r'coinName',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> coinNameEndsWith(
|
|
String value, {
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.endsWith(
|
|
property: r'coinName',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> coinNameContains(
|
|
String value,
|
|
{bool caseSensitive = true}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.contains(
|
|
property: r'coinName',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> coinNameMatches(
|
|
String pattern,
|
|
{bool caseSensitive = true}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.matches(
|
|
property: r'coinName',
|
|
wildcard: pattern,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
coinNameIsEmpty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'coinName',
|
|
value: '',
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
coinNameIsNotEmpty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
|
property: r'coinName',
|
|
value: '',
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
creationHeightEqualTo(int value) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'creationHeight',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
creationHeightGreaterThan(
|
|
int value, {
|
|
bool include = false,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
|
include: include,
|
|
property: r'creationHeight',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
creationHeightLessThan(
|
|
int value, {
|
|
bool include = false,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.lessThan(
|
|
include: include,
|
|
property: r'creationHeight',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
creationHeightBetween(
|
|
int lower,
|
|
int upper, {
|
|
bool includeLower = true,
|
|
bool includeUpper = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.between(
|
|
property: r'creationHeight',
|
|
lower: lower,
|
|
includeLower: includeLower,
|
|
upper: upper,
|
|
includeUpper: includeUpper,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
favouriteOrderIndexEqualTo(int value) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'favouriteOrderIndex',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
favouriteOrderIndexGreaterThan(
|
|
int value, {
|
|
bool include = false,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
|
include: include,
|
|
property: r'favouriteOrderIndex',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
favouriteOrderIndexLessThan(
|
|
int value, {
|
|
bool include = false,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.lessThan(
|
|
include: include,
|
|
property: r'favouriteOrderIndex',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
favouriteOrderIndexBetween(
|
|
int lower,
|
|
int upper, {
|
|
bool includeLower = true,
|
|
bool includeUpper = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.between(
|
|
property: r'favouriteOrderIndex',
|
|
lower: lower,
|
|
includeLower: includeLower,
|
|
upper: upper,
|
|
includeUpper: includeUpper,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> idEqualTo(
|
|
Id value) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'id',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> idGreaterThan(
|
|
Id value, {
|
|
bool include = false,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
|
include: include,
|
|
property: r'id',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> idLessThan(
|
|
Id value, {
|
|
bool include = false,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.lessThan(
|
|
include: include,
|
|
property: r'id',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> idBetween(
|
|
Id lower,
|
|
Id upper, {
|
|
bool includeLower = true,
|
|
bool includeUpper = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.between(
|
|
property: r'id',
|
|
lower: lower,
|
|
includeLower: includeLower,
|
|
upper: upper,
|
|
includeUpper: includeUpper,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
isFavouriteEqualTo(bool value) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'isFavourite',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
isMnemonicVerifiedEqualTo(bool value) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'isMnemonicVerified',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
mainAddressTypeEqualTo(AddressType value) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'mainAddressType',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
mainAddressTypeGreaterThan(
|
|
AddressType value, {
|
|
bool include = false,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
|
include: include,
|
|
property: r'mainAddressType',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
mainAddressTypeLessThan(
|
|
AddressType value, {
|
|
bool include = false,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.lessThan(
|
|
include: include,
|
|
property: r'mainAddressType',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
mainAddressTypeBetween(
|
|
AddressType lower,
|
|
AddressType upper, {
|
|
bool includeLower = true,
|
|
bool includeUpper = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.between(
|
|
property: r'mainAddressType',
|
|
lower: lower,
|
|
includeLower: includeLower,
|
|
upper: upper,
|
|
includeUpper: includeUpper,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> nameEqualTo(
|
|
String value, {
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'name',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> nameGreaterThan(
|
|
String value, {
|
|
bool include = false,
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
|
include: include,
|
|
property: r'name',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> nameLessThan(
|
|
String value, {
|
|
bool include = false,
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.lessThan(
|
|
include: include,
|
|
property: r'name',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> nameBetween(
|
|
String lower,
|
|
String upper, {
|
|
bool includeLower = true,
|
|
bool includeUpper = true,
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.between(
|
|
property: r'name',
|
|
lower: lower,
|
|
includeLower: includeLower,
|
|
upper: upper,
|
|
includeUpper: includeUpper,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> nameStartsWith(
|
|
String value, {
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.startsWith(
|
|
property: r'name',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> nameEndsWith(
|
|
String value, {
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.endsWith(
|
|
property: r'name',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> nameContains(
|
|
String value,
|
|
{bool caseSensitive = true}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.contains(
|
|
property: r'name',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> nameMatches(
|
|
String pattern,
|
|
{bool caseSensitive = true}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.matches(
|
|
property: r'name',
|
|
wildcard: pattern,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> nameIsEmpty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'name',
|
|
value: '',
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> nameIsNotEmpty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
|
property: r'name',
|
|
value: '',
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
restoreHeightEqualTo(int value) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'restoreHeight',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
restoreHeightGreaterThan(
|
|
int value, {
|
|
bool include = false,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
|
include: include,
|
|
property: r'restoreHeight',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
restoreHeightLessThan(
|
|
int value, {
|
|
bool include = false,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.lessThan(
|
|
include: include,
|
|
property: r'restoreHeight',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
restoreHeightBetween(
|
|
int lower,
|
|
int upper, {
|
|
bool includeLower = true,
|
|
bool includeUpper = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.between(
|
|
property: r'restoreHeight',
|
|
lower: lower,
|
|
includeLower: includeLower,
|
|
upper: upper,
|
|
includeUpper: includeUpper,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> walletIdEqualTo(
|
|
String value, {
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'walletId',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
walletIdGreaterThan(
|
|
String value, {
|
|
bool include = false,
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
|
include: include,
|
|
property: r'walletId',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> walletIdLessThan(
|
|
String value, {
|
|
bool include = false,
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.lessThan(
|
|
include: include,
|
|
property: r'walletId',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> walletIdBetween(
|
|
String lower,
|
|
String upper, {
|
|
bool includeLower = true,
|
|
bool includeUpper = true,
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.between(
|
|
property: r'walletId',
|
|
lower: lower,
|
|
includeLower: includeLower,
|
|
upper: upper,
|
|
includeUpper: includeUpper,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
walletIdStartsWith(
|
|
String value, {
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.startsWith(
|
|
property: r'walletId',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> walletIdEndsWith(
|
|
String value, {
|
|
bool caseSensitive = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.endsWith(
|
|
property: r'walletId',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> walletIdContains(
|
|
String value,
|
|
{bool caseSensitive = true}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.contains(
|
|
property: r'walletId',
|
|
value: value,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> walletIdMatches(
|
|
String pattern,
|
|
{bool caseSensitive = true}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.matches(
|
|
property: r'walletId',
|
|
wildcard: pattern,
|
|
caseSensitive: caseSensitive,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
walletIdIsEmpty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'walletId',
|
|
value: '',
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
walletIdIsNotEmpty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
|
property: r'walletId',
|
|
value: '',
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> walletTypeEqualTo(
|
|
WalletType value) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.equalTo(
|
|
property: r'walletType',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
walletTypeGreaterThan(
|
|
WalletType value, {
|
|
bool include = false,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.greaterThan(
|
|
include: include,
|
|
property: r'walletType',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition>
|
|
walletTypeLessThan(
|
|
WalletType value, {
|
|
bool include = false,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.lessThan(
|
|
include: include,
|
|
property: r'walletType',
|
|
value: value,
|
|
));
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterFilterCondition> walletTypeBetween(
|
|
WalletType lower,
|
|
WalletType upper, {
|
|
bool includeLower = true,
|
|
bool includeUpper = true,
|
|
}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addFilterCondition(FilterCondition.between(
|
|
property: r'walletType',
|
|
lower: lower,
|
|
includeLower: includeLower,
|
|
upper: upper,
|
|
includeUpper: includeUpper,
|
|
));
|
|
});
|
|
}
|
|
}
|
|
|
|
extension WalletInfoQueryObject
|
|
on QueryBuilder<WalletInfo, WalletInfo, QFilterCondition> {}
|
|
|
|
extension WalletInfoQueryLinks
|
|
on QueryBuilder<WalletInfo, WalletInfo, QFilterCondition> {}
|
|
|
|
extension WalletInfoQuerySortBy
|
|
on QueryBuilder<WalletInfo, WalletInfo, QSortBy> {
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
sortByCachedBalanceString() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'cachedBalanceString', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
sortByCachedBalanceStringDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'cachedBalanceString', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> sortByCachedChainHeight() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'cachedChainHeight', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
sortByCachedChainHeightDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'cachedChainHeight', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> sortByCoinName() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'coinName', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> sortByCoinNameDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'coinName', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> sortByCreationHeight() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'creationHeight', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
sortByCreationHeightDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'creationHeight', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
sortByFavouriteOrderIndex() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'favouriteOrderIndex', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
sortByFavouriteOrderIndexDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'favouriteOrderIndex', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> sortByIsFavourite() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'isFavourite', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> sortByIsFavouriteDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'isFavourite', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
sortByIsMnemonicVerified() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'isMnemonicVerified', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
sortByIsMnemonicVerifiedDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'isMnemonicVerified', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> sortByMainAddressType() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'mainAddressType', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
sortByMainAddressTypeDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'mainAddressType', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> sortByName() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'name', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> sortByNameDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'name', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> sortByRestoreHeight() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'restoreHeight', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> sortByRestoreHeightDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'restoreHeight', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> sortByWalletId() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'walletId', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> sortByWalletIdDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'walletId', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> sortByWalletType() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'walletType', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> sortByWalletTypeDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'walletType', Sort.desc);
|
|
});
|
|
}
|
|
}
|
|
|
|
extension WalletInfoQuerySortThenBy
|
|
on QueryBuilder<WalletInfo, WalletInfo, QSortThenBy> {
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
thenByCachedBalanceString() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'cachedBalanceString', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
thenByCachedBalanceStringDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'cachedBalanceString', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByCachedChainHeight() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'cachedChainHeight', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
thenByCachedChainHeightDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'cachedChainHeight', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByCoinName() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'coinName', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByCoinNameDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'coinName', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByCreationHeight() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'creationHeight', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
thenByCreationHeightDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'creationHeight', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
thenByFavouriteOrderIndex() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'favouriteOrderIndex', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
thenByFavouriteOrderIndexDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'favouriteOrderIndex', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenById() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'id', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByIdDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'id', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByIsFavourite() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'isFavourite', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByIsFavouriteDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'isFavourite', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
thenByIsMnemonicVerified() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'isMnemonicVerified', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
thenByIsMnemonicVerifiedDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'isMnemonicVerified', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByMainAddressType() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'mainAddressType', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy>
|
|
thenByMainAddressTypeDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'mainAddressType', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByName() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'name', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByNameDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'name', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByRestoreHeight() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'restoreHeight', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByRestoreHeightDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'restoreHeight', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByWalletId() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'walletId', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByWalletIdDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'walletId', Sort.desc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByWalletType() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'walletType', Sort.asc);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QAfterSortBy> thenByWalletTypeDesc() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addSortBy(r'walletType', Sort.desc);
|
|
});
|
|
}
|
|
}
|
|
|
|
extension WalletInfoQueryWhereDistinct
|
|
on QueryBuilder<WalletInfo, WalletInfo, QDistinct> {
|
|
QueryBuilder<WalletInfo, WalletInfo, QDistinct> distinctByCachedBalanceString(
|
|
{bool caseSensitive = true}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addDistinctBy(r'cachedBalanceString',
|
|
caseSensitive: caseSensitive);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QDistinct>
|
|
distinctByCachedChainHeight() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addDistinctBy(r'cachedChainHeight');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QDistinct> distinctByCoinName(
|
|
{bool caseSensitive = true}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addDistinctBy(r'coinName', caseSensitive: caseSensitive);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QDistinct> distinctByCreationHeight() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addDistinctBy(r'creationHeight');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QDistinct>
|
|
distinctByFavouriteOrderIndex() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addDistinctBy(r'favouriteOrderIndex');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QDistinct> distinctByIsFavourite() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addDistinctBy(r'isFavourite');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QDistinct>
|
|
distinctByIsMnemonicVerified() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addDistinctBy(r'isMnemonicVerified');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QDistinct> distinctByMainAddressType() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addDistinctBy(r'mainAddressType');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QDistinct> distinctByName(
|
|
{bool caseSensitive = true}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addDistinctBy(r'name', caseSensitive: caseSensitive);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QDistinct> distinctByRestoreHeight() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addDistinctBy(r'restoreHeight');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QDistinct> distinctByWalletId(
|
|
{bool caseSensitive = true}) {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addDistinctBy(r'walletId', caseSensitive: caseSensitive);
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletInfo, QDistinct> distinctByWalletType() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addDistinctBy(r'walletType');
|
|
});
|
|
}
|
|
}
|
|
|
|
extension WalletInfoQueryProperty
|
|
on QueryBuilder<WalletInfo, WalletInfo, QQueryProperty> {
|
|
QueryBuilder<WalletInfo, int, QQueryOperations> idProperty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addPropertyName(r'id');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, String?, QQueryOperations>
|
|
cachedBalanceStringProperty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addPropertyName(r'cachedBalanceString');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, int, QQueryOperations> cachedChainHeightProperty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addPropertyName(r'cachedChainHeight');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, String, QQueryOperations> coinNameProperty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addPropertyName(r'coinName');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, int, QQueryOperations> creationHeightProperty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addPropertyName(r'creationHeight');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, int, QQueryOperations>
|
|
favouriteOrderIndexProperty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addPropertyName(r'favouriteOrderIndex');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, bool, QQueryOperations> isFavouriteProperty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addPropertyName(r'isFavourite');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, bool, QQueryOperations>
|
|
isMnemonicVerifiedProperty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addPropertyName(r'isMnemonicVerified');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, AddressType, QQueryOperations>
|
|
mainAddressTypeProperty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addPropertyName(r'mainAddressType');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, String, QQueryOperations> nameProperty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addPropertyName(r'name');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, int, QQueryOperations> restoreHeightProperty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addPropertyName(r'restoreHeight');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, String, QQueryOperations> walletIdProperty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addPropertyName(r'walletId');
|
|
});
|
|
}
|
|
|
|
QueryBuilder<WalletInfo, WalletType, QQueryOperations> walletTypeProperty() {
|
|
return QueryBuilder.apply(this, (query) {
|
|
return query.addPropertyName(r'walletType');
|
|
});
|
|
}
|
|
}
|