124 lines
4.3 KiB
Java
124 lines
4.3 KiB
Java
package o;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import java.text.NumberFormat;
|
|
import java.util.Locale;
|
|
import o.C15715hv;
|
|
|
|
/* renamed from: o.Hc, reason: case insensitive filesystem */
|
|
/* loaded from: classes3.dex */
|
|
public class C0463Hc implements Parcelable {
|
|
public static final Parcelable.Creator<C0463Hc> CREATOR = new Parcelable.Creator<C0463Hc>() { // from class: o.Hc.5
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* synthetic */ C0463Hc createFromParcel(Parcel parcel) {
|
|
return new C0463Hc(parcel);
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* bridge */ /* synthetic */ C0463Hc[] newArray(int i) {
|
|
return new C0463Hc[i];
|
|
}
|
|
};
|
|
public String a;
|
|
public String b;
|
|
public Integer c;
|
|
public Integer d;
|
|
public Integer e;
|
|
public String f;
|
|
public boolean g;
|
|
public String h;
|
|
public String i;
|
|
public boolean j;
|
|
public Integer k;
|
|
public C0464Hd l;
|
|
public String m;
|
|
public String n;
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
public String f8197o;
|
|
public String p;
|
|
public Integer q;
|
|
public EnumC0856QaM r;
|
|
public EnumC1889aRM s;
|
|
public Integer t;
|
|
public String u;
|
|
public C16316nR y;
|
|
|
|
@Override // android.os.Parcelable
|
|
public int describeContents() {
|
|
return 0;
|
|
}
|
|
|
|
protected C0463Hc(Parcel parcel) {
|
|
this.r = EnumC0856QaM.OTHER;
|
|
this.m = parcel.readString();
|
|
this.f8197o = parcel.readString();
|
|
this.h = parcel.readString();
|
|
this.q = (Integer) parcel.readValue(Integer.class.getClassLoader());
|
|
this.c = (Integer) parcel.readValue(Integer.class.getClassLoader());
|
|
this.k = (Integer) parcel.readValue(Integer.class.getClassLoader());
|
|
this.f = parcel.readString();
|
|
this.p = parcel.readString();
|
|
this.r = EnumC0856QaM.valueOf(parcel.readString());
|
|
this.l = (C0464Hd) parcel.readParcelable(getClass().getClassLoader());
|
|
this.i = parcel.readString();
|
|
this.a = parcel.readString();
|
|
this.d = (Integer) parcel.readValue(Integer.class.getClassLoader());
|
|
this.e = (Integer) parcel.readValue(Integer.class.getClassLoader());
|
|
this.b = parcel.readString();
|
|
this.s = EnumC1889aRM.valueOf(parcel.readString());
|
|
this.g = parcel.readInt() == 1;
|
|
this.t = (Integer) parcel.readValue(Integer.class.getClassLoader());
|
|
this.n = parcel.readString();
|
|
this.j = parcel.readInt() == 1;
|
|
this.u = parcel.readString();
|
|
}
|
|
|
|
public C0463Hc() {
|
|
this.r = EnumC0856QaM.OTHER;
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
parcel.writeString(this.m);
|
|
parcel.writeString(this.f8197o);
|
|
parcel.writeString(this.h);
|
|
parcel.writeValue(this.q);
|
|
parcel.writeValue(this.c);
|
|
parcel.writeValue(this.k);
|
|
parcel.writeString(this.f);
|
|
parcel.writeString(this.p);
|
|
parcel.writeString(this.r.name());
|
|
parcel.writeParcelable(this.l, i);
|
|
parcel.writeString(this.i);
|
|
parcel.writeString(this.a);
|
|
parcel.writeValue(this.d);
|
|
parcel.writeValue(this.e);
|
|
parcel.writeString(this.b);
|
|
parcel.writeString(this.s.name());
|
|
parcel.writeInt(this.g ? 1 : 0);
|
|
parcel.writeValue(this.t);
|
|
parcel.writeString(this.n);
|
|
parcel.writeInt(this.j ? 1 : 0);
|
|
parcel.writeString(this.u);
|
|
}
|
|
|
|
public final String d() {
|
|
String format = NumberFormat.getInstance(Locale.getDefault()).format(this.q);
|
|
if (this.r.equals(EnumC0856QaM.MILEAGE)) {
|
|
String format2 = NumberFormat.getInstance(Locale.getDefault()).format(this.l.a);
|
|
if (this.q.intValue() <= 1) {
|
|
C16316nR c16316nR = this.y;
|
|
return c16316nR.a.getString(C15715hv.tOB.mileage_points_per_miles_one_point, format, format2);
|
|
}
|
|
C16316nR c16316nR2 = this.y;
|
|
return c16316nR2.a.getString(C15715hv.tOB.mileage_points_per_miles, format, format2);
|
|
}
|
|
if (this.q.intValue() > 1) {
|
|
return this.y.a.getString(C15715hv.tOB.product_points, format);
|
|
}
|
|
return this.y.a.getString(C15715hv.tOB.product_points_one_point, format);
|
|
}
|
|
}
|