NotifSound.swift 575 B

1234567891011121314151617181920212223242526
  1. //
  2. // NotifSound.swift
  3. // NexilisLite
  4. //
  5. // Created by Akhmad Al Qindi Irsyam on 28/11/22.
  6. //
  7. import Foundation
  8. public class NotifSound: Model {
  9. public var id: Int
  10. public var name: String
  11. public var isSelected: Bool
  12. public var description: String
  13. public init(id: Int, name: String, isSelected: Bool = false) {
  14. self.id = id
  15. self.name = name
  16. self.isSelected = isSelected
  17. self.description = ""
  18. }
  19. public static func == (lhs: NotifSound, rhs: NotifSound) -> Bool {
  20. return lhs.id == rhs.id
  21. }
  22. }