Examples of QQLevel


Examples of iqq.im.bean.QQLevel

  protected void onHttpStatusOK(QQHttpResponse response) throws QQException,
      JSONException {
    JSONObject json = new JSONObject(response.getResponseString());
    if (json.getInt("retcode") == 0) {
      JSONObject result = json.getJSONObject("result");
      QQLevel level = user.getLevel();
      level.setLevel(result.getInt("level"));
      level.setDays(result.getInt("days"));
      level.setHours(result.getInt("hours"));
      level.setRemainDays(result.getInt("remainDays"));
      notifyActionEvent(QQActionEvent.Type.EVT_OK, user);
    }else{
      notifyActionEvent(QQActionEvent.Type.EVT_ERROR,
          new QQException(QQErrorCode.UNEXPECTED_RESPONSE, response.getResponseString()));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.