This repository has been archived on 2019-06-21. You can view files and clone it, but cannot push or open issues or pull requests.
2017-02-26 20:30:51 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
2017-03-04 12:43:46 +00:00
|
|
|
|
namespace PixelHub.Server.PixelMessages
|
2017-02-26 20:30:51 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Hard-resets the PixelBot. Useful if something has gone wrong, or to reset it's internal state.
|
|
|
|
|
/// Note that this will cause the PixelBot to drop it's connection!
|
|
|
|
|
/// </summary>
|
2017-03-04 12:43:46 +00:00
|
|
|
|
public class ResetMessage : PixelMessage
|
2017-02-26 20:30:51 +00:00
|
|
|
|
{
|
|
|
|
|
public override byte[] Payload {
|
|
|
|
|
get {
|
|
|
|
|
return new byte[0];
|
|
|
|
|
}
|
|
|
|
|
protected set {
|
|
|
|
|
// There's nothing here!
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-03-02 13:19:29 +00:00
|
|
|
|
public new MessageTypes MessageType { get; private set; } = MessageTypes.Reset;
|
|
|
|
|
|
2017-03-04 12:43:46 +00:00
|
|
|
|
public ResetMessage()
|
2017-02-26 20:30:51 +00:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|