package org.eclipse.paho.mqttv5.client;

import java.util.ArrayList;
import org.eclipse.paho.mqttv5.common.MqttException;
import org.eclipse.paho.mqttv5.common.packet.UserProperty;

/* JADX INFO: loaded from: classes2.dex */
public class MqttDisconnectResponse {
    private MqttException exception;
    private String reasonString;
    private int returnCode;
    private String serverReference;
    private ArrayList<UserProperty> userProperties;

    public MqttDisconnectResponse(MqttException mqttException) {
        this.exception = mqttException;
    }

    public MqttDisconnectResponse(int i, String str, ArrayList<UserProperty> arrayList, String str2) {
        this.returnCode = i;
        this.reasonString = str;
        this.userProperties = arrayList;
        this.serverReference = str2;
    }

    public int getReturnCode() {
        return this.returnCode;
    }

    public String getReasonString() {
        return this.reasonString;
    }

    public ArrayList<UserProperty> getUserProperties() {
        return this.userProperties;
    }

    public String getServerReference() {
        return this.serverReference;
    }

    public MqttException getException() {
        return this.exception;
    }

    public String toString() {
        return "MqttDisconnectResponse [returnCode=" + this.returnCode + ", reasonString=" + this.reasonString + ", userProperties=" + this.userProperties + ", serverReference=" + this.serverReference + ", exception=" + this.exception + "]";
    }
}
