mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Refactor SyncCore
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import Postbox
|
||||
|
||||
public final class CachedWallpapersConfiguration: PostboxCoding {
|
||||
public let hash: Int32
|
||||
|
||||
public init(hash: Int32) {
|
||||
self.hash = hash
|
||||
}
|
||||
|
||||
public init(decoder: PostboxDecoder) {
|
||||
self.hash = decoder.decodeInt32ForKey("hash", orElse: 0)
|
||||
}
|
||||
|
||||
public func encode(_ encoder: PostboxEncoder) {
|
||||
encoder.encodeInt32(self.hash, forKey: "hash")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user