Module it.auties.cobalt
Record Class BusinessVerifiedNameDetails
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.business.BusinessVerifiedNameDetails
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record BusinessVerifiedNameDetails(long serial, String issuer, String name, List<BusinessLocalizedName> localizedNames, long issueTimeSeconds)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
A model class that represents a verified name
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theissuerrecord component.private final longThe field for theissueTimeSecondsrecord component.private final List<BusinessLocalizedName> The field for thelocalizedNamesrecord component.private final StringThe field for thenamerecord component.private final longThe field for theserialrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBusinessVerifiedNameDetails(long serial, String issuer, String name, List<BusinessLocalizedName> localizedNames, long issueTimeSeconds) Creates an instance of aBusinessVerifiedNameDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.issuer()Returns the value of theissuerrecord component.Returns this object's timestampSecondslongReturns the value of theissueTimeSecondsrecord component.Returns the value of thelocalizedNamesrecord component.name()Returns the value of thenamerecord component.longserial()Returns the value of theserialrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
serial
private final long serialThe field for theserialrecord component. -
issuer
The field for theissuerrecord component. -
name
The field for thenamerecord component. -
localizedNames
The field for thelocalizedNamesrecord component. -
issueTimeSeconds
private final long issueTimeSecondsThe field for theissueTimeSecondsrecord component.
-
-
Constructor Details
-
BusinessVerifiedNameDetails
public BusinessVerifiedNameDetails(long serial, String issuer, String name, List<BusinessLocalizedName> localizedNames, long issueTimeSeconds) Creates an instance of aBusinessVerifiedNameDetailsrecord class.- Parameters:
serial- the value for theserialrecord componentissuer- the value for theissuerrecord componentname- the value for thenamerecord componentlocalizedNames- the value for thelocalizedNamesrecord componentissueTimeSeconds- the value for theissueTimeSecondsrecord component
-
-
Method Details
-
issueTime
Returns this object's 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 '=='. -
serial
public long serial()Returns the value of theserialrecord component.- Returns:
- the value of the
serialrecord component
-
issuer
Returns the value of theissuerrecord component.- Returns:
- the value of the
issuerrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
localizedNames
Returns the value of thelocalizedNamesrecord component.- Returns:
- the value of the
localizedNamesrecord component
-
issueTimeSeconds
public long issueTimeSeconds()Returns the value of theissueTimeSecondsrecord component.- Returns:
- the value of the
issueTimeSecondsrecord component
-