Note

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

Members

Functions

decrypt
void decrypt()

Decrypts the note, Base64-decoding line and sender.

encrypt
void encrypt()

Encrypts the note, Base64-encoding line and sender.

toJSON
auto toJSON()

Converts this Note into a JSON representation.

Static functions

fromJSON
auto fromJSON(JSONValue json)

Creates a Note from a JSON representation.

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.