61 lines
2.0 KiB
Java
61 lines
2.0 KiB
Java
package com.google.android.gms.location;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import com.google.android.gms.common.internal.Objects;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class SleepSegmentRequest extends AbstractSafeParcelable {
|
|
public static final int CLASSIFY_EVENTS_ONLY = 2;
|
|
public static final Parcelable.Creator<SleepSegmentRequest> CREATOR = new zzcd();
|
|
public static final int SEGMENT_AND_CLASSIFY_EVENTS = 0;
|
|
public static final int SEGMENT_EVENTS_ONLY = 1;
|
|
private final List zza;
|
|
private final int zzb;
|
|
|
|
public SleepSegmentRequest(int i) {
|
|
this(null, i);
|
|
}
|
|
|
|
public static SleepSegmentRequest getDefaultSleepSegmentRequest() {
|
|
return new SleepSegmentRequest(null, 0);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof SleepSegmentRequest)) {
|
|
return false;
|
|
}
|
|
SleepSegmentRequest sleepSegmentRequest = (SleepSegmentRequest) obj;
|
|
return Objects.equal(this.zza, sleepSegmentRequest.zza) && this.zzb == sleepSegmentRequest.zzb;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return Objects.hashCode(this.zza, Integer.valueOf(this.zzb));
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public void writeToParcel(Parcel parcel, int i) {
|
|
Preconditions.checkNotNull(parcel);
|
|
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
|
SafeParcelWriter.writeTypedList(parcel, 1, this.zza, false);
|
|
SafeParcelWriter.writeInt(parcel, 2, getRequestedDataType());
|
|
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
|
}
|
|
|
|
public SleepSegmentRequest(List list, int i) {
|
|
this.zza = list;
|
|
this.zzb = i;
|
|
}
|
|
|
|
public int getRequestedDataType() {
|
|
return this.zzb;
|
|
}
|
|
}
|