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