using System; using System.Collections.Generic; namespace Octokit.Reactive { /// /// A client for GitHub's Repository Statistics API. /// /// /// See the Repository Statistics API documentation for more information. /// public interface IObservableStatisticsClient { /// /// Returns a list of for the given repository /// /// The owner of the repository /// The name of the repository IObservable> GetContributors(string owner, string name); /// /// Returns a list of for the given repository /// /// The ID of the repository IObservable> GetContributors(int repositoryId); /// /// Returns the last year of commit activity grouped by week. /// /// The owner of the repository /// The name of the repository IObservable GetCommitActivity(string owner, string name); /// /// Returns the last year of commit activity grouped by week. /// /// The ID of the repository IObservable GetCommitActivity(int repositoryId); /// /// Returns a weekly aggregate of the number of additions and deletions pushed to a repository. /// /// The owner of the repository /// The name of the repository IObservable GetCodeFrequency(string owner, string name); /// /// Returns a weekly aggregate of the number of additions and deletions pushed to a repository. /// /// The ID of the repository IObservable GetCodeFrequency(int repositoryId); /// /// Returns the total commit counts for the owner and total commit counts in total. /// /// The owner of the repository /// The name of the repository IObservable GetParticipation(string owner, string name); /// /// Returns the total commit counts for the owner and total commit counts in total. /// /// The ID of the repository IObservable GetParticipation(int repositoryId); /// /// Returns a list of the number of commits per hour in each day /// /// The owner of the repository /// The name of the repository IObservable GetPunchCard(string owner, string name); /// /// Returns a list of the number of commits per hour in each day /// /// The ID of the repository IObservable GetPunchCard(int repositoryId); } }