Swiftgram/Postbox/ChatListHole.swift
2016-08-19 16:20:03 +03:00

26 lines
595 B
Swift

import Foundation
public struct ChatListHole: Hashable, CustomStringConvertible {
public let index: MessageIndex
public init(index: MessageIndex) {
self.index = index
}
public var description: String {
return "ChatListHole(\(self.index.id), \(self.index.timestamp))"
}
public var hashValue: Int {
return self.index.hashValue
}
}
public func ==(lhs: ChatListHole, rhs: ChatListHole) -> Bool {
return lhs.index == rhs.index
}
public func <(lhs: ChatListHole, rhs: ChatListHole) -> Bool {
return lhs.index < rhs.index
}