123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519 |
- //------------------------------------------------------------------------------
- // <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>
- //------------------------------------------------------------------------------
- // ***************************************************************************
- // * 作者= 李玥
- // * 创建时间= 2018-03-05
- // * 用途= 红包
- // ***************************************************************************
- // Generated from: redPacketHandler.proto
- // Note: requires additional types generated from: common.proto
- namespace pomelo.redpacket
- {
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 获得者信息
- /// </summary>
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"FetcherInfo")]
- public partial class FetcherInfo : global::ProtoBuf.IExtensible
- {
- public FetcherInfo() {}
-
-
- private string _fetcherId;
- /// <summary>
- /// 玩家id
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"fetcherId", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string fetcherId
- {
- get { return _fetcherId; }
- set { _fetcherId = value; }
- }
-
- private string _fetcherName;
- /// <summary>
- /// 姓名
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"fetcherName", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string fetcherName
- {
- get { return _fetcherName; }
- set { _fetcherName = value; }
- }
-
- private int _fetcherValue;
- /// <summary>
- /// 获得数量
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"fetcherValue", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int fetcherValue
- {
- get { return _fetcherValue; }
- set { _fetcherValue = 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::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RedPacketInfo")]
- public partial class RedPacketInfo : global::ProtoBuf.IExtensible
- {
- public RedPacketInfo() {}
-
-
- private string _id;
- /// <summary>
- /// 红包id
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string id
- {
- get { return _id; }
- set { _id = value; }
- }
-
- private int _count;
- /// <summary>
- /// 红包个数
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"count", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int count
- {
- get { return _count; }
- set { _count = value; }
- }
-
- private int _totalNum;
- /// <summary>
- /// 红包总额(这里指发送者花费的元宝)
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"totalNum", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int totalNum
- {
- get { return _totalNum; }
- set { _totalNum = value; }
- }
-
- private int _channelType;
- /// <summary>
- /// 0世界红包 1仙盟红包
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"channelType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int channelType
- {
- get { return _channelType; }
- set { _channelType = value; }
- }
-
- private int _fetchType;
- /// <summary>
- /// 0口令红包 1普通红包
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(5, IsRequired = true, Name=@"fetchType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int fetchType
- {
- get { return _fetchType; }
- set { _fetchType = value; }
- }
-
- private int _benifitType;
- /// <summary>
- /// 0元宝红包 1银币红包
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(6, IsRequired = true, Name=@"benifitType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int benifitType
- {
- get { return _benifitType; }
- set { _benifitType = value; }
- }
-
- private readonly global::System.Collections.Generic.List<pomelo.redpacket.FetcherInfo> _fetcherList = new global::System.Collections.Generic.List<pomelo.redpacket.FetcherInfo>();
- /// <summary>
- /// 所有抢到红包的玩家
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(7, Name=@"fetcherList", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List<pomelo.redpacket.FetcherInfo> fetcherList
- {
- get { return _fetcherList; }
- }
-
-
- private string _providerId = "";
- /// <summary>
- /// 主人id
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(8, IsRequired = false, Name=@"providerId", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string providerId
- {
- get { return _providerId; }
- set { _providerId = value; }
- }
-
- private string _providerName;
- /// <summary>
- /// 主人姓名
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(9, IsRequired = true, Name=@"providerName", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string providerName
- {
- get { return _providerName; }
- set { _providerName = value; }
- }
-
- private string _message = "";
- /// <summary>
- /// 主人寄语或者口令 在fetchType为0时,表示口令,在fetchType为1且state为1或2时,表示寄语,否则无此字段
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(10, IsRequired = false, Name=@"message", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string message
- {
- get { return _message; }
- set { _message = value; }
- }
-
- private long _dispatchTimestamp;
- /// <summary>
- /// 红包创建时间戳
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(11, IsRequired = true, Name=@"dispatchTimestamp", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public long dispatchTimestamp
- {
- get { return _dispatchTimestamp; }
- set { _dispatchTimestamp = 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::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"GetRedPacketListRequest")]
- public partial class GetRedPacketListRequest : global::ProtoBuf.IExtensible
- {
- public GetRedPacketListRequest() {}
-
- 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=@"GetRedPacketListResponse")]
- public partial class GetRedPacketListResponse : global::ProtoBuf.IExtensible
- {
- public GetRedPacketListResponse() {}
-
-
- 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<pomelo.redpacket.RedPacketInfo> _redPacketInfo = new global::System.Collections.Generic.List<pomelo.redpacket.RedPacketInfo>();
- [global::ProtoBuf.ProtoMember(3, Name=@"redPacketInfo", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public global::System.Collections.Generic.List<pomelo.redpacket.RedPacketInfo> redPacketInfo
- {
- get { return _redPacketInfo; }
- }
-
- 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::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"DispatchRedPacketRequest")]
- public partial class DispatchRedPacketRequest : global::ProtoBuf.IExtensible
- {
- public DispatchRedPacketRequest() {}
-
-
- private int _count;
- /// <summary>
- /// 红包数量
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"count", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int count
- {
- get { return _count; }
- set { _count = value; }
- }
-
- private int _totalNum;
- /// <summary>
- /// 红包总额(这里指发送者花费的元宝)
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(2, IsRequired = true, Name=@"totalNum", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int totalNum
- {
- get { return _totalNum; }
- set { _totalNum = value; }
- }
-
- private int _channelType;
- /// <summary>
- /// 0世界红包 1仙盟红包
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(3, IsRequired = true, Name=@"channelType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int channelType
- {
- get { return _channelType; }
- set { _channelType = value; }
- }
-
- private int _fetchType;
- /// <summary>
- /// 0口令红包 1普通红包
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(4, IsRequired = true, Name=@"fetchType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int fetchType
- {
- get { return _fetchType; }
- set { _fetchType = value; }
- }
-
- private int _benifitType;
- /// <summary>
- /// 0元宝红包 1银币红包
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(5, IsRequired = true, Name=@"benifitType", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- public int benifitType
- {
- get { return _benifitType; }
- set { _benifitType = value; }
- }
-
- private string _message;
- /// <summary>
- /// 主人寄语或者口令 在fetchType为0时,表示口令,在fetchType为1时,表示寄语
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(6, IsRequired = true, Name=@"message", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string message
- {
- get { return _message; }
- set { _message = 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=@"DispatchRedPacketResponse")]
- public partial class DispatchRedPacketResponse : global::ProtoBuf.IExtensible
- {
- public DispatchRedPacketResponse() {}
-
-
- 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); }
- }
-
-
- //---------------------------------------------------------------------------------------
- /// <summary>
- /// 抢红包
- /// </summary>
-
- [global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"FetchRedPacketRequest")]
- public partial class FetchRedPacketRequest : global::ProtoBuf.IExtensible
- {
- public FetchRedPacketRequest() {}
-
-
- private string _id;
- [global::ProtoBuf.ProtoMember(1, IsRequired = true, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
- public string id
- {
- get { return _id; }
- set { _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::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"FetchRedPacketResponse")]
- public partial class FetchRedPacketResponse : global::ProtoBuf.IExtensible
- {
- public FetchRedPacketResponse() {}
-
-
- 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 int _value = default(int);
- /// <summary>
- /// 抢到的金额
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"value", DataFormat = global::ProtoBuf.DataFormat.TwosComplement)]
- [global::System.ComponentModel.DefaultValue(default(int))]
- public int value
- {
- get { return _value; }
- set { _value = 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::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"OnRedPacketDispatchPush")]
- public partial class OnRedPacketDispatchPush : global::ProtoBuf.IExtensible
- {
- public OnRedPacketDispatchPush() {}
-
-
- 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 pomelo.redpacket.RedPacketInfo _redPacketInfo = null;
- /// <summary>
- /// 新增或变更的红包
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(3, IsRequired = false, Name=@"redPacketInfo", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue(null)]
- public pomelo.redpacket.RedPacketInfo redPacketInfo
- {
- get { return _redPacketInfo; }
- set { _redPacketInfo = value; }
- }
-
- private string _id = "";
- /// <summary>
- /// 删除的红包id,由于一次推送只处理一次增删改,3号字段负责增改,4号字段负责删,3和4最多只有一个存在
- /// </summary>
-
- [global::ProtoBuf.ProtoMember(4, IsRequired = false, Name=@"id", DataFormat = global::ProtoBuf.DataFormat.Default)]
- [global::System.ComponentModel.DefaultValue("")]
- public string id
- {
- get { return _id; }
- set { _id = value; }
- }
- private global::ProtoBuf.IExtension extensionObject;
- global::ProtoBuf.IExtension global::ProtoBuf.IExtensible.GetExtensionObject(bool createIfMissing)
- { return global::ProtoBuf.Extensible.GetExtensionObject(ref extensionObject, createIfMissing); }
- }
-
-
- }
-
|