예제 #1
0
 @Override
 public void pushAccount(String account) throws PushException {
   JSONObject result = app.pushSingleAccount(DEVICE_TYPE, account, message);
   Integer retCode = result.getInt(RET_CODE);
   if (retCode != SUCCESS) {
     throw new PushException(result.toString());
   }
 }
예제 #2
0
 @Override
 public void pushAll() throws PushException {
   JSONObject result = app.pushAllDevice(DEVICE_TYPE, message);
   Integer retCode = result.getInt(RET_CODE);
   if (retCode != SUCCESS) {
     throw new PushException(result.toString());
   }
 }