mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-03-29 22:39:31 +08:00
37 lines
725 B
Swift
37 lines
725 B
Swift
//
|
|
// IssueAssigneesModel.swift
|
|
// Freetime
|
|
//
|
|
// Created by Ryan Nystrom on 7/13/17.
|
|
// Copyright © 2017 Ryan Nystrom. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import IGListKit
|
|
|
|
final class IssueAssigneesModel: ListDiffable {
|
|
|
|
enum Assignment: String {
|
|
case assigned, reviewRequested
|
|
}
|
|
|
|
let users: [IssueAssigneeViewModel]
|
|
let type: Assignment
|
|
|
|
init(users: [IssueAssigneeViewModel], type: Assignment) {
|
|
self.users = users
|
|
self.type = type
|
|
}
|
|
|
|
// MARK: ListDiffable
|
|
|
|
func diffIdentifier() -> NSObjectProtocol {
|
|
return type.rawValue as NSObjectProtocol
|
|
}
|
|
|
|
func isEqual(toDiffableObject object: ListDiffable?) -> Bool {
|
|
return true
|
|
}
|
|
|
|
}
|