Package org.kohsuke.github
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:
GHRepository#getSubscription(),GHThread#getSubscription()
-
-
Constructor Summary
Constructors Constructor Description GHSubscription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()Removes this subscription.DategetCreatedAt()Gets created at.StringgetReason()Gets reason.GHRepositorygetRepository()Gets repository.StringgetRepositoryUrl()Gets repository url.StringgetUrl()Gets url.booleanisIgnored()Is ignored boolean.booleanisSubscribed()Is subscribed boolean.
-
-
-
Method Detail
-
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 IOExceptionRemoves this subscription.- Throws:
IOException- the io exception
-
-