//------------------------------------------------------------------------------
//
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
//------------------------------------------------------------------------------
// ***************************************************************************
// * 作者= 李玥
// * 创建时间= 2018-03-05
// * 用途= 红包
// ***************************************************************************
// Generated from: redPacketHandler.proto
// Note: requires additional types generated from: common.proto
namespace pomelo.redpacket
{
//---------------------------------------------------------------------------------------
///
/// 获得者信息
///
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"FetcherInfo")]
public partial class FetcherInfo : global::ProtoBuf.IExtensible
{
public FetcherInfo() {}
private string _fetcherId;
///
/// 玩家id
///
[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;
///
/// 姓名
///
[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;
///
/// 获得数量
///
[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); }
}
//---------------------------------------------------------------------------------------
///
/// 红包信息
///
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"RedPacketInfo")]
public partial class RedPacketInfo : global::ProtoBuf.IExtensible
{
public RedPacketInfo() {}
private string _id;
///
/// 红包id
///
[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;
///
/// 红包个数
///
[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;
///
/// 红包总额(这里指发送者花费的元宝)
///
[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;
///
/// 0世界红包 1仙盟红包
///
[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;
///
/// 0口令红包 1普通红包
///
[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;
///
/// 0元宝红包 1银币红包
///
[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 _fetcherList = new global::System.Collections.Generic.List();
///
/// 所有抢到红包的玩家
///
[global::ProtoBuf.ProtoMember(7, Name=@"fetcherList", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List fetcherList
{
get { return _fetcherList; }
}
private string _providerId = "";
///
/// 主人id
///
[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;
///
/// 主人姓名
///
[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 = "";
///
/// 主人寄语或者口令 在fetchType为0时,表示口令,在fetchType为1且state为1或2时,表示寄语,否则无此字段
///
[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;
///
/// 红包创建时间戳
///
[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); }
}
//---------------------------------------------------------------------------------------
///
/// 获取所有红包列表
///
[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 _redPacketInfo = new global::System.Collections.Generic.List();
[global::ProtoBuf.ProtoMember(3, Name=@"redPacketInfo", DataFormat = global::ProtoBuf.DataFormat.Default)]
public global::System.Collections.Generic.List 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); }
}
//---------------------------------------------------------------------------------------
///
/// 发红包
///
[global::System.Serializable, global::ProtoBuf.ProtoContract(Name=@"DispatchRedPacketRequest")]
public partial class DispatchRedPacketRequest : global::ProtoBuf.IExtensible
{
public DispatchRedPacketRequest() {}
private int _count;
///
/// 红包数量
///
[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;
///
/// 红包总额(这里指发送者花费的元宝)
///
[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;
///
/// 0世界红包 1仙盟红包
///
[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;
///
/// 0口令红包 1普通红包
///
[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;
///
/// 0元宝红包 1银币红包
///
[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;
///
/// 主人寄语或者口令 在fetchType为0时,表示口令,在fetchType为1时,表示寄语
///
[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); }
}
//---------------------------------------------------------------------------------------
///
/// 抢红包
///
[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);
///
/// 抢到的金额
///
[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); }
}
//---------------------------------------------------------------------------------------
///
/// 新红包推送
///
[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;
///
/// 新增或变更的红包
///
[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 = "";
///
/// 删除的红包id,由于一次推送只处理一次增删改,3号字段负责增改,4号字段负责删,3和4最多只有一个存在
///
[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); }
}
}