package com.mbridge.msdk.foundation.download; import android.os.Parcel; import android.os.Parcelable; /* loaded from: classes4.dex */ public class DownloadProgress implements Parcelable { public static final Parcelable.Creator CREATOR = new Parcelable.Creator() { // from class: com.mbridge.msdk.foundation.download.DownloadProgress.1 /* JADX WARN: Can't rename method to resolve collision */ @Override // android.os.Parcelable.Creator public DownloadProgress createFromParcel(Parcel parcel) { return new DownloadProgress(parcel); } /* JADX WARN: Can't rename method to resolve collision */ @Override // android.os.Parcelable.Creator public DownloadProgress[] newArray(int i) { return new DownloadProgress[i]; } }; private long current; private int currentDownloadRate; private long total; @Override // android.os.Parcelable public int describeContents() { return 0; } public long getCurrent() { return this.current; } public int getCurrentDownloadRate() { return this.currentDownloadRate; } public long getTotal() { return this.total; } public DownloadProgress(long j, long j2, int i) { this.current = j; this.total = j2; this.currentDownloadRate = i; } public DownloadProgress(Parcel parcel) { this.current = parcel.readLong(); this.total = parcel.readLong(); this.currentDownloadRate = parcel.readInt(); } @Override // android.os.Parcelable public void writeToParcel(Parcel parcel, int i) { parcel.writeLong(this.current); parcel.writeLong(this.total); parcel.writeInt(this.currentDownloadRate); } }