Member
public final class Member: User
Represents a member in GroupChannel
-
The state for invitation. The values of the property are
invited
andjoined
. Theinvited
means that the user doesn’t accept the invitation yet and thejoined
means that the user accepted the invitation manually or automatically.Declaration
Swift
public internal(set) var state: MemberState
-
Whether this member has been blocked by me
Declaration
Swift
public internal(set) var isBlockedByMe: Bool
-
Whether this member has blocked me
Declaration
Swift
public internal(set) var isBlockingMe: Bool
-
The muted state of the member in the channel.
Since
3.0.198Declaration
Swift
public internal(set) var isMuted: Bool
-
The role of current user in the channel.
Since
3.0.174Declaration
Swift
public internal(set) var role: Role
-
Restriction information of a muted member. This property is nil for an unmuted member.
Since
3.0.236Declaration
Swift
public internal(set) var restrictionInfo: RestrictionInfo?
-
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
instanceReturn Value
true
if same otherwisefalse
-
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 class override func build(fromSerializedData data: Data?) -> Self?
Parameters
data
Data
instanceReturn Value
Member
if parameter is valid, otherwisenil