mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
18 lines
415 B
Swift
18 lines
415 B
Swift
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")
|
|
}
|
|
}
|