mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-03-29 10:15:01 +00:00
21 lines
499 B
Swift
21 lines
499 B
Swift
import Foundation
|
|
import Postbox
|
|
|
|
public class ParticipantRankMessageAttribute: MessageAttribute {
|
|
public let rank: String
|
|
|
|
public var associatedMessageIds: [MessageId] = []
|
|
|
|
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")
|
|
}
|
|
}
|