mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-16 16:21:11 +00:00

git-subtree-dir: submodules/TelegramCore git-subtree-mainline: 971273e8f8f49a47f14b251d2f35e3445a61fc3f git-subtree-split: 9561227540acef69894e6546395ab223a6233600
23 lines
472 B
Swift
23 lines
472 B
Swift
import Foundation
|
|
#if os(macOS)
|
|
import PostboxMac
|
|
#else
|
|
import Postbox
|
|
#endif
|
|
|
|
public class EditedMessageAttribute: MessageAttribute {
|
|
public let date: Int32
|
|
|
|
init(date: Int32) {
|
|
self.date = date
|
|
}
|
|
|
|
required public init(decoder: PostboxDecoder) {
|
|
self.date = decoder.decodeInt32ForKey("d", orElse: 0)
|
|
}
|
|
|
|
public func encode(_ encoder: PostboxEncoder) {
|
|
encoder.encodeInt32(self.date, forKey: "d")
|
|
}
|
|
}
|