RestrictionInfo

@objc(SBDRestrictionInfo)
public final class RestrictionInfo : NSObject, Codable

An object contains information about restriction

  • Description for restricted reason

    Declaration

    Swift

    @objc
    public let desc: String?
  • epoch time when the restriction ends

    Declaration

    Swift

    @objc
    public let endAt: Int64
  • Restriction type

    Declaration

    Swift

    @objc
    public internal(set) var restrictionType: RestrictionType { get }
  • The remaining duration in ms for the user muted event only.

    Since

    4.7.0

    Declaration

    Swift

    @objc
    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