java.lang.Object
java.lang.Record
it.auties.whatsapp.model.info.BusinessIdentityInfo
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,Info
public record BusinessIdentityInfo(BusinessIdentityInfo.VerifiedLevel level, BusinessVerifiedNameCertificate certificate, boolean signed, boolean revoked, BusinessIdentityInfo.HostStorageType hostStorage, BusinessIdentityInfo.ActorsType actualActors, long privacyModeTimestampSeconds, long featureControls)
extends Record
implements Info, it.auties.protobuf.model.ProtobufMessage
A model class that holds the information related to the identity of a business account.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe constants of this enumerated type describe the various types of actors of a business accountstatic enumstatic enumThe constants of this enumerated type describe the various types of verification that a business account can have -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BusinessIdentityInfo.ActorsTypeThe field for theactualActorsrecord component.private final BusinessVerifiedNameCertificateThe field for thecertificaterecord component.private final longThe field for thefeatureControlsrecord component.private final BusinessIdentityInfo.HostStorageTypeThe field for thehostStoragerecord component.private final BusinessIdentityInfo.VerifiedLevelThe field for thelevelrecord component.private final longThe field for theprivacyModeTimestampSecondsrecord component.private final booleanThe field for therevokedrecord component.private final booleanThe field for thesignedrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBusinessIdentityInfo(BusinessIdentityInfo.VerifiedLevel level, BusinessVerifiedNameCertificate certificate, boolean signed, boolean revoked, BusinessIdentityInfo.HostStorageType hostStorage, BusinessIdentityInfo.ActorsType actualActors, long privacyModeTimestampSeconds, long featureControls) Creates an instance of aBusinessIdentityInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactualActorsrecord component.Returns the value of thecertificaterecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of thefeatureControlsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehostStoragerecord component.level()Returns the value of thelevelrecord component.Returns the privacy mode timestampSecondslongReturns the value of theprivacyModeTimestampSecondsrecord component.booleanrevoked()Returns the value of therevokedrecord component.booleansigned()Returns the value of thesignedrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
level
The field for thelevelrecord component. -
certificate
The field for thecertificaterecord component. -
signed
private final boolean signedThe field for thesignedrecord component. -
revoked
private final boolean revokedThe field for therevokedrecord component. -
hostStorage
The field for thehostStoragerecord component. -
actualActors
The field for theactualActorsrecord component. -
privacyModeTimestampSeconds
private final long privacyModeTimestampSecondsThe field for theprivacyModeTimestampSecondsrecord component. -
featureControls
private final long featureControlsThe field for thefeatureControlsrecord component.
-
-
Constructor Details
-
BusinessIdentityInfo
public BusinessIdentityInfo(BusinessIdentityInfo.VerifiedLevel level, BusinessVerifiedNameCertificate certificate, boolean signed, boolean revoked, BusinessIdentityInfo.HostStorageType hostStorage, BusinessIdentityInfo.ActorsType actualActors, long privacyModeTimestampSeconds, long featureControls) Creates an instance of aBusinessIdentityInforecord class.- Parameters:
level- the value for thelevelrecord componentcertificate- the value for thecertificaterecord componentsigned- the value for thesignedrecord componentrevoked- the value for therevokedrecord componenthostStorage- the value for thehostStoragerecord componentactualActors- the value for theactualActorsrecord componentprivacyModeTimestampSeconds- the value for theprivacyModeTimestampSecondsrecord componentfeatureControls- the value for thefeatureControlsrecord component
-
-
Method Details
-
privacyModeTimestamp
Returns the privacy mode timestampSeconds- Returns:
- an optional
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
level
Returns the value of thelevelrecord component.- Returns:
- the value of the
levelrecord component
-
certificate
Returns the value of thecertificaterecord component.- Returns:
- the value of the
certificaterecord component
-
signed
public boolean signed()Returns the value of thesignedrecord component.- Returns:
- the value of the
signedrecord component
-
revoked
public boolean revoked()Returns the value of therevokedrecord component.- Returns:
- the value of the
revokedrecord component
-
hostStorage
Returns the value of thehostStoragerecord component.- Returns:
- the value of the
hostStoragerecord component
-
actualActors
Returns the value of theactualActorsrecord component.- Returns:
- the value of the
actualActorsrecord component
-
privacyModeTimestampSeconds
public long privacyModeTimestampSeconds()Returns the value of theprivacyModeTimestampSecondsrecord component.- Returns:
- the value of the
privacyModeTimestampSecondsrecord component
-
featureControls
public long featureControls()Returns the value of thefeatureControlsrecord component.- Returns:
- the value of the
featureControlsrecord component
-