Swiftgram/TelegramCore/EditedMessageAttribute.swift
2016-11-15 19:02:08 +03:00

23 lines
447 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: Decoder) {
self.date = decoder.decodeInt32ForKey("d")
}
public func encode(_ encoder: Encoder) {
encoder.encodeInt32(self.date, forKey: "d")
}
}