syntax = "proto2";

package MessageResult;

//option optimize_for = LITE_RUNTIME;

option java_package = "com.miaole.live.protocol.response";
option java_outer_classname = "MessageResult";

// 废弃
// message NewMessageResult {
// 	repeated NewMessageVo list = 1;
// 	optional int32 delMsgCount = 2;//标记为删除的消息条数
// 	optional bool needUpdateMsgCount = 3;//是否需要获取的更新数据
// }

// 废弃
// message NewMessageVo {
// 	optional int32 newNum = 1;//新消息条数
// 	optional int32 tabType = 2;//标签类型
// }

message MessageListResult {
	repeated MessageInfo list = 1;//消息列表
}

message MessageLastListResult {
	repeated MessageInfo list = 1;//最后一条消息的列表（一种类型一条消息）
	repeated int32 newNum = 2;//新消息条数（每种类型的消息的新消息条数）
}

message MessageDelIDsResult {
	repeated string delIds = 1;//删除的消息ID列表
	repeated int32 tabType = 2;//标签类型
}

message MessageInfo {
	optional string id = 1;//唯一ID
	optional string receiveId = 2;//消息接收方ID
	optional string senderId = 3;//消息发送方ID
	optional string thirdpartyId = 4;//第三方Id
	optional bool read = 5;//是否已读
	optional int32 status = 6;//状态 IMsgStatus
	optional string msgId = 7;//消息ID
	optional string msgTitle = 8;//消息标题
	repeated string msgParams = 9;//消息内容参数
	optional int64 createTime = 10;//消息时间
	optional string viewSenderId = 11;//实际显示的发送方ID
	optional string msgJson = 12;//消息关联业务自定义参数

	optional string msgTitleI18n = 13;//消息标题国际化内容{"zh_CN":"中文","en_US":"英文","ar_SA":"阿语"}
	optional string msgParamsI18n = 14;//消息内容参数{"zh_CN":"中文","en_US":"英文","ar_SA":"阿语"}
	optional string country = 15; // 消息发送方国家
	optional string countryI18n = 16; // 消息发送方国家国际化
	optional string countryIcon = 17; // 消息发送方国家图标emoji
	optional int32 tabType = 18; // 消息类型
	optional int32 jumpType = 19; // 跳转类型(对应表CS_PlatMessage handleType)  7-打开webview
	optional string jumpUrl = 20; // 跳转链接
}

message ShowMessageBroadcast {
	optional string msgId = 1;//消息ID
	repeated string msgParams = 2;//消息内容参数
	optional string msgParamsI18n = 3;//消息内容参数{"zh_CN":"中文","en_US":"英文","ar_SA":"阿语"}
}

message NewMessageBroadcast {
	optional string msgId = 1;//消息ID
	repeated string msgParams = 2;//消息内容参数
	optional string msgParamsI18n = 3;//消息内容参数{"zh_CN":"中文","en_US":"英文","ar_SA":"阿语"}
}

//私聊消息广播
message ChatMsgBroadcast {
	optional string userId = 1;//发送消息的用户ID
	optional string receiveId = 2;//接收者用户ID
	optional string msg = 3;//消息内容
	optional int32 type = 4;//消息类型 0:房间私聊
	optional string roomId = 5;//房间ID
}

// 提示用户广播 可能是弹窗提示, Toast提示
message ShowDialoagOrToastBroadcast {
	optional int32 showType = 1;//消息展示形式, 1-Dialog弹窗提示 2-Toast提示 3-通知接待主持人下班提示
	optional string content = 2;//消息内容
	optional string msgType = 3;//消息类型,mute=私聊禁言 publicMute=公屏禁言
	optional string contentI18n = 4;//消息内容国际化内容{"zh_CN":"中文","en_US":"英文","ar_SA":"阿语"}
}

message BreakIceEmoticonsInfo {
	repeated string emoticonsPath = 1;//表情包列表,表数据代表开启了该功能
}
