summaryrefslogtreecommitdiff
path: root/Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-01-25 14:28:30 +0800
committerchai <chaifix@163.com>2021-01-25 14:28:30 +0800
commit6eb915c129fc90c6f4c82ae097dd6ffad5239efc (patch)
tree7dd2be50edf41f36b60fac84696e731c13afe617 /Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs
+scripts
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs')
-rw-r--r--Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs203
1 files changed, 203 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs
new file mode 100644
index 00000000..ab126b7d
--- /dev/null
+++ b/Client/Assets/Scripts/XMainClient/KKSG/PetOperationRes.cs
@@ -0,0 +1,203 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "PetOperationRes")]
+ [Serializable]
+ public class PetOperationRes : 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, IsRequired = false, Name = "followpetid", DataFormat = DataFormat.TwosComplement)]
+ public ulong followpetid
+ {
+ get
+ {
+ return this._followpetid ?? 0UL;
+ }
+ set
+ {
+ this._followpetid = new ulong?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool followpetidSpecified
+ {
+ get
+ {
+ return this._followpetid != null;
+ }
+ set
+ {
+ bool flag = value == (this._followpetid == null);
+ if (flag)
+ {
+ this._followpetid = (value ? new ulong?(this.followpetid) : null);
+ }
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "ismoodup", DataFormat = DataFormat.Default)]
+ public bool ismoodup
+ {
+ get
+ {
+ return this._ismoodup ?? false;
+ }
+ set
+ {
+ this._ismoodup = new bool?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool ismoodupSpecified
+ {
+ get
+ {
+ return this._ismoodup != null;
+ }
+ set
+ {
+ bool flag = value == (this._ismoodup == null);
+ if (flag)
+ {
+ this._ismoodup = (value ? new bool?(this.ismoodup) : null);
+ }
+ }
+ }
+
+ [ProtoMember(4, IsRequired = false, Name = "ishuneryup", DataFormat = DataFormat.Default)]
+ public bool ishuneryup
+ {
+ get
+ {
+ return this._ishuneryup ?? false;
+ }
+ set
+ {
+ this._ishuneryup = new bool?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool ishuneryupSpecified
+ {
+ get
+ {
+ return this._ishuneryup != null;
+ }
+ set
+ {
+ bool flag = value == (this._ishuneryup == null);
+ if (flag)
+ {
+ this._ishuneryup = (value ? new bool?(this.ishuneryup) : null);
+ }
+ }
+ }
+
+ [ProtoMember(5, Name = "invite", DataFormat = DataFormat.Default)]
+ public List<PetInviteInfo> invite
+ {
+ get
+ {
+ return this._invite;
+ }
+ }
+
+ private ErrorCode? _errorcode;
+
+ private ulong? _followpetid;
+
+ private bool? _ismoodup;
+
+ private bool? _ishuneryup;
+
+ private readonly List<PetInviteInfo> _invite = new List<PetInviteInfo>();
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeerrorcode()
+ {
+ return this.errorcodeSpecified;
+ }
+
+ private void Reseterrorcode()
+ {
+ this.errorcodeSpecified = false;
+ }
+
+ private bool ShouldSerializefollowpetid()
+ {
+ return this.followpetidSpecified;
+ }
+
+ private void Resetfollowpetid()
+ {
+ this.followpetidSpecified = false;
+ }
+
+ private bool ShouldSerializeismoodup()
+ {
+ return this.ismoodupSpecified;
+ }
+
+ private void Resetismoodup()
+ {
+ this.ismoodupSpecified = false;
+ }
+
+ private bool ShouldSerializeishuneryup()
+ {
+ return this.ishuneryupSpecified;
+ }
+
+ private void Resetishuneryup()
+ {
+ this.ishuneryupSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}