VivochaChatObject

@interface VivochaChatObject : NSObject <NSCoding>

Vivocha base object for chat contacts. VivochaMessage and VivochaChatPresence are subclasses of this one.

  • @property (nonatomic, retain) NSDate *timestamp;

    Timestamp when the object has been created / received

  • @property (nonatomic, retain) NSString *objectID;

    Unique object ID

  • @property (nonatomic) BOOL isOutgoing;

    Returns YES if the message is sent by the Customer.

  • @property (nonatomic, strong, readonly) NSString *contactId;

    The contactId which the chat object belongs to.

  • @property (nonatomic, strong) NSString *remotePeer;

    The remote peer address. (e.g. agentID@chat.vivocha.com in case of XMPP protocol)

  • @property (nonatomic, strong, readonly) NSMutableArray<VivochaChatAck *> *acks;

    The collection of acks for the current chat object.

  • - (BOOL)isReceived;

    The message has been marked as received by the Agent console. It means that the message has been delivered to the Agent.

  • - (BOOL)isRead;

    The message has been marked as read by the Agent console. It means that the message has been read by the agent.