Package de.svenkubiak.jpushover.http
Class PushoverResponse
- java.lang.Object
-
- de.svenkubiak.jpushover.http.PushoverResponse
-
public class PushoverResponse extends Object
- Author:
- svenkubiak
-
-
Constructor Summary
Constructors Constructor Description PushoverResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PushoverResponsecreate()intgetHttpStatus()longgetLimit()longgetRemaining()longgetReset()StringgetResponse()PushoverResponsehttpStatus(int httpStatus)booleanisSuccessful()PushoverResponseisSuccessful(boolean successful)PushoverResponselimit(long limit)PushoverResponseremaining(long remaining)PushoverResponsereset(long reset)PushoverResponseresponse(String response)
-
-
-
Method Detail
-
create
public static PushoverResponse create()
-
response
public PushoverResponse response(String response)
-
httpStatus
public PushoverResponse httpStatus(int httpStatus)
-
isSuccessful
public PushoverResponse isSuccessful(boolean successful)
-
limit
public PushoverResponse limit(long limit)
-
remaining
public PushoverResponse remaining(long remaining)
-
reset
public PushoverResponse reset(long reset)
-
getResponse
public String getResponse()
- Returns:
- The pushover response
-
getHttpStatus
public int getHttpStatus()
- Returns:
- The HTTP status
-
isSuccessful
public boolean isSuccessful()
- Returns:
- true if the API returned a HTTP status code 200, false otherwise
-
getLimit
public long getLimit()
- Returns:
- The API rate limit
-
getRemaining
public long getRemaining()
- Returns:
- The remaining allowed API requests
-
getReset
public long getReset()
- Returns:
- The API rate limit reset timestamp
-
-