/// <summary>
 /// Initializes a new service based on the specified <paramref name="client"/>.
 /// </summary>
 /// <param name="client">The client to use.</param>
 public static UptimeRobotService CreateFromOAuthClient(UptimeRobotClient client)
 {
     if (client == null)
     {
         throw new ArgumentNullException(nameof(client));
     }
     return(new UptimeRobotService(client));
 }
 private UptimeRobotService(UptimeRobotClient client)
 {
     Client   = client;
     Accounts = new UptimeRobotAccountsEndpoint(this);
     Monitors = new UptimeRobotMonitorsEndpoint(this);
 }