CommunityLabelInfo$a.smali
.class public final Lcom/masala/share/proto/model/CommunityLabelInfo$a;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/masala/share/proto/model/CommunityLabelInfo;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
# direct methods
.method private constructor <init>()V
.registers 1
.line 53
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/f/b/j;)V
.registers 2
.line 53
invoke-direct {p0}, Lcom/masala/share/proto/model/CommunityLabelInfo$a;-><init>()V
return-void
.end method
.method public static a(Lcom/imo/android/imoim/feeds/ui/detail/data/VideoDetailData;)B
.registers 2
if-nez p0, :cond_5
.line 89
invoke-static {}, Lkotlin/f/b/o;->a()V
:cond_5
iget-object p0, p0, Lcom/imo/android/imoim/feeds/ui/detail/data/VideoDetailData;->D:Lcom/masala/share/proto/model/CommunityLabelInfo;
if-eqz p0, :cond_15
.line 90
invoke-virtual {p0}, Lcom/masala/share/proto/model/CommunityLabelInfo;->isValid()Z
move-result v0
if-eqz v0, :cond_15
.line 91
invoke-virtual {p0}, Lcom/masala/share/proto/model/CommunityLabelInfo;->getRec_type()I
move-result p0
int-to-byte p0, p0
goto :goto_16
:cond_15
const/4 p0, 0x0
:goto_16
return p0
.end method
.method public static a(Ljava/lang/String;)Lcom/masala/share/proto/model/CommunityLabelInfo;
.registers 5
const-string v0, "CommunityLabelInfo"
const-string v1, "jsonString"
invoke-static {p0, v1}, Lkotlin/f/b/o;->b(Ljava/lang/Object;Ljava/lang/String;)V
.line 57
move-object v1, p0
check-cast v1, Ljava/lang/CharSequence;
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
const/4 v2, 0x0
if-eqz v1, :cond_12
return-object v2
.line 61
:cond_12
:try_start_12
invoke-static {v0, p0}, Lsg/bigo/log/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
.line 62
invoke-static {}, Lcom/imo/android/imoim/feeds/g/e;->a()Lcom/google/gson/f;
move-result-object v1
const-class v3, Lcom/masala/share/proto/model/CommunityLabelInfo;
invoke-virtual {v1, p0, v3}, Lcom/google/gson/f;->a(Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/masala/share/proto/model/CommunityLabelInfo;
:try_end_21
.catch Ljava/lang/Exception; {:try_start_12 .. :try_end_21} :catch_22
return-object p0
:catch_22
move-exception p0
.line 64
check-cast p0, Ljava/lang/Throwable;
const-string v1, "toCommunityLabel"
invoke-static {v0, v1, p0}, Lsg/bigo/log/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
return-object v2
.end method