really stoppign

This commit is contained in:
Tommy Parnell
2016-06-01 19:15:34 -04:00
parent bbb863a5ea
commit 8a2425abd1
2 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
using System; using Newtonsoft.Json;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Runtime.Serialization; using System.Runtime.Serialization;
@@ -37,6 +38,10 @@ namespace Shodan.Net.Models
[DataMember(Name = "ciper")] [DataMember(Name = "ciper")]
public dynamic Ciper { get; set; } public dynamic Ciper { get; set; }
[JsonIgnore()]
[DataMember(Name = "serial")]
public string Serial { get; set; }
} }
public class Fingerprint public class Fingerprint

View File

@@ -63,7 +63,7 @@ namespace Shodan.Net
/// <param name="page">The page number to page through results 100 at a time (default: 1) </param> /// <param name="page">The page number to page through results 100 at a time (default: 1) </param>
/// <param name="minify">True or False; whether or not to truncate some of the larger fields (default: True) </param> /// <param name="minify">True or False; whether or not to truncate some of the larger fields (default: True) </param>
/// <returns></returns> /// <returns></returns>
public Task<dynamic> SearchHosts(Action<QueryGenerator> query, Action<FacetGenerator> facet = null, int page = 1, bool minify = true) public Task<SearchHostResults> SearchHosts(Action<QueryGenerator> query, Action<FacetGenerator> facet = null, int page = 1, bool minify = true)
{ {
if(query == null) if(query == null)
{ {
@@ -86,7 +86,7 @@ namespace Shodan.Net
{ {
url.Query = $"{url.Query}&page={page}"; url.Query = $"{url.Query}&page={page}";
} }
return RequestHandler.MakeRequestAsync<dynamic>(url.Uri); return RequestHandler.MakeRequestAsync<SearchHostResults>(url.Uri);
} }
/// <summary> /// <summary>