Skip to content

Commit

Permalink
preparing for next release and adding real time data to advanced numb…
Browse files Browse the repository at this point in the history
…er insights
  • Loading branch information
matt-lethargic committed Apr 19, 2022
1 parent eb0bec0 commit 3db1a68
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 14 deletions.
5 changes: 0 additions & 5 deletions Vonage/NumberInsights/AdvancedInsightsAsyncResponse.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Vonage.NumberInsights
{
Expand Down
6 changes: 6 additions & 0 deletions Vonage/NumberInsights/AdvancedInsightsResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,11 @@ public class AdvancedInsightsResponse : StandardInsightResponse
[JsonProperty("reachable")]
[JsonConverter(typeof(StringEnumConverter))]
public NumberReachability? Reachable { get; set; }

/// <summary>
/// Real time data about the number
/// </summary>
[JsonProperty("real_time_data")]
public RealTimeData RealTimeData { get; set; }
}
}
5 changes: 0 additions & 5 deletions Vonage/NumberInsights/NumberInsightResponseBase.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Vonage.NumberInsights
{
Expand Down
19 changes: 19 additions & 0 deletions Vonage/NumberInsights/RealTimeData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using Newtonsoft.Json;

namespace Vonage.NumberInsights
{
public class RealTimeData
{
/// <summary>
/// Whether the end-user's phone number is active within an operator's network.
/// </summary>
[JsonProperty("active_status")]
public bool ActiveStatus { get; set; }

/// <summary>
/// Whether the end-user's handset is turned on or off.
/// </summary>
[JsonProperty("handset_status")]
public string HandsetStatus { get; set; }
}
}
4 changes: 2 additions & 2 deletions Vonage/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.9.5.0")]
[assembly: AssemblyFileVersion("5.9.5.0")]
[assembly: AssemblyVersion("5.10.0.0")]
[assembly: AssemblyFileVersion("5.10.0.0")]

4 changes: 2 additions & 2 deletions Vonage/Vonage.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
<GenerateAssemblyCopyrightAttribute>false</GenerateAssemblyCopyrightAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<Version>5.9.5</Version>
<Version>5.10.0</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseExpression/>
<PackageProjectUrl>https://github.com/Vonage/vonage-dotnet</PackageProjectUrl>
<PackageReleaseNotes>https://github.com/Vonage/vonage-dotnet-sdk/releases/tag/v5.9.5</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/Vonage/vonage-dotnet-sdk/releases/tag/v5.10.0</PackageReleaseNotes>
<PackageTags>SMS voice telephony phone Vonage</PackageTags>
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
<NoWarn>1701;1702;1591;1572;1573;0618</NoWarn>
Expand Down

0 comments on commit 3db1a68

Please sign in to comment.