| 1234567891011121314151617181920212223242526272829303132 |
- //
- // ReadPumpStatusMessageBody.swift
- // RileyLink
- //
- // Created by Pete Schwamb on 7/31/16.
- // Copyright © 2016 Pete Schwamb. All rights reserved.
- //
- import Foundation
- public class ReadPumpStatusMessageBody: CarelinkLongMessageBody {
- public let bolusing: Bool
- public let suspended: Bool
- public required init?(rxData: Data) {
- guard rxData.count == type(of: self).length else {
- return nil
- }
- bolusing = rxData[2] > 0
- suspended = rxData[3] > 0
- super.init(rxData: rxData)
- }
- public required init?(rxData: NSData) {
- fatalError("init(rxData:) has not been implemented")
- }
-
- }
|