public TogglAccountController(UserService userService, TogglHttpClient togglHttpClient, ResponseHelper responseHelper) { _userService = userService; _togglHttpClient = togglHttpClient; _responseHelper = responseHelper; }
internal TogglTrackRawApi(TogglHttpClient client) { Client = client; Clients = new TogglClientsRawEndpoint(client); Entries = new TogglEntriesRawEndpoint(client); Projects = new TogglProjectsRawEndpoint(client); Workspaces = new TogglWorkspacesRawEndpoint(client); }
/// <summary> /// Returns a new instance of <see cref="TogglService"/> based on the specified <paramref name="client"/>. /// </summary> /// <param name="client">The HTTP/OAuth client that should be used internally.</param> /// <returns>A new instance of <see cref="TogglService"/>.</returns> public static TogglService CreateFromClient(TogglHttpClient client) { if (client == null) { throw new ArgumentNullException(nameof(client)); } return(new TogglService(client)); }
public TogglHelper(TogglHttpClient togglHttpClient) { _togglHttpClient = togglHttpClient; }
private TogglService(TogglHttpClient client) { Client = client; Track = new TogglTrackApi(this); }
internal TogglEntriesRawEndpoint(TogglHttpClient client) { Client = client; }
internal TogglWorkspacesRawEndpoint(TogglHttpClient client) { Client = client; }
internal TogglClientsRawEndpoint(TogglHttpClient client) { Client = client; }