UserProfile$OwnerCount.smali

.class public Lcom/kwad/sdk/contentalliance/profile/home/model/UserProfile$OwnerCount;
.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 = "OwnerCount"
.end annotation


# static fields
.field private static final serialVersionUID:J = 0x5f133ff9b91168dfL


# instance fields
.field public fansCount:J

.field public followCount:J


# 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, "fansCount"

    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$OwnerCount;->fansCount:J

    const-string v0, "followCount"

    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$OwnerCount;->followCount:J

    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, "fansCount"

    iget-wide v2, p0, Lcom/kwad/sdk/contentalliance/profile/home/model/UserProfile$OwnerCount;->fansCount:J

    invoke-static {v0, v1, v2, v3}, Lcom/kwad/sdk/c/i;->a(Lorg/json/JSONObject;Ljava/lang/String;J)V

    const-string v1, "followCount"

    iget-wide v2, p0, Lcom/kwad/sdk/contentalliance/profile/home/model/UserProfile$OwnerCount;->followCount:J

    invoke-static {v0, v1, v2, v3}, Lcom/kwad/sdk/c/i;->a(Lorg/json/JSONObject;Ljava/lang/String;J)V

    return-object v0
.end method