Package com.jcabi.github
Interface GitHubThread
public interface GitHubThread
Represents a GitHub notifications thread.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidUnsubscribes the user from this thread.Checks, if the current user is subscribed to this thread.voidMarks this thread as read.setSubscription(boolean subscribe, boolean ignore) Subscribes the user to the thread and/or makes the user ignore the thread.
-
Method Details
-
markAsRead
void markAsRead()Marks this thread as read.- See Also:
-
getSubscription
ThreadSubscription getSubscription()Checks, if the current user is subscribed to this thread.- Returns:
- Subscription data, if the user is subscribe, null otherwise.
- See Also:
-
setSubscription
Subscribes the user to the thread and/or makes the user ignore the thread.- Parameters:
subscribe- True, if notifications should be received from this thread.ignore- True, if all notifications should be blocked from this thread.- Returns:
- Data of the subscription.
- See Also:
-
deleteSubscription
void deleteSubscription()Unsubscribes the user from this thread.- See Also:
-