RestrictionInfo
public final class RestrictionInfo: NSObject, Codable
An object contains information about restriction
-
Description for restricted reason
Declaration
Swift
public let desc: String?
-
epoch time when the restriction ends
Declaration
Swift
public let endAt: Int64
-
Restriction type
Declaration
Swift
public internal(set) var restrictionType: RestrictionType
-
The remaining duration in ms for the user muted event only.
Since
4.7.0Declaration
Swift
public let remainingDuration: Int64
-
Encodes this object.
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
Encoder
instance -
Default constructor.
Declaration
Swift
public required init(from decoder: Decoder) throws
Parameters
decoder
Decoder
instance