From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../XMainClient/KKSG/OneMentorApplyStudentShow.cs | 121 +++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyStudentShow.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyStudentShow.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyStudentShow.cs b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyStudentShow.cs new file mode 100644 index 00000000..736227ef --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/OneMentorApplyStudentShow.cs @@ -0,0 +1,121 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "OneMentorApplyStudentShow")] + [Serializable] + public class OneMentorApplyStudentShow : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "oneStudent", DataFormat = DataFormat.Default)] + [DefaultValue(null)] + public RoleBriefInfo oneStudent + { + get + { + return this._oneStudent; + } + set + { + this._oneStudent = value; + } + } + + [ProtoMember(2, IsRequired = false, Name = "hasApply", DataFormat = DataFormat.Default)] + public bool hasApply + { + get + { + return this._hasApply ?? false; + } + set + { + this._hasApply = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool hasApplySpecified + { + get + { + return this._hasApply != null; + } + set + { + bool flag = value == (this._hasApply == null); + if (flag) + { + this._hasApply = (value ? new bool?(this.hasApply) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "applyWords", DataFormat = DataFormat.Default)] + public string applyWords + { + get + { + return this._applyWords ?? ""; + } + set + { + this._applyWords = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool applyWordsSpecified + { + get + { + return this._applyWords != null; + } + set + { + bool flag = value == (this._applyWords == null); + if (flag) + { + this._applyWords = (value ? this.applyWords : null); + } + } + } + + private RoleBriefInfo _oneStudent = null; + + private bool? _hasApply; + + private string _applyWords; + + private IExtension extensionObject; + + private bool ShouldSerializehasApply() + { + return this.hasApplySpecified; + } + + private void ResethasApply() + { + this.hasApplySpecified = false; + } + + private bool ShouldSerializeapplyWords() + { + return this.applyWordsSpecified; + } + + private void ResetapplyWords() + { + this.applyWordsSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0