diff options
author | Marvin W <git@larma.de> | 2017-03-15 17:23:13 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-03-15 17:23:13 +0100 |
commit | 5038db063ec3981385dd68a3069e8edd0b52075d (patch) | |
tree | 0c2309518a8e20dd47c00126fe6da70eb2041f93 /plugins/omemo/src/encrypt_state.vala | |
parent | 27afc2164f31f40e79606c72005277d730c1f005 (diff) | |
download | dino-5038db063ec3981385dd68a3069e8edd0b52075d.tar.gz dino-5038db063ec3981385dd68a3069e8edd0b52075d.zip |
omemo plugin: improve session bootstrapping
Diffstat (limited to 'plugins/omemo/src/encrypt_state.vala')
-rw-r--r-- | plugins/omemo/src/encrypt_state.vala | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/plugins/omemo/src/encrypt_state.vala b/plugins/omemo/src/encrypt_state.vala new file mode 100644 index 00000000..80ae40d7 --- /dev/null +++ b/plugins/omemo/src/encrypt_state.vala @@ -0,0 +1,24 @@ +namespace Dino.Plugins.Omemo { + +public class EncryptState { + public bool encrypted { get; internal set; } + public int other_devices { get; internal set; } + public int other_success { get; internal set; } + public int other_lost { get; internal set; } + public int other_unknown { get; internal set; } + public int other_failure { get; internal set; } + public bool other_list { get; internal set; } + + public int own_devices { get; internal set; } + public int own_success { get; internal set; } + public int own_lost { get; internal set; } + public int own_unknown { get; internal set; } + public int own_failure { get; internal set; } + public bool own_list { get; internal set; } + + public string to_string() { + return @"EncryptState (encrypted=$encrypted, other=(devices=$other_devices, success=$other_success, lost=$other_lost, unknown=$other_unknown, failure=$other_failure, list=$other_list), own=(devices=$own_devices, success=$own_success, lost=$own_lost, unknown=$own_unknown, failure=$own_failure, list=$own_list))"; + } +} + +}
\ No newline at end of file |