diff options
Diffstat (limited to 'Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListRes.cs')
-rw-r--r-- | Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListRes.cs | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListRes.cs b/Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListRes.cs new file mode 100644 index 00000000..b6eb2186 --- /dev/null +++ b/Client/Assets/Scripts/XMainClient/KKSG/FetchTeamListRes.cs @@ -0,0 +1,85 @@ +using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Xml.Serialization;
+using ProtoBuf;
+
+namespace KKSG
+{
+ [ProtoContract(Name = "FetchTeamListRes")]
+ [Serializable]
+ public class FetchTeamListRes : IExtensible
+ {
+ [ProtoMember(1, Name = "teams", DataFormat = DataFormat.Default)]
+ public List<TeamBrief> teams
+ {
+ get
+ {
+ return this._teams;
+ }
+ }
+
+ [ProtoMember(2, Name = "TheTeams", DataFormat = DataFormat.Default)]
+ public List<TeamFullDataNtf> TheTeams
+ {
+ get
+ {
+ return this._TheTeams;
+ }
+ }
+
+ [ProtoMember(3, IsRequired = false, Name = "errcode", DataFormat = DataFormat.TwosComplement)]
+ public ErrorCode errcode
+ {
+ get
+ {
+ return this._errcode ?? ErrorCode.ERR_SUCCESS;
+ }
+ set
+ {
+ this._errcode = new ErrorCode?(value);
+ }
+ }
+
+ [XmlIgnore]
+ [Browsable(false)]
+ public bool errcodeSpecified
+ {
+ get
+ {
+ return this._errcode != null;
+ }
+ set
+ {
+ bool flag = value == (this._errcode == null);
+ if (flag)
+ {
+ this._errcode = (value ? new ErrorCode?(this.errcode) : null);
+ }
+ }
+ }
+
+ private readonly List<TeamBrief> _teams = new List<TeamBrief>();
+
+ private readonly List<TeamFullDataNtf> _TheTeams = new List<TeamFullDataNtf>();
+
+ private ErrorCode? _errcode;
+
+ private IExtension extensionObject;
+
+ private bool ShouldSerializeerrcode()
+ {
+ return this.errcodeSpecified;
+ }
+
+ private void Reseterrcode()
+ {
+ this.errcodeSpecified = false;
+ }
+
+ IExtension IExtensible.GetExtensionObject(bool createIfMissing)
+ {
+ return Extensible.GetExtensionObject(ref this.extensionObject, createIfMissing);
+ }
+ }
+}
|