From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Scripts/XMainClient/KKSG/ShowFlowerPageRes.cs | 475 +++++++++++++++++++++ 1 file changed, 475 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageRes.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageRes.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageRes.cs new file mode 100644 index 00000000..153e247a --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/ShowFlowerPageRes.cs @@ -0,0 +1,475 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "ShowFlowerPageRes")] + [Serializable] + public class ShowFlowerPageRes : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "allcount", DataFormat = DataFormat.TwosComplement)] + public uint allcount + { + get + { + return this._allcount ?? 0u; + } + set + { + this._allcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool allcountSpecified + { + get + { + return this._allcount != null; + } + set + { + bool flag = value == (this._allcount == null); + if (flag) + { + this._allcount = (value ? new uint?(this.allcount) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "weekcount", DataFormat = DataFormat.TwosComplement)] + public uint weekcount + { + get + { + return this._weekcount ?? 0u; + } + set + { + this._weekcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekcountSpecified + { + get + { + return this._weekcount != null; + } + set + { + bool flag = value == (this._weekcount == null); + if (flag) + { + this._weekcount = (value ? new uint?(this.weekcount) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "weekrank", DataFormat = DataFormat.TwosComplement)] + public uint weekrank + { + get + { + return this._weekrank ?? 0u; + } + set + { + this._weekrank = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool weekrankSpecified + { + get + { + return this._weekrank != null; + } + set + { + bool flag = value == (this._weekrank == null); + if (flag) + { + this._weekrank = (value ? new uint?(this.weekrank) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "cansendcount", DataFormat = DataFormat.TwosComplement)] + public uint cansendcount + { + get + { + return this._cansendcount ?? 0u; + } + set + { + this._cansendcount = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool cansendcountSpecified + { + get + { + return this._cansendcount != null; + } + set + { + bool flag = value == (this._cansendcount == null); + if (flag) + { + this._cansendcount = (value ? new uint?(this.cansendcount) : null); + } + } + } + + [ProtoMember(5, Name = "cansendstate", DataFormat = DataFormat.TwosComplement)] + public List cansendstate + { + get + { + return this._cansendstate; + } + } + + [ProtoMember(6, Name = "recordroleid", DataFormat = DataFormat.TwosComplement)] + public List recordroleid + { + get + { + return this._recordroleid; + } + } + + [ProtoMember(7, Name = "recordcount", DataFormat = DataFormat.TwosComplement)] + public List recordcount + { + get + { + return this._recordcount; + } + } + + [ProtoMember(8, Name = "recordtime", DataFormat = DataFormat.TwosComplement)] + public List recordtime + { + get + { + return this._recordtime; + } + } + + [ProtoMember(9, Name = "recordname", DataFormat = DataFormat.Default)] + public List recordname + { + get + { + return this._recordname; + } + } + + [ProtoMember(10, IsRequired = false, Name = "rolename", DataFormat = DataFormat.Default)] + public string rolename + { + get + { + return this._rolename ?? ""; + } + set + { + this._rolename = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool rolenameSpecified + { + get + { + return this._rolename != null; + } + set + { + bool flag = value == (this._rolename == null); + if (flag) + { + this._rolename = (value ? this.rolename : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "roleprofession", DataFormat = DataFormat.TwosComplement)] + public uint roleprofession + { + get + { + return this._roleprofession ?? 0u; + } + set + { + this._roleprofession = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool roleprofessionSpecified + { + get + { + return this._roleprofession != null; + } + set + { + bool flag = value == (this._roleprofession == null); + if (flag) + { + this._roleprofession = (value ? new uint?(this.roleprofession) : null); + } + } + } + + [ProtoMember(12, Name = "otherroleid", DataFormat = DataFormat.TwosComplement)] + public List otherroleid + { + get + { + return this._otherroleid; + } + } + + [ProtoMember(13, Name = "othername", DataFormat = DataFormat.Default)] + public List othername + { + get + { + return this._othername; + } + } + + [ProtoMember(14, Name = "othercount", DataFormat = DataFormat.TwosComplement)] + public List othercount + { + get + { + return this._othercount; + } + } + + [ProtoMember(15, Name = "otherprofession", DataFormat = DataFormat.TwosComplement)] + public List otherprofession + { + get + { + return this._otherprofession; + } + } + + [ProtoMember(16, Name = "updegreelevel", DataFormat = DataFormat.TwosComplement)] + public List updegreelevel + { + get + { + return this._updegreelevel; + } + } + + [ProtoMember(17, Name = "sendFlowersTotal", DataFormat = DataFormat.Default)] + public List sendFlowersTotal + { + get + { + return this._sendFlowersTotal; + } + } + + [ProtoMember(18, Name = "sendLog", DataFormat = DataFormat.Default)] + public List sendLog + { + get + { + return this._sendLog; + } + } + + [ProtoMember(19, Name = "receiveFlowersTotal", DataFormat = DataFormat.Default)] + public List receiveFlowersTotal + { + get + { + return this._receiveFlowersTotal; + } + } + + [ProtoMember(20, Name = "receiveRank", DataFormat = DataFormat.Default)] + public List receiveRank + { + get + { + return this._receiveRank; + } + } + + [ProtoMember(21, 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); + } + } + } + + private uint? _allcount; + + private uint? _weekcount; + + private uint? _weekrank; + + private uint? _cansendcount; + + private readonly List _cansendstate = new List(); + + private readonly List _recordroleid = new List(); + + private readonly List _recordcount = new List(); + + private readonly List _recordtime = new List(); + + private readonly List _recordname = new List(); + + private string _rolename; + + private uint? _roleprofession; + + private readonly List _otherroleid = new List(); + + private readonly List _othername = new List(); + + private readonly List _othercount = new List(); + + private readonly List _otherprofession = new List(); + + private readonly List _updegreelevel = new List(); + + private readonly List _sendFlowersTotal = new List(); + + private readonly List _sendLog = new List(); + + private readonly List _receiveFlowersTotal = new List(); + + private readonly List _receiveRank = new List(); + + private ErrorCode? _errorcode; + + private IExtension extensionObject; + + private bool ShouldSerializeallcount() + { + return this.allcountSpecified; + } + + private void Resetallcount() + { + this.allcountSpecified = false; + } + + private bool ShouldSerializeweekcount() + { + return this.weekcountSpecified; + } + + private void Resetweekcount() + { + this.weekcountSpecified = false; + } + + private bool ShouldSerializeweekrank() + { + return this.weekrankSpecified; + } + + private void Resetweekrank() + { + this.weekrankSpecified = false; + } + + private bool ShouldSerializecansendcount() + { + return this.cansendcountSpecified; + } + + private void Resetcansendcount() + { + this.cansendcountSpecified = false; + } + + private bool ShouldSerializerolename() + { + return this.rolenameSpecified; + } + + private void Resetrolename() + { + this.rolenameSpecified = false; + } + + private bool ShouldSerializeroleprofession() + { + return this.roleprofessionSpecified; + } + + private void Resetroleprofession() + { + this.roleprofessionSpecified = false; + } + + private bool ShouldSerializeerrorcode() + { + return this.errorcodeSpecified; + } + + private void Reseterrorcode() + { + this.errorcodeSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0