syntax = "proto2";
package ChatBackgroundCmd;

option java_package = "com.miaole.live.protocol.request";
option java_outer_classname = "ChatBackgroundCmd";

// 01 获取与目标用户的聊天背景 返回值 string （从 UserDetailCmd.getChatUserInfo 返回）

// 02 获取所有聊天背景 返回值 ChatBackgroundResult.ChatBackgroundInfos
message listAllChatBackgroundInfos{
  optional bool needMySelf = 1;                   // 是否返回自己拥有的背景信息
  optional string friend = 2;                     // 好友ID 只有needMySelf为false时 必传 (返回当前好友设置的背景)
}

// 03 设置或者取消背景的共享 返回值 CommonResult.BoolResult
message setOrCancelBackground{
  optional string targetId = 1;                   // 目标用户
  optional string backgroundId = 2;               // 背景ID
  optional bool cancel = 3;                       // 是否是取消共享
}

// 04 设置全局的背景 返回值 CommonResult.BoolResult
message setGlobalBackground{
  optional string backgroundId = 1;               // 背景ID
}

// 05 设置单个好友的背景 返回值 CommonResult.BoolResult
message setFriendBackground{
  optional string targetId = 1;                   // 目标用户ID(好友ID)
  optional string backgroundId = 2;               // 背景ID
}

// 06 获取用户某一个背景共享用户信息 返回值 ChatBackgroundResult.UserShareUserInfos
message listUserShareUserInfos{
  optional string backgroundId = 1;               // 背景ID
}





