SIGN UP

VIMessage

Interface that represents message within a conversation.

Methods

remove

- (void)remove

Remove the message.

Triggers the [VIMessengerDelegate messenger:didRemoveMessage:] event for all messenger objects on all clients, including this one.

Clients that are not connected will receive it later.

update

- (void)update

Sends text and payload changes to the server.

Properties

conversation

@property (nonatomic, strong, readonly) NSString *conversation

UUID of the conversation this message belongs to.

payload

@property (nonatomic, strong) NSArray<VIPayload *> *payload

Array of Payload objects associated with the message.

sender

@property (nonatomic, strong, readonly) NSString *sender

User id of the sender of this message.

seq

@property (nonatomic, strong, readonly) NSNumber *seq

Message sequence number.

text

@property (nonatomic, strong) NSString *text

Text of this message.

uuid

@property (nonatomic, strong, readonly) NSString *uuid

Universally unique identifier of message.