PrivMX DOCS
API Reference/PrivMX Endpoint Java/Core

Events

CollectionChangedEventData

public class CollectionChangedEventData{
	Long affectedItemsCount,
	List<CollectionItemChange> items,
	String moduleId,
	String moduleType
}

Fields

affectedItemsCount

Long

Count of affected items.

items

List<CollectionItemChange>

List of item changes.

moduleId

String

ID of the module.

moduleType

String

Type of the module.

ContextCustomEventData

public class ContextCustomEventData{
	String contextId,
	byte[] payload,
	Long schemaVersion,
	Long statusCode,
	String userId
}

Fields

contextId

String

Context ID

payload

byte[]

Event's actual payload

schemaVersion

Long

Version of the event data structure and how it is encoded/encrypted

statusCode

Long

Payload decryption status

userId

String

User ID (event's sender)

ContextUserEventData

public class ContextUserEventData{
	String contextId,
	UserWithPubKey user
}

Fields

contextId

String

ID of the Context.

user

UserWithPubKey

User.

ContextUsersStatusChangedEventData

public class ContextUsersStatusChangedEventData{
	String contextId,
	List<UserWithAction> users
}

Fields

contextId

String

ID of the Context.

users

List<UserWithAction>

List of users with their changed statuses.

Event

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

Fields

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.

subscriptions

List<String>

List of subscription IDs to which the event is related.

timestamp

Long

Timestamp of the event. Represents the point in time when event occurred.

  • For events received from Bridge, this value comes from Bridge.
  • For events generated in the library, this is a local timestamp.

type

String

Type of the event.

InboxDeletedEventData

public class InboxDeletedEventData{
	String inboxId
}

Fields

inboxId

String

ID of the deleted Inbox.

InboxEntryDeletedEventData

public class InboxEntryDeletedEventData{
	String entryId,
	String inboxId
}

Fields

entryId

String

ID of the deleted entry.

inboxId

String

ID of the deleted entry's Inbox.

KvdbDeletedEntryEventData

public class KvdbDeletedEntryEventData{
	String kvdbEntryKey,
	String kvdbId
}

Fields

kvdbEntryKey

String

Key of deleted Entry

kvdbId

String

KVDB ID

KvdbDeletedEventData

public class KvdbDeletedEventData{
	String kvdbId
}

Fields

kvdbId

String

KVDB ID

KvdbStatsEventData

public class KvdbStatsEventData{
	Long entries,
	String kvdbId,
	Long lastEntryDate
}

Fields

entries

Long

Updated number of entries in the KVDB

kvdbId

String

KVDB ID

lastEntryDate

Long

Timestamp of the most recent KVDB item

StoreDeletedEventData

public class StoreDeletedEventData{
	String storeId
}

Fields

storeId

String

ID of the deleted Store.

StoreFileDeletedEventData

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

Fields

contextId

String

ID of the Store's Context.

fileId

String

ID of the deleted file.

storeId

String

ID of the deleted file's Store.

StoreFileUpdatedEventData

public class StoreFileUpdatedEventData{
	List<FileChange> changes,
	File file
}

Fields

changes

List<FileChange>

List of file changes

file

File

File meta

StoreStatsChangedEventData

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

Fields

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

public class ThreadDeletedEventData{
	String threadId
}

Fields

threadId

String

ID of the deleted Thread.

ThreadDeletedMessageEventData

public class ThreadDeletedMessageEventData{
	String messageId,
	String threadId
}

Fields

messageId

String

ID of the deleted Message.

threadId

String

ID of the deleted message's Thread.

ThreadStatsEventData

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

Fields

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.

We use cookies on our website. We use them to ensure the proper functioning of the site and, if you agree, for purposes we set, such as analytics or marketing.