toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DeviceStatusDetailCode.deviceSoftwareUpdateNeeded:
      return 'DEVICE_SOFTWARE_UPDATE_NEEDED';
    case DeviceStatusDetailCode.deviceWasOffline:
      return 'DEVICE_WAS_OFFLINE';
    case DeviceStatusDetailCode.credentialsAccessFailure:
      return 'CREDENTIALS_ACCESS_FAILURE';
    case DeviceStatusDetailCode.tlsVersionMismatch:
      return 'TLS_VERSION_MISMATCH';
    case DeviceStatusDetailCode.associationRejection:
      return 'ASSOCIATION_REJECTION';
    case DeviceStatusDetailCode.authenticationFailure:
      return 'AUTHENTICATION_FAILURE';
    case DeviceStatusDetailCode.dhcpFailure:
      return 'DHCP_FAILURE';
    case DeviceStatusDetailCode.internetUnavailable:
      return 'INTERNET_UNAVAILABLE';
    case DeviceStatusDetailCode.dnsFailure:
      return 'DNS_FAILURE';
    case DeviceStatusDetailCode.unknownFailure:
      return 'UNKNOWN_FAILURE';
    case DeviceStatusDetailCode.certificateIssuingLimitExceeded:
      return 'CERTIFICATE_ISSUING_LIMIT_EXCEEDED';
    case DeviceStatusDetailCode.invalidCertificateAuthority:
      return 'INVALID_CERTIFICATE_AUTHORITY';
    case DeviceStatusDetailCode.networkProfileNotFound:
      return 'NETWORK_PROFILE_NOT_FOUND';
    case DeviceStatusDetailCode.invalidPasswordState:
      return 'INVALID_PASSWORD_STATE';
    case DeviceStatusDetailCode.passwordNotFound:
      return 'PASSWORD_NOT_FOUND';
    case DeviceStatusDetailCode.passwordManagerAccessDenied:
      return 'PASSWORD_MANAGER_ACCESS_DENIED';
    case DeviceStatusDetailCode.certificateAuthorityAccessDenied:
      return 'CERTIFICATE_AUTHORITY_ACCESS_DENIED';
  }
}