java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.auth.ClientPayload
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record ClientPayload(Long username, Boolean passive, UserAgent userAgent, WebInfo webInfo, String pushName, Integer sessionId, Boolean shortConnect, ClientPayload.ClientPayloadConnectType connectType, ClientPayload.ClientPayloadConnectReason connectReason, List<Integer> shards, DNSSource dnsSource, Integer connectAttemptCount, Integer device, CompanionRegistrationData regData, ClientPayload.ClientPayloadProduct product, byte[] fbCat, byte[] fbUserAgent, Boolean oc, Integer lc, ClientPayload.ClientPayloadIOSAppExtension iosAppExtension, Long fbAppId, byte[] fbDeviceId, Boolean pull)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IntegerThe field for theconnectAttemptCountrecord component.private final ClientPayload.ClientPayloadConnectReasonThe field for theconnectReasonrecord component.private final ClientPayload.ClientPayloadConnectTypeThe field for theconnectTyperecord component.private final IntegerThe field for thedevicerecord component.private final DNSSourceThe field for thednsSourcerecord component.private final LongThe field for thefbAppIdrecord component.private final byte[]The field for thefbCatrecord component.private final byte[]The field for thefbDeviceIdrecord component.private final byte[]The field for thefbUserAgentrecord component.private final ClientPayload.ClientPayloadIOSAppExtensionThe field for theiosAppExtensionrecord component.private final IntegerThe field for thelcrecord component.private final BooleanThe field for theocrecord component.private final BooleanThe field for thepassiverecord component.private final ClientPayload.ClientPayloadProductThe field for theproductrecord component.private final BooleanThe field for thepullrecord component.private final StringThe field for thepushNamerecord component.private final CompanionRegistrationDataThe field for theregDatarecord component.private final IntegerThe field for thesessionIdrecord component.The field for theshardsrecord component.private final BooleanThe field for theshortConnectrecord component.private final UserAgentThe field for theuserAgentrecord component.private final LongThe field for theusernamerecord component.private final WebInfoThe field for thewebInforecord component. -
Constructor Summary
ConstructorsConstructorDescriptionClientPayload(Long username, Boolean passive, UserAgent userAgent, WebInfo webInfo, String pushName, Integer sessionId, Boolean shortConnect, ClientPayload.ClientPayloadConnectType connectType, ClientPayload.ClientPayloadConnectReason connectReason, List<Integer> shards, DNSSource dnsSource, Integer connectAttemptCount, Integer device, CompanionRegistrationData regData, ClientPayload.ClientPayloadProduct product, byte[] fbCat, byte[] fbUserAgent, Boolean oc, Integer lc, ClientPayload.ClientPayloadIOSAppExtension iosAppExtension, Long fbAppId, byte[] fbDeviceId, Boolean pull) Creates an instance of aClientPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectAttemptCountrecord component.Returns the value of theconnectReasonrecord component.Returns the value of theconnectTyperecord component.device()Returns the value of thedevicerecord component.Returns the value of thednsSourcerecord component.final booleanIndicates whether some other object is "equal to" this one.fbAppId()Returns the value of thefbAppIdrecord component.byte[]fbCat()Returns the value of thefbCatrecord component.byte[]Returns the value of thefbDeviceIdrecord component.byte[]Returns the value of thefbUserAgentrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theiosAppExtensionrecord component.lc()Returns the value of thelcrecord component.oc()Returns the value of theocrecord component.passive()Returns the value of thepassiverecord component.product()Returns the value of theproductrecord component.pull()Returns the value of thepullrecord component.pushName()Returns the value of thepushNamerecord component.regData()Returns the value of theregDatarecord component.Returns the value of thesessionIdrecord component.shards()Returns the value of theshardsrecord component.Returns the value of theshortConnectrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserAgentrecord component.username()Returns the value of theusernamerecord component.webInfo()Returns the value of thewebInforecord component.
-
Field Details
-
username
The field for theusernamerecord component. -
passive
The field for thepassiverecord component. -
userAgent
The field for theuserAgentrecord component. -
webInfo
The field for thewebInforecord component. -
pushName
The field for thepushNamerecord component. -
sessionId
The field for thesessionIdrecord component. -
shortConnect
The field for theshortConnectrecord component. -
connectType
The field for theconnectTyperecord component. -
connectReason
The field for theconnectReasonrecord component. -
shards
The field for theshardsrecord component. -
dnsSource
The field for thednsSourcerecord component. -
connectAttemptCount
The field for theconnectAttemptCountrecord component. -
device
The field for thedevicerecord component. -
regData
The field for theregDatarecord component. -
product
The field for theproductrecord component. -
fbCat
private final byte[] fbCatThe field for thefbCatrecord component. -
fbUserAgent
private final byte[] fbUserAgentThe field for thefbUserAgentrecord component. -
oc
The field for theocrecord component. -
lc
The field for thelcrecord component. -
iosAppExtension
The field for theiosAppExtensionrecord component. -
fbAppId
The field for thefbAppIdrecord component. -
fbDeviceId
private final byte[] fbDeviceIdThe field for thefbDeviceIdrecord component. -
pull
The field for thepullrecord component.
-
-
Constructor Details
-
ClientPayload
public ClientPayload(Long username, Boolean passive, UserAgent userAgent, WebInfo webInfo, String pushName, Integer sessionId, Boolean shortConnect, ClientPayload.ClientPayloadConnectType connectType, ClientPayload.ClientPayloadConnectReason connectReason, List<Integer> shards, DNSSource dnsSource, Integer connectAttemptCount, Integer device, CompanionRegistrationData regData, ClientPayload.ClientPayloadProduct product, byte[] fbCat, byte[] fbUserAgent, Boolean oc, Integer lc, ClientPayload.ClientPayloadIOSAppExtension iosAppExtension, Long fbAppId, byte[] fbDeviceId, Boolean pull) Creates an instance of aClientPayloadrecord class.- Parameters:
username- the value for theusernamerecord componentpassive- the value for thepassiverecord componentuserAgent- the value for theuserAgentrecord componentwebInfo- the value for thewebInforecord componentpushName- the value for thepushNamerecord componentsessionId- the value for thesessionIdrecord componentshortConnect- the value for theshortConnectrecord componentconnectType- the value for theconnectTyperecord componentconnectReason- the value for theconnectReasonrecord componentshards- the value for theshardsrecord componentdnsSource- the value for thednsSourcerecord componentconnectAttemptCount- the value for theconnectAttemptCountrecord componentdevice- the value for thedevicerecord componentregData- the value for theregDatarecord componentproduct- the value for theproductrecord componentfbCat- the value for thefbCatrecord componentfbUserAgent- the value for thefbUserAgentrecord componentoc- the value for theocrecord componentlc- the value for thelcrecord componentiosAppExtension- the value for theiosAppExtensionrecord componentfbAppId- the value for thefbAppIdrecord componentfbDeviceId- the value for thefbDeviceIdrecord componentpull- the value for thepullrecord 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). -
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
passive
Returns the value of thepassiverecord component.- Returns:
- the value of the
passiverecord component
-
userAgent
Returns the value of theuserAgentrecord component.- Returns:
- the value of the
userAgentrecord component
-
webInfo
Returns the value of thewebInforecord component.- Returns:
- the value of the
webInforecord component
-
pushName
Returns the value of thepushNamerecord component.- Returns:
- the value of the
pushNamerecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
shortConnect
Returns the value of theshortConnectrecord component.- Returns:
- the value of the
shortConnectrecord component
-
connectType
Returns the value of theconnectTyperecord component.- Returns:
- the value of the
connectTyperecord component
-
connectReason
Returns the value of theconnectReasonrecord component.- Returns:
- the value of the
connectReasonrecord component
-
shards
Returns the value of theshardsrecord component.- Returns:
- the value of the
shardsrecord component
-
dnsSource
Returns the value of thednsSourcerecord component.- Returns:
- the value of the
dnsSourcerecord component
-
connectAttemptCount
Returns the value of theconnectAttemptCountrecord component.- Returns:
- the value of the
connectAttemptCountrecord component
-
device
Returns the value of thedevicerecord component.- Returns:
- the value of the
devicerecord component
-
regData
Returns the value of theregDatarecord component.- Returns:
- the value of the
regDatarecord component
-
product
Returns the value of theproductrecord component.- Returns:
- the value of the
productrecord component
-
fbCat
public byte[] fbCat()Returns the value of thefbCatrecord component.- Returns:
- the value of the
fbCatrecord component
-
fbUserAgent
public byte[] fbUserAgent()Returns the value of thefbUserAgentrecord component.- Returns:
- the value of the
fbUserAgentrecord component
-
oc
Returns the value of theocrecord component.- Returns:
- the value of the
ocrecord component
-
lc
Returns the value of thelcrecord component.- Returns:
- the value of the
lcrecord component
-
iosAppExtension
Returns the value of theiosAppExtensionrecord component.- Returns:
- the value of the
iosAppExtensionrecord component
-
fbAppId
Returns the value of thefbAppIdrecord component.- Returns:
- the value of the
fbAppIdrecord component
-
fbDeviceId
public byte[] fbDeviceId()Returns the value of thefbDeviceIdrecord component.- Returns:
- the value of the
fbDeviceIdrecord component
-
pull
Returns the value of thepullrecord component.- Returns:
- the value of the
pullrecord component
-