Package com.whatsapp.api.domain.phone
Record Class PhoneNumber
java.lang.Object
java.lang.Record
com.whatsapp.api.domain.phone.PhoneNumber
- Record Components:
id
- The ID associated with the phone number.displayPhoneNumber
- The string representation of the phone number.nameStatus
- The current status of the review of your business name.codeVerificationStatus
- Code Verification StatusqualityRating
- The quality rating of the phone number based on how messages have been received by recipients in recent days. Valid values are:- Green: High Quality
- Yellow: Medium Quality
- Red: Low Quality
- NA: Quality has not been determined
verifiedName
- the verified nameplatformType
- Platform the business phone number is registered with.throughput
- The business phone number's Cloud API throughput level.
public record PhoneNumber(String displayPhoneNumber, QualityRatingType qualityRating, String verifiedName, String id, String codeVerificationStatus, NameStatusType nameStatus, PlatformType platformType, Throughput throughput)
extends Record
The type Phone number.
-
Constructor Summary
ConstructorDescriptionPhoneNumber
(String displayPhoneNumber, QualityRatingType qualityRating, String verifiedName, String id, String codeVerificationStatus, NameStatusType nameStatus, PlatformType platformType, Throughput throughput) Creates an instance of aPhoneNumber
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecodeVerificationStatus
record component.Returns the value of thedisplayPhoneNumber
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.id()
Returns the value of theid
record component.Returns the value of thenameStatus
record component.Returns the value of theplatformType
record component.Returns the value of thequalityRating
record component.Returns the value of thethroughput
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theverifiedName
record component.
-
Constructor Details
-
PhoneNumber
public PhoneNumber(String displayPhoneNumber, QualityRatingType qualityRating, String verifiedName, String id, String codeVerificationStatus, NameStatusType nameStatus, PlatformType platformType, Throughput throughput) Creates an instance of aPhoneNumber
record class.- Parameters:
displayPhoneNumber
- the value for thedisplayPhoneNumber
record componentqualityRating
- the value for thequalityRating
record componentverifiedName
- the value for theverifiedName
record componentid
- the value for theid
record componentcodeVerificationStatus
- the value for thecodeVerificationStatus
record componentnameStatus
- the value for thenameStatus
record componentplatformType
- the value for theplatformType
record componentthroughput
- the value for thethroughput
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
displayPhoneNumber
Returns the value of thedisplayPhoneNumber
record component.- Returns:
- the value of the
displayPhoneNumber
record component
-
qualityRating
Returns the value of thequalityRating
record component.- Returns:
- the value of the
qualityRating
record component
-
verifiedName
Returns the value of theverifiedName
record component.- Returns:
- the value of the
verifiedName
record component
-
id
Returns the value of theid
record component.- Returns:
- the value of the
id
record component
-
codeVerificationStatus
Returns the value of thecodeVerificationStatus
record component.- Returns:
- the value of the
codeVerificationStatus
record component
-
nameStatus
Returns the value of thenameStatus
record component.- Returns:
- the value of the
nameStatus
record component
-
platformType
Returns the value of theplatformType
record component.- Returns:
- the value of the
platformType
record component
-
throughput
Returns the value of thethroughput
record component.- Returns:
- the value of the
throughput
record component
-