package com.ifpos.bytello.share.sdk.model;

import com.google.gson.annotations.SerializedName;
import d.b.a.a.a;
import g.h0.c.g;
import g.h0.c.l;
import g.i;

/* JADX INFO: compiled from: RequestMessage.kt */
/* JADX INFO: loaded from: classes.dex */
@i
public final class RequestMessage {
    public static final int ACTION_MODIFY_SETTING_ITEMS = 2;
    public static final int ACTION_REGISTER_ACTIVATE_INFO_CHANGE = 6;
    public static final int ACTION_REGISTER_CALL_REGISTER = 7;
    public static final int ACTION_REGISTER_PIN_CODE_INFO_CHANGE = 5;
    public static final int ACTION_REQUEST_ACTIVATE_INFO = 3;
    public static final int ACTION_REQUEST_FULL_SUPPORT_SETTING_ITEMS = 1;
    public static final int ACTION_REQUEST_PIN_CODE_INFO = 4;
    public static final Companion Companion = new Companion(null);
    private static int increaseId;

    @SerializedName("action")
    private final int action;

    @SerializedName("caller")
    private final String caller;

    @SerializedName("parameter")
    private String parameter;

    @SerializedName("requestId")
    private final int requestId;

    @SerializedName("type")
    private final int type;

    /* JADX INFO: compiled from: RequestMessage.kt */
    @i
    public static final class Companion {
        private Companion() {
        }

        public /* synthetic */ Companion(g gVar) {
            this();
        }

        public final int getIncreaseId() {
            int i2 = RequestMessage.increaseId;
            RequestMessage.increaseId = i2 + 1;
            return i2;
        }

        public final void setIncreaseId(int i2) {
            RequestMessage.increaseId = i2;
        }
    }

    public RequestMessage(int i2, int i3, String str, int i4, String str2) {
        l.f(str, "caller");
        this.type = i2;
        this.requestId = i3;
        this.caller = str;
        this.action = i4;
        this.parameter = str2;
    }

    public static /* synthetic */ RequestMessage copy$default(RequestMessage requestMessage, int i2, int i3, String str, int i4, String str2, int i5, Object obj) {
        if ((i5 & 1) != 0) {
            i2 = requestMessage.type;
        }
        if ((i5 & 2) != 0) {
            i3 = requestMessage.requestId;
        }
        int i6 = i3;
        if ((i5 & 4) != 0) {
            str = requestMessage.caller;
        }
        String str3 = str;
        if ((i5 & 8) != 0) {
            i4 = requestMessage.action;
        }
        int i7 = i4;
        if ((i5 & 16) != 0) {
            str2 = requestMessage.parameter;
        }
        return requestMessage.copy(i2, i6, str3, i7, str2);
    }

    public final int component1() {
        return this.type;
    }

    public final int component2() {
        return this.requestId;
    }

    public final String component3() {
        return this.caller;
    }

    public final int component4() {
        return this.action;
    }

    public final String component5() {
        return this.parameter;
    }

    public final RequestMessage copy(int i2, int i3, String str, int i4, String str2) {
        l.f(str, "caller");
        return new RequestMessage(i2, i3, str, i4, str2);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof RequestMessage)) {
            return false;
        }
        RequestMessage requestMessage = (RequestMessage) obj;
        return this.type == requestMessage.type && this.requestId == requestMessage.requestId && l.a(this.caller, requestMessage.caller) && this.action == requestMessage.action && l.a(this.parameter, requestMessage.parameter);
    }

    public final int getAction() {
        return this.action;
    }

    public final String getCaller() {
        return this.caller;
    }

    public final String getParameter() {
        return this.parameter;
    }

    public final int getRequestId() {
        return this.requestId;
    }

    public final int getType() {
        return this.type;
    }

    public int hashCode() {
        int iHashCode = (Integer.hashCode(this.action) + a.x(this.caller, (Integer.hashCode(this.requestId) + (Integer.hashCode(this.type) * 31)) * 31, 31)) * 31;
        String str = this.parameter;
        return iHashCode + (str == null ? 0 : str.hashCode());
    }

    public final void setParameter(String str) {
        this.parameter = str;
    }

    public String toString() {
        int i2 = this.type;
        int i3 = this.requestId;
        String str = this.caller;
        int i4 = this.action;
        String str2 = this.parameter;
        StringBuilder sb = new StringBuilder();
        sb.append("RequestMessage(type=");
        sb.append(i2);
        sb.append(", requestId=");
        sb.append(i3);
        sb.append(", caller=");
        sb.append(str);
        sb.append(", action=");
        sb.append(i4);
        sb.append(", parameter=");
        return a.v(sb, str2, ")");
    }

    public /* synthetic */ RequestMessage(int i2, int i3, String str, int i4, String str2, int i5, g gVar) {
        this((i5 & 1) != 0 ? 1001 : i2, (i5 & 2) != 0 ? Companion.getIncreaseId() : i3, str, i4, (i5 & 16) != 0 ? null : str2);
    }
}
