Skip to content

Commit f98445f

Browse files
committed
minor updates based on testing
1 parent ebc956c commit f98445f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

articles/communication-services/quickstarts/telephony/includes/number-lookup-java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ You can now use the operator information. For this quickstart guide, we can pri
172172
```java
173173
OperatorInformation operatorInfo = result.getValues().get(0);
174174

175-
String numberType = operatorInfo.getNumberType() == null ? "unknown" : operatorInfo.getNumberType();
175+
String numberType = operatorInfo.getNumberType() == null ? "unknown" : operatorInfo.getNumberType().toString();
176176
String operatorName = "an unknown operator";
177177
if (operatorInfo.getOperatorDetails()!= null && operatorInfo.getOperatorDetails().getName() != null)
178178
{

articles/communication-services/quickstarts/telephony/includes/number-lookup-net.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Replace `<target-phone-number>` with the phone number you're looking up, usually
110110
You can now use the operator information. For this quickstart guide, we can print some of the details to the console.
111111

112112
```csharp
113-
OperatorInformation operatorInformation = searchResult.Results[0];
113+
OperatorInformation operatorInformation = searchResult.Values[0];
114114
Console.WriteLine($"{operatorInformation.PhoneNumber} is a {operatorInformation.NumberType ?? "unknown"} number, operated by {operatorInformation.OperatorDetails.Name ?? "an unknown operator"}");
115115
```
116116

0 commit comments

Comments
 (0)