package com.bytedance.android.livesdk.rank.api.model;

import X.H18;
import com.bytedance.android.live.base.model.user.User;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;

public class RankItem implements H18<RankItem> {
    @c(LIZ = "user")
    public User LIZ;
    @c(LIZ = "score")
    public long LIZIZ;
    @c(LIZ = "rank")
    public int LIZJ;
    @c(LIZ = "gap_description")
    public String LIZLLL;
    @c(LIZ = "delta")
    public long LJ;
    @c(LIZ = "rich_description")
    public String LJFF;
    @c(LIZ = "city_code")
    public String LJI;
    @c(LIZ = "gap_rich_description")
    public String LJII;
    @c(LIZ = "user_restriction_level")
    public int LJIIIIZZ;

    static {
        Covode.recordClassIndex(20349);
    }

    private long LIZ() {
        User user = this.LIZ;
        if (user == null) {
            return 0;
        }
        return user.getLiveRoomId();
    }

    public int hashCode() {
        int LIZ2 = (((((int) (((long) (((int) this.LIZIZ) * 37)) + LIZ())) * 37) + this.LIZ.hashCode()) * 37) + this.LIZJ;
        String str = this.LIZLLL;
        if (str != null) {
            return (LIZ2 * 37) + str.hashCode();
        }
        return LIZ2;
    }

    public final /* synthetic */ boolean LIZ(Object obj) {
        if (this.LIZ.getId() == ((RankItem) obj).LIZ.getId()) {
            return true;
        }
        return false;
    }

    /* renamed from: equals */
    public boolean LIZIZ(Object obj) {
        String str;
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof RankItem)) {
            return false;
        }
        RankItem rankItem = (RankItem) obj;
        long LIZ2 = LIZ();
        if (this.LIZIZ == rankItem.LIZIZ && LIZ2 == rankItem.LIZ() && this.LIZJ == rankItem.LIZJ && this.LIZ.equals(rankItem.LIZ) && (str = this.LIZLLL) != null) {
            return str.equals(rankItem.LIZLLL);
        }
        return true;
    }
}
