TCHMember Class Reference

Inherits from NSObject
Declared in TCHMember.h

Overview

Representation of a Member on a chat channel.

  sid

The unique identifier for this member.

@property (nonatomic, copy, readonly, nullable) NSString *sid

Discussion

The unique identifier for this member.

Declared In

TCHMember.h

  identity

The identity for this member.

@property (nonatomic, strong, readonly, nullable) NSString *identity

Discussion

The identity for this member.

Declared In

TCHMember.h

  lastConsumedMessageIndex

Index of the last Message the Member has consumed in this Channel.

@property (nonatomic, copy, readonly, nullable) NSNumber *lastConsumedMessageIndex

Discussion

Index of the last Message the Member has consumed in this Channel.

Declared In

TCHMember.h

  lastConsumptionTimestamp

Timestamp the last consumption updated for the Member in this Channel.

@property (nonatomic, copy, readonly, nullable) NSString *lastConsumptionTimestamp

Discussion

Timestamp the last consumption updated for the Member in this Channel.

Declared In

TCHMember.h

  lastConsumptionTimestampAsDate

Timestamp the last consumption updated for the Member in this Channel as an NSDate.

@property (nonatomic, strong, readonly, nullable) NSDate *lastConsumptionTimestampAsDate

Discussion

Timestamp the last consumption updated for the Member in this Channel as an NSDate.

Declared In

TCHMember.h

– attributes

Return this member’s attributes.

- (nullable NSDictionary<NSString*,id> *)attributes

Return Value

The developer-defined extensible attributes for this member.

Discussion

Return this member’s attributes.

Declared In

TCHMember.h

– setAttributes:completion:

Set this member’s attributes.

- (void)setAttributes:(nullable NSDictionary<NSString*,id> *)attributes completion:(nullable TCHCompletion)completion

Parameters

attributes

The new developer-defined extensible attributes for this member. (Supported types are NSString, NSNumber, NSArray, NSDictionary and NSNull)

completion

Completion block that will specify the result of the operation.

Discussion

Set this member’s attributes.

Declared In

TCHMember.h

– userDescriptorWithCompletion:

Obtain a static snapshot of the user descriptor object for this member.

- (void)userDescriptorWithCompletion:(nonnull TCHUserDescriptorCompletion)completion

Parameters

completion

Completion block that will specify the result of the operation and the user descriptor.

Discussion

Obtain a static snapshot of the user descriptor object for this member.

Declared In

TCHMember.h

– subscribedUserWithCompletion:

Obtain a subscribed user object for the member. If no current subscription exists for this user, this will fetch the user and subscribe them. The least recently used user object will be unsubscribed if you reach your instance’s user subscription limit.

- (void)subscribedUserWithCompletion:(nonnull TCHUserCompletion)completion

Parameters

completion

Completion block that will specify the result of the operation and the newly subscribed user.

Discussion

Obtain a subscribed user object for the member. If no current subscription exists for this user, this will fetch the user and subscribe them. The least recently used user object will be unsubscribed if you reach your instance’s user subscription limit.

Declared In

TCHMember.h