diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawRes.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawRes.cs | 203 |
1 files changed, 203 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawRes.cs new file mode 100644 index 00000000..534b87d4 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/LotteryDrawRes.cs @@ -0,0 +1,203 @@ +using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "LotteryDrawRes")]
+ [Serializable]
+ public class LotteryDrawRes : IExtensible
+ {
+ [ProtoMember(1, IsRequired = false, Name = "errorcode", DataFormat = DataFormat.TwosComplement)]
+ public ErrorCode errorcode
+ {
+ get
+ {
+ return this._errorcode ?? ErrorCode.ERR_SUCCESS;
+ }
+ set
+ {
+ this._errorcode = new ErrorCode?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool errorcodeSpecified
+ {
+ get
+ {
+ return this._errorcode != null;
+ }
+ set
+ {
+ bool flag = value == (this._errorcode == null);
+ if (flag)
+ {
+ this._errorcode = (value ? new ErrorCode?(this.errorcode) : null);
+ }
+ }
+ }
+
+ [ProtoMember(2, Name = "itemrecord", DataFormat = DataFormat.Default)]
+ public List<ItemRecord> itemrecord
+ {
+ get
+ {
+ return this._itemrecord;
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "price", DataFormat = DataFormat.TwosComplement)]
+ public uint price
+ {
+ get
+ {
+ return this._price ?? 0u;
+ }
+ set
+ {
+ this._price = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool priceSpecified
+ {
+ get
+ {
+ return this._price != null;
+ }
+ set
+ {
+ bool flag = value == (this._price == null);
+ if (flag)
+ {
+ this._price = (value ? new uint?(this.price) : null);
+ }
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "index", DataFormat = DataFormat.TwosComplement)]
+ public uint index
+ {
+ get
+ {
+ return this._index ?? 0u;
+ }
+ set
+ {
+ this._index = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool indexSpecified
+ {
+ get
+ {
+ return this._index != null;
+ }
+ set
+ {
+ bool flag = value == (this._index == null);
+ if (flag)
+ {
+ this._index = (value ? new uint?(this.index) : null);
+ }
+ }
+ }
+
+ [ProtoMember(5, IsRequired = false, Name = "currencytype", DataFormat = DataFormat.TwosComplement)]
+ public uint currencytype
+ {
+ get
+ {
+ return this._currencytype ?? 0u;
+ }
+ set
+ {
+ this._currencytype = new uint?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool currencytypeSpecified
+ {
+ get
+ {
+ return this._currencytype != null;
+ }
+ set
+ {
+ bool flag = value == (this._currencytype == null);
+ if (flag)
+ {
+ this._currencytype = (value ? new uint?(this.currencytype) : null);
+ }
+ }
+ }
+
+ private ErrorCode? _errorcode;
+
+ private readonly List<ItemRecord> _itemrecord = new List<ItemRecord>();
+
+ private uint? _price;
+
+ private uint? _index;
+
+ private uint? _currencytype;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeerrorcode()
+ {
+ return this.errorcodeSpecified;
+ }
+
+ private void Reseterrorcode()
+ {
+ this.errorcodeSpecified = false;
+ }
+
+ private bool ShouldSerializeprice()
+ {
+ return this.priceSpecified;
+ }
+
+ private void Resetprice()
+ {
+ this.priceSpecified = false;
+ }
+
+ private bool ShouldSerializeindex()
+ {
+ return this.indexSpecified;
+ }
+
+ private void Resetindex()
+ {
+ this.indexSpecified = false;
+ }
+
+ private bool ShouldSerializecurrencytype()
+ {
+ return this.currencytypeSpecified;
+ }
+
+ private void Resetcurrencytype()
+ {
+ this.currencytypeSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|