mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-06-20 18:24:43 +00:00
19 lines
440 B
Swift
19 lines
440 B
Swift
import Foundation
|
|
import Postbox
|
|
|
|
public class ParticipantRankMessageAttribute: MessageAttribute {
|
|
public let rank: String
|
|
|
|
public init(rank: String) {
|
|
self.rank = rank
|
|
}
|
|
|
|
required public init(decoder: PostboxDecoder) {
|
|
self.rank = decoder.decodeStringForKey("r", orElse: "")
|
|
}
|
|
|
|
public func encode(_ encoder: PostboxEncoder) {
|
|
encoder.encodeString(self.rank, forKey: "r")
|
|
}
|
|
}
|