UserProfile$TabInfo.smali
.class public Lcom/kwad/sdk/contentalliance/profile/home/model/UserProfile$TabInfo;
.super Ljava/lang/Object;
# interfaces
.implements Lcom/kwad/sdk/core/b;
.implements Ljava/io/Serializable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/kwad/sdk/contentalliance/profile/home/model/UserProfile;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "TabInfo"
.end annotation
# static fields
.field private static final serialVersionUID:J = -0x37b4880985deefd6L
# instance fields
.field public tabId:J
.field public tabName:Ljava/lang/String;
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public parseJson(Lorg/json/JSONObject;)V
.registers 4
.param p1 # Lorg/json/JSONObject;
.annotation build Landroid/support/annotation/Nullable;
.end annotation
.end param
if-nez p1, :cond_3
:goto_2
return-void
:cond_3
const-string v0, "tabId"
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;)J
move-result-wide v0
iput-wide v0, p0, Lcom/kwad/sdk/contentalliance/profile/home/model/UserProfile$TabInfo;->tabId:J
const-string v0, "tabName"
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/kwad/sdk/contentalliance/profile/home/model/UserProfile$TabInfo;->tabName:Ljava/lang/String;
goto :goto_2
.end method
.method public toJson()Lorg/json/JSONObject;
.registers 5
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
const-string v1, "tabId"
iget-wide v2, p0, Lcom/kwad/sdk/contentalliance/profile/home/model/UserProfile$TabInfo;->tabId:J
invoke-static {v0, v1, v2, v3}, Lcom/kwad/sdk/c/i;->a(Lorg/json/JSONObject;Ljava/lang/String;J)V
const-string v1, "tabName"
iget-object v2, p0, Lcom/kwad/sdk/contentalliance/profile/home/model/UserProfile$TabInfo;->tabName:Ljava/lang/String;
invoke-static {v0, v1, v2}, Lcom/kwad/sdk/c/i;->a(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/String;)V
return-object v0
.end method