Member

@objc(SBDMember)
public final class Member : User

Represents a member in GroupChannel

  • The state for invitation. The values of the property are invited and joined. The invited means that the user doesn’t accept the invitation yet and the joined means that the user accepted the invitation manually or automatically.

    Declaration

    Swift

    @objc
    public internal(set) var state: MemberState { get }
  • Whether this member has been blocked by me

    Declaration

    Swift

    @objc
    public internal(set) var isBlockedByMe: Bool { get }
  • Whether this member has blocked me

    Declaration

    Swift

    @objc
    public internal(set) var isBlockingMe: Bool { get }
  • The muted state of the member in the channel.

    Since

    3.0.198

    Declaration

    Swift

    @objc
    public internal(set) var isMuted: Bool { get }
  • The role of current user in the channel.

    Since

    3.0.174

    Declaration

    Swift

    @objc
    public internal(set) var role: Role { get }
  • Restriction information of a muted member. This property is nil for an unmuted member.

    Since

    3.0.236

    Declaration

    Swift

    @objc
    public internal(set) var restrictionInfo: RestrictionInfo? { get }
  • Default constructor.

    Declaration

    Swift

    public required init(from decoder: Decoder) throws

    Parameters

    decoder

    Decoder instance

  • Encodes this object.

    Declaration

    Swift

    public override func encode(to encoder: Encoder) throws

    Parameters

    encoder

    Encoder instance

  • Compares this object with given other object.

    Declaration

    Swift

    public override func isEqual(_ object: Any?) -> Bool

    Parameters

    object

    Any instance

    Return Value

    true if same otherwise false

  • Copies this object

    Declaration

    Swift

    public override func copy(with zone: NSZone? = nil) -> Any

    Parameters

    zone

    optional NSZone

    Return Value

    Member instance

  • Serializes this object into data

    Declaration

    Swift

    public override func serialize() -> Data?

    Return Value

    optioanal Data instance

  • Deserializes and reconstructs the object

    Declaration

    Swift

    public final override class func build(fromSerializedData data: Data?) -> `Self`?

    Parameters

    data

    Data instance

    Return Value

    Member if parameter is valid, otherwise nil