Class GHSubscription

java.lang.Object
org.kohsuke.github.GHSubscription

public class GHSubscription extends Object
Represents your subscribing to a repository / conversation thread..
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

    • GHSubscription

      public GHSubscription()
  • Method Details

    • getCreatedAt

      public Date getCreatedAt()
      Gets created at.
      Returns:
      the created at
    • getUrl

      public String getUrl()
      Gets url.
      Returns:
      the url
    • getRepositoryUrl

      public String getRepositoryUrl()
      Gets repository url.
      Returns:
      the repository url
    • getReason

      public String getReason()
      Gets reason.
      Returns:
      the reason
    • isSubscribed

      public boolean isSubscribed()
      Is subscribed boolean.
      Returns:
      the boolean
    • isIgnored

      public boolean isIgnored()
      Is ignored boolean.
      Returns:
      the boolean
    • getRepository

      public GHRepository getRepository()
      Gets repository.
      Returns:
      the repository
    • delete

      public void delete() throws IOException
      Removes this subscription.
      Throws:
      IOException - the io exception
    • getRoot

      @Deprecated public GitHub getRoot()
      Deprecated.
      For access to the GitHub instance, use a local copy instead of pulling it out of objects.
      Get the root GitHub instance for this object.
      Returns:
      the root GitHub instance