From 6eb915c129fc90c6f4c82ae097dd6ffad5239efc Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Jan 2021 14:28:30 +0800 Subject: +scripts --- Client/Assets/Scripts/XMainClient/KKSG/SMail.cs | 816 ++++++++++++++++++++++++ 1 file changed, 816 insertions(+) create mode 100644 Client/Assets/Scripts/XMainClient/KKSG/SMail.cs (limited to 'Client/Assets/Scripts/XMainClient/KKSG/SMail.cs') diff --git a/Client/Assets/Scripts/XMainClient/KKSG/SMail.cs b/Client/Assets/Scripts/XMainClient/KKSG/SMail.cs new file mode 100644 index 00000000..2767bea0 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/SMail.cs @@ -0,0 +1,816 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Xml.Serialization; +using ProtoBuf; + +namespace KKSG +{ + [ProtoContract(Name = "SMail")] + [Serializable] + public class SMail : IExtensible + { + [ProtoMember(1, IsRequired = false, Name = "uid", DataFormat = DataFormat.TwosComplement)] + public ulong uid + { + get + { + return this._uid ?? 0UL; + } + set + { + this._uid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool uidSpecified + { + get + { + return this._uid != null; + } + set + { + bool flag = value == (this._uid == null); + if (flag) + { + this._uid = (value ? new ulong?(this.uid) : null); + } + } + } + + [ProtoMember(2, IsRequired = false, Name = "type", DataFormat = DataFormat.TwosComplement)] + public uint type + { + get + { + return this._type ?? 0u; + } + set + { + this._type = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool typeSpecified + { + get + { + return this._type != null; + } + set + { + bool flag = value == (this._type == null); + if (flag) + { + this._type = (value ? new uint?(this.type) : null); + } + } + } + + [ProtoMember(3, IsRequired = false, Name = "isread", DataFormat = DataFormat.Default)] + public bool isread + { + get + { + return this._isread ?? false; + } + set + { + this._isread = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isreadSpecified + { + get + { + return this._isread != null; + } + set + { + bool flag = value == (this._isread == null); + if (flag) + { + this._isread = (value ? new bool?(this.isread) : null); + } + } + } + + [ProtoMember(4, IsRequired = false, Name = "isdelete", DataFormat = DataFormat.Default)] + public bool isdelete + { + get + { + return this._isdelete ?? false; + } + set + { + this._isdelete = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool isdeleteSpecified + { + get + { + return this._isdelete != null; + } + set + { + bool flag = value == (this._isdelete == null); + if (flag) + { + this._isdelete = (value ? new bool?(this.isdelete) : null); + } + } + } + + [ProtoMember(5, IsRequired = false, Name = "state", DataFormat = DataFormat.TwosComplement)] + public uint state + { + get + { + return this._state ?? 0u; + } + set + { + this._state = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool stateSpecified + { + get + { + return this._state != null; + } + set + { + bool flag = value == (this._state == null); + if (flag) + { + this._state = (value ? new uint?(this.state) : null); + } + } + } + + [ProtoMember(6, IsRequired = false, Name = "timestamp", DataFormat = DataFormat.TwosComplement)] + public uint timestamp + { + get + { + return this._timestamp ?? 0u; + } + set + { + this._timestamp = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timestampSpecified + { + get + { + return this._timestamp != null; + } + set + { + bool flag = value == (this._timestamp == null); + if (flag) + { + this._timestamp = (value ? new uint?(this.timestamp) : null); + } + } + } + + [ProtoMember(7, IsRequired = false, Name = "timeexpire", DataFormat = DataFormat.TwosComplement)] + public uint timeexpire + { + get + { + return this._timeexpire ?? 0u; + } + set + { + this._timeexpire = new uint?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeexpireSpecified + { + get + { + return this._timeexpire != null; + } + set + { + bool flag = value == (this._timeexpire == null); + if (flag) + { + this._timeexpire = (value ? new uint?(this.timeexpire) : null); + } + } + } + + [ProtoMember(8, IsRequired = false, Name = "istemplate", DataFormat = DataFormat.Default)] + public bool istemplate + { + get + { + return this._istemplate ?? false; + } + set + { + this._istemplate = new bool?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool istemplateSpecified + { + get + { + return this._istemplate != null; + } + set + { + bool flag = value == (this._istemplate == null); + if (flag) + { + this._istemplate = (value ? new bool?(this.istemplate) : null); + } + } + } + + [ProtoMember(9, IsRequired = false, Name = "srcid", DataFormat = DataFormat.TwosComplement)] + public ulong srcid + { + get + { + return this._srcid ?? 0UL; + } + set + { + this._srcid = new ulong?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool srcidSpecified + { + get + { + return this._srcid != null; + } + set + { + bool flag = value == (this._srcid == null); + if (flag) + { + this._srcid = (value ? new ulong?(this.srcid) : null); + } + } + } + + [ProtoMember(10, IsRequired = false, Name = "srcname", DataFormat = DataFormat.Default)] + public string srcname + { + get + { + return this._srcname ?? ""; + } + set + { + this._srcname = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool srcnameSpecified + { + get + { + return this._srcname != null; + } + set + { + bool flag = value == (this._srcname == null); + if (flag) + { + this._srcname = (value ? this.srcname : null); + } + } + } + + [ProtoMember(11, IsRequired = false, Name = "title", DataFormat = DataFormat.Default)] + public string title + { + get + { + return this._title ?? ""; + } + set + { + this._title = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool titleSpecified + { + get + { + return this._title != null; + } + set + { + bool flag = value == (this._title == null); + if (flag) + { + this._title = (value ? this.title : null); + } + } + } + + [ProtoMember(12, IsRequired = false, Name = "content", DataFormat = DataFormat.Default)] + public string content + { + get + { + return this._content ?? ""; + } + set + { + this._content = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool contentSpecified + { + get + { + return this._content != null; + } + set + { + bool flag = value == (this._content == null); + if (flag) + { + this._content = (value ? this.content : null); + } + } + } + + [ProtoMember(13, Name = "items", DataFormat = DataFormat.Default)] + public List items + { + get + { + return this._items; + } + } + + [ProtoMember(14, IsRequired = false, Name = "timeleft", DataFormat = DataFormat.TwosComplement)] + public int timeleft + { + get + { + return this._timeleft ?? 0; + } + set + { + this._timeleft = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool timeleftSpecified + { + get + { + return this._timeleft != null; + } + set + { + bool flag = value == (this._timeleft == null); + if (flag) + { + this._timeleft = (value ? new int?(this.timeleft) : null); + } + } + } + + [ProtoMember(15, Name = "xitems", DataFormat = DataFormat.Default)] + public List xitems + { + get + { + return this._xitems; + } + } + + [ProtoMember(16, IsRequired = false, Name = "reason", DataFormat = DataFormat.TwosComplement)] + public int reason + { + get + { + return this._reason ?? 0; + } + set + { + this._reason = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool reasonSpecified + { + get + { + return this._reason != null; + } + set + { + bool flag = value == (this._reason == null); + if (flag) + { + this._reason = (value ? new int?(this.reason) : null); + } + } + } + + [ProtoMember(17, IsRequired = false, Name = "subreason", DataFormat = DataFormat.TwosComplement)] + public int subreason + { + get + { + return this._subreason ?? 0; + } + set + { + this._subreason = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool subreasonSpecified + { + get + { + return this._subreason != null; + } + set + { + bool flag = value == (this._subreason == null); + if (flag) + { + this._subreason = (value ? new int?(this.subreason) : null); + } + } + } + + [ProtoMember(18, IsRequired = false, Name = "extparam", DataFormat = DataFormat.Default)] + public string extparam + { + get + { + return this._extparam ?? ""; + } + set + { + this._extparam = value; + } + } + + [XmlIgnore] + [Browsable(false)] + public bool extparamSpecified + { + get + { + return this._extparam != null; + } + set + { + bool flag = value == (this._extparam == null); + if (flag) + { + this._extparam = (value ? this.extparam : null); + } + } + } + + [ProtoMember(19, IsRequired = false, Name = "minlevel", DataFormat = DataFormat.TwosComplement)] + public int minlevel + { + get + { + return this._minlevel ?? 0; + } + set + { + this._minlevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool minlevelSpecified + { + get + { + return this._minlevel != null; + } + set + { + bool flag = value == (this._minlevel == null); + if (flag) + { + this._minlevel = (value ? new int?(this.minlevel) : null); + } + } + } + + [ProtoMember(20, IsRequired = false, Name = "maxlevel", DataFormat = DataFormat.TwosComplement)] + public int maxlevel + { + get + { + return this._maxlevel ?? 0; + } + set + { + this._maxlevel = new int?(value); + } + } + + [XmlIgnore] + [Browsable(false)] + public bool maxlevelSpecified + { + get + { + return this._maxlevel != null; + } + set + { + bool flag = value == (this._maxlevel == null); + if (flag) + { + this._maxlevel = (value ? new int?(this.maxlevel) : null); + } + } + } + + private ulong? _uid; + + private uint? _type; + + private bool? _isread; + + private bool? _isdelete; + + private uint? _state; + + private uint? _timestamp; + + private uint? _timeexpire; + + private bool? _istemplate; + + private ulong? _srcid; + + private string _srcname; + + private string _title; + + private string _content; + + private readonly List _items = new List(); + + private int? _timeleft; + + private readonly List _xitems = new List(); + + private int? _reason; + + private int? _subreason; + + private string _extparam; + + private int? _minlevel; + + private int? _maxlevel; + + private IExtension extensionObject; + + private bool ShouldSerializeuid() + { + return this.uidSpecified; + } + + private void Resetuid() + { + this.uidSpecified = false; + } + + private bool ShouldSerializetype() + { + return this.typeSpecified; + } + + private void Resettype() + { + this.typeSpecified = false; + } + + private bool ShouldSerializeisread() + { + return this.isreadSpecified; + } + + private void Resetisread() + { + this.isreadSpecified = false; + } + + private bool ShouldSerializeisdelete() + { + return this.isdeleteSpecified; + } + + private void Resetisdelete() + { + this.isdeleteSpecified = false; + } + + private bool ShouldSerializestate() + { + return this.stateSpecified; + } + + private void Resetstate() + { + this.stateSpecified = false; + } + + private bool ShouldSerializetimestamp() + { + return this.timestampSpecified; + } + + private void Resettimestamp() + { + this.timestampSpecified = false; + } + + private bool ShouldSerializetimeexpire() + { + return this.timeexpireSpecified; + } + + private void Resettimeexpire() + { + this.timeexpireSpecified = false; + } + + private bool ShouldSerializeistemplate() + { + return this.istemplateSpecified; + } + + private void Resetistemplate() + { + this.istemplateSpecified = false; + } + + private bool ShouldSerializesrcid() + { + return this.srcidSpecified; + } + + private void Resetsrcid() + { + this.srcidSpecified = false; + } + + private bool ShouldSerializesrcname() + { + return this.srcnameSpecified; + } + + private void Resetsrcname() + { + this.srcnameSpecified = false; + } + + private bool ShouldSerializetitle() + { + return this.titleSpecified; + } + + private void Resettitle() + { + this.titleSpecified = false; + } + + private bool ShouldSerializecontent() + { + return this.contentSpecified; + } + + private void Resetcontent() + { + this.contentSpecified = false; + } + + private bool ShouldSerializetimeleft() + { + return this.timeleftSpecified; + } + + private void Resettimeleft() + { + this.timeleftSpecified = false; + } + + private bool ShouldSerializereason() + { + return this.reasonSpecified; + } + + private void Resetreason() + { + this.reasonSpecified = false; + } + + private bool ShouldSerializesubreason() + { + return this.subreasonSpecified; + } + + private void Resetsubreason() + { + this.subreasonSpecified = false; + } + + private bool ShouldSerializeextparam() + { + return this.extparamSpecified; + } + + private void Resetextparam() + { + this.extparamSpecified = false; + } + + private bool ShouldSerializeminlevel() + { + return this.minlevelSpecified; + } + + private void Resetminlevel() + { + this.minlevelSpecified = false; + } + + private bool ShouldSerializemaxlevel() + { + return this.maxlevelSpecified; + } + + private void Resetmaxlevel() + { + this.maxlevelSpecified = false; + } + + IExtension IExtensible.GetExtensionObject(bool createIfMissing) + { + return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing); + } + } +} -- cgit v1.1-26-g67d0