Browse Source

[server] Sort out message types

master
Starbeamrainbowlabs 4 years ago
parent
commit
deee56ea9e
2 changed files with 4 additions and 2 deletions
  1. +2
    -2
      PixelHub-Server/PixelHub/PixelCommand.cs
  2. +2
    -0
      PixelHub-Server/PixelHub/PixelCommands/ResetCommand.cs

+ 2
- 2
PixelHub-Server/PixelHub/PixelCommand.cs 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.


+ 2
- 0
PixelHub-Server/PixelHub/PixelCommands/ResetCommand.cs View File

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