public RateLimitStatus(Response res) throws WeiboException {
		super(res);
		JSONObject json = res.asJSONObject();
		try {
			JSONArray list = json.getJSONArray("api_rate_limits");
			int size = list.length();
			apiRateLimit = new ArrayList<ApiRateLimits>(size);
			for (int i = 0; i < size; i++) {
				apiRateLimit.add(new ApiRateLimits(list.getJSONObject(i)));
			}
			ipLimit = json.getInt("ip_limit");
			remainingIpHits = json.getInt("remaining_ip_hits");
			remainingUserHits = json.getLong("remaining_user_hits");
			resetTime = json.getString("reset_time");
			resetTimeInSeconds = json.getInt("reset_time_in_seconds");
			userLimit = json.getLong("user_limit");
		} catch (JSONException jsone) {
			throw new WeiboException(
					jsone.getMessage() + ":" + json.toString(), jsone);
		}
	}