it.auties.whatsapp.model.message.standard.NewsletterAdminInviteMessageBuilder Maven / Gradle / Ivy
package it.auties.whatsapp.model.message.standard;
public class NewsletterAdminInviteMessageBuilder {
private it.auties.whatsapp.model.jid.Jid newsletterJid;
private java.lang.String newsletterName;
private byte[] jpegThumbnail;
private java.lang.String caption;
private long inviteExpirationTimestampSeconds;
public NewsletterAdminInviteMessageBuilder() {
newsletterJid = null;
newsletterName = null;
jpegThumbnail = null;
caption = null;
inviteExpirationTimestampSeconds = 0l;
}
public NewsletterAdminInviteMessageBuilder newsletterJid(it.auties.whatsapp.model.jid.Jid newsletterJid) {
this.newsletterJid = newsletterJid;
return this;
}
public NewsletterAdminInviteMessageBuilder newsletterName(java.lang.String newsletterName) {
this.newsletterName = newsletterName;
return this;
}
public NewsletterAdminInviteMessageBuilder jpegThumbnail(byte[] jpegThumbnail) {
this.jpegThumbnail = jpegThumbnail;
return this;
}
public NewsletterAdminInviteMessageBuilder caption(java.lang.String caption) {
this.caption = caption;
return this;
}
public NewsletterAdminInviteMessageBuilder inviteExpirationTimestampSeconds(long inviteExpirationTimestampSeconds) {
this.inviteExpirationTimestampSeconds = inviteExpirationTimestampSeconds;
return this;
}
public it.auties.whatsapp.model.message.standard.NewsletterAdminInviteMessage build() {
return new it.auties.whatsapp.model.message.standard.NewsletterAdminInviteMessage(newsletterJid, newsletterName, jpegThumbnail, caption, inviteExpirationTimestampSeconds);
}
}