java.lang.Object
java.lang.Record
it.auties.whatsapp.model.info.BusinessAccountLinkInfo
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record BusinessAccountLinkInfo(long businessId, String phoneNumber, long issueTimeSeconds, BusinessAccountLinkInfo.HostStorageType hostStorage, BusinessAccountLinkInfo.AccountType accountType)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
A model class that holds a payload about a business link info.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe constants of this enumerated type describe the various types of business accountsstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BusinessAccountLinkInfo.AccountTypeThe field for theaccountTyperecord component.private final longThe field for thebusinessIdrecord component.private final BusinessAccountLinkInfo.HostStorageTypeThe field for thehostStoragerecord component.private final longThe field for theissueTimeSecondsrecord component.private final StringThe field for thephoneNumberrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBusinessAccountLinkInfo(long businessId, String phoneNumber, long issueTimeSeconds, BusinessAccountLinkInfo.HostStorageType hostStorage, BusinessAccountLinkInfo.AccountType accountType) Creates an instance of aBusinessAccountLinkInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccountTyperecord component.longReturns the value of thebusinessIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehostStoragerecord component.Returns this object's timestampSecondslongReturns the value of theissueTimeSecondsrecord component.Returns the value of thephoneNumberrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
businessId
private final long businessIdThe field for thebusinessIdrecord component. -
phoneNumber
The field for thephoneNumberrecord component. -
issueTimeSeconds
private final long issueTimeSecondsThe field for theissueTimeSecondsrecord component. -
hostStorage
The field for thehostStoragerecord component. -
accountType
The field for theaccountTyperecord component.
-
-
Constructor Details
-
BusinessAccountLinkInfo
public BusinessAccountLinkInfo(long businessId, String phoneNumber, long issueTimeSeconds, BusinessAccountLinkInfo.HostStorageType hostStorage, BusinessAccountLinkInfo.AccountType accountType) Creates an instance of aBusinessAccountLinkInforecord class.- Parameters:
businessId- the value for thebusinessIdrecord componentphoneNumber- the value for thephoneNumberrecord componentissueTimeSeconds- the value for theissueTimeSecondsrecord componenthostStorage- the value for thehostStoragerecord componentaccountType- the value for theaccountTyperecord 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 '=='. -
businessId
public long businessId()Returns the value of thebusinessIdrecord component.- Returns:
- the value of the
businessIdrecord component
-
phoneNumber
Returns the value of thephoneNumberrecord component.- Returns:
- the value of the
phoneNumberrecord component
-
issueTimeSeconds
public long issueTimeSeconds()Returns the value of theissueTimeSecondsrecord component.- Returns:
- the value of the
issueTimeSecondsrecord component
-
hostStorage
Returns the value of thehostStoragerecord component.- Returns:
- the value of the
hostStoragerecord component
-
accountType
Returns the value of theaccountTyperecord component.- Returns:
- the value of the
accountTyperecord component
-