mirror of https://github.com/quasar/Quasar.git
29 lines
568 B
C#
29 lines
568 B
C#
using ProtoBuf;
|
|
|
|
namespace xClient.Core.Packets.ServerPackets
|
|
{
|
|
[ProtoContract]
|
|
public class VisitWebsite : IPacket
|
|
{
|
|
[ProtoMember(1)]
|
|
public string URL { get; set; }
|
|
|
|
[ProtoMember(2)]
|
|
public bool Hidden { get; set; }
|
|
|
|
public VisitWebsite()
|
|
{
|
|
}
|
|
|
|
public VisitWebsite(string url, bool hidden)
|
|
{
|
|
this.URL = url;
|
|
this.Hidden = hidden;
|
|
}
|
|
|
|
public void Execute(Client client)
|
|
{
|
|
client.Send<VisitWebsite>(this);
|
|
}
|
|
}
|
|
} |