Class GHRepositoryCache

java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.GHRepositoryCache
All Implemented Interfaces:
HttpRequestInterface, JSONHelper

public class GHRepositoryCache extends GHBase
This class represents a GitHub Repository Cache. It provides methods for fetching data about the repository cache such as its full name, active caches size in bytes, and active caches count.
  • Constructor Details

    • GHRepositoryCache

      public GHRepositoryCache(org.json.JSONObject jsonObject)
      Constructs a new GHRepositoryCache instance with the provided JSON object.
      Parameters:
      jsonObject - the JSON object containing the repository cache data
  • Method Details

    • getActiveCachesCount

      public int getActiveCachesCount()
      Returns the active caches count of the repository cache.
      Returns:
      the active caches count of the repository cache
    • getActiveCachesSizeInBytes

      public int getActiveCachesSizeInBytes()
      Returns the active caches size in bytes of the repository cache.
      Returns:
      the active caches size in bytes of the repository cache
    • getFullName

      public String getFullName()
      Returns the full name of the repository cache.
      Returns:
      the full name of the repository cache