summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftRes.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftRes.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftRes.cs74
1 files changed, 74 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftRes.cs
new file mode 100644
index 00000000..24fe048d
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/GetGuildBonusLeftRes.cs
@@ -0,0 +1,74 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "GetGuildBonusLeftRes")]
+ [Serializable]
+ public class GetGuildBonusLeftRes : 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 = "bonusInfos", DataFormat = DataFormat.Default)]
+ public List<GuildBonusBriefInfo> bonusInfos
+ {
+ get
+ {
+ return this._bonusInfos;
+ }
+ }
+
+ private ErrorCode? _errorCode;
+
+ private readonly List<GuildBonusBriefInfo> _bonusInfos = new List<GuildBonusBriefInfo>();
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeerrorCode()
+ {
+ return this.errorCodeSpecified;
+ }
+
+ private void ReseterrorCode()
+ {
+ this.errorCodeSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}