Add an additional message type for revoking remote wipe status

This commit is contained in:
ameba23
2021-08-30 10:46:40 +02:00
parent c64815ca16
commit 2d5e0ee840
3 changed files with 4 additions and 1 deletions

View File

@@ -3,5 +3,7 @@ package org.briarproject.briar.api.remotewipe;
public interface MessageEncoder {
byte[] encodeSetupMessage();
byte[] encodeRevokeMessage();
byte[] encodeWipeMessage();
}

View File

@@ -9,7 +9,7 @@ import javax.annotation.concurrent.Immutable;
@NotNullByDefault
public enum MessageType {
SETUP(0), WIPE(1);
SETUP(0), WIPE(1), REVOKE(2);
private final int value;

View File

@@ -9,6 +9,7 @@ public interface RemoteWipeConstants {
String GROUP_KEY_CONTACT_ID = "contactId";
String GROUP_KEY_WIPERS = "wipers";
String GROUP_KEY_RECEIVED_WIPE = "receivedWipe";
String GROUP_KEY_AM_WIPER = "amWiper";
// Message metadata keys
String MSG_KEY_TIMESTAMP = "timestamp";