MessageBody.swift 429 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // MessageBody.swift
  3. // Naterade
  4. //
  5. // Created by Nathan Racklyeft on 9/4/15.
  6. // Copyright © 2015 Nathan Racklyeft. All rights reserved.
  7. //
  8. import Foundation
  9. public protocol MessageBody {
  10. static var length: Int {
  11. get
  12. }
  13. init?(rxData: Data)
  14. var txData: Data {
  15. get
  16. }
  17. }
  18. public protocol DictionaryRepresentable {
  19. var dictionaryRepresentation: [String: Any] {
  20. get
  21. }
  22. }