Skip to main content
reference

Events

Event

Represents a generic event caught by PrivMX Endpoint.

public class Event<T>{
String channel,
Long connectionId,
T data,
String type
}

Fields

NameTypeDescription
channelStringThe event channel.
connectionIdLongID of connection for this event.
dataTThe data payload associated with the event. The type of this data is determined by the generic type parameter `T`.
typeStringType of the event.

InboxDeletedEventData

Holds information about deleted Inbox.

public class InboxDeletedEventData{
String inboxId
}

Fields

NameTypeDescription
inboxIdStringID of the deleted Inbox.

InboxEntryDeletedEventData

Holds information about a entry deleted from Inbox.

public class InboxEntryDeletedEventData{
String entryId,
String inboxId
}

Fields

NameTypeDescription
entryIdStringID of the deleted entry.
inboxIdStringID of the deleted entry's Inbox.

StoreDeletedEventData

Holds information about deleted Store.

public class StoreDeletedEventData{
String storeId
}

Fields

NameTypeDescription
storeIdStringID of the deleted Store.

StoreFileDeletedEventData

Holds information about a file deleted from Store.

public class StoreFileDeletedEventData{
String contextId,
String fileId,
String storeId
}

Fields

NameTypeDescription
contextIdStringID of the Store's Context.
fileIdStringID of the deleted file.
storeIdStringID of the deleted file's Store.

StoreStatsChangedEventData

Holds information about changes in a Store's statistics.

public class StoreStatsChangedEventData{
String contextId,
Long filesCount,
Long lastFileDate,
String storeId
}

Fields

NameTypeDescription
contextIdStringID of the changed Store's Context.
filesCountLongUpdated number of files in the Store.
lastFileDateLongUpdated date of the last file in the Store.
storeIdStringID of the changed Store.

ThreadDeletedEventData

Holds information about a deleted Thread.

public class ThreadDeletedEventData{
String threadId
}

Fields

NameTypeDescription
threadIdStringID of the deleted Thread.

ThreadDeletedMessageEventData

Holds information about a message deleted from a Thread.

public class ThreadDeletedMessageEventData{
String messageId,
String threadId
}

Fields

NameTypeDescription
messageIdStringID of the deleted Message.
threadIdStringID of the deleted message's Thread.

ThreadStatsEventData

Holds information about changes in a Thread's statistics.

public class ThreadStatsEventData{
Long lastMsgDate,
Long messagesCount,
String threadId
}

Fields

NameTypeDescription
lastMsgDateLongTimestamp of the most recent Thread message.
messagesCountLongUpdated number of messages in the Thread.
threadIdStringID of the changed Thread.