Class Limit.Smart

    • Constructor Detail

      • Smart

        public Smart​(Limit limit)
        Public ctor.
        Parameters:
        limit - Limit
    • Method Detail

      • limit

        public int limit()
                  throws IOException
        Limit of number of requests.
        Returns:
        Number of requests you can make in total
        Throws:
        IOException - If it fails
      • remaining

        public int remaining()
                      throws IOException
        Remaining number of requests.
        Returns:
        Number of requests you can still make
        Throws:
        IOException - If it fails
      • reset

        public Date reset()
                   throws IOException
        When will the limit be reset.
        Returns:
        Date when this will happen
        Throws:
        IOException - If it fails
      • json

        public javax.json.JsonObject json()
                                   throws IOException
        Description copied from interface: JsonReadable
        Describe it in a JSON object.
        Specified by:
        json in interface JsonReadable
        Returns:
        JSON object
        Throws:
        IOException - If there is any I/O problem
      • github

        public Github github()
        Description copied from interface: Limit
        Github we're in.
        Specified by:
        github in interface Limit
        Returns:
        Github