arrays are dash-seperated strings in UptimeRobot

This commit is contained in:
2013-12-11 23:09:14 +01:00
parent aede734694
commit 913eaa6319
+1 -1
View File
@@ -42,7 +42,7 @@ namespace UptimeSharp.Models
// convert array to comma-seperated list
if (value is IEnumerable && value.GetType().GetElementType() == typeof(string))
{
value = string.Join(",", ((IEnumerable)value).Cast<object>().Select(x => x.ToString()).ToArray());
value = String.Join("-", ((IEnumerable)value).Cast<object>().Select(x => x.ToString()).ToArray());
}
// convert booleans