Module it.auties.cobalt
Record Class NewsletterAdminInviteMessage
java.lang.Object
java.lang.Record
it.auties.whatsapp.model.message.standard.NewsletterAdminInviteMessage
- All Implemented Interfaces:
it.auties.protobuf.model.ProtobufMessage,it.auties.protobuf.model.ProtobufObject,Message
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thecaptionrecord component.private final longThe field for theinviteExpirationTimestampSecondsrecord component.private final byte[]The field for thejpegThumbnailrecord component.private final JidThe field for thenewsletterJidrecord component.private final StringThe field for thenewsletterNamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionNewsletterAdminInviteMessage(Jid newsletterJid, String newsletterName, byte[] jpegThumbnail, String caption, long inviteExpirationTimestampSeconds) Creates an instance of aNewsletterAdminInviteMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncaption()Returns the value of thecaptionrecord component.category()Return message categoryfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theinviteExpirationTimestampSecondsrecord component.byte[]Returns the value of thejpegThumbnailrecord component.Returns the value of thenewsletterJidrecord component.Returns the value of thenewsletterNamerecord component.final StringtoString()Returns a string representation of this record class.type()Return message type
-
Field Details
-
newsletterJid
The field for thenewsletterJidrecord component. -
newsletterName
The field for thenewsletterNamerecord component. -
jpegThumbnail
private final byte[] jpegThumbnailThe field for thejpegThumbnailrecord component. -
caption
The field for thecaptionrecord component. -
inviteExpirationTimestampSeconds
private final long inviteExpirationTimestampSecondsThe field for theinviteExpirationTimestampSecondsrecord component.
-
-
Constructor Details
-
NewsletterAdminInviteMessage
public NewsletterAdminInviteMessage(Jid newsletterJid, String newsletterName, byte[] jpegThumbnail, String caption, long inviteExpirationTimestampSeconds) Creates an instance of aNewsletterAdminInviteMessagerecord class.- Parameters:
newsletterJid- the value for thenewsletterJidrecord componentnewsletterName- the value for thenewsletterNamerecord componentjpegThumbnail- the value for thejpegThumbnailrecord componentcaption- the value for thecaptionrecord componentinviteExpirationTimestampSeconds- the value for theinviteExpirationTimestampSecondsrecord component
-
-
Method Details
-
inviteExpirationTimestamp
-
type
Description copied from interface:MessageReturn message type -
category
Description copied from interface:MessageReturn message category -
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 '=='. -
newsletterJid
Returns the value of thenewsletterJidrecord component.- Returns:
- the value of the
newsletterJidrecord component
-
newsletterName
Returns the value of thenewsletterNamerecord component.- Returns:
- the value of the
newsletterNamerecord component
-
jpegThumbnail
public byte[] jpegThumbnail()Returns the value of thejpegThumbnailrecord component.- Returns:
- the value of the
jpegThumbnailrecord component
-
caption
Returns the value of thecaptionrecord component.- Returns:
- the value of the
captionrecord component
-
inviteExpirationTimestampSeconds
public long inviteExpirationTimestampSeconds()Returns the value of theinviteExpirationTimestampSecondsrecord component.- Returns:
- the value of the
inviteExpirationTimestampSecondsrecord component
-