| | |
| | | package com.hdl.photovoltaic.uni; |
| | | |
| | | import androidx.annotation.NonNull; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * Created by jlchen on 12/15/21. |
| | | * UniMP 原生和小程序交互相关配置参数 |
| | | */ |
| | | public class HDLUniMP { |
| | | |
| | | public final static String UNI_APP_ID = "__UNI__F86DFCD";//调试宝wgt包小程序id |
| | | /*********UniMP wgt id*********/ |
| | | // public final static String UNI_APP_ID = "__UNI__A2E7300";//光伏wgt包小程序id |
| | | |
| | | public final static String UNI_APP_ID = "__UNI__A2E7300";//光伏wgt包小程序id |
| | | /*********UniMP Event 原生和小程序交互 自定义通知事件*********/ |
| | | public final static String UNI_EVENT_uniMPOnClose = "uni_MPOnClose";//自定义小程序关闭事件 |
| | | //get event 小程序发送到原生 加前缀:uni_ |
| | | public final static String UNI_EVENT_GetAppParams = "uni_GetAppParams";//获取APP应用信息 |
| | | public final static String UNI_EVENT_GetFloorDataEvent = "uni_GetFloorDataEvent";//获取楼层或者房屋信息 |
| | | public final static String UNI_EVENT_SaveFloorDataEvent = "uni_SaveFloorDataEvent";//新建或者编辑楼层或者房间事件 |
| | | public final static String UNI_EVENT_GetRoomDetailsEvent = "uni_GetRoomDetailsEvent";//获取房间详情:绑定的设备列表 |
| | | public final static String UNI_EVENT_SendLinkBindUid = "uni_SendLinkBindUid";//发送Link指令绑定房间 |
| | | public final static String UNI_EVENT_SendLinkDeleteUid = "uni_SendLinkDeleteUid";//发送Link指令解绑定房间 |
| | | public final static String UNI_EVENT_SendChangeGWName = "uni_SendChangeGWName";//发送网关备注名更改指令(link) |
| | | public final static String UNI_EVENT_SendDisableToONPRO = "uni_SendDisableToONPRO";//onpro禁用指令(link) |
| | | public final static String UNI_EVENT_SendIARCCFirmware = "uni_SendIARCCFirmware";//发送IARCC三方固件分类 |
| | | public final static String UNI_EVENT_SendReadACFirmwareVersion = "uni_SendReadACFirmwareVersion";//发送读取IRACC模块固件版本 |
| | | public final static String UNI_EVENT_SendUpgradeACNotification = "uni_SendUpgradeACNotification";//升级IRACC模块通知 |
| | | public final static String UNI_EVENT_SendUpgrade = "uni_SendUpgrade";//发送升级指令 |
| | | public final static String UNI_EVENT_SendFinish = "uni_SendFinish";//分包结束 |
| | | public final static String UNI_EVENT_SendOpenIRACC = "uni_SendOpenIRACC";//打开IRACC透传数 |
| | | public final static String UNI_EVENT_SendControlTestIRACC = "uni_SendControlTestIRACC";//IRACC控制测试 |
| | | public final static String UNI_EVENT_SendLinkBindRoom = "uni_SendLinkBindRoom";//发送Link指令绑定房间 |
| | | public final static String UNI_EVENT_SendLinkRename = "uni_SendLinkRename";//发送Link指令修改备注 |
| | | |
| | | /** |
| | | * 场景 |
| | | */ |
| | | public final static String UNI_EVENT_CreateScene = "uni_CreateScene";//发送Link指令创建场景 |
| | | public final static String UNI_EVENT_EditScene = "uni_EditScene";//发送Link指令编辑场景 |
| | | public final static String UNI_EVENT_GetSceneSid = "uni_GetSceneSid";//发送Link指令获取场景sid |
| | | public final static String UNI_EVENT_GetSceneDetail = "uni_GetSceneDetail";//发送Link指令获取场景详情 |
| | | public final static String UNI_EVENT_GetRoomBindSidList = "uni_GetRoomBindSidList";//发送Link指令获取房屋关联场景设备表格 |
| | | public final static String UNI_EVENT_GetFunctionSidList = "uni_GetFunctionSidList";//发送Link指令获取回路sid |
| | | public final static String UNI_EVENT_CONTROLSCENE = "uni_ControlScene";//执行场景 |
| | | public final static String UNI_EVENT_DeleteScene = "uni_DeleteScene";//发送Link指令删除场景 |
| | | public final static String UNI_EVENT_GatewayVersion = "uni_GatewayVersion";//获取网关版本 用于控制延时支持0.1s |
| | | |
| | | /** |
| | | * 自动化 |
| | | */ |
| | | public final static String UNI_EVENT_GetLogicSid = "uni_GetLogicSid";//发送Link指令获取自动化sid |
| | | public final static String UNI_EVENT_GetSceneList = "uni_GetSceneList";//发送Link指令获取场景列表 |
| | | public final static String UNI_EVENT_GetLogicList = "uni_GetLogicList";//发送Link指令获取自动化列表 |
| | | public final static String UNI_EVENT_CreateLogic = "uni_CreateLogic";//发送Link指令创建自动化 创建编辑同一个 |
| | | public final static String UNI_EVENT_GetLogicDetail = "uni_GetLogicDetail";//发送Link指令获取自动化详情 |
| | | |
| | | /** |
| | | * 网关驱动升级,设备固件升级 |
| | | */ |
| | | public final static String UNI_EVENT_GetOidList = "uni_GetOidList";//发送Link指令获取云端上Oid列表 |
| | | public final static String UNI_EVENT_GetGatewayDrivers = "uni_GetGatewayDrivers";//发送Link网关驱动列表获取 |
| | | public final static String UNI_EVENT_GetCloudGatewayDrivers = "uni_GetCloudGatewayDrivers";//发送Link指令云端的驱动分页列表 |
| | | public final static String UNI_EVENT_UpgradeGatewayDriver = "uni_UpgradeGatewayDriver";//发送Link指令网关驱动升级OTA命令下发 |
| | | public final static String UNI_EVENT_GetDeviceFirmwares = "uni_GetDeviceFirmwares";//发送Link指令获取设备固件列表获取 |
| | | public final static String UNI_EVENT_GetCloudDeviceFirmwares = "uni_GetCloudDeviceFirmwares";//发送Link指令云端的设备固件分页列表 |
| | | public final static String UNI_EVENT_UpgradeDeviceFirmware = "uni_UpgradeDeviceFirmware";//发送Link设备固件升级OTA命令下发 |
| | | /** |
| | | * 安防 |
| | | */ |
| | | public final static String UNI_EVENT_GetSecuritySid = "uni_GetSecuritySid";//发送Link指令获取安防sid |
| | | public final static String UNI_EVENT_GetSecurityList = "uni_GetSecurityList";//发送Link指令获取安防列表 |
| | | public final static String UNI_EVENT_CreateSecurity = "uni_CreateSecurity";//发送Link指令创建安防 创建编辑同一个 |
| | | public final static String UNI_EVENT_GetSecurityDetail = "uni_GetSecurityDetail";//发送Link指令获取安防详情 |
| | | public final static String UNI_EVENT_DeleteSecurity = "uni_DeleteSecurity";//发送Link指令删除安防 |
| | | |
| | | /** |
| | | * 模板 |
| | | */ |
| | | public final static String UNI_EVENT_UpdataTemplateData = "uni_UpdataTemplateData";//更新模板命令数据 |
| | | |
| | | public final static String UNI_EVENT_GetLinkOidList = "uni_GetLinkOidList";//获取LinkOid列表 |
| | | public final static String UNI_EVENT_GetRoomBindList = "uni_GetRoomBindList";//获取RoomBind列表 |
| | | public final static String UNI_EVENT_GetDeviceLoopList = "uni_GetDeviceLoopList";//获取DeviceLoop列表 |
| | | public final static String UNI_EVENT_GetLinkFunctionList = "uni_GetLinkFunctionList";//获取LinkFunction列表 |
| | | public final static String UNI_EVENT_GetLinkSceneList = "uni_GetLinkSceneList";//获取LinkScene列表 |
| | | public final static String UNI_EVENT_GetDeviceList = "uni_GetDeviceList";//获取Device列表 |
| | | public final static String UNI_EVENT_GetRoomList = "uni_GetRoomList";//发送Link指令获取房屋列表 |
| | | //region --------【小程序】发送到【原生】-------- |
| | | |
| | | |
| | | public final static String UNI_EVENT_GetZigBeeDeviceInfo = "uni_GetZigBeeDeviceInfo";//获取ZigBee设备信息 |
| | | public final static String UNI_EVENT_GetAllDataSize = "uni_GetAllDataSize";//获取数据长度 |
| | | public final static String UNI_EVENT_GetMillimeterDeviceInfo = "uni_GetMillimeterDeviceInfo";//获取毫米波设备信息 |
| | | public final static String UNI_EVENT_SetMillimeterConfiguration = "uni_SetMillimeterConfiguration";//配置毫米波数据 |
| | | public final static String UNI_EVENT_GetMillimeterConfiguration = "uni_GetMillimeterConfiguration";//获取毫米波配置数据 |
| | | public final static String UNI_EVENT_MillimeterPositioning = "uni_MillimeterPositioning";//毫米波定位 |
| | | public final static String UNI_EVENT_EditMillimeter = "uni_EditMillimeter";//编辑毫米波 |
| | | public final static String UNI_EVENT_DeleteMillimeterDevice = "uni_DeleteMillimeterDevice";//删除毫米波设备 |
| | | public final static String UNI_EVENT_GetFunctionInfo = "uni_GetFunctionInfo";//获取link设备详情 |
| | | public final static String UNI_EVENT_GetLinkRoom = "uni_GetLinkRoom";//获取link房间列表 |
| | | public final static String UNI_EVENT_LinkPropertyToCloudControl = "uni_LinkPropertyToCloudControl";//link控制 |
| | | public final static String UNI_EVENT_LinkPropertyToGatewayControl = "uni_LinkPropertyToGatewayControl";//link控制 |
| | | public final static String UNI_EVENT_LinkDeviceNameEdit = "uni_LinkDeviceNameEdit";//获取link控制 |
| | | public final static String UNI_EVENT_ChangeDeviceImgVersion = "uni_ChangeDeviceImgVersion";//更改设备的固件版本 |
| | | /*********用户 模块*********/ |
| | | public final static String UNI_EVENT_REPLY_USER_MODEL = "uni_user_model";//用户模块(大类) |
| | | public final static String UNI_EVENT_REPLY_USER_INFO = "user_info";//用户信息 |
| | | public final static String UNI_EVENT_REPLY_USER_LOCAL_INFO = "user_local_info";//用户本地缓存信息 |
| | | public final static String UNI_EVENT_REPLY_USER_IMAGE = "user_image";//用户头像 |
| | | |
| | | |
| | | /*********住宅【电站】模块*********/ |
| | | public final static String UNI_EVENT_REPLY_HOME_MODEL = "uni_home_model";//住宅模块(大类) |
| | | public final static String UNI_EVENT_REPLY_HOME_LIST = "list";//获取住宅【电站】列表 |
| | | public final static String UNI_EVENT_REPLY_HOME_CREATION = "creation";//住宅【电站】创建 |
| | | public final static String UNI_EVENT_REPLY_HOME_EDIT = "edit";//住宅【电站】编辑 |
| | | public final static String UNI_EVENT_REPLY_HOME_DETAILS = "details";//住宅【电站】详情 |
| | | public final static String UNI_EVENT_REPLY_HOME_DEl = "del";//住宅【电站】删除 |
| | | |
| | | public final static String UNI_EVENT_REPLY_HOME_CLOSE_HOME_DETAILS_PAGE = "close_home_details_page";//关闭详情页 |
| | | /*********设备模块*********/ |
| | | public final static String UNI_EVENT_REPLY_DEVICE_MODEL = "uni_device_model";//设备模块(大类) |
| | | public final static String UNI_EVENT_REPLY_DEVICE_LIST = "list";//本地逆变器设备列表 |
| | | public final static String UNI_EVENT_REPLY_DEVICE_NET_LIST = "net_list";//网络逆变器设备列表 |
| | | public final static String UNI_EVENT_REPLY_DEVICE_CHILD_LIST = "child_list";//逆变器【下挂】设备列表 |
| | | public final static String UNI_EVENT_REPLY_DEVICE_ADD = "add";//设备添加 |
| | | public final static String UNI_EVENT_REPLY_DEVICE_ADD_All = "add_all";//添加多个设备 |
| | | public final static String UNI_EVENT_REPLY_DEVICE_DEL = "del";//设备删除 |
| | | public final static String UNI_EVENT_REPLY_DEVICE_OID = "oid";//设备【包括下挂设备】oid列表 |
| | | public final static String UNI_EVENT_REPLY_DEVICE_TIME = "time";//设备时间读取 |
| | | public final static String UNI_EVENT_REPLY_DEVICE_TIME_EDIT = "time_edit";//设备时间编辑 |
| | | public final static String UNI_EVENT_REPLY_DEVICE_CLEAR_DATA = "clear_data";//设备清空住宅id |
| | | public final static String UNI_EVENT_REPLY_DEVICE_UPLOADING_DATA = "uploading_data";//设备上传数据 |
| | | public final static String UNI_EVENT_REPLY_DEVICE_MODBUS_SEND = "modbus_send";//modbus协议 |
| | | public final static String UNI_EVENT_REPLY_DEVICE_Link_edit_SEND = "link_property_edit";//link协议属性编辑 |
| | | public final static String UNI_EVENT_REPLY_DEVICE_Link_read_SEND = "link_property_read";//link协议属性读取 |
| | | public final static String UNI_EVENT_REPLY_DEVICE_MESSAGE_NUMBER = "message_number";//消息总数量 |
| | | public final static String UNI_EVENT_REPLY_DEVICE_DELETE_OID = "delete_Oid";//删除设备oid |
| | | public final static String UNI_EVENT_REPLY_DEVICE_INITIALIZEINVERTER = "initializeInverter";//重置逆变器 |
| | | |
| | | |
| | | /*********OTA模块*********/ |
| | | public final static String UNI_EVENT_REPLY_OTA_MODEL = "uni_ota_model";//升级模块(大类) |
| | | public final static String UNI_EVENT_REPLY_OTA_CLOUD_OID_LIST = "cloud_oid_list";//向云端获取oid列表 |
| | | public final static String UNI_EVENT_REPLY_OTA_FIRMWARES_LIST = "firmwares_current_list";//当前设备固件列表 |
| | | public final static String UNI_EVENT_REPLY_OTA_FIRMWARES_NEW_LIST = "firmwares_new_list";//设备新固件列表 |
| | | public final static String UNI_EVENT_REPLY_OTA_FIRMWARES_LOCAL = "firmwares_local_list";//设备本地固件列表 |
| | | public final static String UNI_EVENT_REPLY_OTA_FIRMWARES_DOWNLOAD = "firmwares_download";//设备固件下载 |
| | | public final static String UNI_EVENT_REPLY_OTA_FIRMWARES_UPGRADE = "firmwares_upgrade";//设备固件升级 |
| | | public final static String UNI_EVENT_REPLY_OTA_DRIVER_LIST = "driver_current_list";//当前设备驱动列表 |
| | | public final static String UNI_EVENT_REPLY_OTA_DRIVER_NEW = "driver_new_list";//设备新驱动列表 |
| | | public final static String UNI_EVENT_REPLY_OTA_DRIVER_LOCAL = "driver_local_list";//设备本地驱动列表 |
| | | public final static String UNI_EVENT_REPLY_OTA_DRIVER_DOWNLOAD = "driver_download";//设备驱动下载 |
| | | public final static String UNI_EVENT_REPLY_OTA_DRIVER_UPGRADE = "driver_upgrade";//设备驱动升级 |
| | | public final static String UNI_EVENT_REPLY_OTA_CANCEL_UPGRADE = "cancel_upgrade";//设备驱动,固件取消升级 |
| | | public final static String UNI_EVENT_REPLY_OTA_DRIVER_CANCEL_DOWNLOAD = "cancel_download";//设备取消下载升级文件 |
| | | public final static String UNI_EVENT_REPLY_OTA_OPEN_SERVICE = "open_service";//打开服务 |
| | | public final static String UNI_EVENT_REPLY_OTA_CLOSE_SERVICE = "close_service";//关闭服务 |
| | | |
| | | /*********其它模块*********/ |
| | | public final static String UNI_EVENT_REPLY_OTHER_MODEL = "uni_other_model";//其它模块(大类) |
| | | public final static String UNI_EVENT_REPLY_OTHER_UNIT = "temperature_unit";//获取温度单位 |
| | | public final static String UNI_EVENT_REPLY_OTHER_APP_LANGUAGE = "app_language";//获取app语言 |
| | | public final static String UNI_EVENT_REPLY_OTHER_LOCATION_INFO = "location_info";//获取app位置信息 |
| | | public final static String UNI_EVENT_REPLY_OTHER_UNI_LOG = "uni_log";//收集uni日志 |
| | | public final static String UNI_EVENT_REPLY_OTHER_BACK = "back";//首页返回 |
| | | public final static String UNI_EVENT_REPLY_OTHER_APPLICATION_CONFLICT = "application_conflict";//应用冲突 |
| | | public final static String UNI_EVENT_REPLY_OTHER_LOGOUT = "uni_logout";//退出登录 |
| | | |
| | | |
| | | /*********C端【我的】模块*********/ |
| | | public final static String UNI_EVENT_REPLY_MINE_MODEL = "uni_mine_model";//我的模块(大类) |
| | | public final static String UNI_EVENT_REPLY_MINE_USER_INFO = "get_user_info";//个人信息获取: |
| | | public final static String UNI_EVENT_REPLY_MINE_EDIT_AVATAR = "edit_avatar";//头像更新 |
| | | public final static String UNI_EVENT_REPLY_MINE_EDIT_USER_INFO = "edit_user_info";//资料编辑 |
| | | public final static String UNI_EVENT_REPLY_MINE_SELECTED_POWERSTATION = "selected_powerstation";//电站选择 |
| | | public final static String UNI_EVENT_REPLY_MINE_MESSAGE_CENTER = "message_center";//消息中心 |
| | | public final static String UNI_EVENT_REPLY_MINE_USER_MANAGER = "user_manager";//用户管理 |
| | | public final static String UNI_EVENT_REPLY_MINE_ABOUT = "about";//关于 |
| | | public final static String UNI_EVENT_REPLY_MINE_SETTING = "setting";//设置 |
| | | |
| | | |
| | | /*********Wifi模块*********/ //卫锦定义 |
| | | public final static String UNI_EVENT_REPLY_WIFI_MODEL = "uni_wifi_model";//wifi模块(大类) |
| | | public final static String UNI_EVENT_REPLY_WIFI_LIST = "list";//获取wifi列表 |
| | | public final static String UNI_EVENT_REPLY_WIFI_PHONE_INFO = "wifi_phone_info";//获取当前wifi信息 |
| | | public final static String UNI_EVENT_REPLY_WIFI_SET_DEVICE = "wifi_set_device";//设置wifi给设备 |
| | | public final static String UNI_EVENT_REPLY_OPEN_WIFI_SETTINGS = "open_wifi_settings";//调用打开手机Wifi设置界面 |
| | | //endregion |
| | | |
| | | //region --------【原生】主动发送到【小程序】-------- |
| | | public final static String UNI_EVENT_NOTIFICATION_DEVICE_MODEL = "uni_notification_model";//通知模块(大类) |
| | | public final static String UNI_EVENT_NOTIFICATION_DEVICE_REFRESH_DETAILS = "refresh_details";//刷新电站详情 |
| | | public final static String UNI_EVENT_NOTIFICATION_DEVICE_REFRESH_USERINFO = "refresh_userinfo";//刷新用户信息 |
| | | public final static String UNI_EVENT_NOTIFICATION_DEVICE_REFRESH_TEMPERATURE = "temperature_format_changed";//刷新单位温度 |
| | | public final static String UNI_EVENT_NOTIFICATION_DEVICE_REFRESH_REFRESH_UNREAD_NUMBER = "refresh_unread_messages_number";//刷新未读消息数量 |
| | | public final static String UNI_EVENT_NOTIFICATION_MQTT_CONNECT_SUCCESS = "mqtt_connect_success";//通知mqtt连接成功 |
| | | public final static String UNI_EVENT_NOTIFICATION_REMOVE_VIEW = "remove_view";//通知uni移除界面 |
| | | public final static String UNI_EVENT_NOTIFICATION_DEVICE_ADD = "add";//设备添加 |
| | | public final static String UNI_EVENT_NOTIFICATION_DEVICE_DEL = "del";//设备删除 |
| | | public final static String UNI_EVENT_NOTIFICATION_DEVICE_OID = "oid";//设备【包括下挂设备】oid列表Remove interface |
| | | //endregion |
| | | |
| | | //region --------【原生】打开【小程序】-------- |
| | | /*********住宅模块*********/ |
| | | //页面路径带参数规则->(UNI_EVENT_OPEN_HOME_CREATION+?key=value&key=参数一) |
| | | public final static String UNI_EVENT_OPEN_HOME_CREATION = "pages/powerStation/powerStationQuickConfig";//"pages/powerStation/powerStationCreate";//住宅【电站】创建 |
| | | public final static String UNI_EVENT_OPEN_HOME_EDIT = "pages/powerStation/powerStationEdit";//住宅【电站】编辑 |
| | | public final static String UNI_EVENT_OPEN_HOME_DETAILS = "pages/powerStationDetail/index";//住宅【电站】详情 |
| | | |
| | | public final static String UNI_EVENT_OPEN_HOME_DETAILS_C = "pages/powerStationDetail/tabbarPage";//C端打开【电站】详情 |
| | | public final static String UNI_EVENT_OPEN_HOME_Null_C = "pages/powerStationDetail/tabbarPage";//无电站时(不需要传参数) |
| | | public final static String UNI_EVENT_OPEN_HOME_DEl = "del";//住宅【电站】删除 |
| | | /*********设备模块*********/ |
| | | //设备模块打开页面全路径 |
| | | //endregion |
| | | |
| | | |
| | | /** |
| | | * 红外宝 |
| | | * 小程序与原生通讯数据格式 |
| | | * 自定义数据格式 |
| | | */ |
| | | public final static String UNI_EVENT_GetIrTypeList = "uni_GetIrTypeList";//获取红外设备类型 |
| | | public final static String UNI_EVENT_GetIrBrandList = "uni_GetIrBrandList";//获取红外设备对应品牌 |
| | | public final static String UNI_EVENT_GetIrCodeList = "uni_GetIrCodeList";//获取红外设备对应品牌的具体码库 |
| | | public final static String UNI_EVENT_IrLocation = "uni_IrLocation";//红外宝定位 |
| | | public final static String UNI_EVENT_IrControlDelete = "uni_IrControlDelete";//红外宝遥控器删除 |
| | | public final static String UNI_EVENT_GetIrInfo = "uni_GetIrInfo";//获取红外设备link层数据 |
| | | public final static String UNI_EVENT_IrCodeTest = "uni_IrCodeTest";//红外宝试码 |
| | | public final static String UNI_EVENT_IrDeviceAdd = "uni_IrDeviceAdd";//红外宝遥控器添加 |
| | | public final static String UNI_EVENT_IrDeviceAddGetSid = "uni_IrDeviceAddGetSid";//红外宝遥控器sid |
| | | public final static String UNI_EVENT_IrCodeStudy = "uni_IrCodeStudy";//红外宝自学码 |
| | | public final static String UNI_EVENT_IrCodeRemove = "uni_IrCodeRemove";//红外宝自学码删除 |
| | | public final static String UNI_EVENT_LinkDeviceControl = "uni_LinkDeviceControl";//link设备控制 |
| | | public final static String UNI_EVENT_LinkOtaDeviceUpgradeDown = "uni_LinkOtaDeviceUpgradeDown";//link模拟云端ota |
| | | |
| | | |
| | | public final static String UNI_EVENT_IrDeviceListGet = "uni_IrDeviceListGet";//红外宝遥控器列表获取 |
| | | |
| | | public final static String UNI_EVENT_GetGateWayDeviceInfo = "uni_GetGateWayDeviceInfo";//获取网关设备信息 |
| | | public final static String UNI_EVENT_SendZigBeePassthrough = "uni_SendZigBeePassthrough";//发送ZigBee透传指令 |
| | | /** |
| | | * Zigbee透传数据全局回复 |
| | | */ |
| | | public final static String UNI_EVENT_ZigBeePassthrough = "uni_ZigBeePassthrough"; |
| | | /** |
| | | * Zigbee状态数据透传 |
| | | */ |
| | | public final static String EVENT_DeviceStatusReportPassthrough = "DeviceStatusReportPassthrough"; |
| | | |
| | | //send event 原生发送到小程序 加前缀:app_ |
| | | // public final static String UNI_APP_EVENT_UIDataEvent = "app_GetFloorDataEvent";//原生通知小程序 获取楼层或者房屋信息 |
| | | |
| | | /*********UniMP PATH 各个小程序页面路径*********/ |
| | | //启动直达页面标识参数 (废弃) |
| | | public final static String UNI_ACTION = "?action=redirect"; |
| | | //UniMP小程序 总路由页面 后面通过pathKey再分发路由跳转、小程序帮我们拼接?action=redirect |
| | | public final static String UNI_PATH_MAIN = "pages/index/index?pathKey="; |
| | | //添加楼层或者房间 |
| | | public final static String UNI_PATH_AddFloor = UNI_PATH_MAIN + "room"; |
| | | //查看房间详情 |
| | | public final static String UNI_PATH_RoomDetails = UNI_PATH_MAIN + "roomDetails"; |
| | | //查看网关信息 |
| | | public final static String UNI_PATH_GATEWAY = UNI_PATH_MAIN + "gateway"; |
| | | //查看毫米波信息 |
| | | public final static String UNI_PATH_MILLIMETER = UNI_PATH_MAIN + "Millimeter"; |
| | | //查看设备通用信息 |
| | | public final static String UNI_PATH_DEVICE = UNI_PATH_MAIN + "device_info"; |
| | | |
| | | //Link数据全局回复 |
| | | public final static String UNI_EVENT_LinkPassthrough = "LinkPassthrough"; |
| | | //关闭进度条监听事件 |
| | | public final static String UNI_EVENT_Progress = "uni_CloseProgress"; |
| | | //查看吸顶式传感器设备信息 |
| | | public final static String UNI_PATH_CEILINGLIGHTSENSOR = UNI_PATH_MAIN + "ceilingLightSensor"; |
| | | |
| | | |
| | | public static class UniCallBackBaseBean implements Serializable { |
| | | private String code = "-1"; |
| | | private String mes; |
| | | private Object data; |
| | | private String topic; |
| | | |
| | | public UniCallBackBaseBean(String code, String mes) { |
| | | private int code;//状态码 |
| | | private String msg;//信息描述 |
| | | private String type;//功能类型 |
| | | private Object data;//附加json数据 |
| | | |
| | | public UniCallBackBaseBean(int code, String msg) { |
| | | this.code = code; |
| | | this.mes = mes; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public UniCallBackBaseBean() { |
| | | this.code = "0"; |
| | | this.mes = "成功"; |
| | | this.code = 0; |
| | | this.msg = "成功"; |
| | | } |
| | | |
| | | @NonNull |
| | | public String getCode() { |
| | | return code == null ? "" : code; |
| | | |
| | | public int getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(@NonNull String code) { |
| | | public void setCode(int code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | @NonNull |
| | | public String getMes() { |
| | | return mes == null ? "" : mes; |
| | | public String getMsg() { |
| | | return msg == null ? "" : msg; |
| | | } |
| | | |
| | | public void setMes(@NonNull String mes) { |
| | | this.mes = mes; |
| | | public void setMsg(String msg) { |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public Object getData() { |
| | |
| | | this.data = data; |
| | | } |
| | | |
| | | public String getTopic() { |
| | | return topic; |
| | | |
| | | public String getType() { |
| | | return type == null ? "" : type; |
| | | } |
| | | |
| | | public void setTopic(String topic) { |
| | | this.topic = topic; |
| | | public void setType(String type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |