Made Alarm Equatable (==)
Ignores WVM
This commit is contained in:
@@ -45,8 +45,14 @@ let wvms = [
|
|||||||
//WVM(name: "Jump", desc: "Make a few jumps")
|
//WVM(name: "Jump", desc: "Make a few jumps")
|
||||||
]
|
]
|
||||||
|
|
||||||
class Alarm: Codable
|
class Alarm: Codable, Equatable
|
||||||
{
|
{
|
||||||
|
static func == (lhs: Alarm, rhs: Alarm) -> Bool {
|
||||||
|
return lhs.hour == rhs.hour && lhs.minute == rhs.minute && lhs.text == rhs.text &&
|
||||||
|
lhs.alarmTone == rhs.alarmTone && lhs.notificationID == rhs.notificationID &&
|
||||||
|
lhs.repeats == rhs.repeats
|
||||||
|
}
|
||||||
|
|
||||||
var enabled: Bool
|
var enabled: Bool
|
||||||
var hour: Int // Hour (24)
|
var hour: Int // Hour (24)
|
||||||
var minute: Int
|
var minute: Int
|
||||||
|
|||||||
Reference in New Issue
Block a user