rename property Uri to Target

This commit is contained in:
2014-02-01 12:27:10 +01:00
parent adcf01da3d
commit 6f3700eecf
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ namespace UptimeSharp.Tests
Assert.True(
monitor != null
&& monitor.Uri == "255.0.0.1"
&& monitor.Target == "255.0.0.1"
&& monitor.Type == Models.Type.Port
&& monitor.Subtype == Subtype.HTTP);
}
+1 -1
View File
@@ -174,7 +174,7 @@ namespace UptimeSharp
MonitorParameters parameters = new MonitorParameters()
{
Name = monitor.Name,
Uri = monitor.Uri != null ? monitor.Uri : null,
Uri = monitor.Target != null ? monitor.Target : null,
Port = monitor.Port,
HTTPPassword = monitor.HTTPPassword,
HTTPUsername = monitor.HTTPUsername,
+5 -5
View File
@@ -10,7 +10,7 @@ namespace UptimeSharp.Models
/// </summary>
[JsonObject]
[ImplementPropertyChanged]
[DebuggerDisplay("Name = {Name}, Uri = {Uri}")]
[DebuggerDisplay("Name = {Name}, Target = {Target}")]
public class Monitor
{
/// <summary>
@@ -32,13 +32,13 @@ namespace UptimeSharp.Models
public string Name { get; set; }
/// <summary>
/// Gets the URI.
/// Gets the target URI/IP.
/// </summary>
/// <value>
/// The URI.
/// The target URI/IP.
/// </value>
[JsonIgnore]
public string Uri { get; set; }
[JsonProperty("url")]
public string Target { get; set; }
/// <summary>
/// Gets or sets the port.