diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/IBGiftOrder.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/IBGiftOrder.cs | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/IBGiftOrder.cs b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftOrder.cs new file mode 100644 index 00000000..31e7e2a3 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/IBGiftOrder.cs @@ -0,0 +1,105 @@ +using System;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "IBGiftOrder")]
+ [Serializable]
+ public class IBGiftOrder : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "orderid", DataFormat = DataFormat.Default)]
+ public string orderid
+ {
+ get
+ {
+ return this._orderid ?? "";
+ }
+ set
+ {
+ this._orderid = value;
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool orderidSpecified
+ {
+ get
+ {
+ return this._orderid != null;
+ }
+ set
+ {
+ bool flag = value == (this._orderid == null);
+ if (flag)
+ {
+ this._orderid = (value ? this.orderid : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, IsRequired = false, Name = "time", DataFormat = DataFormat.TwosComplement)]
+ public uint time
+ {
+ get
+ {
+ return this._time ?? 0u;
+ }
+ set
+ {
+ this._time = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool timeSpecified
+ {
+ get
+ {
+ return this._time != null;
+ }
+ set
+ {
+ bool flag = value == (this._time == null);
+ if (flag)
+ {
+ this._time = (value ? new uint?(this.time) : null);
+ }
+ }
+ }
+
+ private string _orderid;
+
+ private uint? _time;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeorderid()
+ {
+ return this.orderidSpecified;
+ }
+
+ private void Resetorderid()
+ {
+ this.orderidSpecified = false;
+ }
+
+ private bool ShouldSerializetime()
+ {
+ return this.timeSpecified;
+ }
+
+ private void Resettime()
+ {
+ this.timeSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|