VideoSimpleItem$VideoGsonAdapter.smali
.class public Lcom/masala/share/proto/model/VideoSimpleItem$VideoGsonAdapter;
.super Ljava/lang/Object;
.source "SourceFile"
# interfaces
.implements Lcom/google/gson/k;
.implements Lcom/google/gson/r;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/masala/share/proto/model/VideoSimpleItem;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "VideoGsonAdapter"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/google/gson/k<",
"Lcom/masala/share/proto/model/VideoSimpleItem;",
">;",
"Lcom/google/gson/r<",
"Lcom/masala/share/proto/model/VideoSimpleItem;",
">;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.registers 1
.line 566
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final synthetic a(Ljava/lang/Object;Lcom/google/gson/q;)Lcom/google/gson/l;
.registers 4
.line 566
check-cast p1, Lcom/masala/share/proto/model/VideoSimpleItem;
.line 1588
instance-of p2, p1, Lcom/masala/share/proto/model/VideoDistanceItem;
if-eqz p2, :cond_11
.line 1589
invoke-static {}, Lcom/imo/android/imoim/feeds/g/e;->b()Lcom/google/gson/f;
move-result-object p2
const-class v0, Lcom/masala/share/proto/model/VideoDistanceItem;
invoke-virtual {p2, p1, v0}, Lcom/google/gson/f;->a(Ljava/lang/Object;Ljava/lang/reflect/Type;)Lcom/google/gson/l;
move-result-object p1
goto :goto_1b
.line 1591
:cond_11
invoke-static {}, Lcom/imo/android/imoim/feeds/g/e;->b()Lcom/google/gson/f;
move-result-object p2
const-class v0, Lcom/masala/share/proto/model/VideoSimpleItem;
invoke-virtual {p2, p1, v0}, Lcom/google/gson/f;->a(Ljava/lang/Object;Ljava/lang/reflect/Type;)Lcom/google/gson/l;
move-result-object p1
:goto_1b
return-object p1
.end method
.method public final synthetic a(Lcom/google/gson/l;Ljava/lang/reflect/Type;Lcom/google/gson/j;)Ljava/lang/Object;
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/gson/JsonParseException;
}
.end annotation
.line 1572
invoke-virtual {p1}, Lcom/google/gson/l;->g()Lcom/google/gson/n;
move-result-object p2
const-string p3, "distance"
invoke-virtual {p2, p3}, Lcom/google/gson/n;->a(Ljava/lang/String;)Z
move-result p2
if-eqz p2, :cond_19
.line 1573
invoke-static {}, Lcom/imo/android/imoim/feeds/g/e;->b()Lcom/google/gson/f;
move-result-object p2
const-class p3, Lcom/masala/share/proto/model/VideoDistanceItem;
invoke-virtual {p2, p1, p3}, Lcom/google/gson/f;->a(Lcom/google/gson/l;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/masala/share/proto/model/VideoSimpleItem;
goto :goto_3e
.line 1575
:cond_19
invoke-static {}, Lcom/imo/android/imoim/feeds/g/e;->b()Lcom/google/gson/f;
move-result-object p2
const-class p3, Lcom/masala/share/proto/model/VideoSimpleItem;
invoke-virtual {p2, p1, p3}, Lcom/google/gson/f;->a(Lcom/google/gson/l;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lcom/masala/share/proto/model/VideoSimpleItem;
.line 1576
invoke-static {p1}, Lcom/masala/share/proto/model/TagSimpleItem;->isTagEvent(Lcom/masala/share/proto/model/VideoSimpleItem;)Z
move-result p2
if-eqz p2, :cond_32
.line 1577
new-instance p2, Lcom/masala/share/proto/model/TagSimpleItem;
invoke-direct {p2, p1}, Lcom/masala/share/proto/model/TagSimpleItem;-><init>(Lcom/masala/share/proto/model/VideoSimpleItem;)V
:goto_30
move-object p1, p2
goto :goto_3e
.line 1578
:cond_32
invoke-static {p1}, Lcom/masala/share/proto/model/LiveSimpleItem;->isLiveItem(Lcom/masala/share/proto/model/VideoSimpleItem;)Z
move-result p2
if-eqz p2, :cond_3e
.line 1579
new-instance p2, Lcom/masala/share/proto/model/LiveSimpleItem;
invoke-direct {p2, p1}, Lcom/masala/share/proto/model/LiveSimpleItem;-><init>(Lcom/masala/share/proto/model/VideoSimpleItem;)V
goto :goto_30
:cond_3e
:goto_3e
return-object p1
.end method