![JAR search and dependency download from the Maven repository](/logo.png)
it.auties.whatsapp.model.signal.auth.HandshakeMessageBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cobalt Show documentation
Show all versions of cobalt Show documentation
Standalone fully-featured Whatsapp Web API for Java and Kotlin
package it.auties.whatsapp.model.signal.auth;
public class HandshakeMessageBuilder {
private it.auties.whatsapp.model.signal.auth.ClientHello clientHello;
private it.auties.whatsapp.model.signal.auth.ServerHello serverHello;
private it.auties.whatsapp.model.signal.auth.ClientFinish clientFinish;
public HandshakeMessageBuilder() {
clientHello = null;
serverHello = null;
clientFinish = null;
}
public HandshakeMessageBuilder clientHello(it.auties.whatsapp.model.signal.auth.ClientHello clientHello) {
this.clientHello = clientHello;
return this;
}
public HandshakeMessageBuilder serverHello(it.auties.whatsapp.model.signal.auth.ServerHello serverHello) {
this.serverHello = serverHello;
return this;
}
public HandshakeMessageBuilder clientFinish(it.auties.whatsapp.model.signal.auth.ClientFinish clientFinish) {
this.clientFinish = clientFinish;
return this;
}
public it.auties.whatsapp.model.signal.auth.HandshakeMessage build() {
return new it.auties.whatsapp.model.signal.auth.HandshakeMessage(clientHello, serverHello, clientFinish);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy