From db9e21c0d4f88091bc214454f68a352862df046f Mon Sep 17 00:00:00 2001 From: "gitauto-ai[bot]" <161652217+gitauto-ai[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 00:07:23 +0000 Subject: [PATCH 1/3] Update Src/GuiStracini.Mandae/IMandaeClient.cs --- Src/GuiStracini.Mandae/IMandaeClient.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Src/GuiStracini.Mandae/IMandaeClient.cs b/Src/GuiStracini.Mandae/IMandaeClient.cs index 0222aa5..93bd09c 100644 --- a/Src/GuiStracini.Mandae/IMandaeClient.cs +++ b/Src/GuiStracini.Mandae/IMandaeClient.cs @@ -72,6 +72,20 @@ CancellationToken token /// Gets the tracking asynchronous. /// /// The tracking code. + SearchReverseResponse SearchReverse( + ReverseSearchMethod method, + string value, + int limit, + int offset + ); + + Task SearchReverseAsync( + ReverseSearchMethod method, + string value, + CancellationToken token, + int limit, + int offset + ); /// The token. /// Task<TrackingResponse>. Task GetTrackingAsync(string trackingCode, CancellationToken token); From 504b573d4d67a4afea04b446ab52e35e70c01836 Mon Sep 17 00:00:00 2001 From: "gitauto-ai[bot]" <161652217+gitauto-ai[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 00:07:24 +0000 Subject: [PATCH 2/3] Update Src/GuiStracini.Mandae/MandaeClient.cs --- Src/GuiStracini.Mandae/MandaeClient.cs | 34 ++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Src/GuiStracini.Mandae/MandaeClient.cs b/Src/GuiStracini.Mandae/MandaeClient.cs index 6a1056e..17e18cb 100644 --- a/Src/GuiStracini.Mandae/MandaeClient.cs +++ b/Src/GuiStracini.Mandae/MandaeClient.cs @@ -188,6 +188,40 @@ CancellationToken token /// /// Configures the v1 authentication. + #region Reverses (V1) + + public SearchReverseResponse SearchReverse( + ReverseSearchMethod method, + string value, + int limit = 10, + int offset = 0 + ) + { + return SearchReverseAsync(method, value, CancellationToken.None, limit, offset).Result; + } + + public async Task SearchReverseAsync( + ReverseSearchMethod method, + string value, + CancellationToken token, + int limit = 10, + int offset = 0 + ) + { + var data = new SearchReverseRequest + { + Method = method, + Value = value, + Limit = limit, + Offset = offset + }; + + return await _serviceV1 + .Get(data, token) + .ConfigureAwait(_configureAwait); + } + + #endregion Reverses (V1) /// /// The email. /// The password. From cae149768c1da649ed365b0d0fab14319bf90f5d Mon Sep 17 00:00:00 2001 From: "gitauto-ai[bot]" <161652217+gitauto-ai[bot]@users.noreply.github.com> Date: Mon, 22 Jul 2024 00:07:25 +0000 Subject: [PATCH 3/3] Update Src/GuiStracini.Mandae/Utils/ServiceFactoryV1.cs --- Src/GuiStracini.Mandae/Utils/ServiceFactoryV1.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Src/GuiStracini.Mandae/Utils/ServiceFactoryV1.cs b/Src/GuiStracini.Mandae/Utils/ServiceFactoryV1.cs index 58acf54..3e02258 100644 --- a/Src/GuiStracini.Mandae/Utils/ServiceFactoryV1.cs +++ b/Src/GuiStracini.Mandae/Utils/ServiceFactoryV1.cs @@ -17,6 +17,18 @@ using Newtonsoft.Json; using Newtonsoft.Json.Serialization; + public async Task Get(TRequest data, CancellationToken token) + where TResponse : BaseResponse + { + // Implement actual HTTP GET logic here + // Example: + // var response = await _httpClient.GetAsync(BuildUri(data), token); + // response.EnsureSuccessStatusCode(); + // return await response.Content.ReadAsAsync(); + + throw new NotImplementedException(); + } + namespace GuiStracini.Mandae.Utils { using System;