it.auties.whatsapp.model.action.ClearChatActionBuilder Maven / Gradle / Ivy
package it.auties.whatsapp.model.action;
public class ClearChatActionBuilder {
private java.util.Optional messageRange;
public ClearChatActionBuilder() {
messageRange = java.util.Optional.empty();
}
public ClearChatActionBuilder messageRange(java.util.Optional messageRange) {
this.messageRange = messageRange;
return this;
}
public ClearChatActionBuilder messageRange(it.auties.whatsapp.model.sync.ActionMessageRangeSync messageRange) {
this.messageRange = java.util.Optional.ofNullable(messageRange);
return this;
}
public it.auties.whatsapp.model.action.ClearChatAction build() {
return new it.auties.whatsapp.model.action.ClearChatAction(messageRange);
}
}