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

import X.C3320STs;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.util.Arrays;
import java.util.Objects;

public class SearchHistory {
    @c(LIZ = "keyword")
    public String keyword;
    @c(LIZ = "int")
    public int type;
    @c(LIZ = "uid")
    public String uid;

    static {
        Covode.recordClassIndex(65183);
    }

    public SearchHistory() {
    }

    public String toString() {
        return this.keyword;
    }

    public int hashCode() {
        return Arrays.hashCode(new Object[]{this.keyword, this.uid});
    }

    public SearchHistory(String str) {
        this.keyword = str;
        this.type = 1;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && getClass() == obj.getClass()) {
            SearchHistory searchHistory = (SearchHistory) obj;
            if (!Objects.equals(this.keyword, searchHistory.keyword) || !Objects.equals(this.uid, searchHistory.uid)) {
                return false;
            }
            return true;
        }
        return false;
    }

    public static int toHistoryType(int i) {
        if (i == C3320STs.LIZIZ.LIZIZ()) {
            return 16;
        }
        if (i == C3320STs.LIZIZ.LIZLLL()) {
            return 17;
        }
        if (i == C3320STs.LIZIZ.LJ()) {
            return 22;
        }
        if (i == C3320STs.LIZIZ.LJFF()) {
            return 18;
        }
        if (i == C3320STs.LIZIZ.LIZJ()) {
            return 19;
        }
        if (i == C3320STs.LIZ()) {
            return 20;
        }
        if (i == C3320STs.LIZIZ.LJI()) {
            return 21;
        }
        return 0;
    }

    public SearchHistory(String str, int i) {
        this.keyword = str;
        this.type = i;
    }

    public SearchHistory(String str, int i, String str2) {
        this.keyword = str;
        this.type = i;
        this.uid = str2;
    }
}
