using System; using System.Reactive; namespace Octokit.Reactive { /// /// A client for GitHub's Org Teams API. /// /// /// See the Orgs API documentation for more information. /// public interface IObservableTeamsClient { /// /// Returns all s for the current org. /// /// Thrown when a general API error occurs. /// A list of the orgs's teams s. IObservable GetAllTeams(string org); /// /// Returns newly created for the current org. /// /// Thrown when a general API error occurs. /// Newly created IObservable CreateTeam(string org, NewTeam team); /// /// Returns updated for the current org. /// /// Thrown when a general API error occurs. /// Updated IObservable UpdateTeam(int id, UpdateTeam team); /// /// Delete a team - must have owner permissions to this /// /// Thrown when a general API error occurs. /// IObservable DeleteTeam(int id); } }