eleme.openapi.sdk.api.service.MsgNewService Maven / Gradle / Ivy
package eleme.openapi.sdk.api.service;
import eleme.openapi.sdk.api.annotation.Service;
import eleme.openapi.sdk.api.base.BaseNopService;
import eleme.openapi.sdk.api.exception.ServiceException;
import eleme.openapi.sdk.oauth.response.Token;
import eleme.openapi.sdk.config.Config;
import eleme.openapi.sdk.api.entity.msgNew.*;
import java.util.HashMap;
import java.util.Map;
/**
* 新消息服务
*/
@Service("eleme.msgNew")
public class MsgNewService extends BaseNopService {
public MsgNewService(Config config,Token token) {
super(config, token, MsgNewService.class);
}
/**
* 获取未拉取的推送失败消息列表
*
* @param msgQueryRequest 查询条件
* @return 消息列表
* @throws ServiceException 服务异常
*/
public MsgQueryResult getPushFailMsg(MsgQueryRequest msgQueryRequest) throws ServiceException {
Map params = new HashMap();
params.put("msgQueryRequest", msgQueryRequest);
return call("eleme.msgNew.getPushFailMsg", params);
}
/**
* ISV通过该接口向平台确认已成功拉取消息
*
* @param msgConfirmRequest 查询条件
* @return 消息列表
* @throws ServiceException 服务异常
*/
public MsgConfirmResult confirmPullMsg(MsgConfirmRequest msgConfirmRequest) throws ServiceException {
Map params = new HashMap();
params.put("msgConfirmRequest", msgConfirmRequest);
return call("eleme.msgNew.confirmPullMsg", params);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy