package com.ss.android.ugc.aweme.ecommerce.anchor.api;

import X.M12;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.io.Serializable;
import java.util.Objects;

public final class EnterContext implements Serializable {
    @c(LIZ = "enter_source_id")
    public final String enterSourceId;
    @c(LIZ = "req_type")
    public final Integer reqType;

    static {
        Covode.recordClassIndex(68379);
    }

    public static /* synthetic */ EnterContext copy$default(EnterContext enterContext, Integer num, String str, int i, Object obj) {
        if ((i & 1) != 0) {
            num = enterContext.reqType;
        }
        if ((i & 2) != 0) {
            str = enterContext.enterSourceId;
        }
        return enterContext.copy(num, str);
    }

    private Object[] getObjects() {
        return new Object[]{this.reqType, this.enterSourceId};
    }

    public final EnterContext copy(Integer num, String str) {
        return new EnterContext(num, str);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof EnterContext)) {
            return false;
        }
        return M12.LIZ(((EnterContext) obj).getObjects(), getObjects());
    }

    public final int hashCode() {
        return Objects.hash(getObjects());
    }

    public final String toString() {
        return M12.LIZ("EnterContext:%s,%s", getObjects());
    }

    public final String getEnterSourceId() {
        return this.enterSourceId;
    }

    public final Integer getReqType() {
        return this.reqType;
    }

    public EnterContext(Integer num, String str) {
        this.reqType = num;
        this.enterSourceId = str;
    }
}
