SmartphoneStudyProtocol constructor

SmartphoneStudyProtocol({
  1. String? ownerId,
  2. required String name,
  3. StudyDescription? studyDescription,
  4. DataEndPoint? dataEndPoint,
  5. String? privacySchemaName,
})

Create a new SmartphoneStudyProtocol.

If ownerId is not specified, a UUID will be generated.

Implementation

SmartphoneStudyProtocol({
  String? ownerId,
  required super.name,
  StudyDescription? studyDescription,
  DataEndPoint? dataEndPoint,
  String? privacySchemaName,
}) : super(
        ownerId: ownerId ?? const Uuid().v1(),
        description: studyDescription?.description ?? '',
      ) {
  // add the smartphone specific protocol data as application-specific data
  _data = SmartphoneApplicationData(
    studyDescription: studyDescription,
    dataEndPoint: dataEndPoint,
    privacySchemaName: privacySchemaName,
  );
}