# CardTerminalToMonitor

    class CardTerminalToMonitor

Class holding information on a monitored CardTerminal

- `terminal`

  Reference to a CardTerminal being monitored

  #### Declaration

  Swift

      private var terminal: CardTerminal?

- `terminalName`

  Name of CardTerminal being monitored

  #### Declaration

  Swift

      private var terminalName: String

- `noticeGiven`

  Flag indicating if the battery threshold noticed has been given already or not

  #### Declaration

  Swift

      private var noticeGiven: Bool

- `threshold`

  Battery threshold value to monitor for

  #### Declaration

  Swift

      private var threshold: UInt8

- `init(cardTerminal:batteryThreshold:)`

  Initialiser. Initialises the CardTerminal to monitor and the battery threshold.

  #### Declaration

  Swift

      init(cardTerminal: CardTerminal, batteryThreshold: UInt8)

  #### Parameters

  `cardTerminal` | CardTerminal to monitor
  `batteryThreshold` | Battery threshold value to monitor

- `deinit`

  De-initialiser. cleans up

  #### Declaration

  Swift

      deinit

- `cardTerminalName`

  Returns the CardTerminal name

  #### Declaration

  Swift

      var cardTerminalName: String { get }

- `batteryThreshold`

  Gets or sets the monitored battery threshold value

  #### Declaration

  Swift

      var batteryThreshold: UInt8 { get set }

- `batteryNoticeGiven`

  Gets or sets the flag if a battery threshold notice has been given or not

  #### Declaration

  Swift

      var batteryNoticeGiven: Bool { get set }

- `batteryThresholdReached()`

  Checks if the battery level of the monitored CardTeminal has reached the set battery threshold.

  #### Declaration

  Swift

      func batteryThresholdReached() -> Bool

  #### Return Value

  True if threshold has been reached, else false

- `cleanup()`

  Cleans up the CardTerminal reference

  #### Declaration

  Swift

      func cleanup()

Copyright (c) 2018-2024, AB Circle Ltd. All rights reserved.

Generated by jazzy ♪♫ v0.14.3, a Realm project.