Quasar/Client/Core/Packets/ServerPackets/VisitWebsite.cs

29 lines
568 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 xClient.Core.Packets.ServerPackets
2014-07-08 12:58:53 +00:00
{
[ProtoContract]
public class VisitWebsite : IPacket
{
[ProtoMember(1)]
public string URL { get; set; }
[ProtoMember(2)]
public bool Hidden { get; set; }
public VisitWebsite()
{
}
2014-07-08 12:58:53 +00:00
public VisitWebsite(string url, bool hidden)
{
this.URL = url;
this.Hidden = hidden;
}
public void Execute(Client client)
{
client.Send<VisitWebsite>(this);
}
}
}