Module it.auties.cobalt
Record Class NewsletterReactionSettings
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.newsletter.NewsletterReactionSettings
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record NewsletterReactionSettings(NewsletterReactionSettings.Type value, List<String> blockedCodes, OptionalLong enabledTimestampSeconds)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theblockedCodesrecord component.private final OptionalLongThe field for theenabledTimestampSecondsrecord component.private final NewsletterReactionSettings.TypeThe field for thevaluerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNewsletterReactionSettings(NewsletterReactionSettings.Type value, List<String> blockedCodes, Long enabledTimestampSeconds) NewsletterReactionSettings(NewsletterReactionSettings.Type value, List<String> blockedCodes, OptionalLong enabledTimestampSeconds) Creates an instance of aNewsletterReactionSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblockedCodesrecord component.Returns the value of theenabledTimestampSecondsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
value
The field for thevaluerecord component. -
blockedCodes
The field for theblockedCodesrecord component. -
enabledTimestampSeconds
The field for theenabledTimestampSecondsrecord component.
-
-
Constructor Details
-
NewsletterReactionSettings
public NewsletterReactionSettings(NewsletterReactionSettings.Type value, List<String> blockedCodes, Long enabledTimestampSeconds) -
NewsletterReactionSettings
public NewsletterReactionSettings(NewsletterReactionSettings.Type value, List<String> blockedCodes, OptionalLong enabledTimestampSeconds) Creates an instance of aNewsletterReactionSettingsrecord class.- Parameters:
value- the value for thevaluerecord componentblockedCodes- the value for theblockedCodesrecord componentenabledTimestampSeconds- the value for theenabledTimestampSecondsrecord 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). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-
blockedCodes
Returns the value of theblockedCodesrecord component.- Returns:
- the value of the
blockedCodesrecord component
-
enabledTimestampSeconds
Returns the value of theenabledTimestampSecondsrecord component.- Returns:
- the value of the
enabledTimestampSecondsrecord component
-