All Downloads are FREE. Search and download functionalities are using the official Maven repository.

it.auties.whatsapp.model.action.ArchiveChatActionBuilder Maven / Gradle / Ivy

package it.auties.whatsapp.model.action;

public class ArchiveChatActionBuilder {
    private boolean archived;
    private java.util.Optional messageRange;

    public ArchiveChatActionBuilder() {
        archived = false;
        messageRange = java.util.Optional.empty();
    }

    public ArchiveChatActionBuilder archived(boolean archived) {
        this.archived = archived;
        return this;
    }
    public ArchiveChatActionBuilder messageRange(java.util.Optional messageRange) {
        this.messageRange = messageRange;
        return this;
    }
    public ArchiveChatActionBuilder messageRange(it.auties.whatsapp.model.sync.ActionMessageRangeSync messageRange) {
        this.messageRange = java.util.Optional.ofNullable(messageRange);
        return this;
    }

    public it.auties.whatsapp.model.action.ArchiveChatAction build() {
        return new it.auties.whatsapp.model.action.ArchiveChatAction(archived, messageRange);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy