package com.ss.android.ugc.aweme.discover.model;

import X.M12;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import com.ss.android.ugc.aweme.feed.model.Aweme;
import java.io.Serializable;
import java.util.Objects;
import kotlin.h.b.n;

public final class SearchOperationInfo implements Serializable {
    @c(LIZ = "live_room")
    public Aweme aweme;
    @c(LIZ = "activity")
    public SearchOperation operation;

    static {
        Covode.recordClassIndex(65213);
    }

    public final Aweme getAweme() {
        return this.aweme;
    }

    public final SearchOperation getOperation() {
        return this.operation;
    }

    public final int hashCode() {
        int i;
        int hashCode = this.operation.hashCode() * 31;
        Aweme aweme2 = this.aweme;
        if (aweme2 != null) {
            i = aweme2.hashCode();
        } else {
            i = 0;
        }
        return hashCode + i;
    }

    public final void setAweme(Aweme aweme2) {
        this.aweme = aweme2;
    }

    public final void setOperation(SearchOperation searchOperation) {
        M12.LIZ(searchOperation);
        this.operation = searchOperation;
    }

    public final boolean equals(Object obj) {
        Class<?> cls;
        if (this == obj) {
            return true;
        }
        Class<?> cls2 = getClass();
        if (obj != null) {
            cls = obj.getClass();
        } else {
            cls = null;
        }
        if (!n.LIZ(cls2, cls)) {
            return false;
        }
        Objects.requireNonNull(obj, "null cannot be cast to non-null type com.ss.android.ugc.aweme.discover.model.SearchOperationInfo");
        SearchOperationInfo searchOperationInfo = (SearchOperationInfo) obj;
        if (!(!n.LIZ(this.operation, searchOperationInfo.operation)) && !(!n.LIZ(this.aweme, searchOperationInfo.aweme))) {
            return true;
        }
        return false;
    }

    public SearchOperationInfo(SearchOperation searchOperation, Aweme aweme2) {
        M12.LIZ(searchOperation);
        this.operation = searchOperation;
        this.aweme = aweme2;
    }
}
