Store
File
Holds information about the file.
public class File{
String authorPubKey,
ServerFileInfo info,
byte[] privateMeta,
byte[] publicMeta,
Long size,
Long statusCode
}
Fields
Name | Type | Description |
---|---|---|
authorPubKey | String | Public key of the author of the file. |
info | ServerFileInfo | File's information created by server. |
privateMeta | byte[] | File's private metadata. |
publicMeta | byte[] | File's public metadata. |
size | Long | File's size. |
statusCode | Long | Status code of retrieval and decryption of the file. |
ServerFileInfo
Holds file's information created by server.
public class ServerFileInfo{
String author,
Long createDate,
String fileId,
String storeId
}
Fields
Name | Type | Description |
---|---|---|
author | String | ID of the user who created the file. |
createDate | Long | File's creation timestamp. |
fileId | String | ID of the file. |
storeId | String | ID of the Store. |
Store
Holds all available information about a Store.
public class Store{
String contextId,
Long createDate,
String creator,
Long filesCount,
Long lastFileDate,
Long lastModificationDate,
String lastModifier,
List<String> managers,
byte[] privateMeta,
byte[] publicMeta,
Long statusCode,
String storeId,
List<String> users,
Long version
}
Fields
Name | Type | Description |
---|---|---|
contextId | String | ID of the Context. |
createDate | Long | Store creation timestamp. |
creator | String | ID of the user who created the Store. |
filesCount | Long | Total number of files in the Store. |
lastFileDate | Long | Timestamp of the last created file. |
lastModificationDate | Long | Store last modification timestamp. |
lastModifier | String | ID of the user who last modified the Store. |
managers | List<String> | List of users (their IDs) with management rights. |
privateMeta | byte[] | Store's private metadata. |
publicMeta | byte[] | Store's public metadata. |
statusCode | Long | Status code of retrieval and decryption of the `Store`. |
storeId | String | ID of the Store. |
users | List<String> | List of users (their IDs) with access to the Store. |
version | Long | Version number (changes on updates). |