Swiftgram/Postbox/ChatListHolesView.swift
2016-08-23 16:19:22 +03:00

23 lines
507 B
Swift

import Foundation
final class MutableChatListHolesView {
fileprivate var entries = Set<ChatListHole>()
func update(holes: Set<ChatListHole>) -> Bool {
if self.entries != holes {
self.entries = holes
return true
} else {
return false
}
}
}
public final class ChatListHolesView {
public let entries: Set<ChatListHole>
init(_ mutableView: MutableChatListHolesView) {
self.entries = mutableView.entries
}
}