really stoppign
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user