syntax = "proto2";

package NotificationResult;

//option optimize_for = LITE_RUNTIME;

option java_package = "com.miaole.live.protocol.response";
option java_outer_classname = "NotificationResult";

//互动通知列表
message NotificationVOs {
    repeated NotificationVO noteVO = 1;
}
//互动通知
message NotificationVO {
    optional string id = 1;
    optional NoteUserInfo noteUserInfo = 2;
    optional string sourceId = 3; //消息源id
    optional int32 sourceType = 4; //消息源类型(1:动态点赞,2:评论点赞,3:关注,4:浏览主页,5:评论动态,6:回复评论)
    optional string createTime = 5;
    optional string word = 6; //文字内容
    optional string voice = 7; //声音
    optional int32 voiceDur = 9; //声音时长
    optional string pic = 10; //图片id
    optional int32 state = 11; //状态(0:未读,1:已读)
    optional int32 version = 12; //资源版本
    optional string auxiliarySourceId = 13; //辅助消息源id（评论id）
}
//互动方用户信息
message NoteUserInfo {
    optional string userId = 1;
    optional string nickName = 2;
    optional int32 logoTime = 3; //修改logo的时间 0为没修改过
    optional string avatar = 4; //头像
}
//互动通知广播
message NoteBroadcast {
    optional string id = 1; //记录id
    optional string acceptor = 2; //受者
    optional string initiator = 3; //攻者
    optional int32 operation = 4; //操作类型（1:动态点赞,2:评论点赞,3:关注,4:浏览主页,5:评论动态,6:回复评论）
}