| | |
| | | /*********用户 模块*********/ |
| | | 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_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_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端【我的】模块*********/ |
| | |
| | | /*********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_INFO = "info";//获取当前wifi信息 |
| | | public final static String UNI_EVENT_REPLY_WIFI_CONNECT = "connect";//连接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_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列表 |
| | | public final static String UNI_EVENT_NOTIFICATION_DEVICE_OID = "oid";//设备【包括下挂设备】oid列表Remove interface |
| | | //endregion |
| | | |
| | | //region --------【原生】打开【小程序】-------- |
| | |
| | | public static class UniCallBackBaseBean implements Serializable { |
| | | |
| | | private int code;//状态码 |
| | | private String mes;//信息描述 |
| | | private String msg;//信息描述 |
| | | private String type;//功能类型 |
| | | private Object data;//附加json数据 |
| | | |
| | | public UniCallBackBaseBean(int code, String mes) { |
| | | public UniCallBackBaseBean(int code, String msg) { |
| | | this.code = code; |
| | | this.mes = mes; |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public UniCallBackBaseBean() { |
| | | this.code = 0; |
| | | this.mes = "成功"; |
| | | this.msg = "成功"; |
| | | } |
| | | |
| | | |
| | |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getMes() { |
| | | return mes == null ? "" : mes; |
| | | public String getMsg() { |
| | | return msg == null ? "" : msg; |
| | | } |
| | | |
| | | public void setMes(String mes) { |
| | | this.mes = mes; |
| | | public void setMsg(String msg) { |
| | | this.msg = msg; |
| | | } |
| | | |
| | | public Object getData() { |