/// <summary> /// Gets a list of projects of the workspace with the specified <paramref name="workspaceId"/>. /// </summary> /// <param name="workspaceId">The ID of the workspace.</param> /// <param name="active">The active state that the returned projects should match.</param> /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response from the Toggl API.</returns>> /// <see> /// <cref>https://github.com/toggl/toggl_api_docs/blob/master/chapters/workspaces.md#get-workspace-projects</cref> /// </see> public IHttpResponse GetProjects(int workspaceId, TogglProjectActiveState active) { return(Client.GetResponse(new TogglGetProjectsOptions(workspaceId, active))); }
/// <summary> /// Gets a list of projects of the workspace with the specified <paramref name="workspaceId"/>. /// </summary> /// <param name="workspaceId">The ID of the workspace.</param> /// <param name="active">The active state that the returned projects should match.</param> /// <returns>An instance of <see cref="TogglProjectListResponse"/> representing the response from the Toggl API.</returns>> /// <see> /// <cref>https://github.com/toggl/toggl_api_docs/blob/master/chapters/workspaces.md#get-workspace-projects</cref> /// </see> public TogglProjectListResponse GetProjects(int workspaceId, TogglProjectActiveState active) { return(TogglProjectListResponse.Parse(Raw.GetProjects(workspaceId, active))); }
/// <summary> /// Initializes a new instance based on the specified <paramref name="workspaceId"/>. /// </summary> /// <param name="workspaceId">The ID of the workspace.</param> /// <param name="active">The active state that the returned projects should match.</param> public TogglGetProjectsOptions(int workspaceId, TogglProjectActiveState active) { WorkspaceId = workspaceId; Active = active; }