琦创科技服务平台   

2、长链接消息格式

长链接消息定义


syntax = "proto2";
option java_package="com.home.living.api.dto"
option java_outer_classname = "MessageBody";

import "com/home/living/api/enums/cmdTypeEnum.proto";

//消息体对象
public class MessageDTO{
		//授权码
		required  string authorization =1;
		//指令
		required cmdType cmdType = 1;
		//数据
		optional string data = 1; 
		//交互时间
		required bigint time =1;
}


syntax = "proto2";
option java_package="com.home.living.api.enums"
//指令枚举
enum cmdTypeEnum{
   
		//发起邀请演示
		INVITE_LIVING = 100;
		//开始演示
		START_LIVING = 101;
		//结束演示
		END_LIVING = 102;
		
		//演示中
		//摇杆移动
		LIVING_MOVE = 110;
		//视角转换
		LIVING_VIEW_CHANGE = 111;
		//鸟瞰全局
		//LIVING_VIEW_OVERALL = 112;
		//仰视
		//LIVING_VIEW_LOOKUP = 113;
		//资源下载进度
		HOUSE_DOWNLOADING = 112
		
		//视角转动
		LIVING_VIEW_ROUND = 113
		
		
		---------------------------------------------------------
		
		//发起邀请演示返回
		INVITE_LIVING_BACK = 200;
		//开始演示返回
		START_LIVING_BACK = 201;
		//结束演示返回
		END_LIVING_BACK = 202;
    
		//演示中响应
		//摇杆移动返回
		LIVING_MOVE_BACK = 210;
		//视角转换返回
		LIVING_VIEW_CHANGE_BACK = 211;
		//鸟瞰全局返回
		//LIVING_VIEW_OVERALL_BACK = 212;
		//仰视返回
		//LIVING_VIEW_LOOKUP_BACK = 213;
		//资源下载进度响应
		HOUSE_DOWNLOADING = 212
		//视角转动
		LIVING_VIEW_ROUND = 213

}