SmartphoneDeployment constructor
SmartphoneDeployment({
- String? studyDeploymentId,
- required MasterDeviceDescriptor deviceDescriptor,
- required DeviceRegistration configuration,
- List<
DeviceDescriptor> connectedDevices = const [], - Map<
String, DeviceRegistration?> connectedDeviceConfigurations = const {}, - List<
TaskDescriptor> tasks = const [], - Map<
String, Trigger> triggers = const {}, - List<
TriggeredTask> triggeredTasks = const [], - StudyDescription? studyDescription,
- DataEndPoint? dataEndPoint,
Create a new SmartphoneDeployment.
studyDeploymentId
is a unique id for this deployment. If not specified,
a unique id will be generated.
Implementation
SmartphoneDeployment({
String? studyDeploymentId,
required super.deviceDescriptor,
required super.configuration,
super.connectedDevices = const [],
super.connectedDeviceConfigurations = const {},
super.tasks = const [],
super.triggers = const {},
super.triggeredTasks = const [],
this.studyDescription,
this.dataEndPoint,
}) {
_studyDeploymentId = studyDeploymentId ?? Uuid().v1();
}