FileStudyProtocolManager class
Retrieve and store StudyProtocol
json definitions on the device's local
file system.
The path and filename format is
~/carp/study/study-<study_id>.json
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
filename(
String studyId) → String - Current path and filename according to this format:
-
getStudyProtocol(
String studyId) → Future< SmartphoneStudyProtocol?> -
Get a SmartphoneStudyProtocol based on its
id
. Returnsnull
if no protocol exists.override -
initialize(
) → Future< void> -
Initializing the the local FileDeploymentService
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saveStudyProtocol(
String studyId, SmartphoneStudyProtocol study) → Future< bool> -
Save a study on the local file system.
Returns
true
if successful.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited