mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 12:49:55 +01:00
Add an additional message type for revoking remote wipe status
This commit is contained in:
@@ -3,5 +3,7 @@ package org.briarproject.briar.api.remotewipe;
|
|||||||
public interface MessageEncoder {
|
public interface MessageEncoder {
|
||||||
byte[] encodeSetupMessage();
|
byte[] encodeSetupMessage();
|
||||||
|
|
||||||
|
byte[] encodeRevokeMessage();
|
||||||
|
|
||||||
byte[] encodeWipeMessage();
|
byte[] encodeWipeMessage();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import javax.annotation.concurrent.Immutable;
|
|||||||
@NotNullByDefault
|
@NotNullByDefault
|
||||||
public enum MessageType {
|
public enum MessageType {
|
||||||
|
|
||||||
SETUP(0), WIPE(1);
|
SETUP(0), WIPE(1), REVOKE(2);
|
||||||
|
|
||||||
private final int value;
|
private final int value;
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ public interface RemoteWipeConstants {
|
|||||||
String GROUP_KEY_CONTACT_ID = "contactId";
|
String GROUP_KEY_CONTACT_ID = "contactId";
|
||||||
String GROUP_KEY_WIPERS = "wipers";
|
String GROUP_KEY_WIPERS = "wipers";
|
||||||
String GROUP_KEY_RECEIVED_WIPE = "receivedWipe";
|
String GROUP_KEY_RECEIVED_WIPE = "receivedWipe";
|
||||||
|
String GROUP_KEY_AM_WIPER = "amWiper";
|
||||||
|
|
||||||
// Message metadata keys
|
// Message metadata keys
|
||||||
String MSG_KEY_TIMESTAMP = "timestamp";
|
String MSG_KEY_TIMESTAMP = "timestamp";
|
||||||
|
|||||||
Reference in New Issue
Block a user