DexcomG7HeartBeat.swift 1020 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // DexcomG7HeartBeat.swift
  3. // LoopFollow
  4. //
  5. // Created by Jonas Björkert on 2025-01-04.
  6. // Copyright © 2025 Jon Fawcett. All rights reserved.
  7. //
  8. // Denna behövs
  9. import Foundation
  10. /// A simple class to represent the Dexcom G7 Heartbeat.
  11. /// It wraps around a `BLEPeripheral` to store relevant information.
  12. public class DexcomG7HeartBeat {
  13. // MARK: - Properties
  14. /// The BLEPeripheral instance associated with this heartbeat.
  15. public let blePeripheral: BLEPeripheral
  16. // MARK: - Initialization
  17. /// Initializes a new DexcomG7HeartBeat instance.
  18. /// - Parameters:
  19. /// - address: The unique address of the BLE device.
  20. /// - name: The name of the BLE device.
  21. /// - alias: An optional alias for the device.
  22. public init(address: String, name: String, alias: String? = nil) {
  23. self.blePeripheral = BLEPeripheral(
  24. address: address,
  25. name: name,
  26. alias: alias,
  27. peripheralType: .DexcomG7HeartBeatType
  28. )
  29. }
  30. }