1283 lines
39 KiB
Dart
1283 lines
39 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// This code was generated by ObjectBox. To update it run the generator again
|
|
// with `dart run build_runner build`.
|
|
// See also https://docs.objectbox.io/getting-started#generate-objectbox-code
|
|
|
|
// ignore_for_file: camel_case_types, depend_on_referenced_packages
|
|
// coverage:ignore-file
|
|
|
|
import 'dart:typed_data';
|
|
|
|
import 'package:flat_buffers/flat_buffers.dart' as fb;
|
|
import 'package:objectbox/internal.dart'
|
|
as obx_int; // generated code can access "internal" functionality
|
|
import 'package:objectbox/objectbox.dart' as obx;
|
|
import 'package:objectbox_flutter_libs/objectbox_flutter_libs.dart';
|
|
|
|
import 'model/chat_message.dart';
|
|
import 'model/enqueued_message.dart';
|
|
import 'model/job.dart';
|
|
import 'model/location_status.dart';
|
|
import 'model/log_entry.dart';
|
|
import 'model/pictures.dart';
|
|
import 'model/rank.dart';
|
|
import 'model/session_status.dart';
|
|
import 'model/status.dart';
|
|
import 'model/task_info.dart';
|
|
|
|
export 'package:objectbox/objectbox.dart'; // so that callers only have to import this file
|
|
|
|
final _entities = <obx_int.ModelEntity>[
|
|
obx_int.ModelEntity(
|
|
id: const obx_int.IdUid(2, 1900005481935470756),
|
|
name: 'EnqueuedMessage',
|
|
lastPropertyId: const obx_int.IdUid(4, 4315208696498141362),
|
|
flags: 0,
|
|
properties: <obx_int.ModelProperty>[
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(1, 3300983318147351068),
|
|
name: 'id',
|
|
type: 6,
|
|
flags: 1,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(2, 9210049710668674502),
|
|
name: 'messageId',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(3, 7408744652169267115),
|
|
name: 'topic',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(4, 4315208696498141362),
|
|
name: 'payload',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
],
|
|
relations: <obx_int.ModelRelation>[],
|
|
backlinks: <obx_int.ModelBacklink>[],
|
|
),
|
|
obx_int.ModelEntity(
|
|
id: const obx_int.IdUid(3, 808686831791135454),
|
|
name: 'Job',
|
|
lastPropertyId: const obx_int.IdUid(11, 3214338916427673014),
|
|
flags: 0,
|
|
properties: <obx_int.ModelProperty>[
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(1, 5216786081620356305),
|
|
name: 'id',
|
|
type: 6,
|
|
flags: 1,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(2, 8894906213962654908),
|
|
name: 'ver',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(3, 3303839163899107532),
|
|
name: 'state',
|
|
type: 6,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(4, 3119487970513925946),
|
|
name: 'crFilter',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(5, 4732141596159047170),
|
|
name: 'ordertime',
|
|
type: 6,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(6, 1449947228203387059),
|
|
name: 'offsWarn',
|
|
type: 6,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(7, 3209886298748159414),
|
|
name: 'global',
|
|
type: 1,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(8, 6098449484765014411),
|
|
name: 'vhtId',
|
|
type: 6,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(9, 1076725124291766663),
|
|
name: 'rem',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(10, 3500399465824083528),
|
|
name: 'delayOrderTime',
|
|
type: 6,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(11, 3214338916427673014),
|
|
name: 'toursJson',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
],
|
|
relations: <obx_int.ModelRelation>[],
|
|
backlinks: <obx_int.ModelBacklink>[],
|
|
),
|
|
obx_int.ModelEntity(
|
|
id: const obx_int.IdUid(4, 8465470793923038042),
|
|
name: 'LocationStatus',
|
|
lastPropertyId: const obx_int.IdUid(4, 946656881802398278),
|
|
flags: 0,
|
|
properties: <obx_int.ModelProperty>[
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(1, 7878463571761872972),
|
|
name: 'id',
|
|
type: 6,
|
|
flags: 1,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(2, 5068730443811682471),
|
|
name: 'zip',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(3, 2759928435998483383),
|
|
name: 'area',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(4, 946656881802398278),
|
|
name: 'zipReal',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
],
|
|
relations: <obx_int.ModelRelation>[],
|
|
backlinks: <obx_int.ModelBacklink>[],
|
|
),
|
|
obx_int.ModelEntity(
|
|
id: const obx_int.IdUid(5, 2550695273986067070),
|
|
name: 'LogEntry',
|
|
lastPropertyId: const obx_int.IdUid(4, 25366889950650452),
|
|
flags: 0,
|
|
properties: <obx_int.ModelProperty>[
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(1, 7926124814316455592),
|
|
name: 'id',
|
|
type: 6,
|
|
flags: 1,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(2, 7429096942006040633),
|
|
name: 'time',
|
|
type: 10,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(3, 142738454977074579),
|
|
name: 'severity',
|
|
type: 6,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(4, 25366889950650452),
|
|
name: 'text',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
],
|
|
relations: <obx_int.ModelRelation>[],
|
|
backlinks: <obx_int.ModelBacklink>[],
|
|
),
|
|
obx_int.ModelEntity(
|
|
id: const obx_int.IdUid(6, 8578494735294491413),
|
|
name: 'Picture',
|
|
lastPropertyId: const obx_int.IdUid(4, 8471947406218406695),
|
|
flags: 0,
|
|
properties: <obx_int.ModelProperty>[
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(1, 8233658715755176189),
|
|
name: 'id',
|
|
type: 6,
|
|
flags: 1,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(2, 3598678677730019293),
|
|
name: 'tourId',
|
|
type: 6,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(3, 8439819560525061668),
|
|
name: 'number',
|
|
type: 6,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(4, 8471947406218406695),
|
|
name: 'data',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
],
|
|
relations: <obx_int.ModelRelation>[],
|
|
backlinks: <obx_int.ModelBacklink>[],
|
|
),
|
|
obx_int.ModelEntity(
|
|
id: const obx_int.IdUid(7, 2548574384262878250),
|
|
name: 'Ranking',
|
|
lastPropertyId: const obx_int.IdUid(2, 1452725296922082150),
|
|
flags: 0,
|
|
properties: <obx_int.ModelProperty>[
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(1, 7118038767191691106),
|
|
name: 'id',
|
|
type: 6,
|
|
flags: 1,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(2, 1452725296922082150),
|
|
name: 'ranksJson',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
],
|
|
relations: <obx_int.ModelRelation>[],
|
|
backlinks: <obx_int.ModelBacklink>[],
|
|
),
|
|
obx_int.ModelEntity(
|
|
id: const obx_int.IdUid(8, 2017786340054665973),
|
|
name: 'SessionStatus',
|
|
lastPropertyId: const obx_int.IdUid(11, 3261302622742923576),
|
|
flags: 0,
|
|
properties: <obx_int.ModelProperty>[
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(1, 3031533826735683075),
|
|
name: 'id',
|
|
type: 6,
|
|
flags: 1,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(2, 7909042823552092798),
|
|
name: 'custId',
|
|
type: 6,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(3, 7042631773737541316),
|
|
name: 'hqId',
|
|
type: 6,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(4, 2110246729553520570),
|
|
name: 'usrId',
|
|
type: 6,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(5, 1816167905802287907),
|
|
name: 'crId',
|
|
type: 6,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(6, 6893748738418511496),
|
|
name: 'sid',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(7, 5132625371004843897),
|
|
name: 'vhtId',
|
|
type: 6,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(8, 497003757522498160),
|
|
name: 'locZip',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(9, 7881671035561328160),
|
|
name: 'serverVersion',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(10, 8539036586265341170),
|
|
name: 'serverInstance',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(11, 3261302622742923576),
|
|
name: 'bwvEnabled',
|
|
type: 1,
|
|
flags: 0,
|
|
),
|
|
],
|
|
relations: <obx_int.ModelRelation>[],
|
|
backlinks: <obx_int.ModelBacklink>[],
|
|
),
|
|
obx_int.ModelEntity(
|
|
id: const obx_int.IdUid(9, 3249643184099511839),
|
|
name: 'Status',
|
|
lastPropertyId: const obx_int.IdUid(4, 4970112377686786436),
|
|
flags: 0,
|
|
properties: <obx_int.ModelProperty>[
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(1, 7475926067533914770),
|
|
name: 'id',
|
|
type: 6,
|
|
flags: 1,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(2, 3333419739867469217),
|
|
name: 'posZip',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(3, 7999157864794363157),
|
|
name: 'posArea',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(4, 4970112377686786436),
|
|
name: 'posZipReal',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
],
|
|
relations: <obx_int.ModelRelation>[],
|
|
backlinks: <obx_int.ModelBacklink>[],
|
|
),
|
|
obx_int.ModelEntity(
|
|
id: const obx_int.IdUid(11, 8606238749478059367),
|
|
name: 'ChatMessage',
|
|
lastPropertyId: const obx_int.IdUid(6, 7798301556204918939),
|
|
flags: 0,
|
|
properties: <obx_int.ModelProperty>[
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(1, 3236243497308902958),
|
|
name: 'id',
|
|
type: 6,
|
|
flags: 1,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(2, 1689142031630531044),
|
|
name: 'time',
|
|
type: 6,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(3, 9168654785572108691),
|
|
name: 'from',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(4, 3167039386322657979),
|
|
name: 'subj',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(5, 371212500165499194),
|
|
name: 'text',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(6, 7798301556204918939),
|
|
name: 'read',
|
|
type: 1,
|
|
flags: 0,
|
|
),
|
|
],
|
|
relations: <obx_int.ModelRelation>[],
|
|
backlinks: <obx_int.ModelBacklink>[],
|
|
),
|
|
obx_int.ModelEntity(
|
|
id: const obx_int.IdUid(12, 4865606913057136676),
|
|
name: 'TaskInfo',
|
|
lastPropertyId: const obx_int.IdUid(5, 4858121848992922038),
|
|
flags: 0,
|
|
properties: <obx_int.ModelProperty>[
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(1, 8874807593467526189),
|
|
name: 'id',
|
|
type: 6,
|
|
flags: 1,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(2, 1555074981837956508),
|
|
name: 'sId',
|
|
type: 6,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(3, 4882275733695652364),
|
|
name: 'additionalText',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(4, 8255231557511579852),
|
|
name: 'answer',
|
|
type: 9,
|
|
flags: 0,
|
|
),
|
|
obx_int.ModelProperty(
|
|
id: const obx_int.IdUid(5, 4858121848992922038),
|
|
name: 'completed',
|
|
type: 1,
|
|
flags: 0,
|
|
),
|
|
],
|
|
relations: <obx_int.ModelRelation>[],
|
|
backlinks: <obx_int.ModelBacklink>[],
|
|
),
|
|
];
|
|
|
|
/// Shortcut for [obx.Store.new] that passes [getObjectBoxModel] and for Flutter
|
|
/// apps by default a [directory] using `defaultStoreDirectory()` from the
|
|
/// ObjectBox Flutter library.
|
|
///
|
|
/// Note: for desktop apps it is recommended to specify a unique [directory].
|
|
///
|
|
/// See [obx.Store.new] for an explanation of all parameters.
|
|
///
|
|
/// For Flutter apps, also calls `loadObjectBoxLibraryAndroidCompat()` from
|
|
/// the ObjectBox Flutter library to fix loading the native ObjectBox library
|
|
/// on Android 6 and older.
|
|
Future<obx.Store> openStore({
|
|
String? directory,
|
|
int? maxDBSizeInKB,
|
|
int? maxDataSizeInKB,
|
|
int? fileMode,
|
|
int? maxReaders,
|
|
bool queriesCaseSensitiveDefault = true,
|
|
String? macosApplicationGroup,
|
|
}) async {
|
|
await loadObjectBoxLibraryAndroidCompat();
|
|
return obx.Store(
|
|
getObjectBoxModel(),
|
|
directory: directory ?? (await defaultStoreDirectory()).path,
|
|
maxDBSizeInKB: maxDBSizeInKB,
|
|
maxDataSizeInKB: maxDataSizeInKB,
|
|
fileMode: fileMode,
|
|
maxReaders: maxReaders,
|
|
queriesCaseSensitiveDefault: queriesCaseSensitiveDefault,
|
|
macosApplicationGroup: macosApplicationGroup,
|
|
);
|
|
}
|
|
|
|
/// Returns the ObjectBox model definition for this project for use with
|
|
/// [obx.Store.new].
|
|
obx_int.ModelDefinition getObjectBoxModel() {
|
|
final model = obx_int.ModelInfo(
|
|
entities: _entities,
|
|
lastEntityId: const obx_int.IdUid(12, 4865606913057136676),
|
|
lastIndexId: const obx_int.IdUid(0, 0),
|
|
lastRelationId: const obx_int.IdUid(0, 0),
|
|
lastSequenceId: const obx_int.IdUid(0, 0),
|
|
retiredEntityUids: const [3121960281516643928, 3330049220205502332],
|
|
retiredIndexUids: const [],
|
|
retiredPropertyUids: const [
|
|
2911299806708299572,
|
|
5499360845675591736,
|
|
6629677753597654195,
|
|
2459198878504939029,
|
|
1821648847924307341,
|
|
2516901162497323279,
|
|
7500431799407089850,
|
|
3530187464938423960,
|
|
2939471599149775609,
|
|
4870701960967093484,
|
|
9072329172508444422,
|
|
],
|
|
retiredRelationUids: const [],
|
|
modelVersion: 5,
|
|
modelVersionParserMinimum: 5,
|
|
version: 1,
|
|
);
|
|
|
|
final bindings = <Type, obx_int.EntityDefinition>{
|
|
EnqueuedMessage: obx_int.EntityDefinition<EnqueuedMessage>(
|
|
model: _entities[0],
|
|
toOneRelations: (EnqueuedMessage object) => [],
|
|
toManyRelations: (EnqueuedMessage object) => {},
|
|
getId: (EnqueuedMessage object) => object.id,
|
|
setId: (EnqueuedMessage object, int id) {
|
|
object.id = id;
|
|
},
|
|
objectToFB: (EnqueuedMessage object, fb.Builder fbb) {
|
|
final messageIdOffset = fbb.writeString(object.messageId);
|
|
final topicOffset = fbb.writeString(object.topic);
|
|
final payloadOffset = fbb.writeString(object.payload);
|
|
fbb.startTable(5);
|
|
fbb.addInt64(0, object.id);
|
|
fbb.addOffset(1, messageIdOffset);
|
|
fbb.addOffset(2, topicOffset);
|
|
fbb.addOffset(3, payloadOffset);
|
|
fbb.finish(fbb.endTable());
|
|
return object.id;
|
|
},
|
|
objectFromFB: (obx.Store store, ByteData fbData) {
|
|
final buffer = fb.BufferContext(fbData);
|
|
final rootOffset = buffer.derefObject(0);
|
|
|
|
final object = EnqueuedMessage()
|
|
..id = const fb.Int64Reader().vTableGet(buffer, rootOffset, 4, 0)
|
|
..messageId = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 6, '')
|
|
..topic = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 8, '')
|
|
..payload = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 10, '');
|
|
|
|
return object;
|
|
},
|
|
),
|
|
Job: obx_int.EntityDefinition<Job>(
|
|
model: _entities[1],
|
|
toOneRelations: (Job object) => [],
|
|
toManyRelations: (Job object) => {},
|
|
getId: (Job object) => object.id,
|
|
setId: (Job object, int id) {
|
|
object.id = id;
|
|
},
|
|
objectToFB: (Job object, fb.Builder fbb) {
|
|
final verOffset = fbb.writeString(object.ver);
|
|
final crFilterOffset = object.crFilter == null
|
|
? null
|
|
: fbb.writeString(object.crFilter!);
|
|
final remOffset = fbb.writeString(object.rem);
|
|
final toursJsonOffset = fbb.writeString(object.toursJson);
|
|
fbb.startTable(12);
|
|
fbb.addInt64(0, object.id);
|
|
fbb.addOffset(1, verOffset);
|
|
fbb.addInt64(2, object.state);
|
|
fbb.addOffset(3, crFilterOffset);
|
|
fbb.addInt64(4, object.ordertime);
|
|
fbb.addInt64(5, object.offsWarn);
|
|
fbb.addBool(6, object.global);
|
|
fbb.addInt64(7, object.vhtId);
|
|
fbb.addOffset(8, remOffset);
|
|
fbb.addInt64(9, object.delayOrderTime);
|
|
fbb.addOffset(10, toursJsonOffset);
|
|
fbb.finish(fbb.endTable());
|
|
return object.id;
|
|
},
|
|
objectFromFB: (obx.Store store, ByteData fbData) {
|
|
final buffer = fb.BufferContext(fbData);
|
|
final rootOffset = buffer.derefObject(0);
|
|
|
|
final object = Job()
|
|
..id = const fb.Int64Reader().vTableGet(buffer, rootOffset, 4, 0)
|
|
..ver = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 6, '')
|
|
..state = const fb.Int64Reader().vTableGet(buffer, rootOffset, 8, 0)
|
|
..crFilter = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGetNullable(buffer, rootOffset, 10)
|
|
..ordertime = const fb.Int64Reader().vTableGet(
|
|
buffer,
|
|
rootOffset,
|
|
12,
|
|
0,
|
|
)
|
|
..offsWarn = const fb.Int64Reader().vTableGet(
|
|
buffer,
|
|
rootOffset,
|
|
14,
|
|
0,
|
|
)
|
|
..global = const fb.BoolReader().vTableGet(
|
|
buffer,
|
|
rootOffset,
|
|
16,
|
|
false,
|
|
)
|
|
..vhtId = const fb.Int64Reader().vTableGet(buffer, rootOffset, 18, 0)
|
|
..rem = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 20, '')
|
|
..delayOrderTime = const fb.Int64Reader().vTableGet(
|
|
buffer,
|
|
rootOffset,
|
|
22,
|
|
0,
|
|
)
|
|
..toursJson = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 24, '');
|
|
|
|
return object;
|
|
},
|
|
),
|
|
LocationStatus: obx_int.EntityDefinition<LocationStatus>(
|
|
model: _entities[2],
|
|
toOneRelations: (LocationStatus object) => [],
|
|
toManyRelations: (LocationStatus object) => {},
|
|
getId: (LocationStatus object) => object.id,
|
|
setId: (LocationStatus object, int id) {
|
|
object.id = id;
|
|
},
|
|
objectToFB: (LocationStatus object, fb.Builder fbb) {
|
|
final zipOffset = fbb.writeString(object.zip);
|
|
final areaOffset = fbb.writeString(object.area);
|
|
final zipRealOffset = fbb.writeString(object.zipReal);
|
|
fbb.startTable(5);
|
|
fbb.addInt64(0, object.id);
|
|
fbb.addOffset(1, zipOffset);
|
|
fbb.addOffset(2, areaOffset);
|
|
fbb.addOffset(3, zipRealOffset);
|
|
fbb.finish(fbb.endTable());
|
|
return object.id;
|
|
},
|
|
objectFromFB: (obx.Store store, ByteData fbData) {
|
|
final buffer = fb.BufferContext(fbData);
|
|
final rootOffset = buffer.derefObject(0);
|
|
|
|
final object = LocationStatus()
|
|
..id = const fb.Int64Reader().vTableGet(buffer, rootOffset, 4, 0)
|
|
..zip = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 6, '')
|
|
..area = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 8, '')
|
|
..zipReal = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 10, '');
|
|
|
|
return object;
|
|
},
|
|
),
|
|
LogEntry: obx_int.EntityDefinition<LogEntry>(
|
|
model: _entities[3],
|
|
toOneRelations: (LogEntry object) => [],
|
|
toManyRelations: (LogEntry object) => {},
|
|
getId: (LogEntry object) => object.id,
|
|
setId: (LogEntry object, int id) {
|
|
object.id = id;
|
|
},
|
|
objectToFB: (LogEntry object, fb.Builder fbb) {
|
|
final textOffset = fbb.writeString(object.text);
|
|
fbb.startTable(5);
|
|
fbb.addInt64(0, object.id);
|
|
fbb.addInt64(1, object.time.millisecondsSinceEpoch);
|
|
fbb.addInt64(2, object.severity);
|
|
fbb.addOffset(3, textOffset);
|
|
fbb.finish(fbb.endTable());
|
|
return object.id;
|
|
},
|
|
objectFromFB: (obx.Store store, ByteData fbData) {
|
|
final buffer = fb.BufferContext(fbData);
|
|
final rootOffset = buffer.derefObject(0);
|
|
|
|
final object = LogEntry()
|
|
..id = const fb.Int64Reader().vTableGet(buffer, rootOffset, 4, 0)
|
|
..time = DateTime.fromMillisecondsSinceEpoch(
|
|
const fb.Int64Reader().vTableGet(buffer, rootOffset, 6, 0),
|
|
)
|
|
..severity = const fb.Int64Reader().vTableGet(
|
|
buffer,
|
|
rootOffset,
|
|
8,
|
|
0,
|
|
)
|
|
..text = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 10, '');
|
|
|
|
return object;
|
|
},
|
|
),
|
|
Picture: obx_int.EntityDefinition<Picture>(
|
|
model: _entities[4],
|
|
toOneRelations: (Picture object) => [],
|
|
toManyRelations: (Picture object) => {},
|
|
getId: (Picture object) => object.id,
|
|
setId: (Picture object, int id) {
|
|
object.id = id;
|
|
},
|
|
objectToFB: (Picture object, fb.Builder fbb) {
|
|
final dataOffset = fbb.writeString(object.data);
|
|
fbb.startTable(5);
|
|
fbb.addInt64(0, object.id);
|
|
fbb.addInt64(1, object.tourId);
|
|
fbb.addInt64(2, object.number);
|
|
fbb.addOffset(3, dataOffset);
|
|
fbb.finish(fbb.endTable());
|
|
return object.id;
|
|
},
|
|
objectFromFB: (obx.Store store, ByteData fbData) {
|
|
final buffer = fb.BufferContext(fbData);
|
|
final rootOffset = buffer.derefObject(0);
|
|
|
|
final object = Picture()
|
|
..id = const fb.Int64Reader().vTableGet(buffer, rootOffset, 4, 0)
|
|
..tourId = const fb.Int64Reader().vTableGet(buffer, rootOffset, 6, 0)
|
|
..number = const fb.Int64Reader().vTableGet(buffer, rootOffset, 8, 0)
|
|
..data = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 10, '');
|
|
|
|
return object;
|
|
},
|
|
),
|
|
Ranking: obx_int.EntityDefinition<Ranking>(
|
|
model: _entities[5],
|
|
toOneRelations: (Ranking object) => [],
|
|
toManyRelations: (Ranking object) => {},
|
|
getId: (Ranking object) => object.id,
|
|
setId: (Ranking object, int id) {
|
|
object.id = id;
|
|
},
|
|
objectToFB: (Ranking object, fb.Builder fbb) {
|
|
final ranksJsonOffset = fbb.writeString(object.ranksJson);
|
|
fbb.startTable(3);
|
|
fbb.addInt64(0, object.id);
|
|
fbb.addOffset(1, ranksJsonOffset);
|
|
fbb.finish(fbb.endTable());
|
|
return object.id;
|
|
},
|
|
objectFromFB: (obx.Store store, ByteData fbData) {
|
|
final buffer = fb.BufferContext(fbData);
|
|
final rootOffset = buffer.derefObject(0);
|
|
|
|
final object = Ranking()
|
|
..id = const fb.Int64Reader().vTableGet(buffer, rootOffset, 4, 0)
|
|
..ranksJson = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 6, '');
|
|
|
|
return object;
|
|
},
|
|
),
|
|
SessionStatus: obx_int.EntityDefinition<SessionStatus>(
|
|
model: _entities[6],
|
|
toOneRelations: (SessionStatus object) => [],
|
|
toManyRelations: (SessionStatus object) => {},
|
|
getId: (SessionStatus object) => object.id,
|
|
setId: (SessionStatus object, int id) {
|
|
object.id = id;
|
|
},
|
|
objectToFB: (SessionStatus object, fb.Builder fbb) {
|
|
final sidOffset = fbb.writeString(object.sid);
|
|
final locZipOffset = fbb.writeString(object.locZip);
|
|
final serverVersionOffset = fbb.writeString(object.serverVersion);
|
|
final serverInstanceOffset = fbb.writeString(object.serverInstance);
|
|
fbb.startTable(12);
|
|
fbb.addInt64(0, object.id);
|
|
fbb.addInt64(1, object.custId);
|
|
fbb.addInt64(2, object.hqId);
|
|
fbb.addInt64(3, object.usrId);
|
|
fbb.addInt64(4, object.crId);
|
|
fbb.addOffset(5, sidOffset);
|
|
fbb.addInt64(6, object.vhtId);
|
|
fbb.addOffset(7, locZipOffset);
|
|
fbb.addOffset(8, serverVersionOffset);
|
|
fbb.addOffset(9, serverInstanceOffset);
|
|
fbb.addBool(10, object.bwvEnabled);
|
|
fbb.finish(fbb.endTable());
|
|
return object.id;
|
|
},
|
|
objectFromFB: (obx.Store store, ByteData fbData) {
|
|
final buffer = fb.BufferContext(fbData);
|
|
final rootOffset = buffer.derefObject(0);
|
|
|
|
final object = SessionStatus()
|
|
..id = const fb.Int64Reader().vTableGet(buffer, rootOffset, 4, 0)
|
|
..custId = const fb.Int64Reader().vTableGet(buffer, rootOffset, 6, 0)
|
|
..hqId = const fb.Int64Reader().vTableGet(buffer, rootOffset, 8, 0)
|
|
..usrId = const fb.Int64Reader().vTableGet(buffer, rootOffset, 10, 0)
|
|
..crId = const fb.Int64Reader().vTableGet(buffer, rootOffset, 12, 0)
|
|
..sid = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 14, '')
|
|
..vhtId = const fb.Int64Reader().vTableGet(buffer, rootOffset, 16, 0)
|
|
..locZip = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 18, '')
|
|
..serverVersion = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 20, '')
|
|
..serverInstance = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 22, '')
|
|
..bwvEnabled = const fb.BoolReader().vTableGet(
|
|
buffer,
|
|
rootOffset,
|
|
24,
|
|
false,
|
|
);
|
|
|
|
return object;
|
|
},
|
|
),
|
|
Status: obx_int.EntityDefinition<Status>(
|
|
model: _entities[7],
|
|
toOneRelations: (Status object) => [],
|
|
toManyRelations: (Status object) => {},
|
|
getId: (Status object) => object.id,
|
|
setId: (Status object, int id) {
|
|
object.id = id;
|
|
},
|
|
objectToFB: (Status object, fb.Builder fbb) {
|
|
final posZipOffset = fbb.writeString(object.posZip);
|
|
final posAreaOffset = fbb.writeString(object.posArea);
|
|
final posZipRealOffset = fbb.writeString(object.posZipReal);
|
|
fbb.startTable(5);
|
|
fbb.addInt64(0, object.id);
|
|
fbb.addOffset(1, posZipOffset);
|
|
fbb.addOffset(2, posAreaOffset);
|
|
fbb.addOffset(3, posZipRealOffset);
|
|
fbb.finish(fbb.endTable());
|
|
return object.id;
|
|
},
|
|
objectFromFB: (obx.Store store, ByteData fbData) {
|
|
final buffer = fb.BufferContext(fbData);
|
|
final rootOffset = buffer.derefObject(0);
|
|
|
|
final object = Status()
|
|
..id = const fb.Int64Reader().vTableGet(buffer, rootOffset, 4, 0)
|
|
..posZip = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 6, '')
|
|
..posArea = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 8, '')
|
|
..posZipReal = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 10, '');
|
|
|
|
return object;
|
|
},
|
|
),
|
|
ChatMessage: obx_int.EntityDefinition<ChatMessage>(
|
|
model: _entities[8],
|
|
toOneRelations: (ChatMessage object) => [],
|
|
toManyRelations: (ChatMessage object) => {},
|
|
getId: (ChatMessage object) => object.id,
|
|
setId: (ChatMessage object, int id) {
|
|
object.id = id;
|
|
},
|
|
objectToFB: (ChatMessage object, fb.Builder fbb) {
|
|
final fromOffset = fbb.writeString(object.from);
|
|
final subjOffset = fbb.writeString(object.subj);
|
|
final textOffset = fbb.writeString(object.text);
|
|
fbb.startTable(7);
|
|
fbb.addInt64(0, object.id);
|
|
fbb.addInt64(1, object.time);
|
|
fbb.addOffset(2, fromOffset);
|
|
fbb.addOffset(3, subjOffset);
|
|
fbb.addOffset(4, textOffset);
|
|
fbb.addBool(5, object.read);
|
|
fbb.finish(fbb.endTable());
|
|
return object.id;
|
|
},
|
|
objectFromFB: (obx.Store store, ByteData fbData) {
|
|
final buffer = fb.BufferContext(fbData);
|
|
final rootOffset = buffer.derefObject(0);
|
|
|
|
final object = ChatMessage()
|
|
..id = const fb.Int64Reader().vTableGet(buffer, rootOffset, 4, 0)
|
|
..time = const fb.Int64Reader().vTableGet(buffer, rootOffset, 6, 0)
|
|
..from = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 8, '')
|
|
..subj = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 10, '')
|
|
..text = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGet(buffer, rootOffset, 12, '')
|
|
..read = const fb.BoolReader().vTableGet(
|
|
buffer,
|
|
rootOffset,
|
|
14,
|
|
false,
|
|
);
|
|
|
|
return object;
|
|
},
|
|
),
|
|
TaskInfo: obx_int.EntityDefinition<TaskInfo>(
|
|
model: _entities[9],
|
|
toOneRelations: (TaskInfo object) => [],
|
|
toManyRelations: (TaskInfo object) => {},
|
|
getId: (TaskInfo object) => object.id,
|
|
setId: (TaskInfo object, int id) {
|
|
object.id = id;
|
|
},
|
|
objectToFB: (TaskInfo object, fb.Builder fbb) {
|
|
final additionalTextOffset = object.additionalText == null
|
|
? null
|
|
: fbb.writeString(object.additionalText!);
|
|
final answerOffset = object.answer == null
|
|
? null
|
|
: fbb.writeString(object.answer!);
|
|
fbb.startTable(6);
|
|
fbb.addInt64(0, object.id);
|
|
fbb.addInt64(1, object.sId);
|
|
fbb.addOffset(2, additionalTextOffset);
|
|
fbb.addOffset(3, answerOffset);
|
|
fbb.addBool(4, object.completed);
|
|
fbb.finish(fbb.endTable());
|
|
return object.id;
|
|
},
|
|
objectFromFB: (obx.Store store, ByteData fbData) {
|
|
final buffer = fb.BufferContext(fbData);
|
|
final rootOffset = buffer.derefObject(0);
|
|
|
|
final object = TaskInfo()
|
|
..id = const fb.Int64Reader().vTableGet(buffer, rootOffset, 4, 0)
|
|
..sId = const fb.Int64Reader().vTableGet(buffer, rootOffset, 6, 0)
|
|
..additionalText = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGetNullable(buffer, rootOffset, 8)
|
|
..answer = const fb.StringReader(
|
|
asciiOptimization: true,
|
|
).vTableGetNullable(buffer, rootOffset, 10)
|
|
..completed = const fb.BoolReader().vTableGet(
|
|
buffer,
|
|
rootOffset,
|
|
12,
|
|
false,
|
|
);
|
|
|
|
return object;
|
|
},
|
|
),
|
|
};
|
|
|
|
return obx_int.ModelDefinition(model, bindings);
|
|
}
|
|
|
|
/// [EnqueuedMessage] entity fields to define ObjectBox queries.
|
|
class EnqueuedMessage_ {
|
|
/// See [EnqueuedMessage.id].
|
|
static final id = obx.QueryIntegerProperty<EnqueuedMessage>(
|
|
_entities[0].properties[0],
|
|
);
|
|
|
|
/// See [EnqueuedMessage.messageId].
|
|
static final messageId = obx.QueryStringProperty<EnqueuedMessage>(
|
|
_entities[0].properties[1],
|
|
);
|
|
|
|
/// See [EnqueuedMessage.topic].
|
|
static final topic = obx.QueryStringProperty<EnqueuedMessage>(
|
|
_entities[0].properties[2],
|
|
);
|
|
|
|
/// See [EnqueuedMessage.payload].
|
|
static final payload = obx.QueryStringProperty<EnqueuedMessage>(
|
|
_entities[0].properties[3],
|
|
);
|
|
}
|
|
|
|
/// [Job] entity fields to define ObjectBox queries.
|
|
class Job_ {
|
|
/// See [Job.id].
|
|
static final id = obx.QueryIntegerProperty<Job>(_entities[1].properties[0]);
|
|
|
|
/// See [Job.ver].
|
|
static final ver = obx.QueryStringProperty<Job>(_entities[1].properties[1]);
|
|
|
|
/// See [Job.state].
|
|
static final state = obx.QueryIntegerProperty<Job>(
|
|
_entities[1].properties[2],
|
|
);
|
|
|
|
/// See [Job.crFilter].
|
|
static final crFilter = obx.QueryStringProperty<Job>(
|
|
_entities[1].properties[3],
|
|
);
|
|
|
|
/// See [Job.ordertime].
|
|
static final ordertime = obx.QueryIntegerProperty<Job>(
|
|
_entities[1].properties[4],
|
|
);
|
|
|
|
/// See [Job.offsWarn].
|
|
static final offsWarn = obx.QueryIntegerProperty<Job>(
|
|
_entities[1].properties[5],
|
|
);
|
|
|
|
/// See [Job.global].
|
|
static final global = obx.QueryBooleanProperty<Job>(
|
|
_entities[1].properties[6],
|
|
);
|
|
|
|
/// See [Job.vhtId].
|
|
static final vhtId = obx.QueryIntegerProperty<Job>(
|
|
_entities[1].properties[7],
|
|
);
|
|
|
|
/// See [Job.rem].
|
|
static final rem = obx.QueryStringProperty<Job>(_entities[1].properties[8]);
|
|
|
|
/// See [Job.delayOrderTime].
|
|
static final delayOrderTime = obx.QueryIntegerProperty<Job>(
|
|
_entities[1].properties[9],
|
|
);
|
|
|
|
/// See [Job.toursJson].
|
|
static final toursJson = obx.QueryStringProperty<Job>(
|
|
_entities[1].properties[10],
|
|
);
|
|
}
|
|
|
|
/// [LocationStatus] entity fields to define ObjectBox queries.
|
|
class LocationStatus_ {
|
|
/// See [LocationStatus.id].
|
|
static final id = obx.QueryIntegerProperty<LocationStatus>(
|
|
_entities[2].properties[0],
|
|
);
|
|
|
|
/// See [LocationStatus.zip].
|
|
static final zip = obx.QueryStringProperty<LocationStatus>(
|
|
_entities[2].properties[1],
|
|
);
|
|
|
|
/// See [LocationStatus.area].
|
|
static final area = obx.QueryStringProperty<LocationStatus>(
|
|
_entities[2].properties[2],
|
|
);
|
|
|
|
/// See [LocationStatus.zipReal].
|
|
static final zipReal = obx.QueryStringProperty<LocationStatus>(
|
|
_entities[2].properties[3],
|
|
);
|
|
}
|
|
|
|
/// [LogEntry] entity fields to define ObjectBox queries.
|
|
class LogEntry_ {
|
|
/// See [LogEntry.id].
|
|
static final id = obx.QueryIntegerProperty<LogEntry>(
|
|
_entities[3].properties[0],
|
|
);
|
|
|
|
/// See [LogEntry.time].
|
|
static final time = obx.QueryDateProperty<LogEntry>(
|
|
_entities[3].properties[1],
|
|
);
|
|
|
|
/// See [LogEntry.severity].
|
|
static final severity = obx.QueryIntegerProperty<LogEntry>(
|
|
_entities[3].properties[2],
|
|
);
|
|
|
|
/// See [LogEntry.text].
|
|
static final text = obx.QueryStringProperty<LogEntry>(
|
|
_entities[3].properties[3],
|
|
);
|
|
}
|
|
|
|
/// [Picture] entity fields to define ObjectBox queries.
|
|
class Picture_ {
|
|
/// See [Picture.id].
|
|
static final id = obx.QueryIntegerProperty<Picture>(
|
|
_entities[4].properties[0],
|
|
);
|
|
|
|
/// See [Picture.tourId].
|
|
static final tourId = obx.QueryIntegerProperty<Picture>(
|
|
_entities[4].properties[1],
|
|
);
|
|
|
|
/// See [Picture.number].
|
|
static final number = obx.QueryIntegerProperty<Picture>(
|
|
_entities[4].properties[2],
|
|
);
|
|
|
|
/// See [Picture.data].
|
|
static final data = obx.QueryStringProperty<Picture>(
|
|
_entities[4].properties[3],
|
|
);
|
|
}
|
|
|
|
/// [Ranking] entity fields to define ObjectBox queries.
|
|
class Ranking_ {
|
|
/// See [Ranking.id].
|
|
static final id = obx.QueryIntegerProperty<Ranking>(
|
|
_entities[5].properties[0],
|
|
);
|
|
|
|
/// See [Ranking.ranksJson].
|
|
static final ranksJson = obx.QueryStringProperty<Ranking>(
|
|
_entities[5].properties[1],
|
|
);
|
|
}
|
|
|
|
/// [SessionStatus] entity fields to define ObjectBox queries.
|
|
class SessionStatus_ {
|
|
/// See [SessionStatus.id].
|
|
static final id = obx.QueryIntegerProperty<SessionStatus>(
|
|
_entities[6].properties[0],
|
|
);
|
|
|
|
/// See [SessionStatus.custId].
|
|
static final custId = obx.QueryIntegerProperty<SessionStatus>(
|
|
_entities[6].properties[1],
|
|
);
|
|
|
|
/// See [SessionStatus.hqId].
|
|
static final hqId = obx.QueryIntegerProperty<SessionStatus>(
|
|
_entities[6].properties[2],
|
|
);
|
|
|
|
/// See [SessionStatus.usrId].
|
|
static final usrId = obx.QueryIntegerProperty<SessionStatus>(
|
|
_entities[6].properties[3],
|
|
);
|
|
|
|
/// See [SessionStatus.crId].
|
|
static final crId = obx.QueryIntegerProperty<SessionStatus>(
|
|
_entities[6].properties[4],
|
|
);
|
|
|
|
/// See [SessionStatus.sid].
|
|
static final sid = obx.QueryStringProperty<SessionStatus>(
|
|
_entities[6].properties[5],
|
|
);
|
|
|
|
/// See [SessionStatus.vhtId].
|
|
static final vhtId = obx.QueryIntegerProperty<SessionStatus>(
|
|
_entities[6].properties[6],
|
|
);
|
|
|
|
/// See [SessionStatus.locZip].
|
|
static final locZip = obx.QueryStringProperty<SessionStatus>(
|
|
_entities[6].properties[7],
|
|
);
|
|
|
|
/// See [SessionStatus.serverVersion].
|
|
static final serverVersion = obx.QueryStringProperty<SessionStatus>(
|
|
_entities[6].properties[8],
|
|
);
|
|
|
|
/// See [SessionStatus.serverInstance].
|
|
static final serverInstance = obx.QueryStringProperty<SessionStatus>(
|
|
_entities[6].properties[9],
|
|
);
|
|
|
|
/// See [SessionStatus.bwvEnabled].
|
|
static final bwvEnabled = obx.QueryBooleanProperty<SessionStatus>(
|
|
_entities[6].properties[10],
|
|
);
|
|
}
|
|
|
|
/// [Status] entity fields to define ObjectBox queries.
|
|
class Status_ {
|
|
/// See [Status.id].
|
|
static final id = obx.QueryIntegerProperty<Status>(
|
|
_entities[7].properties[0],
|
|
);
|
|
|
|
/// See [Status.posZip].
|
|
static final posZip = obx.QueryStringProperty<Status>(
|
|
_entities[7].properties[1],
|
|
);
|
|
|
|
/// See [Status.posArea].
|
|
static final posArea = obx.QueryStringProperty<Status>(
|
|
_entities[7].properties[2],
|
|
);
|
|
|
|
/// See [Status.posZipReal].
|
|
static final posZipReal = obx.QueryStringProperty<Status>(
|
|
_entities[7].properties[3],
|
|
);
|
|
}
|
|
|
|
/// [ChatMessage] entity fields to define ObjectBox queries.
|
|
class ChatMessage_ {
|
|
/// See [ChatMessage.id].
|
|
static final id = obx.QueryIntegerProperty<ChatMessage>(
|
|
_entities[8].properties[0],
|
|
);
|
|
|
|
/// See [ChatMessage.time].
|
|
static final time = obx.QueryIntegerProperty<ChatMessage>(
|
|
_entities[8].properties[1],
|
|
);
|
|
|
|
/// See [ChatMessage.from].
|
|
static final from = obx.QueryStringProperty<ChatMessage>(
|
|
_entities[8].properties[2],
|
|
);
|
|
|
|
/// See [ChatMessage.subj].
|
|
static final subj = obx.QueryStringProperty<ChatMessage>(
|
|
_entities[8].properties[3],
|
|
);
|
|
|
|
/// See [ChatMessage.text].
|
|
static final text = obx.QueryStringProperty<ChatMessage>(
|
|
_entities[8].properties[4],
|
|
);
|
|
|
|
/// See [ChatMessage.read].
|
|
static final read = obx.QueryBooleanProperty<ChatMessage>(
|
|
_entities[8].properties[5],
|
|
);
|
|
}
|
|
|
|
/// [TaskInfo] entity fields to define ObjectBox queries.
|
|
class TaskInfo_ {
|
|
/// See [TaskInfo.id].
|
|
static final id = obx.QueryIntegerProperty<TaskInfo>(
|
|
_entities[9].properties[0],
|
|
);
|
|
|
|
/// See [TaskInfo.sId].
|
|
static final sId = obx.QueryIntegerProperty<TaskInfo>(
|
|
_entities[9].properties[1],
|
|
);
|
|
|
|
/// See [TaskInfo.additionalText].
|
|
static final additionalText = obx.QueryStringProperty<TaskInfo>(
|
|
_entities[9].properties[2],
|
|
);
|
|
|
|
/// See [TaskInfo.answer].
|
|
static final answer = obx.QueryStringProperty<TaskInfo>(
|
|
_entities[9].properties[3],
|
|
);
|
|
|
|
/// See [TaskInfo.completed].
|
|
static final completed = obx.QueryBooleanProperty<TaskInfo>(
|
|
_entities[9].properties[4],
|
|
);
|
|
}
|