ActivityService class
The ActivityService handles communication with activity related methods of the GitHub API.
Constructors
- ActivityService(GitHub github)
Properties
Methods
-
deleteRepositorySubscription(
RepositorySlug slug) → Future - Deletes a Repository Subscription
-
getRepositorySubscription(
RepositorySlug slug) → Future< RepositorySubscription> - Fetches repository subscription information.
-
getThread(
String threadId) → Future< Notification> - Fetches the specified notification thread.
-
isStarred(
RepositorySlug slug) → Future< bool> - Checks if the currently authenticated user has starred the specified repository.
-
listEventsForOrganization(
String name, {int? pages}) → Stream< Event> - Lists public events for an organization.
-
listEventsPerformedByUser(
String username, {int? pages}) → Stream< Event> - Lists the events performed by a user.
-
listNotifications(
{bool all = false, bool participating = false}) → Stream< Notification> - Lists all notifications for the current user.
-
listPublicEvents(
{int pages = 2}) → Stream< Event> - Lists public events.
-
listPublicEventsPerformedByUser(
String username, {int? pages}) → Stream< Event> - Lists the public events performed by a user.
-
listRepositoryEvents(
RepositorySlug slug, {int? pages}) → Stream< Event> - Lists repository events.
-
listRepositoryIssueEvents(
RepositorySlug slug, {int? pages}) → Stream< Event> - Lists repository issue events.
-
listRepositoryNetworkEvents(
RepositorySlug slug, {int pages = 2}) → Stream< Event> - Lists public events for a network of repositories.
-
listRepositoryNotifications(
RepositorySlug repository, {bool all = false, bool participating = false}) → Stream< Notification> - Lists all notifications for a given repository.
-
listStargazers(
RepositorySlug slug, {int perPage = 30}) → Stream< User> - Lists people who have starred the specified repo.
-
listStarred(
{int perPage = 30}) → Stream< Repository> - Lists all the repos by the current user.
-
listStarredByUser(
String user, {int perPage = 30}) → Stream< Repository> - Lists all the repos starred by a user.
-
listWatched(
) → Stream< Repository> - Lists the repositories the current user is watching.
-
listWatchedByUser(
String user) → Stream< Repository> - Lists the repositories the specified user is watching.
-
listWatchers(
RepositorySlug slug) → Stream< User> - Lists the watchers of the specified repository.
-
markNotificationsRead(
{DateTime? lastRead}) → Future< bool> -
Marks all notifications up to
lastRead
as read. -
markRepositoryNotificationsRead(
RepositorySlug slug, {DateTime? lastRead}) → Future< bool> -
Marks all notifications up to
lastRead
in the specified repository as read. -
markThreadRead(
String threadId) → Future< bool> - Mark the specified notification thread as read.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pollEventsForOrganization(
String name) → EventPoller - Returns an EventPoller for public events for an organization.
-
pollEventsReceivedByUser(
String user) → EventPoller - Returns an EventPoller for events received by a user.
-
pollPublicEvents(
) → EventPoller - Returns an EventPoller for public events.
-
pollPublicEventsReceivedByUser(
String user) → EventPoller - Returns an EventPoller for public events received by a user.
-
pollRepositoryEvents(
RepositorySlug slug) → EventPoller - Returns an EventPoller for repository events.
-
pollRepositoryIssueEvents(
RepositorySlug slug) → EventPoller - Returns an EventPoller for repository issue events.
-
pollRepositoryNetworkEvents(
RepositorySlug slug) → EventPoller - Returns an EventPoller for repository network events.
-
pollUserEventsForOrganization(
String user, String organization) → EventPoller - Returns an EventPoller for the user's organization dashboard.
-
setRepositorySubscription(
RepositorySlug slug, {bool? subscribed, bool? ignored}) → Future< RepositorySubscription> - Sets the Repository Subscription Status
-
star(
RepositorySlug slug) → Future - Stars the specified repository for the currently authenticated user.
-
toString(
) → String -
A string representation of this object.
inherited
-
unstar(
RepositorySlug slug) → Future - Unstars the specified repository for the currently authenticated user.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited