//------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ // *************************************************************************** // * 创建时间= 2015-08-27 // *************************************************************************** // Generated from: test.proto // Note: requires additional types generated from: common.proto namespace test { //--------------------------------------------------------------------------------------- /// /// 获取成就项 /// [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); } } //--------------------------------------------------------------------------------------- /// /// 获取成就项内容 /// [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); } } //--------------------------------------------------------------------------------------- /// /// 领取奖励 /// [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; /// /// 类型 /// [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; } } //--------------------------------------------------------------------------------------- /// /// 枚举类型 /// [global::ProtoBuf.ServiceModel.ProtoComment("枚举类型")] [global::ProtoBuf.ProtoContract(Name=@"ReqType")] public enum ReqType { /// /// 类型1 /// [global::ProtoBuf.ServiceModel.ProtoComment("类型1")] [global::ProtoBuf.ProtoEnum(Name=@"TYPE1", Value=1)] TYPE1 = 1, /// /// 类型2 /// [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); } } //--------------------------------------------------------------------------------------- /// /// 成就内容 /// [global::ProtoBuf.ServiceModel.ProtoComment("成就内容")] [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"Achievement")] public partial class Achievement : global::ProtoBuf.IExtensible { public Achievement() {} private int _id; /// /// 成就id /// [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; /// /// 成就完成进度 /// [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); } } //--------------------------------------------------------------------------------------- /// /// 成就项 /// [global::ProtoBuf.ServiceModel.ProtoComment("成就项")] [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"AchievementType")] public partial class AchievementType : global::ProtoBuf.IExtensible { public AchievementType() {} private int _id; /// /// 成就项id /// [global::ProtoBuf.ServiceModel.ProtoComment("成就项id")] /// /// 1,2,3,4,5 /// [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); /// /// 当前项总成就点 /// [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); /// /// 当前项当前成就点 /// [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; /// /// 数据类型 /// [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 _s2c_achievementTypes = new global::System.Collections.Generic.List(); [global::ProtoBuf.ProtoMember(3, Name=@"s2c_achievementTypes", DataFormat = global::ProtoBuf.DataFormat.Default)] public global::System.Collections.Generic.List s2c_achievementTypes { get { return _s2c_achievementTypes; } } private readonly global::System.Collections.Generic.List _s2c_achievements = new global::System.Collections.Generic.List(); [global::ProtoBuf.ProtoMember(4, Name=@"s2c_achievements", DataFormat = global::ProtoBuf.DataFormat.Default)] public global::System.Collections.Generic.List 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 _s2c_achievementTypes = new global::System.Collections.Generic.List(); [global::ProtoBuf.ProtoMember(3, Name=@"s2c_achievementTypes", DataFormat = global::ProtoBuf.DataFormat.Default)] public global::System.Collections.Generic.List 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 _s2c_rewardCount = new global::System.Collections.Generic.List(); [global::ProtoBuf.ProtoMember(6, Name=@"s2c_rewardCount", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] public global::System.Collections.Generic.List 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 _s2c_achievements = new global::System.Collections.Generic.List(); [global::ProtoBuf.ProtoMember(3, Name=@"s2c_achievements", DataFormat = global::ProtoBuf.DataFormat.Default)] public global::System.Collections.Generic.List s2c_achievements { get { return _s2c_achievements; } } private readonly global::System.Collections.Generic.List _s2c_rewardCount = new global::System.Collections.Generic.List(); [global::ProtoBuf.ProtoMember(4, Name=@"s2c_rewardCount", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)] public global::System.Collections.Generic.List 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 _s2c_achievements = new global::System.Collections.Generic.List(); [global::ProtoBuf.ProtoMember(3, Name=@"s2c_achievements", DataFormat = global::ProtoBuf.DataFormat.Default)] public global::System.Collections.Generic.List 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::ProtoBuf.ServiceModel.ProtoComment("数据类型")] [global::ProtoBuf.ProtoContract(Name=@"DataEnum")] public enum DataEnum { /// /// 类型A /// [global::ProtoBuf.ServiceModel.ProtoComment("类型A")] [global::ProtoBuf.ProtoEnum(Name=@"TYPEA", Value=1)] TYPEA = 1, /// /// 类型B /// [global::ProtoBuf.ServiceModel.ProtoComment("类型B")] [global::ProtoBuf.ProtoEnum(Name=@"TYPEB", Value=2)] TYPEB = 2 } //--------------------------------------------------------------------------------------- /// /// 成就处理器 /// [global::ProtoBuf.ServiceModel.ProtoComment("成就处理器")] public interface IachievementHandler { /// /// 请求成就信息 /// [global::ProtoBuf.ServiceModel.ProtoComment("请求成就信息")] test.AchievementGetTypesResponse achievementGetTypesRequest(test.AchievementGetTypesRequest request); /// /// 请求对于项的成就 /// [global::ProtoBuf.ServiceModel.ProtoComment("请求对于项的成就")] test.AchievementGetTypeElementResponse achievementGetTypeElementRequest(test.AchievementGetTypeElementRequest request); /// /// 请求奖励 /// [global::ProtoBuf.ServiceModel.ProtoComment("请求奖励")] test.AchievementGetAwardResponse achievementGetAwardRequest(test.AchievementGetAwardRequest request); } //--------------------------------------------------------------------------------------- public interface IachievementPush { test.Void onAchievementPush(test.OnAchievementPush request); } }