getStudyDeploymentStatus method

Future<StudyDeploymentStatus?> getStudyDeploymentStatus()
inherited

Get the status for a study deployment for the study. Returns null if studyDeploymentId is not found.

Implementation

Future<StudyDeploymentStatus?> getStudyDeploymentStatus() async {
  try {
    deploymentStatus = await deploymentService
        .getStudyDeploymentStatus(study!.studyDeploymentId);
    status = StudyStatus.DeploymentStatusAvailable;
  } catch (error) {
    deploymentStatus = null;
  }
  if (deploymentStatus == null) {
    status = StudyStatus.DeploymentNotAvailable;
    print(
        "$runtimeType - Could not get deployment with id '${study!.studyDeploymentId}' from the deployment service: $deploymentService");
  }
  return deploymentStatus;
}