Class GitHubReleaseAsset

java.lang.Object
com.github.tadukoo.util.pojo.AbstractMappedPojo
com.github.tadukoo.parsing.json.AbstractJSONClass
com.github.tadukoo.github.pojo.GitHubReleaseAsset
All Implemented Interfaces:
com.github.tadukoo.parsing.json.JSONClass, com.github.tadukoo.parsing.json.JSONObject, com.github.tadukoo.util.pojo.MappedPojo

public class GitHubReleaseAsset extends com.github.tadukoo.parsing.json.AbstractJSONClass
GitHub Release Asset represents a Release Asset JSON object from GitHub's REST API.
Version:
Alpha v.0.1
Author:
Logan Ferree (Tadukoo)
  • Constructor Details

    • GitHubReleaseAsset

      public GitHubReleaseAsset()
      Creates a new GitHub Release Asset
    • GitHubReleaseAsset

      public GitHubReleaseAsset(com.github.tadukoo.util.pojo.MappedPojo pojo)
      Creates a new GitHub Release and uses the pojo to populate fields
      Parameters:
      pojo - The MappedPojo to use to populate fields
  • Method Details

    • getUrl

      public String getUrl()
      Returns:
      The URL of the Release Asset
    • setUrl

      public void setUrl(String url)
      Sets the URL of the Release Asset
      Parameters:
      url - The URL of the Release Asset
    • getBrowserDownloadUrl

      public String getBrowserDownloadUrl()
      Returns:
      The Browser Download URL of the Release Asset
    • setBrowserDownloadUrl

      public void setBrowserDownloadUrl(String browserDownloadUrl)
      Sets the Browser Download URL of the Release Asset
      Parameters:
      browserDownloadUrl - The Browser Download URL of the Release Asset
    • getId

      public Double getId()
      Returns:
      The ID of the Release Asset
    • setId

      public void setId(Double id)
      Sets the ID of the Release Asset
      Parameters:
      id - The ID of the Release Asset
    • getNodeId

      public String getNodeId()
      Returns:
      The Node ID of the Release Asset
    • setNodeId

      public void setNodeId(String nodeId)
      Sets the Node ID of the Release Asset
      Parameters:
      nodeId - The Node ID of the Release Asset
    • getName

      public String getName()
      Returns:
      The name of the Release Asset
    • setName

      public void setName(String name)
      Sets the name of the Release Asset
      Parameters:
      name - The name of the Release Asset
    • getLabel

      public String getLabel()
      Returns:
      The Label of the Release Asset
    • setLabel

      public void setLabel(String label)
      Sets the label of the Release Asset
      Parameters:
      label - The label of the Release Asset
    • getState

      public String getState()
      Returns:
      The state of the Release Asset
    • setState

      public void setState(String state)
      Sets the state of the Release Asset
      Parameters:
      state - The state of the Release Asset
    • getContentType

      public String getContentType()
      Returns:
      The content type of the Release Asset
    • setContentType

      public void setContentType(String contentType)
      Sets the content type of the Release Asset
      Parameters:
      contentType - The content type of the Release Asset
    • getSize

      public Double getSize()
      Returns:
      The size of the Release Asset
    • setSize

      public void setSize(Double size)
      Sets the size of the Release Asset
      Parameters:
      size - The size of the Release Asset
    • getDownloadCount

      public Double getDownloadCount()
      Returns:
      The download count of the Release Asset
    • setDownloadCount

      public void setDownloadCount(Double downloadCount)
      Sets the download count of the Release Asset
      Parameters:
      downloadCount - The download count of the Release Asset
    • getCreatedAt

      public String getCreatedAt()
      Returns:
      When the Release Asset was created
    • setCreatedAt

      public void setCreatedAt(String createdAt)
      Sets when the Release Asset was created
      Parameters:
      createdAt - When the Release Asset was created
    • getUpdatedAt

      public String getUpdatedAt()
      Returns:
      When the Release Asset was updated
    • setUpdatedAt

      public void setUpdatedAt(String updatedAt)
      Sets when the Release Asset was updated
      Parameters:
      updatedAt - When the Release Asset was updated
    • getUploader

      Returns:
      The uploader of the Release Asset
      Throws:
      NoSuchMethodException - See Constructor.newInstance(Object...)
      IllegalAccessException - See Constructor.newInstance(Object...)
      InvocationTargetException - See Constructor.newInstance(Object...)
      InstantiationException - See Constructor.newInstance(Object...)
    • setUploader

      public void setUploader(GitHubUser uploader)
      Sets the uploader of the Release Asset
      Parameters:
      uploader - The uploader of the Release Asset