Skip to content

Commit 0cee9c1

Browse files
committed
Remove unused timestamp
1 parent ee22e8b commit 0cee9c1

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

IPBanProAPI.cs

-13
Original file line numberDiff line numberDiff line change
@@ -194,24 +194,11 @@ public Task<IPAddressAsnInfoModel> GetIPAddressAsnInfoAsync()
194194
public Task<GetUrlsResponse> WhitelistGetUrls(GetUrlsRequest request)
195195
{
196196
var id = string.IsNullOrWhiteSpace(request.Id) ? null : "id=" + HttpUtility.UrlEncode(request.Id);
197-
var timestamp = request.Timestamp is null ? null : "timestamp=" + HttpUtility.UrlEncode(request.Timestamp.Value.ToString("o"));
198197
var query = string.Empty;
199198
if (id is not null)
200199
{
201200
query = "?" + id;
202201
}
203-
if (timestamp is not null)
204-
{
205-
if (query is null)
206-
{
207-
query = "?";
208-
}
209-
else
210-
{
211-
query += "&";
212-
}
213-
query += timestamp;
214-
}
215202
return MakeRequestAsync<GetUrlsResponse>($"aw/urls{query}");
216203
}
217204

Model/WhitelistUrls/GetUrlsRequest.cs

-5
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,5 @@ public sealed class GetUrlsRequest
2929
/// Id of the url to get or null/empty for no id filter
3030
/// </summary>
3131
public string Id { get; set; }
32-
33-
/// <summary>
34-
/// Only get urls beyond this timestamp, or null for no timestamp filter
35-
/// </summary>
36-
public DateTime? Timestamp { get; set; }
3732
}
3833
}

0 commit comments

Comments
 (0)