PrivMX DOCS
API Reference/PrivMX Endpoint C#/Stores

Models

File

public class File
{
    ServerFileInfo Info {get; set;}
    byte[] PublicMeta {get; set;}
    byte[] PrivateMeta {get; set;}
    long Size {get; set;}
    string AuthorPubKey {get; set;}
    long StatusCode {get; set;}
}

Fields

Info

ServerFileInfo

Server metadata.

PublicMeta

byte[]

Public metadata.

PrivateMeta

byte[]

Private metadata.

Size

long

Size of the file.

AuthorPubKey

string

Verified public key of the PublicMeta, PrivateMeta and Data author.

StatusCode

long

Status code of decryption and verification of the message.

If value is equal 0, then the message is successfully decrypted and verified. Otherwise, status code is compatible with codes of exceptions.

ServerFileInfo

public class ServerFileInfo
{
    string StoreId {get; set;}
    string FileId {get; set;}
    long CreateDate {get; set;}
    string Author {get; set;}
}

Fields

StoreId

string

ID of the Store.

FileId

string

ID of the file.

CreateDate

long

Server creation timestamp.

Author

string

ID of the creator user.

Store

public class Store
{
    string ContextId {get; set;}
    string StoreId {get; set;}
    long CreateDate {get; set;}
    string Creator {get; set;}
    long LastModificationDate {get; set;}
    string LastModifier {get; set;}
    List<string> Users {get; set;}
    List<string> Managers {get; set;}
    long Version {get; set;}
    long LastFileDate {get; set;}
    byte[] PublicMeta {get; set;}
    byte[] PrivateMeta {get; set;}
    ContainerPolicy Policy {get; set;}
    long FilesCount {get; set;}
    long StatusCode {get; set;}
}

Fields

ContextId

string

ID of the Context.

StoreId

string

ID of the Store.

CreateDate

long

Server creation timestamp.

Creator

string

ID of the creator user.

LastModificationDate

long

Last modification timestamp.

LastModifier

string

ID of the user who was last a modifier.

Users

List<string>

List of user IDs that have access to the Store.

Managers

List<string>

List of user IDs that have management rights to the Store.

Version

long

Number of the Store updates.

LastFileDate

long

Timestamp of the last file in the Store, or the Store creation timestamp if no files in.

PublicMeta

byte[]

Public metadata.

PrivateMeta

byte[]

Private metadata.

Policy

ContainerPolicy

Store's policy.

FilesCount

long

Number of files in the Store.

StatusCode

long

Status code of decryption and verification of the Thread.

If value is equal 0, then the Thread is successfully decrypted and verified. Otherwise, status code is compatible with codes of exceptions.

StoreCreatedEvent

public class StoreCreatedEvent : PrivMX.Endpoint.Core.Models.Event
{
    Store Data {get; set;}
}

Fields

Data

Store

Created Store.

StoreDeletedEvent

public class StoreDeletedEvent : PrivMX.Endpoint.Core.Models.Event
{
    StoreDeletedEventData Data {get; set;}
}

Fields

Data

StoreDeletedEventData

Metadata of the deleted Store.

StoreDeletedEventData

public class StoreDeletedEventData
{
    string StoreId {get; set;}
}

Fields

StoreId

string

ID of the deleted Store.

StoreFileCreatedEvent

public class StoreFileCreatedEvent : PrivMX.Endpoint.Core.Models.Event
{
    File Data {get; set;}
}

Fields

Data

File

Created file.

StoreFileDeletedEvent

public class StoreFileDeletedEvent : PrivMX.Endpoint.Core.Models.Event
{
    StoreFileDeletedEventData Data {get; set;}
}

Fields

Data

StoreFileDeletedEventData

Metadata of the deleted file.

StoreFileDeletedEventData

public class StoreFileDeletedEventData
{
    string ContextId {get; set;}
    string StoreId {get; set;}
    string FileId {get; set;}
}

Fields

ContextId

string

ID of the Context to which the Store belongs.

StoreId

string

ID of the Store that the file is deleted from.

FileId

string

ID of the deleted file.

StoreFileUpdatedEvent

public class StoreFileUpdatedEvent : PrivMX.Endpoint.Core.Models.Event
{
    File Data {get; set;}
}

Fields

Data

File

Updated file.

StoreStatsChangedEvent

public class StoreStatsChangedEvent : PrivMX.Endpoint.Core.Models.Event
{
    StoreStatsChangedEventData Data {get; set;}
}

Fields

Data

StoreStatsChangedEventData

Store statistics.

StoreStatsChangedEventData

public class StoreStatsChangedEventData
{
    string ContextId {get; set;}
    string StoreId {get; set;}
    long LastFileDate {get; set;}
    long FilesCount {get; set;}
}

Fields

ContextId

string

ID of the Context to which the Store belongs.

StoreId

string

ID of the Store.

LastFileDate

long

List file timestamp.

FilesCount

long

Total number of files in the Store.

StoreUpdatedEvent

public class StoreUpdatedEvent : PrivMX.Endpoint.Core.Models.Event
{
    Store Data {get; set;}
}

Fields

Data

Store

Updated Store.

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.