TCHMessage Class Reference

Inherits from NSObject
Declared in TCHMessage.h

Overview

Representation of a Message on a chat channel.

  sid

The unique identifier for this message.

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

Discussion

The unique identifier for this message.

Declared In

TCHMessage.h

  index

Index of Message in the Channel’s messages stream.

@property (nonatomic, copy, readonly) NSNumber *index

Discussion

Index of Message in the Channel’s messages stream.

Declared In

TCHMessage.h

  author

The identity of the author of the message.

@property (nonatomic, copy, readonly) NSString *author

Discussion

The identity of the author of the message.

Declared In

TCHMessage.h

  body

The body of the message.

@property (nonatomic, copy, readonly) NSString *body

Discussion

The body of the message.

Declared In

TCHMessage.h

  timestamp

The timestamp of the message.

@property (nonatomic, copy, readonly) NSString *timestamp

Discussion

The timestamp of the message.

Declared In

TCHMessage.h

  timestampAsDate

The timestamp of the message as an NSDate.

@property (nonatomic, strong, readonly) NSDate *timestampAsDate

Discussion

The timestamp of the message as an NSDate.

Declared In

TCHMessage.h

  dateUpdated

The timestamp the message was last updated.

@property (nonatomic, copy, readonly) NSString *dateUpdated

Discussion

The timestamp the message was last updated.

Declared In

TCHMessage.h

  dateUpdatedAsDate

The timestamp the message was last updated as an NSDate.

@property (nonatomic, strong, readonly) NSDate *dateUpdatedAsDate

Discussion

The timestamp the message was last updated as an NSDate.

Declared In

TCHMessage.h

  lastUpdatedBy

The identity of the user who last updated the message.

@property (nonatomic, copy, readonly) NSString *lastUpdatedBy

Discussion

The identity of the user who last updated the message.

Declared In

TCHMessage.h

– updateBody:completion:

Update the body of this message

- (void)updateBody:(NSString *)body completion:(TCHCompletion)completion

Parameters

body

The new body for this message.

completion

Completion block that will specify the result of the operation.

Discussion

Update the body of this message

Declared In

TCHMessage.h

– attributes

Return this message’s attributes.

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

Return Value

The developer-defined extensible attributes for this message.

Discussion

Return this message’s attributes.

Declared In

TCHMessage.h

– setAttributes:completion:

Set this message’s attributes.

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

Parameters

attributes

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

completion

Completion block that will specify the result of the operation.

Discussion

Set this message’s attributes.

Declared In

TCHMessage.h