mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-17 11:00:07 +00:00
21 lines
435 B
Swift
21 lines
435 B
Swift
import Foundation
|
|
import Postbox
|
|
|
|
class ViewCountMessageAttribute: MessageAttribute {
|
|
let count: Int
|
|
|
|
var associatedMessageIds: [MessageId] = []
|
|
|
|
init(count: Int) {
|
|
self.count = count
|
|
}
|
|
|
|
required init(decoder: Decoder) {
|
|
self.count = Int(decoder.decodeInt32ForKey("c"))
|
|
}
|
|
|
|
func encode(_ encoder: Encoder) {
|
|
encoder.encodeInt32(Int32(self.count), forKey: "c")
|
|
}
|
|
}
|