Class PushoverResponse
java.lang.Object
de.svenkubiak.jpushover.http.PushoverResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PushoverResponsecreate()intlonggetLimit()longlonggetReset()httpStatus(int httpStatus) booleanisSuccessful(boolean successful) limit(long limit) remaining(long remaining) reset(long reset)
-
Constructor Details
-
PushoverResponse
public PushoverResponse()
-
-
Method Details
-
create
-
response
-
httpStatus
-
isSuccessful
-
limit
-
remaining
-
reset
-
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
-