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

37 lines
896 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 ShowMessageBox : IPacket
{
[ProtoMember(1)]
public string Caption { get; set; }
[ProtoMember(2)]
public string Text { get; set; }
[ProtoMember(3)]
public string MessageboxButton { get; set; }
[ProtoMember(4)]
public string MessageboxIcon { get; set; }
public ShowMessageBox()
{
}
2014-07-08 12:58:53 +00:00
public ShowMessageBox(string caption, string text, string messageboxbutton, string messageboxicon)
{
this.Caption = caption;
this.Text = text;
this.MessageboxButton = messageboxbutton;
this.MessageboxIcon = messageboxicon;
}
public void Execute(Client client)
{
client.Send<ShowMessageBox>(this);
}
}
}