package a.c.b;

public final class d {
    public static final String g = "unknown";

    /* renamed from: a  reason: collision with root package name */
    private o f70a;
    private f b;
    private i c;
    private c d;
    private int e;
    private short f;

    static {
        w.b();
        p.b();
        r.e();
        x.b();
        q.b();
    }

    public d() {
    }

    public d(o oVar, f fVar, i iVar, c cVar, int i) {
        j.b(oVar, "sourceDevice");
        j.b(fVar, "dataFormat");
        j.b(cVar, "category");
        j.b(iVar, "messageType");
        this.f70a = oVar;
        this.b = fVar;
        this.c = iVar;
        this.d = cVar;
        this.e = i;
        this.f = 0;
    }

    public final c a() {
        return this.d;
    }

    public void a(i iVar) {
        if (iVar == null) {
            throw new l("messageType can not be null");
        } else if (c() == i.SEND && iVar == i.SEND_SYNC) {
            this.c = iVar;
        } else {
            throw new l("Only SEND MessageType can be changed");
        }
    }

    public void a(o oVar, f fVar, i iVar, c cVar, int i) {
        this.f70a = oVar;
        this.b = fVar;
        this.c = iVar;
        this.d = cVar;
        this.e = i;
    }

    public final f b() {
        return this.b;
    }

    public i c() {
        return this.c;
    }

    public final int d() {
        return this.e;
    }

    public final o e() {
        return this.f70a;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof d)) {
            return false;
        }
        d dVar = (d) obj;
        return j.a(this.f70a, dVar.f70a) && j.a(this.b, dVar.b) && j.a(this.d, dVar.d) && j.a(this.c, dVar.c) && this.e == dVar.e;
    }

    public int hashCode() {
        o oVar = this.f70a;
        int i = 0;
        int hashCode = (oVar != null ? oVar.hashCode() : 0) * 31;
        f fVar = this.b;
        int hashCode2 = (hashCode + (fVar != null ? fVar.hashCode() : 0)) * 31;
        c cVar = this.d;
        if (cVar != null) {
            i = cVar.hashCode();
        }
        return ((hashCode2 + i) * 31) + Integer.hashCode(this.e);
    }

    public String toString() {
        return "from=" + this.f70a + "|format=" + this.b + "|type=" + this.c + "|category=" + this.d + "|method=" + v.a(this.d, this.e) + "(" + this.e + ")";
    }
}
