Added missing MessageType field.

Added missing field numbers.
This commit is contained in:
Tristan B. Velloza Kildaire 2021-08-27 15:00:59 +02:00
parent e5034db783
commit 5ebec59c39
1 changed files with 11 additions and 6 deletions

View File

@ -8,13 +8,13 @@ message DNETMessage
enum MessageType
{
// For all AccountMessage messages
AUTH = 0;
REGISTER = 1;
ACCOUNT = 0;
// For all ChannelMessage messages
CHANNEL = 2;
CHANNEL = 1;
LIST_CHANS = 3;
// For all ServerMessage messages
SERVER = 3;
}
// Type of message
@ -24,6 +24,8 @@ message DNETMessage
bytes content = 2;
}
// ChannelMessage
//
// These represent channel commands
@ -41,11 +43,14 @@ message ChannelCommand
GET_PROP = 7;
}
// The type of channel command
MessageType type = 0;
// The channel to which the command applies
string name;
string name = 1;
// Additional data (dependent on command)
bytes additionalData;
bytes additionalData = 2;
}
// Channel/User Property