SmartphoneDeployment constructor

SmartphoneDeployment({
  1. String? studyId,
  2. String? studyDeploymentId,
  3. required PrimaryDeviceConfiguration<DeviceRegistration> deviceConfiguration,
  4. required DeviceRegistration registration,
  5. Set<DeviceConfiguration<DeviceRegistration>> connectedDevices = const {},
  6. Map<String, DeviceRegistration?> connectedDeviceRegistrations = const {},
  7. Set<TaskConfiguration> tasks = const {},
  8. Map<String, TriggerConfiguration> triggers = const {},
  9. Set<TaskControl> taskControls = const {},
  10. Set<ExpectedParticipantData> expectedParticipantData = const {},
  11. String? participantId,
  12. String? participantRoleName,
  13. StudyDescription? studyDescription,
  14. DataEndPoint? dataEndPoint,
  15. 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({
  this.studyId,
  String? studyDeploymentId,
  required super.deviceConfiguration,
  required super.registration,
  super.connectedDevices,
  super.connectedDeviceRegistrations,
  super.tasks,
  super.triggers,
  super.taskControls,
  super.expectedParticipantData,
  this.participantId,
  this.participantRoleName,
  StudyDescription? studyDescription,
  DataEndPoint? dataEndPoint,
  String? privacySchemaName,
}) {
  _studyDeploymentId = studyDeploymentId ?? const Uuid().v1;
  _data = SmartphoneApplicationData(
    studyDescription: studyDescription,
    dataEndPoint: dataEndPoint,
    privacySchemaName: privacySchemaName,
  );
}