From 7f6c25ff63fe559e963f2e9594e79e7c17ef7458 Mon Sep 17 00:00:00 2001 From: tr00d Date: Tue, 14 Jan 2025 12:59:14 +0100 Subject: [PATCH] feat: make RealTimeData obsolete in NI --- Vonage/NumberInsights/AdvancedInsightsResponse.cs | 8 ++++++-- Vonage/NumberInsights/AdvancedNumberInsightRequest.cs | 7 ++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Vonage/NumberInsights/AdvancedInsightsResponse.cs b/Vonage/NumberInsights/AdvancedInsightsResponse.cs index 870d390d0..aacc6573a 100644 --- a/Vonage/NumberInsights/AdvancedInsightsResponse.cs +++ b/Vonage/NumberInsights/AdvancedInsightsResponse.cs @@ -1,5 +1,8 @@ +#region +using System; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +#endregion namespace Vonage.NumberInsights; @@ -8,13 +11,13 @@ public class AdvancedInsightsResponse : StandardInsightResponse /// /// Shows if all information about a phone number has been returned. /// - [JsonProperty("lookup_outcome")] + [JsonProperty("lookup_outcome")] public int LookupOutcome { get; set; } /// /// Shows if all information about a phone number has been returned. /// - [JsonProperty("lookup_outcome_message")] + [JsonProperty("lookup_outcome_message")] public string LookupOutcomeMessage { get; set; } /// @@ -40,5 +43,6 @@ public class AdvancedInsightsResponse : StandardInsightResponse /// Real time data about the number /// [JsonProperty("real_time_data")] + [Obsolete("Redundant property as functionality already covered by ValidNumber and Reachable.")] public RealTimeData RealTimeData { get; set; } } \ No newline at end of file diff --git a/Vonage/NumberInsights/AdvancedNumberInsightRequest.cs b/Vonage/NumberInsights/AdvancedNumberInsightRequest.cs index 1ea09f049..d6a37222e 100644 --- a/Vonage/NumberInsights/AdvancedNumberInsightRequest.cs +++ b/Vonage/NumberInsights/AdvancedNumberInsightRequest.cs @@ -1,4 +1,7 @@ +#region +using System; using Newtonsoft.Json; +#endregion namespace Vonage.NumberInsights; @@ -10,5 +13,7 @@ public class AdvancedNumberInsightRequest : StandardNumberInsightRequest [JsonProperty("ip")] public string Ip { get; set; } - [JsonProperty("real_time_data")] public bool RealTimeData { get; set; } + [JsonProperty("real_time_data")] + [Obsolete("Redundant property.")] + public bool RealTimeData { get; set; } } \ No newline at end of file