Record Class NewsletterMetadata

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 Details

    • name

      private final Optional<NewsletterName> name
      The field for the name record component.
    • description

      private final Optional<NewsletterDescription> description
      The field for the description record component.
    • picture

      private final Optional<NewsletterPicture> picture
      The field for the picture record component.
    • handle

      private final Optional<String> handle
      The field for the handle record component.
    • settings

      private final Optional<NewsletterSettings> settings
      The field for the settings record component.
    • invite

      private final Optional<String> invite
      The field for the invite record component.
    • verification

      private final Optional<Boolean> verification
      The field for the verification record component.
    • creationTimestampSeconds

      private final OptionalLong creationTimestampSeconds
      The field for the creationTimestampSeconds record component.
  • Constructor Details

  • Method Details

    • creationTimestamp

      public Optional<ZonedDateTime> creationTimestamp()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      public Optional<NewsletterName> name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • description

      public Optional<NewsletterDescription> description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • picture

      public Optional<NewsletterPicture> picture()
      Returns the value of the picture record component.
      Returns:
      the value of the picture record component
    • handle

      public Optional<String> handle()
      Returns the value of the handle record component.
      Returns:
      the value of the handle record component
    • settings

      public Optional<NewsletterSettings> settings()
      Returns the value of the settings record component.
      Returns:
      the value of the settings record component
    • invite

      public Optional<String> invite()
      Returns the value of the invite record component.
      Returns:
      the value of the invite record component
    • verification

      public Optional<Boolean> verification()
      Returns the value of the verification record component.
      Returns:
      the value of the verification record component
    • creationTimestampSeconds

      public OptionalLong creationTimestampSeconds()
      Returns the value of the creationTimestampSeconds record component.
      Returns:
      the value of the creationTimestampSeconds record component