RiskLevel

enum RiskLevel : Int, CaseIterable, Equatable
extension RiskLevel: Comparable

Exposure Risk level

Important

Due to exception case, CaseIterable allCases does not produce a correctly sorted collection!
  • low

    Low risk

    Declaration

    Swift

    case low = 0
  • Unknown risk last calculation more than 24 hours old

    Will be shown when the last calculation is more than 24 hours old - until the calculation is run again

    Declaration

    Swift

    case unknownOutdated
  • Unknown risk - no calculation has been performed yet or tracing has been active for less than 24h

    Declaration

    Swift

    case unknownInitial
  • Increased risk

    Declaration

    Swift

    case increased
  • No calculation possible - tracing is inactive

    Important

    Should always be displayed, even if a different risk level has been calculated. It overrides all other levels!

    Declaration

    Swift

    case inactive
  • Declaration

    Swift

    static func < (lhs: RiskLevel, rhs: RiskLevel) -> Bool