Package cn.jpush.api.push

Examples of cn.jpush.api.push.CustomMessageParams$CustomMsgContent


    testGetReport();
  }

  private static void testSend() {
        JPushClient jpushClient = new JPushClient(masterSecret, appKey, 0, DeviceEnum.Android, false);
    CustomMessageParams params = new CustomMessageParams();
    //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);
View Full Code Here


      return _pushClient.sendCustomMessage(msgTitle, msgContent, params, extras);
  }
 
 
  public MessageResult sendCustomMessageAll(String msgTitle, String msgContent) {
      CustomMessageParams params = new CustomMessageParams();
        params.setReceiverType(ReceiverTypeEnum.APP_KEY);
        //params.setTimeToLive(MessageParams.DEFAULT_TIME_TO_LIVE);
        //params.setSendNo(1);
        //params.setOverrideMsgId("");
      return _pushClient.sendCustomMessage(msgTitle, msgContent, params, null);
  }
View Full Code Here

TOP

Related Classes of cn.jpush.api.push.CustomMessageParams$CustomMsgContent

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.