@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()); } }
@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()); } }