你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

OperatorInformationResult Class

  • java.lang.Object
    • com.azure.communication.phonenumbers.models.OperatorInformationResult

Implements

public final class OperatorInformationResult
implements JsonSerializable<OperatorInformationResult>

Represents a search result containing format and operator information associated with the requested phone numbers.

Constructor Summary

Constructor Description
OperatorInformationResult()

Creates an instance of OperatorInformationResult class.

Method Summary

Modifier and Type Method and Description
static OperatorInformationResult fromJson(JsonReader jsonReader)

Reads an instance of OperatorInformationResult from the JsonReader.

List<OperatorInformation> getValues()

Get the values property: Results of a search.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

OperatorInformationResult

public OperatorInformationResult()

Creates an instance of OperatorInformationResult class.

Method Details

fromJson

public static OperatorInformationResult fromJson(JsonReader jsonReader)

Reads an instance of OperatorInformationResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OperatorInformationResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the OperatorInformationResult.

getValues

public List<OperatorInformation> getValues()

Get the values property: Results of a search. This array will have one entry per requested phone number which will contain the relevant operator information.

Returns:

the values value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to