granularity level: instruction
.class public abstract Lcom/google/android/datatransport/cct/internal/LogResponse;
.super Ljava/lang/Object;
.source "LogResponse.java"
.field private static final LOG_TAG:Ljava/lang/String; = "LogResponseInternal"
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static create(J)Lcom/google/android/datatransport/cct/internal/LogResponse;
.locals 1
new-instance v0, Lcom/google/android/datatransport/cct/internal/AutoValue_LogResponse;
invoke-direct {v0, p0, p1}, Lcom/google/android/datatransport/cct/internal/AutoValue_LogResponse;-><init>(J)V
return-object v0
.end method
.method public static fromJson(Ljava/io/Reader;)Lcom/google/android/datatransport/cct/internal/LogResponse;
.locals 3
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
new-instance v0, Landroid/util/JsonReader;
invoke-direct {v0, p0}, Landroid/util/JsonReader;-><init>(Ljava/io/Reader;)V
:try_start_0
invoke-virtual {v0}, Landroid/util/JsonReader;->beginObject()V
:goto_0
invoke-virtual {v0}, Landroid/util/JsonReader;->hasNext()Z
move-result p0
if-eqz p0, :cond_2
invoke-virtual {v0}, Landroid/util/JsonReader;->nextName()Ljava/lang/String;
move-result-object p0
const-string v1, "nextRequestWaitMillis"
invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_1
invoke-virtual {v0}, Landroid/util/JsonReader;->peek()Landroid/util/JsonToken;
move-result-object p0
sget-object v1, Landroid/util/JsonToken;->STRING:Landroid/util/JsonToken;
if-ne p0, v1, :cond_0
invoke-virtual {v0}, Landroid/util/JsonReader;->nextString()Ljava/lang/String;
move-result-object p0
invoke-static {p0}, Ljava/lang/Long;->parseLong(Ljava/lang/String;)J
move-result-wide v1
invoke-static {v1, v2}, Lcom/google/android/datatransport/cct/internal/LogResponse;->create(J)Lcom/google/android/datatransport/cct/internal/LogResponse;
move-result-object p0
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
invoke-virtual {v0}, Landroid/util/JsonReader;->close()V
return-object p0
:try_start_1
:cond_0
invoke-virtual {v0}, Landroid/util/JsonReader;->nextLong()J
move-result-wide v1
invoke-static {v1, v2}, Lcom/google/android/datatransport/cct/internal/LogResponse;->create(J)Lcom/google/android/datatransport/cct/internal/LogResponse;
move-result-object p0
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
invoke-virtual {v0}, Landroid/util/JsonReader;->close()V
return-object p0
:try_start_2
:cond_1
invoke-virtual {v0}, Landroid/util/JsonReader;->skipValue()V
goto :goto_0
:cond_2
new-instance p0, Ljava/io/IOException;
const-string v1, "Response is missing nextRequestWaitMillis field."
invoke-direct {p0, v1}, Ljava/io/IOException;-><init>(Ljava/lang/String;)V
throw p0
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_0
:catchall_0
move-exception p0
invoke-virtual {v0}, Landroid/util/JsonReader;->close()V
throw p0
.end method
.method public abstract getNextRequestWaitMillis()J
.end method