From 8a2425abd1a53fdd79861085f463b048ab306a29 Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Wed, 1 Jun 2016 19:15:34 -0400 Subject: [PATCH] really stoppign --- src/Shodan.Net/Models/Certificate.cs | 7 ++++++- src/Shodan.Net/ShodanClient.cs | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Shodan.Net/Models/Certificate.cs b/src/Shodan.Net/Models/Certificate.cs index c0e8483..9fb33b3 100644 --- a/src/Shodan.Net/Models/Certificate.cs +++ b/src/Shodan.Net/Models/Certificate.cs @@ -1,4 +1,5 @@ -using System; +using Newtonsoft.Json; +using System; using System.Collections.Generic; using System.Linq; using System.Runtime.Serialization; @@ -37,6 +38,10 @@ namespace Shodan.Net.Models [DataMember(Name = "ciper")] public dynamic Ciper { get; set; } + + [JsonIgnore()] + [DataMember(Name = "serial")] + public string Serial { get; set; } } public class Fingerprint diff --git a/src/Shodan.Net/ShodanClient.cs b/src/Shodan.Net/ShodanClient.cs index e2149c0..809cbab 100644 --- a/src/Shodan.Net/ShodanClient.cs +++ b/src/Shodan.Net/ShodanClient.cs @@ -63,7 +63,7 @@ namespace Shodan.Net /// The page number to page through results 100 at a time (default: 1) /// True or False; whether or not to truncate some of the larger fields (default: True) /// - public Task SearchHosts(Action query, Action facet = null, int page = 1, bool minify = true) + public Task SearchHosts(Action query, Action facet = null, int page = 1, bool minify = true) { if(query == null) { @@ -86,7 +86,7 @@ namespace Shodan.Net { url.Query = $"{url.Query}&page={page}"; } - return RequestHandler.MakeRequestAsync(url.Uri); + return RequestHandler.MakeRequestAsync(url.Uri); } ///