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

it.auties.whatsapp.model.call.CallBuilder Maven / Gradle / Ivy

package it.auties.whatsapp.model.call;

public class CallBuilder {
    private it.auties.whatsapp.model.jid.Jid chat;
    private it.auties.whatsapp.model.jid.Jid caller;
    private java.lang.String id;
    private long timestampSeconds;
    private boolean video;
    private it.auties.whatsapp.model.call.CallStatus status;
    private boolean offline;

    public CallBuilder() {
        chat = null;
        caller = null;
        id = null;
        timestampSeconds = 0l;
        video = false;
        status = null;
        offline = false;
    }

    public CallBuilder chat(it.auties.whatsapp.model.jid.Jid chat) {
        this.chat = chat;
        return this;
    }

    public CallBuilder caller(it.auties.whatsapp.model.jid.Jid caller) {
        this.caller = caller;
        return this;
    }

    public CallBuilder id(java.lang.String id) {
        this.id = id;
        return this;
    }

    public CallBuilder timestampSeconds(long timestampSeconds) {
        this.timestampSeconds = timestampSeconds;
        return this;
    }

    public CallBuilder video(boolean video) {
        this.video = video;
        return this;
    }

    public CallBuilder status(it.auties.whatsapp.model.call.CallStatus status) {
        this.status = status;
        return this;
    }

    public CallBuilder offline(boolean offline) {
        this.offline = offline;
        return this;
    }

    public it.auties.whatsapp.model.call.Call build() {
        return new it.auties.whatsapp.model.call.Call(chat, caller, id, timestampSeconds, video, status, offline);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy