123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514 |
- //------------------------------------------------------------------------------
- // <auto-generated>
- // This code was generated by a tool.
- //
- // Changes to this file may cause incorrect behavior and will be lost if
- // the code is regenerated.
- // </auto-generated>
- //------------------------------------------------------------------------------
- // ***************************************************************************
- // * 创建时间= 2015-08-27
- // ***************************************************************************
- // Generated from: test.proto
- // Note: requires additional types generated from: common.proto
- namespace test
- {
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 获取成就项
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("获取成就项")]
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AchievementGetTypesRequest")]
- public partial class AchievementGetTypesRequest : global::ProtoBuf.IExtensible
- {
- public AchievementGetTypesRequest() {}
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 获取成就项内容
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("获取成就项内容")]
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AchievementGetTypeElementRequest")]
- public partial class AchievementGetTypeElementRequest : global::ProtoBuf.IExtensible
- {
- public AchievementGetTypeElementRequest() {}
-
-
- private int _c2s_id;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int c2s_id
- {
- get { return _c2s_id; }
- set { _c2s_id = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 领取奖励
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("领取奖励")]
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AchievementGetAwardRequest")]
- public partial class AchievementGetAwardRequest : global::ProtoBuf.IExtensible
- {
- public AchievementGetAwardRequest() {}
-
-
- private int _c2s_id;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"c2s_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int c2s_id
- {
- get { return _c2s_id; }
- set { _c2s_id = value; }
- }
-
- private test.AchievementGetAwardRequest.ReqType _req_type = test.AchievementGetAwardRequest.ReqType.TYPE1;
- /// <summary>
- /// 类型
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("类型")]
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"req_type", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(test.AchievementGetAwardRequest.ReqType.TYPE1)]
- public test.AchievementGetAwardRequest.ReqType req_type
- {
- get { return _req_type; }
- set { _req_type = value; }
- }
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 枚举类型
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("枚举类型")]
- [global::ProtoBuf.ProtoContract(Name=@"ReqType")]
- public enum ReqType
- {
-
- /// <summary>
- /// 类型1
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("类型1")]
- [global::ProtoBuf.ProtoEnum(Name=@"TYPE1", Value=1)]
- TYPE1 = 1,
-
- /// <summary>
- /// 类型2
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("类型2")]
- [global::ProtoBuf.ProtoEnum(Name=@"TYPE2", Value=2)]
- TYPE2 = 2
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 成就内容
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("成就内容")]
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Achievement")]
- public partial class Achievement : global::ProtoBuf.IExtensible
- {
- public Achievement() {}
-
-
- private int _id;
- /// <summary>
- /// 成就id
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("成就id")]
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int id
- {
- get { return _id; }
- set { _id = value; }
- }
-
- private int _scheduleCurr;
- /// <summary>
- /// 成就完成进度
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("成就完成进度")]
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"scheduleCurr", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int scheduleCurr
- {
- get { return _scheduleCurr; }
- set { _scheduleCurr = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 成就项
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("成就项")]
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AchievementType")]
- public partial class AchievementType : global::ProtoBuf.IExtensible
- {
- public AchievementType() {}
-
-
- private int _id;
- /// <summary>
- /// 成就项id
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("成就项id")]
- /// <summary>
- /// 1,2,3,4,5
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("1,2,3,4,5")]
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int id
- {
- get { return _id; }
- set { _id = value; }
- }
-
- private int _maxScore = default(int);
- /// <summary>
- /// 当前项总成就点
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("当前项总成就点")]
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"maxScore", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int maxScore
- {
- get { return _maxScore; }
- set { _maxScore = value; }
- }
-
- private int _currScore = default(int);
- /// <summary>
- /// 当前项当前成就点
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("当前项当前成就点")]
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"currScore", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int currScore
- {
- get { return _currScore; }
- set { _currScore = value; }
- }
-
- private test.DataEnum _dataType = test.DataEnum.TYPEA;
- /// <summary>
- /// 数据类型
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("数据类型")]
- [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"dataType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(test.DataEnum.TYPEA)]
- public test.DataEnum dataType
- {
- get { return _dataType; }
- set { _dataType = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AchievementGetAllResponse")]
- public partial class AchievementGetAllResponse : global::ProtoBuf.IExtensible
- {
- public AchievementGetAllResponse() {}
-
-
- private int _s2c_code;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int s2c_code
- {
- get { return _s2c_code; }
- set { _s2c_code = value; }
- }
-
- private string _s2c_msg = "";
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string s2c_msg
- {
- get { return _s2c_msg; }
- set { _s2c_msg = value; }
- }
-
- private readonly global::System.Collections.Generic.List<test.AchievementType> _s2c_achievementTypes = new global::System.Collections.Generic.List<test.AchievementType>();
- [global::ProtoBuf.ProtoMember(3, Name=@"s2c_achievementTypes", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List<test.AchievementType> s2c_achievementTypes
- {
- get { return _s2c_achievementTypes; }
- }
-
-
- private readonly global::System.Collections.Generic.List<test.Achievement> _s2c_achievements = new global::System.Collections.Generic.List<test.Achievement>();
- [global::ProtoBuf.ProtoMember(4, Name=@"s2c_achievements", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List<test.Achievement> s2c_achievements
- {
- get { return _s2c_achievements; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AchievementGetTypesResponse")]
- public partial class AchievementGetTypesResponse : global::ProtoBuf.IExtensible
- {
- public AchievementGetTypesResponse() {}
-
-
- private int _s2c_code;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int s2c_code
- {
- get { return _s2c_code; }
- set { _s2c_code = value; }
- }
-
- private string _s2c_msg = "";
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string s2c_msg
- {
- get { return _s2c_msg; }
- set { _s2c_msg = value; }
- }
-
- private readonly global::System.Collections.Generic.List<test.AchievementType> _s2c_achievementTypes = new global::System.Collections.Generic.List<test.AchievementType>();
- [global::ProtoBuf.ProtoMember(3, Name=@"s2c_achievementTypes", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List<test.AchievementType> s2c_achievementTypes
- {
- get { return _s2c_achievementTypes; }
- }
-
-
- private int _s2c_totalScore = default(int);
- [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"s2c_totalScore", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int s2c_totalScore
- {
- get { return _s2c_totalScore; }
- set { _s2c_totalScore = value; }
- }
-
- private int _s2c_leader = default(int);
- [global::ProtoBuf.ProtoMember(5, IsRequired = false, Name=@"s2c_leader", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int s2c_leader
- {
- get { return _s2c_leader; }
- set { _s2c_leader = value; }
- }
-
- private readonly global::System.Collections.Generic.List<int> _s2c_rewardCount = new global::System.Collections.Generic.List<int>();
- [global::ProtoBuf.ProtoMember(6, Name=@"s2c_rewardCount", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public global::System.Collections.Generic.List<int> s2c_rewardCount
- {
- get { return _s2c_rewardCount; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AchievementGetTypeElementResponse")]
- public partial class AchievementGetTypeElementResponse : global::ProtoBuf.IExtensible
- {
- public AchievementGetTypeElementResponse() {}
-
-
- private int _s2c_code;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int s2c_code
- {
- get { return _s2c_code; }
- set { _s2c_code = value; }
- }
-
- private string _s2c_msg = "";
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string s2c_msg
- {
- get { return _s2c_msg; }
- set { _s2c_msg = value; }
- }
-
- private readonly global::System.Collections.Generic.List<test.Achievement> _s2c_achievements = new global::System.Collections.Generic.List<test.Achievement>();
- [global::ProtoBuf.ProtoMember(3, Name=@"s2c_achievements", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List<test.Achievement> s2c_achievements
- {
- get { return _s2c_achievements; }
- }
-
-
- private readonly global::System.Collections.Generic.List<int> _s2c_rewardCount = new global::System.Collections.Generic.List<int>();
- [global::ProtoBuf.ProtoMember(4, Name=@"s2c_rewardCount", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public global::System.Collections.Generic.List<int> s2c_rewardCount
- {
- get { return _s2c_rewardCount; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AchievementGetAwardResponse")]
- public partial class AchievementGetAwardResponse : global::ProtoBuf.IExtensible
- {
- public AchievementGetAwardResponse() {}
-
-
- private int _s2c_code;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int s2c_code
- {
- get { return _s2c_code; }
- set { _s2c_code = value; }
- }
-
- private string _s2c_msg = "";
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_msg", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string s2c_msg
- {
- get { return _s2c_msg; }
- set { _s2c_msg = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"OnAchievementPush")]
- public partial class OnAchievementPush : global::ProtoBuf.IExtensible
- {
- public OnAchievementPush() {}
-
-
- private int _s2c_code;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"s2c_code", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int s2c_code
- {
- get { return _s2c_code; }
- set { _s2c_code = value; }
- }
-
- private int _s2c_id = default(int);
- [global::ProtoBuf.ProtoMember(2, IsRequired = false, Name=@"s2c_id", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int s2c_id
- {
- get { return _s2c_id; }
- set { _s2c_id = value; }
- }
-
- private readonly global::System.Collections.Generic.List<test.Achievement> _s2c_achievements = new global::System.Collections.Generic.List<test.Achievement>();
- [global::ProtoBuf.ProtoMember(3, Name=@"s2c_achievements", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List<test.Achievement> s2c_achievements
- {
- get { return _s2c_achievements; }
- }
-
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 数据类型
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("数据类型")]
- [global::ProtoBuf.ProtoContract(Name=@"DataEnum")]
- public enum DataEnum
- {
-
- /// <summary>
- /// 类型A
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("类型A")]
- [global::ProtoBuf.ProtoEnum(Name=@"TYPEA", Value=1)]
- TYPEA = 1,
-
- /// <summary>
- /// 类型B
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("类型B")]
- [global::ProtoBuf.ProtoEnum(Name=@"TYPEB", Value=2)]
- TYPEB = 2
- }
-
- //---------------------------------------------------------------------------------------
-
- /// <summary>
- /// 成就处理器
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("成就处理器")]
- public interface IachievementHandler
- {
-
- /// <summary>
- /// 请求成就信息
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("请求成就信息")]
- test.AchievementGetTypesResponse achievementGetTypesRequest(test.AchievementGetTypesRequest request);
-
- /// <summary>
- /// 请求对于项的成就
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("请求对于项的成就")]
- test.AchievementGetTypeElementResponse achievementGetTypeElementRequest(test.AchievementGetTypeElementRequest request);
-
- /// <summary>
- /// 请求奖励
- /// <summary>
- [global::ProtoBuf.ServiceModel.ProtoComment("请求奖励")]
- test.AchievementGetAwardResponse achievementGetAwardRequest(test.AchievementGetAwardRequest request);
-
- }
-
-
- //---------------------------------------------------------------------------------------
-
- public interface IachievementPush
- {
- test.Void onAchievementPush(test.OnAchievementPush request);
-
- }
-
-
- }
-
|