Package com.jcabi.github
Interface Notifications
-
@Immutable public interface Notifications
Github Notifications API.- Since:
- 0.15
- Version:
- $Id: a855debc54495ad58e822776d74f1ca7185cbf68 $
- Author:
- Giang Le (lthuangiang@gmail.com), Paul Polishchuk (ppol@ua.fm)
- See Also:
- Notifications API
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Notification
get(int number)
Get a single notification.Iterable<Notification>
iterate()
Iterate them all.void
markAsRead()
Marks all notifications on this repository as read.GitHubThread
thread(int number)
Get thread data.
-
-
-
Method Detail
-
iterate
Iterable<Notification> iterate()
Iterate them all.- Returns:
- Iterable of Notifications
- See Also:
- List your notifications in a repository
-
get
Notification get(int number)
Get a single notification.- Parameters:
number
- Notification id- Returns:
- Notification
- See Also:
- View a single thread
-
markAsRead
void markAsRead()
Marks all notifications on this repository as read.
-
thread
GitHubThread thread(int number)
Get thread data.- Parameters:
number
- Thread ID.- Returns:
- Data of the specified thread.
- See Also:
- View a single thread
-
-