syntax = "proto2";

package HongbaoCmd;

//option optimize_for = LITE_RUNTIME;

option java_package = "com.miaole.live.protocol.request";
option java_outer_classname = "HongbaoCmd";

//创建红包
message createHongbao {
	optional string roomId = 1;//房间id
	optional double blackBean = 2;//V币
	optional int32 num = 3;//红包个数
	optional string title = 4;//红包标题
	optional string params = 5;//扩展通知下发参数
}

//开红包:返回HongbaoResult.HongbaoData
message openHongbao {
	optional string roomId = 1;//房间id
	optional int32 hongbaoId = 2;//红包id
}

//获取红包明细:返回HongbaoResult.HongbaoDetail
message getHongbaoDetail {
	optional int32 hongbaoId = 1;//红包id
	optional bool down = 2;//是否向下刷新,打开时取true
	optional int32 index = 3;//向上刷新时取第一条的index,向下刷新时取最后一条index(打开时取0)
}

//获取收到的红包列表:返回HongbaoResult.DrawHongbaoData
message getDrawHongbaoList {
	optional int32 start = 1;
	optional int32 end = 2;
}

//获取发出的红包列表:返回HongbaoResult.CreateHongbaoData
message getCreateHongbaoList {
	optional int32 start = 1;
	optional int32 end = 2;
}

//获得房间是否有红包可以领取 状态返回1则为有红包可领取
message hasRoomHongbao {
	optional string roomId = 1;//房间id
}

//快速打开房间中可以领取的红包 :返回HongbaoResult.HongbaoDatas
message fastRoomHongbao {
	optional string roomId = 1;//房间id
}