java.lang.Object
it.auties.whatsapp.model.info.BusinessAccountInfo
- All Implemented Interfaces:
it.auties.protobuf.base.ProtobufMessage
,Info
public final class BusinessAccountInfo
extends Object
implements Info, it.auties.protobuf.base.ProtobufMessage
A model class that holds the information related to a business account.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The account phone numberprivate BusinessAccountType
The type of this accountprivate long
The facebook jidprivate BusinessStorageType
Indicates here this account is hostedprivate long
The timestamp of the account -
Constructor Summary
ConstructorsConstructorDescriptionBusinessAccountInfo
(long facebookId, String accountNumber, long timestamp, BusinessStorageType hostStorage, BusinessAccountType accountType) -
Method Summary
Modifier and TypeMethodDescriptionThe account phone numberaccountNumber
(String accountNumber) The account phone numberThe type of this accountaccountType
(BusinessAccountType accountType) The type of this accountbuilder()
boolean
long
The facebook jidfacebookId
(long facebookId) The facebook jidint
hashCode()
Indicates here this account is hostedhostStorage
(BusinessStorageType hostStorage) Indicates here this account is hostedlong
The timestamp of the accounttimestamp
(long timestamp) The timestamp of the accounttoString()
-
Field Details
-
facebookId
private long facebookIdThe facebook jid -
accountNumber
The account phone number -
timestamp
private long timestampThe timestamp of the account -
hostStorage
Indicates here this account is hosted -
accountType
The type of this account
-
-
Constructor Details
-
BusinessAccountInfo
public BusinessAccountInfo(long facebookId, String accountNumber, long timestamp, BusinessStorageType hostStorage, BusinessAccountType accountType)
-
-
Method Details
-
builder
-
facebookId
public long facebookId()The facebook jid -
accountNumber
The account phone number -
timestamp
public long timestamp()The timestamp of the account -
hostStorage
Indicates here this account is hosted -
accountType
The type of this account -
facebookId
The facebook jid- Returns:
this
.
-
accountNumber
The account phone number- Returns:
this
.
-
timestamp
The timestamp of the account- Returns:
this
.
-
hostStorage
Indicates here this account is hosted- Returns:
this
.
-
accountType
The type of this account- Returns:
this
.
-
equals
-
hashCode
public int hashCode() -
toString
-