package weiboclient4j.model;

import java.util.Date;

/**
 * @author Hover Ruan
 */
public class RateLimitStatus {
    private int ipLimit;
    private String limitTimeUnit;
    private int remainingIpHits;
    private int remainingUserHits;
    private Date resetTime;
    private int resetTimeInSeconds;
    private int userLimit;

    public int getIpLimit() {
        return ipLimit;
    }

    public void setIpLimit(int ipLimit) {
        this.ipLimit = ipLimit;
    }

    public String getLimitTimeUnit() {
        return limitTimeUnit;
    }

    public void setLimitTimeUnit(String limitTimeUnit) {
        this.limitTimeUnit = limitTimeUnit;
    }

    public int getRemainingIpHits() {
        return remainingIpHits;
    }

    public void setRemainingIpHits(int remainingIpHits) {
        this.remainingIpHits = remainingIpHits;
    }

    public int getRemainingUserHits() {
        return remainingUserHits;
    }

    public void setRemainingUserHits(int remainingUserHits) {
        this.remainingUserHits = remainingUserHits;
    }

    public Date getResetTime() {
        return resetTime;
    }

    public void setResetTime(Date resetTime) {
        this.resetTime = resetTime;
    }

    public int getResetTimeInSeconds() {
        return resetTimeInSeconds;
    }

    public void setResetTimeInSeconds(int resetTimeInSeconds) {
        this.resetTimeInSeconds = resetTimeInSeconds;
    }

    public int getUserLimit() {
        return userLimit;
    }

    public void setUserLimit(int userLimit) {
        this.userLimit = userLimit;
    }
}

@@ -23,16 +23,76 @@
 model;%0A%0A
+import org.codehaus.jackson.annotate.JsonIgnoreProperties;%0A%0A
 import j
@@ -137,16 +137,60 @@
 uan%0A */%0A
+@JsonIgnoreProperties(ignoreUnknown = true)%0A
 public c
@@ -429,16 +429,47 @@
 erLimit;
+%0A    private int apiRateLimits;
 %0A%0A    pu
@@ -1696,11 +1696,189 @@
 t;%0A    %7D
+%0A%0A    public int getApiRateLimits() %7B%0A        return apiRateLimits;%0A    %7D%0A%0A    public void setApiRateLimits(int apiRateLimits) %7B%0A        this.apiRateLimits = apiRateLimits;%0A    %7D
 %0A%7D%0A

Add apiRateLimits to RateLimitStatus