Fix null issues

This commit is contained in:
2018-11-09 18:54:40 +00:00
parent dbd04999bf
commit f8f40f2d42
3 changed files with 7 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ namespace Booru.Net.Tests
{
var BooruClient = new BooruClient();
var posts = await BooruClient.GetE621ImagesAsync("nintendo");
var posts = await BooruClient.GetRealBooruImagesAsync();
Console.ReadLine();
}

View File

@@ -23,7 +23,7 @@ Yande.re</Description>
<PackageTags>booru imageboard api wrapper</PackageTags>
<PackageLicenseUrl>https://github.com/exsersewo/Booru.Net/blob/master/LICENSE</PackageLicenseUrl>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<Version>1.0.0.2</Version>
<Version>1.0.0.3</Version>
</PropertyGroup>
<ItemGroup>

View File

@@ -20,19 +20,19 @@ namespace Booru.Net
[JsonProperty("image")]
public string Image { get; set; }
[JsonProperty("change")]
[JsonProperty("change")]
public ulong Change { get; set; }
[JsonProperty("owner")]
public string Owner { get; set; }
[JsonProperty("parent_id")]
public int ParentID { get; set; }
public int? ParentID { get; set; }
[JsonProperty("rating")]
[JsonProperty("rating")]
public Rating Rating { get; set; }
[JsonProperty("sample")]
[JsonProperty("sample")]
public bool Sample { get; set; }
[JsonProperty("sample_height")]
@@ -42,7 +42,7 @@ namespace Booru.Net
public int SampleWidth { get; set; }
[JsonProperty("score")]
public int Score { get; set; }
public int? Score { get; set; }
[JsonProperty("tags")]
private string Ptags { get; set; }