SmartphoneDeployment constructor
SmartphoneDeployment({
- String? studyId,
- String? studyDeploymentId,
- required PrimaryDeviceConfiguration<
DeviceRegistration> deviceConfiguration, - required DeviceRegistration registration,
- Set<
DeviceConfiguration< connectedDevices = const {},DeviceRegistration> > - Map<
String, DeviceRegistration?> connectedDeviceRegistrations = const {}, - Set<
TaskConfiguration> tasks = const {}, - Map<
String, TriggerConfiguration> triggers = const {}, - Set<
TaskControl> taskControls = const {}, - Set<
ExpectedParticipantData> expectedParticipantData = const {}, - String? participantId,
- String? participantRoleName,
- StudyDescription? studyDescription,
- DataEndPoint? dataEndPoint,
- 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,
);
}