ActiveParticipationInvitation
An invitation to participate in an active study deployment using the assignedDevices.
Returned by ParticipationService.getActiveParticipationInvitations. A participant app shows these to let the user pick a study, and then creates a Study from studyDeploymentId and deviceRoleName. Some of the devices which the participant is invited to might already be registered. If the participant wants to use a different device, they will need to unregister the existing device first.
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
ActiveParticipationInvitation.fromJson
ActiveParticipationInvitation
- Participation participation,
- StudyInvitation invitation
Properties
assignedDevices
The primary devices the participant is invited to use.
deviceRoleName
The role name of the first assigned device; null if assignedDevices is null. Throws a StateError if the list is empty.
invitation
The study description shown to the participant.
participantId
The ID of the participant.
participantRoleName
The first role name of the participant; null if assigned to all roles.
participation
Who participates in which study deployment.
studyDeploymentId
The study deployment ID.
studyDescription
The study description.
studyId
The ID of the study; null if not available.
The study ID is extracted from StudyInvitation.applicationData of the invitation, either as a plain string or as the studyId field of a map.
studyName
The study name.
Methods
toJson
toString
A string representation of this object.
Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.
Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.