Note

Embodies the notion of a note, left for an offline user.

Constructors

this
this(JSONSchema json)

Constructor.

Members

Functions

asSchema
auto asSchema()

Returns a JSONSchema of the note, for serialisation.

decrypt
void decrypt()

Decrypts the note, Base64-decoding line and sender.

encrypt
void encrypt()

Encrypts the note, Base64-encoding line and sender.

Structs

JSONSchema
struct JSONSchema

JSON schema.

Variables

line
string line;

Line of text left as a note, optionally Base64-encoded.

sender
string sender;

String name of the sender, optionally Base64-encoded. May be a display name.

timestamp
long timestamp;

UNIX timestamp of when the note was left.