Events
Event
Represents a generic event caught by PrivMX Endpoint.
public class Event<T>{
String channel,
Long connectionId,
T data,
String type
}
Fields
Name | Type | Description |
---|---|---|
channel | String | The event channel. |
connectionId | Long | ID of connection for this event. |
data | T | The data payload associated with the event. The type of this data is determined by the generic type parameter `T`. |
type | String | Type of the event. |
InboxDeletedEventData
Holds information about deleted Inbox.
public class InboxDeletedEventData{
String inboxId
}
Fields
Name | Type | Description |
---|---|---|
inboxId | String | ID of the deleted Inbox. |
InboxEntryDeletedEventData
Holds information about a entry deleted from Inbox.
public class InboxEntryDeletedEventData{
String entryId,
String inboxId
}
Fields
Name | Type | Description |
---|---|---|
entryId | String | ID of the deleted entry. |
inboxId | String | ID of the deleted entry's Inbox. |
StoreDeletedEventData
Holds information about deleted Store.
public class StoreDeletedEventData{
String storeId
}
Fields
Name | Type | Description |
---|---|---|
storeId | String | ID of the deleted Store. |
StoreFileDeletedEventData
Holds information about a file deleted from Store.
public class StoreFileDeletedEventData{
String contextId,
String fileId,
String storeId
}
Fields
Name | Type | Description |
---|---|---|
contextId | String | ID of the Store's Context. |
fileId | String | ID of the deleted file. |
storeId | String | ID 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
Name | Type | Description |
---|---|---|
contextId | String | ID of the changed Store's Context. |
filesCount | Long | Updated number of files in the Store. |
lastFileDate | Long | Updated date of the last file in the Store. |
storeId | String | ID of the changed Store. |
ThreadDeletedEventData
Holds information about a deleted Thread.
public class ThreadDeletedEventData{
String threadId
}
Fields
Name | Type | Description |
---|---|---|
threadId | String | ID of the deleted Thread. |
ThreadDeletedMessageEventData
Holds information about a message deleted from a Thread.
public class ThreadDeletedMessageEventData{
String messageId,
String threadId
}
Fields
Name | Type | Description |
---|---|---|
messageId | String | ID of the deleted Message. |
threadId | String | ID 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
Name | Type | Description |
---|---|---|
lastMsgDate | Long | Timestamp of the most recent Thread message. |
messagesCount | Long | Updated number of messages in the Thread. |
threadId | String | ID of the changed Thread. |