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 StringThe field for thedocumentTypesrecord component.private final byte[]The field for thefeaturesrecord component.private final booleanThe field for thesupportsDocumentMessagesrecord component.private final booleanThe field for thesupportsE2EAudiorecord component.private final booleanThe field for thesupportsE2EDocumentrecord component.private final booleanThe field for thesupportsE2EImagerecord component.private final booleanThe field for thesupportsE2EVideorecord component.private final booleanThe field for thesupportsMediaRetryrecord component.private final booleanThe field for thesupportsStarredMessagesrecord component.private final booleanThe field for thesupportsUrlMessagesrecord component.private final booleanThe field for theusesParticipantInKeyrecord 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 aWebPayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedocumentTypesrecord component.final booleanIndicates whether some other object is "equal to" this one.byte[]features()Returns the value of thefeaturesrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thesupportsDocumentMessagesrecord component.booleanReturns the value of thesupportsE2EAudiorecord component.booleanReturns the value of thesupportsE2EDocumentrecord component.booleanReturns the value of thesupportsE2EImagerecord component.booleanReturns the value of thesupportsE2EVideorecord component.booleanReturns the value of thesupportsMediaRetryrecord component.booleanReturns the value of thesupportsStarredMessagesrecord component.booleanReturns the value of thesupportsUrlMessagesrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theusesParticipantInKeyrecord component.
-
Field Details
-
usesParticipantInKey
private final boolean usesParticipantInKeyThe field for theusesParticipantInKeyrecord component. -
supportsStarredMessages
private final boolean supportsStarredMessagesThe field for thesupportsStarredMessagesrecord component. -
supportsDocumentMessages
private final boolean supportsDocumentMessagesThe field for thesupportsDocumentMessagesrecord component. -
supportsUrlMessages
private final boolean supportsUrlMessagesThe field for thesupportsUrlMessagesrecord component. -
supportsMediaRetry
private final boolean supportsMediaRetryThe field for thesupportsMediaRetryrecord component. -
supportsE2EImage
private final boolean supportsE2EImageThe field for thesupportsE2EImagerecord component. -
supportsE2EVideo
private final boolean supportsE2EVideoThe field for thesupportsE2EVideorecord component. -
supportsE2EAudio
private final boolean supportsE2EAudioThe field for thesupportsE2EAudiorecord component. -
supportsE2EDocument
private final boolean supportsE2EDocumentThe field for thesupportsE2EDocumentrecord component. -
documentTypes
The field for thedocumentTypesrecord component. -
features
private final byte[] featuresThe field for thefeaturesrecord 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 aWebPayloadrecord class.- Parameters:
usesParticipantInKey- the value for theusesParticipantInKeyrecord componentsupportsStarredMessages- the value for thesupportsStarredMessagesrecord componentsupportsDocumentMessages- the value for thesupportsDocumentMessagesrecord componentsupportsUrlMessages- the value for thesupportsUrlMessagesrecord componentsupportsMediaRetry- the value for thesupportsMediaRetryrecord componentsupportsE2EImage- the value for thesupportsE2EImagerecord componentsupportsE2EVideo- the value for thesupportsE2EVideorecord componentsupportsE2EAudio- the value for thesupportsE2EAudiorecord componentsupportsE2EDocument- the value for thesupportsE2EDocumentrecord componentdocumentTypes- the value for thedocumentTypesrecord componentfeatures- the value for thefeaturesrecord 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 theusesParticipantInKeyrecord component.- Returns:
- the value of the
usesParticipantInKeyrecord component
-
supportsStarredMessages
public boolean supportsStarredMessages()Returns the value of thesupportsStarredMessagesrecord component.- Returns:
- the value of the
supportsStarredMessagesrecord component
-
supportsDocumentMessages
public boolean supportsDocumentMessages()Returns the value of thesupportsDocumentMessagesrecord component.- Returns:
- the value of the
supportsDocumentMessagesrecord component
-
supportsUrlMessages
public boolean supportsUrlMessages()Returns the value of thesupportsUrlMessagesrecord component.- Returns:
- the value of the
supportsUrlMessagesrecord component
-
supportsMediaRetry
public boolean supportsMediaRetry()Returns the value of thesupportsMediaRetryrecord component.- Returns:
- the value of the
supportsMediaRetryrecord component
-
supportsE2EImage
public boolean supportsE2EImage()Returns the value of thesupportsE2EImagerecord component.- Returns:
- the value of the
supportsE2EImagerecord component
-
supportsE2EVideo
public boolean supportsE2EVideo()Returns the value of thesupportsE2EVideorecord component.- Returns:
- the value of the
supportsE2EVideorecord component
-
supportsE2EAudio
public boolean supportsE2EAudio()Returns the value of thesupportsE2EAudiorecord component.- Returns:
- the value of the
supportsE2EAudiorecord component
-
supportsE2EDocument
public boolean supportsE2EDocument()Returns the value of thesupportsE2EDocumentrecord component.- Returns:
- the value of the
supportsE2EDocumentrecord component
-
documentTypes
Returns the value of thedocumentTypesrecord component.- Returns:
- the value of the
documentTypesrecord component
-
features
public byte[] features()Returns the value of thefeaturesrecord component.- Returns:
- the value of the
featuresrecord component
-