diff --git a/UptimeSharp/Components/Alert.cs b/UptimeSharp/Components/Alert.cs
index 1e09e3c..9b5a81e 100644
--- a/UptimeSharp/Components/Alert.cs
+++ b/UptimeSharp/Components/Alert.cs
@@ -1,4 +1,5 @@
using RestSharp;
+using System;
using System.Collections.Generic;
using UptimeSharp.Models;
@@ -12,11 +13,11 @@ namespace UptimeSharp
///
/// Retrieves alerts from UptimeRobot
///
- /// Retrieve specified alert contacts by supplying IDs for them.
+ /// Retrieve specified alert contacts by supplying IDs for them.
///
- public List RetrieveAlerts(params int[] alertIDs)
+ public List RetrieveAlerts(int[] alertIDs = null)
{
- Parameter alerts = Parameter("alertcontacts", alertIDs.Length > 0 ? string.Join("-", alertIDs) : null);
+ Parameter alerts = Parameter("alertcontacts", alertIDs != null ? string.Join("-", alertIDs) : null);
return Get("getAlertContacts", alerts).Items;
}
diff --git a/UptimeSharp/UptimeClient.cs b/UptimeSharp/UptimeClient.cs
index 1e0323f..69517e2 100644
--- a/UptimeSharp/UptimeClient.cs
+++ b/UptimeSharp/UptimeClient.cs
@@ -147,6 +147,12 @@ namespace UptimeSharp
}
+ ///
+ /// Creates a RestSharp.Parameter instance.
+ ///
+ /// The name.
+ /// The value.
+ ///
public static Parameter Parameter(string name, object value)
{
return new Parameter()