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

it.auties.whatsapp.model.payment.PaymentMediaDataBuilder Maven / Gradle / Ivy

package it.auties.whatsapp.model.payment;

public class PaymentMediaDataBuilder {
    private byte[] mediaKey;
    private long mediaKeyTimestamp;
    private byte[] mediaSha256;
    private byte[] mediaEncryptedSha256;
    private java.lang.String mediaDirectPath;

    public PaymentMediaDataBuilder() {
        mediaKey = null;
        mediaKeyTimestamp = 0l;
        mediaSha256 = null;
        mediaEncryptedSha256 = null;
        mediaDirectPath = null;
    }

    public PaymentMediaDataBuilder mediaKey(byte[] mediaKey) {
        this.mediaKey = mediaKey;
        return this;
    }

    public PaymentMediaDataBuilder mediaKeyTimestamp(long mediaKeyTimestamp) {
        this.mediaKeyTimestamp = mediaKeyTimestamp;
        return this;
    }

    public PaymentMediaDataBuilder mediaSha256(byte[] mediaSha256) {
        this.mediaSha256 = mediaSha256;
        return this;
    }

    public PaymentMediaDataBuilder mediaEncryptedSha256(byte[] mediaEncryptedSha256) {
        this.mediaEncryptedSha256 = mediaEncryptedSha256;
        return this;
    }

    public PaymentMediaDataBuilder mediaDirectPath(java.lang.String mediaDirectPath) {
        this.mediaDirectPath = mediaDirectPath;
        return this;
    }

    public it.auties.whatsapp.model.payment.PaymentMediaData build() {
        return new it.auties.whatsapp.model.payment.PaymentMediaData(mediaKey, mediaKeyTimestamp, mediaSha256, mediaEncryptedSha256, mediaDirectPath);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy