it.auties.whatsapp.model.info.DeviceContextInfoBuilder Maven / Gradle / Ivy
package it.auties.whatsapp.model.info;
public class DeviceContextInfoBuilder {
private it.auties.whatsapp.model.sync.DeviceListMetadata deviceListMetadata;
private int deviceListMetadataVersion;
private byte[] messageSecret;
private byte[] paddingBytes;
public DeviceContextInfoBuilder() {
deviceListMetadata = null;
deviceListMetadataVersion = 0;
messageSecret = null;
paddingBytes = null;
}
public DeviceContextInfoBuilder deviceListMetadata(it.auties.whatsapp.model.sync.DeviceListMetadata deviceListMetadata) {
this.deviceListMetadata = deviceListMetadata;
return this;
}
public DeviceContextInfoBuilder deviceListMetadataVersion(int deviceListMetadataVersion) {
this.deviceListMetadataVersion = deviceListMetadataVersion;
return this;
}
public DeviceContextInfoBuilder messageSecret(byte[] messageSecret) {
this.messageSecret = messageSecret;
return this;
}
public DeviceContextInfoBuilder paddingBytes(byte[] paddingBytes) {
this.paddingBytes = paddingBytes;
return this;
}
public it.auties.whatsapp.model.info.DeviceContextInfo build() {
return new it.auties.whatsapp.model.info.DeviceContextInfo(deviceListMetadata, deviceListMetadataVersion, messageSecret, paddingBytes);
}
}