HasImage and HasVideo has to be nullable for unresolved items

This commit is contained in:
2013-12-15 11:10:56 +01:00
parent f6e7594233
commit 4718faf76a
2 changed files with 2 additions and 12 deletions
-10
View File
@@ -27,15 +27,5 @@ namespace PocketSharp.Tests
Assert.True(Incrementor >= 3);
}
[Fact]
public async Task TestNotWorkingUri()
{
//PocketItem item = await client.Add(new Uri("http://dl-ghost.azurewebsites.net/ghost-azure/?xy=2"));
List<PocketItem> items = await client.Get();
Assert.True(!items[0].IsArchive);
}
}
}
+2 -2
View File
@@ -165,7 +165,7 @@ namespace PocketSharp.Models
/// <c>true</c> if this instance has image; otherwise, <c>false</c>.
/// </value>
[JsonProperty("has_image")]
private PocketBoolean _HasImage { get; set; }
private PocketBoolean? _HasImage { get; set; }
/// <summary>
/// Gets or sets a value indicating whether this instance has video.
@@ -174,7 +174,7 @@ namespace PocketSharp.Models
/// <c>true</c> if this instance has video; otherwise, <c>false</c>.
/// </value>
[JsonProperty("has_video")]
private PocketBoolean _HasVideo { get; set; }
private PocketBoolean? _HasVideo { get; set; }
/// <summary>
/// Gets a value indicating whether [has image].