SetRemoteControlEnabledMessageBody.swift 330 B

12345678910111213141516
  1. //
  2. // SetRemoteControlEnabledMessageBody.swift
  3. // MinimedKit
  4. //
  5. // Copyright © 2018 Pete Schwamb. All rights reserved.
  6. //
  7. import Foundation
  8. public class SetRemoteControlEnabledMessageBody: CarelinkLongMessageBody {
  9. public convenience init(enabled: Bool) {
  10. self.init(rxData: Data([1, enabled ? 1 : 0]))!
  11. }
  12. }