Files
rr3-apk/decompiled/sources/com/google/android/gms/games/snapshot/SnapshotMetadataChange.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

84 lines
2.2 KiB
Java

package com.google.android.gms.games.snapshot;
import android.graphics.Bitmap;
import android.net.Uri;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.data.BitmapTeleporter;
/* loaded from: classes2.dex */
public interface SnapshotMetadataChange {
@NonNull
public static final SnapshotMetadataChange EMPTY_CHANGE = new SnapshotMetadataChangeEntity();
public static final class Builder {
private String zza;
private Long zzb;
private Long zzc;
private BitmapTeleporter zzd;
private Uri zze;
@NonNull
public SnapshotMetadataChange build() {
return new SnapshotMetadataChangeEntity(this.zza, this.zzb, this.zzd, this.zze, this.zzc);
}
@NonNull
public Builder fromMetadata(@NonNull SnapshotMetadata snapshotMetadata) {
this.zza = snapshotMetadata.getDescription();
this.zzb = Long.valueOf(snapshotMetadata.getPlayedTime());
this.zzc = Long.valueOf(snapshotMetadata.getProgressValue());
if (this.zzb.longValue() == -1) {
this.zzb = null;
}
Uri coverImageUri = snapshotMetadata.getCoverImageUri();
this.zze = coverImageUri;
if (coverImageUri != null) {
this.zzd = null;
}
return this;
}
@NonNull
public Builder setCoverImage(@NonNull Bitmap bitmap) {
this.zzd = new BitmapTeleporter(bitmap);
this.zze = null;
return this;
}
@NonNull
public Builder setDescription(@NonNull String str) {
this.zza = str;
return this;
}
@NonNull
public Builder setPlayedTimeMillis(long j) {
this.zzb = Long.valueOf(j);
return this;
}
@NonNull
public Builder setProgressValue(long j) {
this.zzc = Long.valueOf(j);
return this;
}
}
@Nullable
Bitmap getCoverImage();
@Nullable
String getDescription();
@Nullable
Long getPlayedTimeMillis();
@Nullable
Long getProgressValue();
@Nullable
BitmapTeleporter zza();
}