initial commit
This commit is contained in:
18
lib/xiao_connector/models/capture_box.dart
Normal file
18
lib/xiao_connector/models/capture_box.dart
Normal file
@@ -0,0 +1,18 @@
|
||||
import 'package:objectbox/objectbox.dart';
|
||||
|
||||
@Entity()
|
||||
class CaptureBox {
|
||||
CaptureBox({
|
||||
required this.type,
|
||||
required this.uuid,
|
||||
required this.startTime,
|
||||
});
|
||||
@Id()
|
||||
int id = 0;
|
||||
|
||||
String type;
|
||||
String uuid;
|
||||
|
||||
@Property(type: PropertyType.date)
|
||||
DateTime startTime;
|
||||
}
|
||||
32
lib/xiao_connector/models/capture_point.dart
Normal file
32
lib/xiao_connector/models/capture_point.dart
Normal file
@@ -0,0 +1,32 @@
|
||||
import 'package:objectbox/objectbox.dart';
|
||||
|
||||
@Entity()
|
||||
class CapturePoint {
|
||||
CapturePoint({
|
||||
required this.type,
|
||||
required this.uuid,
|
||||
required this.rotationX,
|
||||
required this.rotationY,
|
||||
required this.rotationZ,
|
||||
required this.accelerationX,
|
||||
required this.accelerationY,
|
||||
required this.accelerationZ,
|
||||
required this.millisecondsSinceEpochReceived,
|
||||
required this.millisecondsSinceEpochSend,
|
||||
});
|
||||
@Id()
|
||||
int id = 0;
|
||||
|
||||
String type;
|
||||
String uuid;
|
||||
|
||||
int rotationX;
|
||||
int rotationY;
|
||||
int rotationZ;
|
||||
int accelerationX;
|
||||
int accelerationY;
|
||||
int accelerationZ;
|
||||
|
||||
int millisecondsSinceEpochReceived;
|
||||
int millisecondsSinceEpochSend;
|
||||
}
|
||||
Reference in New Issue
Block a user