package com.bytedance.android.live.wallet.model;

import X.2HN;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import kotlin.h.b.n;

public final class BalanceStructExtra {
    @c(LIZ = "base_package")
    public BasePackage basePackage;
    @c(LIZ = "coins")
    public long coins;
    @c(LIZ = "currency_info")
    public CurrencyInfo currencyInfo;
    @c(LIZ = "local_currency_info")
    public CurrencyInfo localCurrencyInfo;

    static {
        Covode.recordClassIndex(10885);
    }

    public BalanceStructExtra() {
        this((CurrencyInfo) null, (CurrencyInfo) null, (BasePackage) null, 0, 15, (2HN) null);
    }

    public final BasePackage getBasePackage() {
        return this.basePackage;
    }

    public final long getCoins() {
        return this.coins;
    }

    public final CurrencyInfo getCurrencyInfo() {
        return this.currencyInfo;
    }

    public final CurrencyInfo getLocalCurrencyInfo() {
        return this.localCurrencyInfo;
    }

    public final boolean isLocal() {
        BasePackage basePackage2;
        CurrencyInfo currencyInfo2 = this.localCurrencyInfo;
        if (currencyInfo2 == null || !(!n.LIZ(currencyInfo2.getSymbol(), "")) || (basePackage2 = this.basePackage) == null || basePackage2.getLocalPrice() == 0) {
            return false;
        }
        BasePackage basePackage3 = this.basePackage;
        if (basePackage3 == null) {
            n.LIZIZ();
        }
        if (basePackage3.getLocalDot() != 0) {
            return true;
        }
        return false;
    }

    public final void setBasePackage(BasePackage basePackage2) {
        this.basePackage = basePackage2;
    }

    public final void setCoins(long j) {
        this.coins = j;
    }

    public final void setCurrencyInfo(CurrencyInfo currencyInfo2) {
        this.currencyInfo = currencyInfo2;
    }

    public final void setLocalCurrencyInfo(CurrencyInfo currencyInfo2) {
        this.localCurrencyInfo = currencyInfo2;
    }

    public BalanceStructExtra(CurrencyInfo currencyInfo2, CurrencyInfo currencyInfo3, BasePackage basePackage2, long j) {
        this.currencyInfo = currencyInfo2;
        this.localCurrencyInfo = currencyInfo3;
        this.basePackage = basePackage2;
        this.coins = j;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ BalanceStructExtra(CurrencyInfo currencyInfo2, CurrencyInfo currencyInfo3, BasePackage basePackage2, long j, int i, 2HN r13) {
        this((i & 1) != 0 ? null : currencyInfo2, (i & 2) != 0 ? null : currencyInfo3, (i & 4) == 0 ? basePackage2 : null, (i & 8) != 0 ? 0 : j);
    }
}
