it.auties.whatsapp.model.chat.GroupPastParticipantBuilder Maven / Gradle / Ivy
package it.auties.whatsapp.model.chat;
public class GroupPastParticipantBuilder {
private it.auties.whatsapp.model.jid.Jid jid;
private it.auties.whatsapp.model.chat.GroupPastParticipant.Reason reason;
private long timestampSeconds;
public GroupPastParticipantBuilder() {
jid = null;
reason = null;
timestampSeconds = 0l;
}
public GroupPastParticipantBuilder jid(it.auties.whatsapp.model.jid.Jid jid) {
this.jid = jid;
return this;
}
public GroupPastParticipantBuilder reason(it.auties.whatsapp.model.chat.GroupPastParticipant.Reason reason) {
this.reason = reason;
return this;
}
public GroupPastParticipantBuilder timestampSeconds(long timestampSeconds) {
this.timestampSeconds = timestampSeconds;
return this;
}
public it.auties.whatsapp.model.chat.GroupPastParticipant build() {
return new it.auties.whatsapp.model.chat.GroupPastParticipant(jid, reason, timestampSeconds);
}
}