SmartphoneDeployment constructor

SmartphoneDeployment({
  1. String? studyDeploymentId,
  2. required PrimaryDeviceConfiguration<DeviceRegistration> deviceConfiguration,
  3. required DeviceRegistration registration,
  4. Set<DeviceConfiguration<DeviceRegistration>> connectedDevices = const {},
  5. Map<String, DeviceRegistration?> connectedDeviceRegistrations = const {},
  6. Set<TaskConfiguration> tasks = const {},
  7. Map<String, TriggerConfiguration> triggers = const {},
  8. Set<TaskControl> taskControls = const {},
  9. Set<ExpectedParticipantData> expectedParticipantData = const {},
  10. String? userId,
  11. StudyDescription? studyDescription,
  12. DataEndPoint? dataEndPoint,
  13. String? privacySchemaName,
})

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.deviceConfiguration,
  required super.registration,
  super.connectedDevices,
  super.connectedDeviceRegistrations,
  super.tasks,
  super.triggers,
  super.taskControls,
  super.expectedParticipantData,
  this.userId,
  StudyDescription? studyDescription,
  DataEndPoint? dataEndPoint,
  String? privacySchemaName,
}) {
  _studyDeploymentId = studyDeploymentId ?? const Uuid().v1();
  _data = SmartphoneApplicationData(
    studyDescription: studyDescription,
    dataEndPoint: dataEndPoint,
    privacySchemaName: privacySchemaName,
  );
}