java.lang.Object
it.auties.whatsapp.model.info.NewsletterMessageInfo
- All Implemented Interfaces:
Info,MessageInfo,MessageStatusInfo<NewsletterMessageInfo>
public final class NewsletterMessageInfo
extends Object
implements MessageInfo, MessageStatusInfo<NewsletterMessageInfo>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final MessageContainerprivate Newsletterprivate final Map<String, NewsletterReaction> private final intprivate MessageStatusprivate final Longprivate final Long -
Constructor Summary
ConstructorsConstructorDescriptionNewsletterMessageInfo(Newsletter newsletter, String id, int serverId, Long timestampSeconds, Long views, Map<String, NewsletterReaction> reactions, MessageContainer message, MessageStatus status) -
Method Summary
Modifier and TypeMethodDescriptionaddReaction(NewsletterReaction reaction) voiddecrementReaction(String code) booleanfindReaction(String value) inthashCode()id()voidincrementReaction(String code, boolean fromMe) message()removeReaction(String code) intserverId()setNewsletter(Newsletter newsletter) setStatus(MessageStatus status) status()views()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.auties.whatsapp.model.info.MessageInfo
toJson
-
Field Details
-
newsletter
-
id
-
serverId
private final int serverId -
timestampSeconds
-
views
-
reactions
-
message
-
status
-
-
Constructor Details
-
NewsletterMessageInfo
public NewsletterMessageInfo(Newsletter newsletter, String id, int serverId, Long timestampSeconds, Long views, Map<String, NewsletterReaction> reactions, MessageContainer message, MessageStatus status)
-
-
Method Details
-
setNewsletter
-
newsletterJid
-
parentJid
- Specified by:
parentJidin interfaceMessageInfo
-
senderJid
- Specified by:
senderJidin interfaceMessageInfo
-
newsletter
-
id
- Specified by:
idin interfaceMessageInfo
-
serverId
public int serverId() -
timestampSeconds
- Specified by:
timestampSecondsin interfaceMessageInfo
-
views
-
message
- Specified by:
messagein interfaceMessageInfo
-
timestamp
-
status
- Specified by:
statusin interfaceMessageStatusInfo<NewsletterMessageInfo>
-
setStatus
- Specified by:
setStatusin interfaceMessageStatusInfo<NewsletterMessageInfo>
-
reactions
-
findReaction
-
addReaction
-
removeReaction
-
incrementReaction
-
decrementReaction
-
equals
-
hashCode
public int hashCode()
-