.class public Lcom/igexin/push/core/bean/a;
.super Ljava/lang/Object;


# instance fields
.field public a:Ljava/lang/String;

.field public b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:Ljava/lang/String;

.field public e:Ljava/lang/String;

.field public f:Ljava/lang/String;

.field public g:Ljava/lang/String;

.field public h:Ljava/lang/String;

.field public i:Ljava/lang/String;

.field public j:Ljava/lang/String;

.field public k:Ljava/lang/String;

.field public l:Ljava/lang/String;

.field public m:Ljava/lang/String;

.field public n:J


# direct methods
.method public constructor <init>()V
    .locals 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-string v0, "open"

    iput-object v0, p0, Lcom/igexin/push/core/bean/a;->f:Ljava/lang/String;

    sget-object v0, Lcom/igexin/push/core/g;->e:Ljava/lang/String;

    if-eqz v0, :cond_0

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/igexin/push/core/bean/a;->f:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, ":"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v1, Lcom/igexin/push/core/g;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/igexin/push/core/bean/a;->f:Ljava/lang/String;

    :cond_0
    const-string v0, "2.12.5.2"

    iput-object v0, p0, Lcom/igexin/push/core/bean/a;->e:Ljava/lang/String;

    sget-object v0, Lcom/igexin/push/core/g;->u:Ljava/lang/String;

    iput-object v0, p0, Lcom/igexin/push/core/bean/a;->b:Ljava/lang/String;

    sget-object v0, Lcom/igexin/push/core/g;->t:Ljava/lang/String;

    iput-object v0, p0, Lcom/igexin/push/core/bean/a;->c:Ljava/lang/String;

    sget-object v0, Lcom/igexin/push/core/g;->w:Ljava/lang/String;

    iput-object v0, p0, Lcom/igexin/push/core/bean/a;->d:Ljava/lang/String;

    sget-object v0, Lcom/igexin/push/core/g;->x:Ljava/lang/String;

    iput-object v0, p0, Lcom/igexin/push/core/bean/a;->i:Ljava/lang/String;

    sget-object v0, Lcom/igexin/push/core/g;->v:Ljava/lang/String;

    iput-object v0, p0, Lcom/igexin/push/core/bean/a;->a:Ljava/lang/String;

    const-string v0, "ANDROID"

    iput-object v0, p0, Lcom/igexin/push/core/bean/a;->h:Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "android"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v1, Landroid/os/Build$VERSION;->RELEASE:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/igexin/push/core/bean/a;->j:Ljava/lang/String;

    const-string v0, "MDP"

    iput-object v0, p0, Lcom/igexin/push/core/bean/a;->k:Ljava/lang/String;

    sget-object v0, Lcom/igexin/push/core/g;->y:Ljava/lang/String;

    iput-object v0, p0, Lcom/igexin/push/core/bean/a;->g:Ljava/lang/String;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lcom/igexin/push/core/bean/a;->n:J

    sget-object v0, Lcom/igexin/push/core/g;->z:Ljava/lang/String;

    iput-object v0, p0, Lcom/igexin/push/core/bean/a;->l:Ljava/lang/String;

    sget-object v0, Landroid/os/Build;->BRAND:Ljava/lang/String;

    iput-object v0, p0, Lcom/igexin/push/core/bean/a;->m:Ljava/lang/String;

    return-void
.end method

.method public static a(Lcom/igexin/push/core/bean/a;)Ljava/lang/String;
    .locals 5

    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    const-string v1, "model"

    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->a:Ljava/lang/String;

    if-nez v2, :cond_0

    const-string v2, ""

    goto :goto_0

    :cond_0
    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->a:Ljava/lang/String;

    :goto_0
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "sim"

    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->b:Ljava/lang/String;

    if-nez v2, :cond_1

    const-string v2, ""

    goto :goto_1

    :cond_1
    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->b:Ljava/lang/String;

    :goto_1
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "imei"

    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->c:Ljava/lang/String;

    if-nez v2, :cond_2

    const-string v2, ""

    goto :goto_2

    :cond_2
    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->c:Ljava/lang/String;

    :goto_2
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "mac"

    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->d:Ljava/lang/String;

    if-nez v2, :cond_3

    const-string v2, ""

    goto :goto_3

    :cond_3
    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->d:Ljava/lang/String;

    :goto_3
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "version"

    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->e:Ljava/lang/String;

    if-nez v2, :cond_4

    const-string v2, ""

    goto :goto_4

    :cond_4
    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->e:Ljava/lang/String;

    :goto_4
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "channelid"

    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->f:Ljava/lang/String;

    if-nez v2, :cond_5

    const-string v2, ""

    goto :goto_5

    :cond_5
    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->f:Ljava/lang/String;

    :goto_5
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "type"

    const-string v2, "ANDROID"

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "app"

    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->k:Ljava/lang/String;

    if-nez v2, :cond_6

    const-string v2, ""

    goto :goto_6

    :cond_6
    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->k:Ljava/lang/String;

    :goto_6
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "deviceid"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "ANDROID-"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/igexin/push/core/bean/a;->g:Ljava/lang/String;

    if-nez v3, :cond_7

    const-string v3, ""

    goto :goto_7

    :cond_7
    iget-object v3, p0, Lcom/igexin/push/core/bean/a;->g:Ljava/lang/String;

    :goto_7
    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "device_token"

    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->l:Ljava/lang/String;

    if-nez v2, :cond_8

    const-string v2, ""

    goto :goto_8

    :cond_8
    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->l:Ljava/lang/String;

    :goto_8
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "brand"

    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->m:Ljava/lang/String;

    if-nez v2, :cond_9

    const-string v2, ""

    goto :goto_9

    :cond_9
    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->m:Ljava/lang/String;

    :goto_9
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "system_version"

    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->j:Ljava/lang/String;

    if-nez v2, :cond_a

    const-string v2, ""

    goto :goto_a

    :cond_a
    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->j:Ljava/lang/String;

    :goto_a
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "cell"

    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->i:Ljava/lang/String;

    if-nez v2, :cond_b

    const-string v2, ""

    goto :goto_b

    :cond_b
    iget-object v2, p0, Lcom/igexin/push/core/bean/a;->i:Ljava/lang/String;

    :goto_b
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "aid"

    invoke-static {}, Lcom/igexin/push/util/m;->b()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "adid"

    invoke-static {}, Lcom/igexin/push/util/m;->c()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    invoke-static {}, Lcom/igexin/sdk/GTServiceManager;->getInstance()Lcom/igexin/sdk/GTServiceManager;

    move-result-object v1

    sget-object v2, Lcom/igexin/push/core/g;->f:Landroid/content/Context;

    invoke-virtual {v1, v2}, Lcom/igexin/sdk/GTServiceManager;->getUserPushService(Landroid/content/Context;)Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    sget-object v2, Lcom/igexin/push/core/a;->n:Ljava/lang/String;

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_c

    const-string v2, "us"

    invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    :cond_c
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1}, Lorg/json/JSONObject;-><init>()V

    const-string v2, "action"

    const-string v3, "addphoneinfo"

    invoke-virtual {v1, v2, v3}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v2, "id"

    iget-wide v3, p0, Lcom/igexin/push/core/bean/a;->n:J

    invoke-static {v3, v4}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object p0

    invoke-virtual {v1, v2, p0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string p0, "info"

    invoke-virtual {v1, p0, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    invoke-virtual {v1}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method
