java.lang.Object
java.lang.Record
it.auties.whatsapp.model.signal.auth.WebPayload
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage
,it.auties.protobuf.model.ProtobufObject
public record WebPayload(boolean usesParticipantInKey, boolean supportsStarredMessages, boolean supportsDocumentMessages, boolean supportsUrlMessages, boolean supportsMediaRetry, boolean supportsE2EImage, boolean supportsE2EVideo, boolean supportsE2EAudio, boolean supportsE2EDocument, String documentTypes, byte[] features)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
The field for thedocumentTypes
record component.private final byte[]
The field for thefeatures
record component.private final boolean
The field for thesupportsDocumentMessages
record component.private final boolean
The field for thesupportsE2EAudio
record component.private final boolean
The field for thesupportsE2EDocument
record component.private final boolean
The field for thesupportsE2EImage
record component.private final boolean
The field for thesupportsE2EVideo
record component.private final boolean
The field for thesupportsMediaRetry
record component.private final boolean
The field for thesupportsStarredMessages
record component.private final boolean
The field for thesupportsUrlMessages
record component.private final boolean
The field for theusesParticipantInKey
record component. -
Constructor Summary
ConstructorsConstructorDescriptionWebPayload
(boolean usesParticipantInKey, boolean supportsStarredMessages, boolean supportsDocumentMessages, boolean supportsUrlMessages, boolean supportsMediaRetry, boolean supportsE2EImage, boolean supportsE2EVideo, boolean supportsE2EAudio, boolean supportsE2EDocument, String documentTypes, byte[] features) Creates an instance of aWebPayload
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedocumentTypes
record component.final boolean
Indicates whether some other object is "equal to" this one.byte[]
features()
Returns the value of thefeatures
record component.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of thesupportsDocumentMessages
record component.boolean
Returns the value of thesupportsE2EAudio
record component.boolean
Returns the value of thesupportsE2EDocument
record component.boolean
Returns the value of thesupportsE2EImage
record component.boolean
Returns the value of thesupportsE2EVideo
record component.boolean
Returns the value of thesupportsMediaRetry
record component.boolean
Returns the value of thesupportsStarredMessages
record component.boolean
Returns the value of thesupportsUrlMessages
record component.final String
toString()
Returns a string representation of this record class.boolean
Returns the value of theusesParticipantInKey
record component.
-
Field Details
-
usesParticipantInKey
private final boolean usesParticipantInKeyThe field for theusesParticipantInKey
record component. -
supportsStarredMessages
private final boolean supportsStarredMessagesThe field for thesupportsStarredMessages
record component. -
supportsDocumentMessages
private final boolean supportsDocumentMessagesThe field for thesupportsDocumentMessages
record component. -
supportsUrlMessages
private final boolean supportsUrlMessagesThe field for thesupportsUrlMessages
record component. -
supportsMediaRetry
private final boolean supportsMediaRetryThe field for thesupportsMediaRetry
record component. -
supportsE2EImage
private final boolean supportsE2EImageThe field for thesupportsE2EImage
record component. -
supportsE2EVideo
private final boolean supportsE2EVideoThe field for thesupportsE2EVideo
record component. -
supportsE2EAudio
private final boolean supportsE2EAudioThe field for thesupportsE2EAudio
record component. -
supportsE2EDocument
private final boolean supportsE2EDocumentThe field for thesupportsE2EDocument
record component. -
documentTypes
The field for thedocumentTypes
record component. -
features
private final byte[] featuresThe field for thefeatures
record component.
-
-
Constructor Details
-
WebPayload
public WebPayload(boolean usesParticipantInKey, boolean supportsStarredMessages, boolean supportsDocumentMessages, boolean supportsUrlMessages, boolean supportsMediaRetry, boolean supportsE2EImage, boolean supportsE2EVideo, boolean supportsE2EAudio, boolean supportsE2EDocument, String documentTypes, byte[] features) Creates an instance of aWebPayload
record class.- Parameters:
usesParticipantInKey
- the value for theusesParticipantInKey
record componentsupportsStarredMessages
- the value for thesupportsStarredMessages
record componentsupportsDocumentMessages
- the value for thesupportsDocumentMessages
record componentsupportsUrlMessages
- the value for thesupportsUrlMessages
record componentsupportsMediaRetry
- the value for thesupportsMediaRetry
record componentsupportsE2EImage
- the value for thesupportsE2EImage
record componentsupportsE2EVideo
- the value for thesupportsE2EVideo
record componentsupportsE2EAudio
- the value for thesupportsE2EAudio
record componentsupportsE2EDocument
- the value for thesupportsE2EDocument
record componentdocumentTypes
- the value for thedocumentTypes
record componentfeatures
- the value for thefeatures
record 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
usesParticipantInKey
public boolean usesParticipantInKey()Returns the value of theusesParticipantInKey
record component.- Returns:
- the value of the
usesParticipantInKey
record component
-
supportsStarredMessages
public boolean supportsStarredMessages()Returns the value of thesupportsStarredMessages
record component.- Returns:
- the value of the
supportsStarredMessages
record component
-
supportsDocumentMessages
public boolean supportsDocumentMessages()Returns the value of thesupportsDocumentMessages
record component.- Returns:
- the value of the
supportsDocumentMessages
record component
-
supportsUrlMessages
public boolean supportsUrlMessages()Returns the value of thesupportsUrlMessages
record component.- Returns:
- the value of the
supportsUrlMessages
record component
-
supportsMediaRetry
public boolean supportsMediaRetry()Returns the value of thesupportsMediaRetry
record component.- Returns:
- the value of the
supportsMediaRetry
record component
-
supportsE2EImage
public boolean supportsE2EImage()Returns the value of thesupportsE2EImage
record component.- Returns:
- the value of the
supportsE2EImage
record component
-
supportsE2EVideo
public boolean supportsE2EVideo()Returns the value of thesupportsE2EVideo
record component.- Returns:
- the value of the
supportsE2EVideo
record component
-
supportsE2EAudio
public boolean supportsE2EAudio()Returns the value of thesupportsE2EAudio
record component.- Returns:
- the value of the
supportsE2EAudio
record component
-
supportsE2EDocument
public boolean supportsE2EDocument()Returns the value of thesupportsE2EDocument
record component.- Returns:
- the value of the
supportsE2EDocument
record component
-
documentTypes
Returns the value of thedocumentTypes
record component.- Returns:
- the value of the
documentTypes
record component
-
features
public byte[] features()Returns the value of thefeatures
record component.- Returns:
- the value of the
features
record component
-