OperatorInformation Class

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

Implements

public final class OperatorInformation
implements JsonSerializable<OperatorInformation>

Represents metadata about a phone number that is controlled/provided by that phone number's operator.

Constructor Summary

Constructor Description
OperatorInformation()

Creates an instance of OperatorInformation class.

Method Summary

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

Reads an instance of OperatorInformation from the JsonReader.

String getInternationalFormat()

Get the internationalFormat property: International format of the phone number.

String getIsoCountryCode()

Get the isoCountryCode property: ISO 3166-1 two character ('alpha-2') code associated with the phone number.

String getNationalFormat()

Get the nationalFormat property: National format of the phone number.

OperatorNumberType getNumberType()

Get the numberType property: Type of service associated with the phone number.

OperatorDetails getOperatorDetails()

Get the operatorDetails property: Represents metadata describing the operator of a phone number.

String getPhoneNumber()

Get the phoneNumber property: E.164 formatted string representation of the phone number.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

OperatorInformation

public OperatorInformation()

Creates an instance of OperatorInformation class.

Method Details

fromJson

public static OperatorInformation fromJson(JsonReader jsonReader)

Reads an instance of OperatorInformation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getInternationalFormat

public String getInternationalFormat()

Get the internationalFormat property: International format of the phone number.

Returns:

the internationalFormat value.

getIsoCountryCode

public String getIsoCountryCode()

Get the isoCountryCode property: ISO 3166-1 two character ('alpha-2') code associated with the phone number.

Returns:

the isoCountryCode value.

getNationalFormat

public String getNationalFormat()

Get the nationalFormat property: National format of the phone number.

Returns:

the nationalFormat value.

getNumberType

public OperatorNumberType getNumberType()

Get the numberType property: Type of service associated with the phone number.

Returns:

the numberType value.

getOperatorDetails

public OperatorDetails getOperatorDetails()

Get the operatorDetails property: Represents metadata describing the operator of a phone number.

Returns:

the operatorDetails value.

getPhoneNumber

public String getPhoneNumber()

Get the phoneNumber property: E.164 formatted string representation of the phone number.

Returns:

the phoneNumber value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to