Class PushoverResponse

java.lang.Object
de.svenkubiak.jpushover.http.PushoverResponse

public class PushoverResponse extends Object
  • Constructor Details

    • PushoverResponse

      public PushoverResponse()
  • Method Details

    • 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