IGListKit/Examples/Examples-iOS/IGListKitExamples/Models/Month.swift
Nate Stedman 1a44045dce Run lint on IGListKit
Differential Revision: D19141253

fbshipit-source-id: 9ed4c278a91bb48a1f6d33cafa9ce8f21861573d
2019-12-19 09:34:42 -08:00

37 lines
776 B
Swift

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import Foundation
import IGListKit
final class Month {
let name: String
let days: Int
// day int mapped to an array of appointment names
let appointments: [Int: [NSString]]
init(name: String, days: Int, appointments: [Int: [NSString]]) {
self.name = name
self.days = days
self.appointments = appointments
}
}
extension Month: ListDiffable {
func diffIdentifier() -> NSObjectProtocol {
return name as NSObjectProtocol
}
func isEqual(toDiffableObject object: ListDiffable?) -> Bool {
return true
}
}