SmartphoneDeployment.fromMasterDeviceDeploymentAndSmartphoneStudyProtocol constructor

SmartphoneDeployment.fromMasterDeviceDeploymentAndSmartphoneStudyProtocol({
  1. String? studyDeploymentId,
  2. required MasterDeviceDeployment deployment,
  3. required SmartphoneStudyProtocol protocol,
})

Create a SmartphoneDeployment that combines a MasterDeviceDeployment and a SmartphoneStudyProtocol.

Implementation

SmartphoneDeployment.fromMasterDeviceDeploymentAndSmartphoneStudyProtocol({
  String? studyDeploymentId,
  required MasterDeviceDeployment deployment,
  required SmartphoneStudyProtocol protocol,
}) : this(
        studyDeploymentId: studyDeploymentId,
        deviceDescriptor: deployment.deviceDescriptor,
        configuration: deployment.configuration,
        connectedDevices: protocol.connectedDevices,
        connectedDeviceConfigurations:
            deployment.connectedDeviceConfigurations,
        tasks: protocol.tasks.toList(),
        triggers: protocol.triggers,
        triggeredTasks: protocol.triggeredTasks,
        studyDescription: protocol.studyDescription,
        dataEndPoint: protocol.dataEndPoint,
      );