SmartphoneDeployment constructor

SmartphoneDeployment({
  1. String? studyDeploymentId,
  2. required MasterDeviceDescriptor deviceDescriptor,
  3. required DeviceRegistration configuration,
  4. List<DeviceDescriptor> connectedDevices = const [],
  5. Map<String, DeviceRegistration?> connectedDeviceConfigurations = const {},
  6. List<TaskDescriptor> tasks = const [],
  7. Map<String, Trigger> triggers = const {},
  8. List<TriggeredTask> triggeredTasks = const [],
  9. StudyDescription? studyDescription,
  10. 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();
}