Message.swift 298 B

1234567891011121314151617181920
  1. //
  2. // Message.swift
  3. // Chat (iOS)
  4. //
  5. // Created by Sergey Tarasov on 13.10.2022.
  6. //
  7. import Foundation
  8. struct Message {
  9. let id: String
  10. let body: String
  11. let fromID: String
  12. }
  13. extension Message: Equatable {
  14. static func == (lhs: Message, rhs: Message) -> Bool {
  15. return lhs.id == rhs.id
  16. }
  17. }