mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Various improvements
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
import Foundation
|
||||
import Postbox
|
||||
|
||||
public class WasScheduledMessageAttribute: MessageAttribute {
|
||||
public init() {
|
||||
public class PendingProcessingMessageAttribute: MessageAttribute {
|
||||
public let approximateCompletionTime: Int32
|
||||
|
||||
public init(approximateCompletionTime: Int32) {
|
||||
self.approximateCompletionTime = approximateCompletionTime
|
||||
}
|
||||
|
||||
required public init(decoder: PostboxDecoder) {
|
||||
self.approximateCompletionTime = decoder.decodeInt32ForKey("et", orElse: 0)
|
||||
}
|
||||
|
||||
public func encode(_ encoder: PostboxEncoder) {
|
||||
encoder.encodeInt32(self.approximateCompletionTime, forKey: "et")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user