Thread
Message
Holds information about the Message.
public class Message{
String authorPubKey,
byte[] data,
ServerMessageInfo info,
byte[] privateMeta,
byte[] publicMeta,
Long statusCode
}
Fields
Name | Type | Description |
---|---|---|
authorPubKey | String | Public key of the author of the message. |
data | byte[] | Message's data. |
info | ServerMessageInfo | Message's information created by server. |
privateMeta | byte[] | Message's private metadata. |
publicMeta | byte[] | Message's public metadata. |
statusCode | Long | Status code of retrieval and decryption of the `Message`. |
ServerMessageInfo
Holds message's information created by server.
public class ServerMessageInfo{
String author,
Long createDate,
String messageId,
String threadId
}
Fields
Name | Type | Description |
---|---|---|
author | String | ID of the user who created the message. |
createDate | Long | Message's creation timestamp. |
messageId | String | ID of the message. |
threadId | String | ID of the message's Thread. |
Thread
Holds all available information about a Thread.
public class Thread{
String contextId,
Long createDate,
String creator,
Long lastModificationDate,
String lastModifier,
Long lastMsgDate,
List<String> managers,
Long messagesCount,
byte[] privateMeta,
byte[] publicMeta,
Long statusCode,
String threadId,
List<String> users,
Long version
}
Fields
Name | Type | Description |
---|---|---|
contextId | String | ID of the Thread's Context. |
createDate | Long | Thread creation timestamp. |
creator | String | ID of the user who created the Thread. |
lastModificationDate | Long | Thread last modification timestamp. |
lastModifier | String | ID of the user who last modified the Thread. |
lastMsgDate | Long | Timestamp of the last posted message. |
managers | List<String> | List of users (their IDs) with management rights. |
messagesCount | Long | Total number of messages in the Thread. |
privateMeta | byte[] | Thread's private metadata. |
publicMeta | byte[] | Thread's public metadata. |
statusCode | Long | Status code of retrieval and decryption of the `Thread`. |
threadId | String | ID of the Thread. |
users | List<String> | List of users (their IDs) with access to the Thread. |
version | Long | Version number (changes on updates). |