CarpDeploymentService class

A DeploymentService that talks to the CARP Web Services.

Inheritance

Constructors

CarpDeploymentService()
Returns the singleton default instance of the CarpDeploymentService. Before this instance can be used, it must be configured using the configure method.
factory

Properties

app CarpApp?
The CARP app associated with the CARP Web Service. Returns null if this service has not yet been configured via the configure method.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
The headers for any authenticated HTTP REST call to a CarpBaseService.
no setterinherited
isConfigured bool
Has this service been configured?
no setterinherited
rpcEndpointName String
The endpoint name for this service at CARP.
no setteroverride
rpcEndpointUri String
The URL for this service's endpoint at CARP.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

configure(CarpApp app) → void
Configure the this instance of a Carp Service.
inherited
configureFrom(CarpBaseService service) → void
Configure from another service which has already been configured and potentially authenticated.
inherited
createStudyDeployment(StudyProtocol protocol, [List<ParticipantInvitation> invitations = const [], String? id, Map<String, DeviceRegistration>? connectedDevicePreregistrations]) Future<StudyDeploymentStatus>
Instantiate a study deployment for a given StudyProtocol with participants defined in invitations.
override
deployment([String? studyDeploymentId]) DeploymentReference
Gets a DeploymentReference for a studyDeploymentId. If the studyDeploymentId is not provided, the study deployment id specified in the CarpApp is used.
deviceDeployed(String studyDeploymentId, String masterDeviceRoleName, DateTime deviceDeploymentLastUpdatedOn) Future<StudyDeploymentStatus>
Indicate to stakeholders in the study deployment with studyDeploymentId that the device with primaryDeviceRoleName was deployed successfully, using the deployment with the specified deviceDeploymentLastUpdatedOn, i.e., that the study deployment was loaded on the device and that the necessary runtime is available to run it.
override
getDeviceDeploymentFor(String studyDeploymentId, String primaryDeviceRoleName) Future<SmartphoneDeployment>
Get the deployment configuration for the primary device with primaryDeviceRoleName in the study deployment with studyDeploymentId. Returns null if studyDeploymentId is not found.
override
getStudyDeploymentStatus(String studyDeploymentId) Future<StudyDeploymentStatus>
Get the status for a study deployment with the given studyDeploymentId. Returns null if studyDeploymentId is not found.
override
getStudyDeploymentStatusList(List<String> studyDeploymentIds) Future<List<StudyDeploymentStatus>>
Get the statuses for a set of deployments with the specified studyDeploymentIds.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerDevice(String studyDeploymentId, String deviceRoleName, DeviceRegistration registration) Future<StudyDeploymentStatus>
Register the device with the specified deviceRoleName for the study deployment with studyDeploymentId.
override
removeStudyDeployments(Set<String> studyDeploymentIds) Future<Set<String>>
Remove study deployments with the given studyDeploymentIds. This also removes all data related to the study deployments.
override
stop(String studyDeploymentId) Future<StudyDeploymentStatus>
Permanently stop the study deployment with the specified studyDeploymentId.
override
toString() String
A string representation of this object.
inherited
unregisterDevice(String studyDeploymentId, String deviceRoleName) Future<StudyDeploymentStatus>
Unregister the device with the specified deviceRoleName for the study deployment with studyDeploymentId. Returns null if studyDeploymentId is not found.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited