package com.ubtrobot.analytics; import android.os.Parcel; import android.os.Parcelable; import java.util.concurrent.TimeUnit; /* loaded from: classes2.dex */ public class Strategy implements Parcelable { private static final int MIN_REPORT_INTERVAL_MINUTE = 1; private long reportIntervalSeconds; public static final Strategy DEFAULT = new Builder().a(); private static final long DEFAULT_REPORT_INTERVAL_SECONDS = TimeUnit.MINUTES.toSeconds(5); public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { // from class: com.ubtrobot.analytics.Strategy.1 /* JADX WARN: Can't rename method to resolve collision */ @Override // android.os.Parcelable.Creator public Strategy createFromParcel(Parcel parcel) { return new Strategy(parcel); } /* JADX WARN: Can't rename method to resolve collision */ @Override // android.os.Parcelable.Creator public Strategy[] newArray(int i) { return new Strategy[i]; } }; public static class Builder { private long a = Strategy.DEFAULT_REPORT_INTERVAL_SECONDS; public Strategy a() { Strategy strategy = new Strategy(); strategy.reportIntervalSeconds = this.a; return strategy; } public String toString() { return "Builder{reportIntervalSeconds=" + this.a + '}'; } } @Override // android.os.Parcelable public int describeContents() { return 0; } public long getReportIntervalSeconds() { return this.reportIntervalSeconds; } public String toString() { return "Strategy{reportIntervalSeconds=" + this.reportIntervalSeconds + '}'; } @Override // android.os.Parcelable public void writeToParcel(Parcel parcel, int i) { parcel.writeLong(this.reportIntervalSeconds); } private Strategy() { } private Strategy(Parcel parcel) { this.reportIntervalSeconds = parcel.readLong(); } }