From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- .../Assets/Scripts/XMainClient/KKSG/PlatFriend.cs | 234 +++++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/PlatFriend.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/PlatFriend.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/PlatFriend.cs b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriend.cs new file mode 100644 index 00000000..5326dd99 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/PlatFriend.cs @@ -0,0 +1,234 @@ +using System; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "PlatFriend")] + [Serializable] + public class PlatFriend : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "openid", DataFormat = DataFormat.Default)] + public string openid + { + get + { + return this._openid ?? ""; + } + set + { + this._openid = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool openidSpecified + { + get + { + return this._openid != null; + } + set + { + bool flag = value == (this._openid == null); + if (flag) + { + this._openid = (value ? this.openid : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "nickname", DataFormat = DataFormat.Default)] + public string nickname + { + get + { + return this._nickname ?? ""; + } + set + { + this._nickname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool nicknameSpecified + { + get + { + return this._nickname != null; + } + set + { + bool flag = value == (this._nickname == null); + if (flag) + { + this._nickname = (value ? this.nickname : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "bigpic", DataFormat = DataFormat.Default)] + public string bigpic + { + get + { + return this._bigpic ?? ""; + } + set + { + this._bigpic = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool bigpicSpecified + { + get + { + return this._bigpic != null; + } + set + { + bool flag = value == (this._bigpic == null); + if (flag) + { + this._bigpic = (value ? this.bigpic : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "midpic", DataFormat = DataFormat.Default)] + public string midpic + { + get + { + return this._midpic ?? ""; + } + set + { + this._midpic = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool midpicSpecified + { + get + { + return this._midpic != null; + } + set + { + bool flag = value == (this._midpic == null); + if (flag) + { + this._midpic = (value ? this.midpic : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "smallpic", DataFormat = DataFormat.Default)] + public string smallpic + { + get + { + return this._smallpic ?? ""; + } + set + { + this._smallpic = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool smallpicSpecified + { + get + { + return this._smallpic != null; + } + set + { + bool flag = value == (this._smallpic == null); + if (flag) + { + this._smallpic = (value ? this.smallpic : null); + } + } + } + + private string _openid; + + private string _nickname; + + private string _bigpic; + + private string _midpic; + + private string _smallpic; + + private IExtension extensionObject; + + private bool ShouldSerializeopenid() + { + return this.openidSpecified; + } + + private void Resetopenid() + { + this.openidSpecified = false; + } + + private bool ShouldSerializenickname() + { + return this.nicknameSpecified; + } + + private void Resetnickname() + { + this.nicknameSpecified = false; + } + + private bool ShouldSerializebigpic() + { + return this.bigpicSpecified; + } + + private void Resetbigpic() + { + this.bigpicSpecified = false; + } + + private bool ShouldSerializemidpic() + { + return this.midpicSpecified; + } + + private void Resetmidpic() + { + this.midpicSpecified = false; + } + + private bool ShouldSerializesmallpic() + { + return this.smallpicSpecified; + } + + private void Resetsmallpic() + { + this.smallpicSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0