Package cn.jpush.api.push

Examples of cn.jpush.api.push.MessageResult


    //params.setReceiverType(ReceiverTypeEnum.REGISTRATION_ID);
    //params.setReceiverValue(registrationID);
    params.setReceiverType(ReceiverTypeEnum.TAG);
    params.setReceiverValue(tag);
   
    MessageResult msgResult = jpushClient.sendCustomMessage(msgTitle, msgContent, params, null);
        LOG.debug("responseContent - " + msgResult.responseResult.responseContent);
    if (msgResult.isResultOK()) {
          LOG.info("msgResult - " + msgResult);
          LOG.info("messageId - " + msgResult.getMessageId());
    } else {
        if (msgResult.getErrorCode() > 0) {
            // 业务异常
            LOG.warn("Service error - ErrorCode: "
                    + msgResult.getErrorCode() + ", ErrorMessage: "
                    + msgResult.getErrorMessage());
        } else {
            // 未到达 JPush
            LOG.error("Other excepitons - "
                    + msgResult.responseResult.exceptionString);
        }
View Full Code Here

TOP

Related Classes of cn.jpush.api.push.MessageResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.