TCHParticipant Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | TCHParticipant.h |
conversation
The conversation for this participant.
@property (nonatomic, weak, readonly, nullable) TCHConversation *conversationDiscussion
The conversation for this participant.
Declared In
TCHParticipant.h
sid
The unique identifier for this participant.
@property (nonatomic, copy, readonly, nullable) NSString *sidDiscussion
The unique identifier for this participant.
Declared In
TCHParticipant.h
identity
The identity for this participant.
@property (nonatomic, strong, readonly, nullable) NSString *identityDiscussion
The identity for this participant.
Declared In
TCHParticipant.h
type
The type of this participant.
@property (nonatomic, readonly) TCHParticipantType typeDiscussion
The type of this participant.
Declared In
TCHParticipant.h
lastReadMessageIndex
Index of the last Message the Participant has read in this Conversation.
@property (nonatomic, copy, readonly, nullable) NSNumber *lastReadMessageIndexDiscussion
Index of the last Message the Participant has read in this Conversation.
Declared In
TCHParticipant.h
lastReadTimestamp
Timestamp the last read message index updated for the Participant in this Conversation.
@property (nonatomic, copy, readonly, nullable) NSString *lastReadTimestampDiscussion
Timestamp the last read message index updated for the Participant in this Conversation.
Declared In
TCHParticipant.h
lastReadTimestampAsDate
Timestamp the last read message index updated for the Participant in this Conversation as an NSDate.
@property (nonatomic, strong, readonly, nullable) NSDate *lastReadTimestampAsDateDiscussion
Timestamp the last read message index updated for the Participant in this Conversation as an NSDate.
Declared In
TCHParticipant.h
dateCreated
The Participant creation date.
@property (nonatomic, copy, readonly, nullable) NSString *dateCreatedDiscussion
The Participant creation date.
Declared In
TCHParticipant.h
dateCreatedAsDate
The Participant creation date as an NSDate.
@property (nonatomic, copy, readonly, nullable) NSDate *dateCreatedAsDateDiscussion
The Participant creation date as an NSDate.
Declared In
TCHParticipant.h
dateUpdated
The Participant last update date.
@property (nonatomic, copy, readonly, nullable) NSString *dateUpdatedDiscussion
The Participant last update date.
Declared In
TCHParticipant.h
dateUpdatedAsDate
The Participant last update date as an NSDate.
@property (nonatomic, copy, readonly, nullable) NSDate *dateUpdatedAsDateDiscussion
The Participant last update date as an NSDate.
Declared In
TCHParticipant.h
– attributes
Return this participant’s attributes.
- (nullable TCHJsonAttributes *)attributesReturn Value
The developer-defined extensible attributes for this participant.
Discussion
Return this participant’s attributes.
Declared In
TCHParticipant.h
– setAttributes:completion:
Set this participant’s attributes.
- (void)setAttributes:(nullable TCHJsonAttributes *)attributes completion:(nullable TCHCompletion)completionParameters
attributes |
The new developer-defined extensible attributes for this participant. (Supported types are NSString, NSNumber, NSArray, NSDictionary and NSNull) |
|---|---|
completion |
Completion block that will specify the result of the operation. |
Discussion
Set this participant’s attributes.
Declared In
TCHParticipant.h
– subscribedUserWithCompletion:
Obtain a subscribed user object for the participant. If no current subscription exists for this user, this will fetch the user and subscribe them. The least recently subscribed user object will be unsubscribed if you reach your instance’s user subscription limit.
- (void)subscribedUserWithCompletion:(nonnull TCHUserCompletion)completionParameters
completion |
Completion block that will specify the result of the operation and the newly subscribed user. |
|---|
Discussion
Obtain a subscribed user object for the participant. If no current subscription exists for this user, this will fetch the user and subscribe them. The least recently subscribed user object will be unsubscribed if you reach your instance’s user subscription limit.
Declared In
TCHParticipant.h
– removeWithCompletion:
Remove this participant from conversation
- (void)removeWithCompletion:(nullable TCHCompletion)completionParameters
completion |
Completion block that will specify the result of the operation. |
|---|
Discussion
Remove this participant from conversation
Declared In
TCHParticipant.h