getCertificateValue function

int getCertificateValue(
  1. CertificateType certificate
)

Implementation

int getCertificateValue(CertificateType certificate) {
  switch (certificate) {
    case CertificateType.registration:
      return 1;
    case CertificateType.degreeWithExams:
    case CertificateType.degreeWithThesis:
    case CertificateType.degreeWithEvaluation:
    default:
      return -1;
  }
}