mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
19 lines
437 B
Swift
19 lines
437 B
Swift
import Foundation
|
|
import Postbox
|
|
|
|
public class ReplyThreadMessageAttribute: MessageAttribute {
|
|
public let count: Int32
|
|
|
|
public init(count: Int32) {
|
|
self.count = count
|
|
}
|
|
|
|
required public init(decoder: PostboxDecoder) {
|
|
self.count = decoder.decodeInt32ForKey("c", orElse: 0)
|
|
}
|
|
|
|
public func encode(_ encoder: PostboxEncoder) {
|
|
encoder.encodeInt32(self.count, forKey: "c")
|
|
}
|
|
}
|