Skip to content

Commit

Permalink
fixed 'roaming' property to match the json (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rabeb Othmani authored and smithrobs committed Nov 28, 2017
1 parent 234e1e2 commit 6a8100c
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Nexmo.Api/NumberInsight.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ public class CarrierInfo
public string network_type { get; set; }
}

public class Roaming
{
public string status { get; set; }
public string roaming_country_code { get; set; }
public string roaming_network_code { get; set; }
public string roaming_network_name { get; set; }
}

public class NumberInsightStandardResponse : NumberInsightBasicResponse
{
/// <summary>
Expand Down Expand Up @@ -145,7 +153,10 @@ public class NumberInsightAdvancedResponse : NumberInsightStandardResponse
/// </summary>
public string lookup_outcome { get; set; }
public string lookup_outcome_message { get; set; }

/// <summary>
/// Information about the roaming status for number. Possible values. This is applicable to mobile numbers only.
/// </summary>
public Roaming roaming { get; set; }
/// <summary>
/// Does number exist. Possible values are unknown, valid, not_valid. This is applicable to mobile numbers only.
/// </summary>
Expand All @@ -155,10 +166,6 @@ public class NumberInsightAdvancedResponse : NumberInsightStandardResponse
/// </summary>
public string reachable { get; set; }
/// <summary>
/// Information about the roaming status for number. Possible values. This is applicable to mobile numbers only.
/// </summary>
public string roaming { get; set; }
/// <summary>
/// The ip address you specified in the request. This field is blank if you did not specify ip.
/// </summary>
public string ip { get; set; }
Expand Down

0 comments on commit 6a8100c

Please sign in to comment.