SmartphoneStudyProtocol constructor
SmartphoneStudyProtocol({
- String? ownerId,
- required String name,
- StudyDescription? studyDescription,
- DataEndPoint? dataEndPoint,
- 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,
);
}