[server] Sort out message types

This commit is contained in:
Starbeamrainbowlabs 2017-03-02 13:19:29 +00:00
parent d1daadef29
commit deee56ea9e
2 changed files with 4 additions and 2 deletions

View file

@ -5,7 +5,7 @@ namespace PixelHub
/// <summary>
/// The type of message that you are sending.
/// </summary>
public enum MessageType
public enum MessageTypes
{
// No command. This is not a valid message type.
None = -1,
@ -50,7 +50,7 @@ namespace PixelHub
/// The type of this message.
/// </summary>
/// <value>The type of the message.</value>
public ushort MessageType { get; private set; } = 0;
public MessageTypes MessageType { get; private set; } = MessageTypes.None;
/// <summary>
/// The id of this message, or the message that this message is in direct response to.

View file

@ -17,6 +17,8 @@ namespace PixelHub.Server.PixelCommands
}
}
public new MessageTypes MessageType { get; private set; } = MessageTypes.Reset;
public ResetCommand()
{