java.lang.Object
java.lang.Record
it.auties.whatsapp.model.sync.MediaRetryNotification
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record MediaRetryNotification(String stanzaId, Optional<String> directPath, MediaRetryNotification.MediaRetryNotificationResultType result)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thedirectPathrecord component.private final MediaRetryNotification.MediaRetryNotificationResultTypeThe field for theresultrecord component.private final StringThe field for thestanzaIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionMediaRetryNotification(String stanzaId, Optional<String> directPath, MediaRetryNotification.MediaRetryNotificationResultType result) Creates an instance of aMediaRetryNotificationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectPathrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.result()Returns the value of theresultrecord component.stanzaId()Returns the value of thestanzaIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
stanzaId
The field for thestanzaIdrecord component. -
directPath
The field for thedirectPathrecord component. -
result
The field for theresultrecord component.
-
-
Constructor Details
-
MediaRetryNotification
public MediaRetryNotification(String stanzaId, Optional<String> directPath, MediaRetryNotification.MediaRetryNotificationResultType result) Creates an instance of aMediaRetryNotificationrecord class.- Parameters:
stanzaId- the value for thestanzaIdrecord componentdirectPath- the value for thedirectPathrecord componentresult- the value for theresultrecord 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). -
stanzaId
Returns the value of thestanzaIdrecord component.- Returns:
- the value of the
stanzaIdrecord component
-
directPath
Returns the value of thedirectPathrecord component.- Returns:
- the value of the
directPathrecord component
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-