Module it.auties.whatsappweb4j
Class GroupInviteMessage
java.lang.Object
it.auties.whatsapp.model.message.model.ContextualMessage
it.auties.whatsapp.model.message.standard.GroupInviteMessage
- All Implemented Interfaces:
it.auties.protobuf.api.model.ProtobufMessage
,Message
A model class that represents a message holding a whatsapp group invite inside
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
GroupInviteMessage.GroupInviteMessageBuilder<C extends GroupInviteMessage,
B extends GroupInviteMessage.GroupInviteMessageBuilder<C, B>> Nested classes/interfaces inherited from class it.auties.whatsapp.model.message.model.ContextualMessage
ContextualMessage.ContextualMessageBuilder<C extends ContextualMessage,
B extends ContextualMessage.ContextualMessageBuilder<C, B>> -
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
caption()
The caption of this inviteThe caption of this invitecode()
The invite code of this messageThe invite code of this messageThe context info of this messagecontextInfo
(ContextInfo contextInfo) The context info of this messageboolean
long
The expiration of this invite in milliseconds sinceInstant.EPOCH
expiration
(long expiration) The expiration of this invite in milliseconds sinceInstant.EPOCH
groupId()
The jid of the group that this invite regardsgroupId
(ContactJid groupId) The jid of the group that this invite regardsThe name of the group that this invite regardsThe name of the group that this invite regardsint
hashCode()
static GroupInviteMessage.GroupInviteMessageBuilder<?,
?> static GroupInviteMessage
newGroupInviteMessage
(ContactJid groupId, String code, long expiration, String groupName, byte[] thumbnail, String caption, ContextInfo contextInfo) byte[]
The thumbnail of the group that this invite regards encoded as jpeg in an array of bytesthumbnail
(byte[] thumbnail) The thumbnail of the group that this invite regards encoded as jpeg in an array of bytestoString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface it.auties.protobuf.api.model.ProtobufMessage
value
-
Constructor Details
-
GroupInviteMessage
-
GroupInviteMessage
public GroupInviteMessage()
-
-
Method Details
-
newGroupInviteMessage
-
newGroupInviteMessage
public static GroupInviteMessage newGroupInviteMessage(ContactJid groupId, String code, long expiration, String groupName, byte[] thumbnail, String caption, ContextInfo contextInfo) -
groupId
The jid of the group that this invite regards -
code
The invite code of this message -
expiration
public long expiration()The expiration of this invite in milliseconds sinceInstant.EPOCH
-
groupName
The name of the group that this invite regards -
thumbnail
public byte[] thumbnail()The thumbnail of the group that this invite regards encoded as jpeg in an array of bytes -
contextInfo
The context info of this message- Overrides:
contextInfo
in classContextualMessage
-
groupId
The jid of the group that this invite regards- Returns:
this
.
-
code
The invite code of this message- Returns:
this
.
-
expiration
The expiration of this invite in milliseconds sinceInstant.EPOCH
- Returns:
this
.
-
groupName
The name of the group that this invite regards- Returns:
this
.
-
thumbnail
The thumbnail of the group that this invite regards encoded as jpeg in an array of bytes- Returns:
this
.
-
contextInfo
The context info of this message- Overrides:
contextInfo
in classContextualMessage
- Returns:
this
.
-
toString
- Overrides:
toString
in classContextualMessage
-
equals
- Overrides:
equals
in classContextualMessage
-
canEqual
- Overrides:
canEqual
in classContextualMessage
-
hashCode
public int hashCode()- Overrides:
hashCode
in classContextualMessage
-