SIGN UP

VIMessage

Interface that represents message within a conversation.

Methods

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

- (void)update

Sends text and payload changes to the server.

Properties

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

UUID of the conversation this message belongs to.

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

Array of Payload objects associated with the message.

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

User id of the sender of this message.

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

Message sequence number.

@property (nonatomic, strong) NSString *text

Text of this message.

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

Universally unique identifier of message.