mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
Defined which protocol objects require user-defined tags.
This commit is contained in:
@@ -1,18 +1,17 @@
|
||||
package net.sf.briar.api.protocol;
|
||||
|
||||
/**
|
||||
* User-defined tags for encoding and decoding protocol objects. An object
|
||||
* should have a user-defined tag if it appears in a list or a map, or if
|
||||
* objects of different types may be encountered in a given protocol state.
|
||||
*/
|
||||
public interface Tags {
|
||||
|
||||
static final int AUTHOR_ID = 1;
|
||||
static final int BATCH = 2;
|
||||
static final int BATCH_ID = 3;
|
||||
static final int GROUP_ID = 4;
|
||||
static final int HEADER = 5;
|
||||
static final int MESSAGE = 6;
|
||||
static final int MESSAGE_BODY = 7;
|
||||
static final int MESSAGE_ID = 8;
|
||||
static final int NICKNAME = 9;
|
||||
static final int PUBLIC_KEY = 10;
|
||||
static final int SIGNATURE = 12;
|
||||
static final int TIMESTAMP = 13;
|
||||
static final int TRANSPORTS = 14;
|
||||
static final int AUTHOR_ID = 0;
|
||||
static final int BATCH = 1;
|
||||
static final int BATCH_ID = 2;
|
||||
static final int GROUP_ID = 3;
|
||||
static final int HEADER = 4;
|
||||
static final int MESSAGE = 5;
|
||||
static final int MESSAGE_ID = 6;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user