Swiftgram/Postbox/ChatListHole.swift
2016-03-28 17:23:33 +03:00

22 lines
518 B
Swift

import Foundation
public struct ChatListHole: Comparable, 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 func ==(lhs: ChatListHole, rhs: ChatListHole) -> Bool {
return lhs.index == rhs.index
}
public func <(lhs: ChatListHole, rhs: ChatListHole) -> Bool {
return lhs.index < rhs.index
}