TWMMessage Class Reference

Inherits from NSObject
Declared in TWMMessage.h

Overview

Representation of a Message on an IP Messaging channel.

  sid

The unique identifier for this message.

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

Discussion

The unique identifier for this message.

Declared In

TWMMessage.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

TWMMessage.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

TWMMessage.h

  body

The body of the message.

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

Discussion

The body of the message.

Declared In

TWMMessage.h

  timestamp

The timestamp of the message.

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

Discussion

The timestamp of the message.

Declared In

TWMMessage.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

TWMMessage.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

TWMMessage.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

TWMMessage.h

  lastUpdatedBy

Who the the message was last updated by.

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

Discussion

Who the the message was last updated by.

Declared In

TWMMessage.h

– updateBody:completion:

Update the body of this message

- (void)updateBody:(NSString *)body completion:(TWMCompletion)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

TWMMessage.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

TWMMessage.h

– setAttributes:completion:

Set this message’s attributes.

- (void)setAttributes:(NSDictionary<NSString*,id> *)attributes completion:(TWMCompletion)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

TWMMessage.h