java.lang.Object
java.lang.Record
it.auties.whatsapp.model.newsletter.NewsletterMetadata
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject
public record NewsletterMetadata(Optional<NewsletterName> name, Optional<NewsletterDescription> description, Optional<NewsletterPicture> picture, Optional<String> handle, Optional<NewsletterSettings> settings, Optional<String> invite, Optional<Boolean> verification, OptionalLong creationTimestampSeconds)
extends Record
implements it.auties.protobuf.model.ProtobufMessage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final OptionalLongThe field for thecreationTimestampSecondsrecord component.private final Optional<NewsletterDescription> The field for thedescriptionrecord component.The field for thehandlerecord component.The field for theinviterecord component.private final Optional<NewsletterName> The field for thenamerecord component.private final Optional<NewsletterPicture> The field for thepicturerecord component.private final Optional<NewsletterSettings> The field for thesettingsrecord component.The field for theverificationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNewsletterMetadata(NewsletterName name, NewsletterDescription description, NewsletterPicture picture, String handle, NewsletterSettings settings, String invite, String verification, Long creationTimestampSeconds) NewsletterMetadata(Optional<NewsletterName> name, Optional<NewsletterDescription> description, Optional<NewsletterPicture> picture, Optional<String> handle, Optional<NewsletterSettings> settings, Optional<String> invite, Optional<Boolean> verification, OptionalLong creationTimestampSeconds) Creates an instance of aNewsletterMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreationTimestampSecondsrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.handle()Returns the value of thehandlerecord component.final inthashCode()Returns a hash code value for this object.invite()Returns the value of theinviterecord component.name()Returns the value of thenamerecord component.picture()Returns the value of thepicturerecord component.settings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theverificationrecord component.
-
Field Details
-
name
The field for thenamerecord component. -
description
The field for thedescriptionrecord component. -
picture
The field for thepicturerecord component. -
handle
The field for thehandlerecord component. -
settings
The field for thesettingsrecord component. -
invite
The field for theinviterecord component. -
verification
The field for theverificationrecord component. -
creationTimestampSeconds
The field for thecreationTimestampSecondsrecord component.
-
-
Constructor Details
-
NewsletterMetadata
NewsletterMetadata(NewsletterName name, NewsletterDescription description, NewsletterPicture picture, String handle, NewsletterSettings settings, String invite, String verification, Long creationTimestampSeconds) -
NewsletterMetadata
public NewsletterMetadata(Optional<NewsletterName> name, Optional<NewsletterDescription> description, Optional<NewsletterPicture> picture, Optional<String> handle, Optional<NewsletterSettings> settings, Optional<String> invite, Optional<Boolean> verification, OptionalLong creationTimestampSeconds) Creates an instance of aNewsletterMetadatarecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentpicture- the value for thepicturerecord componenthandle- the value for thehandlerecord componentsettings- the value for thesettingsrecord componentinvite- the value for theinviterecord componentverification- the value for theverificationrecord componentcreationTimestampSeconds- the value for thecreationTimestampSecondsrecord component
-
-
Method Details
-
creationTimestamp
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
picture
Returns the value of thepicturerecord component.- Returns:
- the value of the
picturerecord component
-
handle
Returns the value of thehandlerecord component.- Returns:
- the value of the
handlerecord component
-
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
invite
Returns the value of theinviterecord component.- Returns:
- the value of the
inviterecord component
-
verification
Returns the value of theverificationrecord component.- Returns:
- the value of the
verificationrecord component
-
creationTimestampSeconds
Returns the value of thecreationTimestampSecondsrecord component.- Returns:
- the value of the
creationTimestampSecondsrecord component
-