Esempio n. 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());
   }
 }
Esempio n. 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());
   }
 }