mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-23 22:12:43 +00:00
21 lines
605 B
Swift
21 lines
605 B
Swift
|
|
public struct PeerReadState: Equatable {
|
|
public let maxReadId: MessageId.Id
|
|
public let maxKnownId: MessageId.Id
|
|
public let count: Int32
|
|
|
|
public init(maxReadId: MessageId.Id, maxKnownId: MessageId.Id, count: Int32) {
|
|
self.maxReadId = maxReadId
|
|
self.maxKnownId = maxKnownId
|
|
self.count = count
|
|
}
|
|
}
|
|
|
|
public func ==(lhs: PeerReadState, rhs: PeerReadState) -> Bool {
|
|
return lhs.maxReadId == rhs.maxReadId && lhs.maxKnownId == rhs.maxKnownId && lhs.count == rhs.count
|
|
}
|
|
|
|
struct CombinedPeerReadState {
|
|
let states: [(MessageId.Namespace, PeerReadState)]
|
|
}
|