rename property Uri to Target
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user