Move RemoteWipeConstants to briar-api

This commit is contained in:
ameba23
2021-06-03 09:36:26 +02:00
parent 61bae55d7c
commit ab136d3167

View File

@@ -0,0 +1,17 @@
package org.briarproject.briar.remotewipe;
public interface RemoteWipeConstants {
int THRESHOLD = 2;
long MAX_MESSAGE_AGE = 24 * 60 * 60 * 1000;
// Group metadata keys
String GROUP_KEY_CONTACT_ID = "contactId";
String GROUP_KEY_WIPERS = "wipers";
String GROUP_KEY_RECEIVED_WIPE = "receivedWipe";
// Message metadata keys
String MSG_KEY_TIMESTAMP = "timestamp";
String MSG_KEY_MESSAGE_TYPE = "messageType";
String MSG_KEY_LOCAL = "local";
}