BaseMessage

- Added decoding support for `CHANNELS_ENUMERATE_REQ` and `CHANNELS_ENUMERATE_REP`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-11-10 15:07:25 +02:00
parent 6fe2b691fb
commit 6688f0db6a
1 changed files with 10 additions and 0 deletions

View File

@ -120,6 +120,16 @@ public class BaseMessage
import davinci.c2s.auth : AuthResponse;
message.command = Command.decodeTo!(AuthResponse)(payload);
}
else if(message.commandType == CommandType.CHANNELS_ENUMERATE_REQ)
{
import davinci.c2s.channels : ChannelEnumerateRequest;
message.command = Command.decodeTo!(ChannelEnumerateRequest)(payload);
}
else if(message.commandType == CommandType.CHANNELS_ENUMERATE_REP)
{
import davinci.c2s.channels : ChannelEnumerateReply;
message.command = Command.decodeTo!(ChannelEnumerateReply)(payload);
}
}