Пример #1
0
 public TogglAccountController(UserService userService, TogglHttpClient togglHttpClient,
                               ResponseHelper responseHelper)
 {
     _userService     = userService;
     _togglHttpClient = togglHttpClient;
     _responseHelper  = responseHelper;
 }
Пример #2
0
 internal TogglTrackRawApi(TogglHttpClient client)
 {
     Client     = client;
     Clients    = new TogglClientsRawEndpoint(client);
     Entries    = new TogglEntriesRawEndpoint(client);
     Projects   = new TogglProjectsRawEndpoint(client);
     Workspaces = new TogglWorkspacesRawEndpoint(client);
 }
Пример #3
0
 /// <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;
 }
Пример #5
0
 private TogglService(TogglHttpClient client)
 {
     Client = client;
     Track  = new TogglTrackApi(this);
 }
Пример #6
0
 internal TogglEntriesRawEndpoint(TogglHttpClient client)
 {
     Client = client;
 }
 internal TogglWorkspacesRawEndpoint(TogglHttpClient client)
 {
     Client = client;
 }
 internal TogglClientsRawEndpoint(TogglHttpClient client)
 {
     Client = client;
 }