package com.seewo.factoryaging.v0;

import android.content.Context;
import android.util.Log;
import com.cvte.vman.R;
import com.seewo.factoryaging.FactoryAgingApplication;
import j.p0.d.r;
import java.util.Date;

/* JADX INFO: compiled from: CpuTempRecordItem.kt */
/* JADX INFO: loaded from: classes.dex */
public final class a {
    private final Context a;
    private final String b;
    private final String c;
    private final float d;
    private long e;
    private String f;

    public a(Context context, String str, String str2, float f) {
        r.f(context, "context");
        r.f(str2, "orderRecodeTime");
        this.a = context;
        this.b = str;
        this.c = str2;
        this.d = f;
        this.e = System.currentTimeMillis();
        this.f = a();
    }

    public final String a() {
        try {
            String str = this.b;
            if (str != null && Float.parseFloat(j.u0.r.E0(str).toString()) < this.d) {
                String string = this.a.getString(R.string.str_temperature_pass);
                r.e(string, "context.getString(R.string.str_temperature_pass)");
                return string;
            }
        } catch (Throwable th) {
            Log.e("CpuTempRecordItem", "convertCpuTemperature error", th);
        }
        String string2 = this.a.getString(R.string.str_temperature_status_fail);
        r.e(string2, "context.getString(R.stri…_temperature_status_fail)");
        return string2;
    }

    public final String b() {
        String str = FactoryAgingApplication.e.c().format(new Date(this.e));
        r.e(str, "FactoryAgingApplication.…ormat(Date(mCurrentTime))");
        return str;
    }

    public final String c() {
        return this.c;
    }

    public final String d() {
        return this.b;
    }

    public final String e() {
        return this.f;
    }
}
