29 lines
585 B
Dart
29 lines
585 B
Dart
|
import 'package:objectbox/objectbox.dart';
|
||
|
|
||
|
@Entity()
|
||
|
class CapturePoint {
|
||
|
CapturePoint({
|
||
|
required this.type,
|
||
|
required this.rotationX,
|
||
|
required this.rotationY,
|
||
|
required this.rotationZ,
|
||
|
required this.accelerationX,
|
||
|
required this.accelerationY,
|
||
|
required this.accelerationZ,
|
||
|
this.millisecondsSinceEpoch,
|
||
|
});
|
||
|
@Id()
|
||
|
int id = 0;
|
||
|
|
||
|
String type;
|
||
|
String rotationX;
|
||
|
String rotationY;
|
||
|
String rotationZ;
|
||
|
String accelerationX;
|
||
|
String accelerationY;
|
||
|
String accelerationZ;
|
||
|
|
||
|
// @Property(type: PropertyType.date)
|
||
|
int? millisecondsSinceEpoch;
|
||
|
}
|