it.auties.whatsapp.model.companion.CompanionDeviceBuilder Maven / Gradle / Ivy
package it.auties.whatsapp.model.companion;
public class CompanionDeviceBuilder {
private java.lang.String model;
private java.lang.String manufacturer;
private it.auties.whatsapp.model.signal.auth.UserAgent.PlatformType platform;
private it.auties.whatsapp.model.signal.auth.Version appVersion;
private it.auties.whatsapp.model.signal.auth.Version osVersion;
private java.lang.String osBuildNumber;
private java.lang.String modelId;
private it.auties.whatsapp.api.ClientType clientType;
public CompanionDeviceBuilder() {
model = null;
manufacturer = null;
platform = null;
appVersion = null;
osVersion = null;
osBuildNumber = null;
modelId = null;
clientType = null;
}
public CompanionDeviceBuilder model(java.lang.String model) {
this.model = model;
return this;
}
public CompanionDeviceBuilder manufacturer(java.lang.String manufacturer) {
this.manufacturer = manufacturer;
return this;
}
public CompanionDeviceBuilder platform(it.auties.whatsapp.model.signal.auth.UserAgent.PlatformType platform) {
this.platform = platform;
return this;
}
public CompanionDeviceBuilder appVersion(it.auties.whatsapp.model.signal.auth.Version appVersion) {
this.appVersion = appVersion;
return this;
}
public CompanionDeviceBuilder osVersion(it.auties.whatsapp.model.signal.auth.Version osVersion) {
this.osVersion = osVersion;
return this;
}
public CompanionDeviceBuilder osBuildNumber(java.lang.String osBuildNumber) {
this.osBuildNumber = osBuildNumber;
return this;
}
public CompanionDeviceBuilder modelId(java.lang.String modelId) {
this.modelId = modelId;
return this;
}
public CompanionDeviceBuilder clientType(it.auties.whatsapp.api.ClientType clientType) {
this.clientType = clientType;
return this;
}
public it.auties.whatsapp.model.companion.CompanionDevice build() {
return new it.auties.whatsapp.model.companion.CompanionDevice(model, manufacturer, platform, appVersion, osVersion, osBuildNumber, modelId, clientType);
}
}