DexcomG7HeartBeat.swift 901 B

1234567891011121314151617181920212223242526272829303132
  1. // LoopFollow
  2. // DexcomG7HeartBeat.swift
  3. // Denna behövs
  4. import Foundation
  5. /// A simple class to represent the Dexcom G7 Heartbeat.
  6. /// It wraps around a `BLEPeripheral` to store relevant information.
  7. public class DexcomG7HeartBeat {
  8. // MARK: - Properties
  9. /// The BLEPeripheral instance associated with this heartbeat.
  10. public let blePeripheral: BLEPeripheral
  11. // MARK: - Initialization
  12. /// Initializes a new DexcomG7HeartBeat instance.
  13. /// - Parameters:
  14. /// - address: The unique address of the BLE device.
  15. /// - name: The name of the BLE device.
  16. /// - alias: An optional alias for the device.
  17. public init(address: String, name: String, alias: String? = nil) {
  18. blePeripheral = BLEPeripheral(
  19. address: address,
  20. name: name,
  21. alias: alias,
  22. peripheralType: .DexcomG7HeartBeatType
  23. )
  24. }
  25. }