Package cn.jpush.api.push

Examples of cn.jpush.api.push.PushResult


       
        // For push, all you need do is to build PushPayload object.
        PushPayload payload = buildPushObject_all_all_alert();
       
        try {
            PushResult result = jpushClient.sendPush(payload);
            LOG.info("Got result - " + result);
           
        } catch (APIConnectionException e) {
            LOG.error("Connection error. Should retry later. ", e);
           
View Full Code Here


       
        // For push, all you need do is to build PushPayload object.
        PushPayload payload = buildPushObject_all_all_alert();
        LOG.info("Paylaod JSON - " + payload.toString());
       
        PushResult result = jpushClient.sendPush(payload);
        if (result.isResultOK()) {
            LOG.debug(result.toString());
        } else {
            if (result.getErrorCode() > 0) {
                LOG.warn(result.getOriginalContent());
            } else {
                LOG.debug("Maybe connect error. Retry laster. ");
            }
        }
  }
View Full Code Here

TOP

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

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.