Blame view
App/model/MucChup.swift
462 Bytes
|
d774f0637
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
//
// Created by Philip Tran on 2/25/17.
//
import Foundation
class MucChup: Equatable {
var id: Int?
var name: String?
var isSelected: Bool?
init(id: Int? = nil, name: String? = nil) {
self.id = id
self.name = name
}
}
func ==(lhs: MucChup, rhs: MucChup) -> Bool {
if let lhsName = lhs.name, let rhsName = rhs.name {
return lhsName == rhsName
}
return ObjectIdentifier(lhs) == ObjectIdentifier(rhs)
}
|