public class MsgService extends Object
| 构造器和说明 |
|---|
MsgService() |
| 限定符和类型 | 方法和说明 |
|---|---|
static BaseList<AlarmConfigInfo> |
getAlarmConfigList()
获取开放平台服务所属团队下的报警配置信息列表(不带token,取配置文件的服务号信息获取token)
|
static BaseList<AlarmConfigInfo> |
getAlarmConfigList(String token)
获取开放平台服务所属团队下的报警配置信息列表
|
static BaseList<BaseInfo> |
getAlarmLevelList()
获取开放平台服务所属团队下的报警消息等级信息列表(不带token,取配置文件的服务号信息获取token)
|
static BaseList<BaseInfo> |
getAlarmLevelList(String token)
获取开放平台服务所属团队下的报警消息等级信息列表
|
static BaseList<BaseInfo> |
getMsgCommonTypeList(String keyword)
获取通用消息分类信息列表(不带token,取配置文件的服务号信息获取token)
|
static BaseList<BaseInfo> |
getMsgCommonTypeList(String keyword,
String token)
获取通用消息分类信息列表
|
static void |
readMessage(IdParam param)
消息已读
|
static void |
sendAlarmMsg(SendAlarmMsgParam sendAlarmMsgParam)
发送报警消息(不带token,取配置文件的服务号信息获取token)
|
static void |
sendAlarmMsg(SendAlarmMsgParam sendAlarmMsgParam,
String token)
发送报警消息
|
static void |
sendCommonMsg(SendCommonMsgParam sendCommonMsgParam)
发送通用消息(不带token,取配置文件的服务号信息获取token)
|
static void |
sendCommonMsg(SendCommonMsgParam sendCommonMsgParam,
String token)
发送通用消息
|
public static BaseList<BaseInfo> getAlarmLevelList()
public static BaseList<BaseInfo> getAlarmLevelList(String token)
token - 开放平台服务tokenpublic static BaseList<AlarmConfigInfo> getAlarmConfigList()
public static BaseList<AlarmConfigInfo> getAlarmConfigList(String token)
token - 开放平台tokenpublic static void sendCommonMsg(SendCommonMsgParam sendCommonMsgParam)
sendCommonMsgParam - 发送通用消息参数public static void sendCommonMsg(SendCommonMsgParam sendCommonMsgParam, String token)
sendCommonMsgParam - 发送通用消息参数token - 开放平台tokenpublic static BaseList<BaseInfo> getMsgCommonTypeList(String keyword)
keyword - 搜索关键字(分类名称)public static BaseList<BaseInfo> getMsgCommonTypeList(String keyword, String token)
keyword - 搜索关键字(分类名称)token - 开放平台tokenpublic static void sendAlarmMsg(SendAlarmMsgParam sendAlarmMsgParam)
sendAlarmMsgParam - 发送报警消息参数public static void sendAlarmMsg(SendAlarmMsgParam sendAlarmMsgParam, String token)
sendAlarmMsgParam - 发送报警消息参数token - 开放平台tokenpublic static void readMessage(IdParam param)
param - IdParamCopyright © 2021. All rights reserved.