TaskConfig.smali
.class public Lcom/hhsq/cooperativestorelib/main/entity/TaskConfig;
.super Ljava/lang/Object;
.source ""
# instance fields
.field public comStatus:I
.field public currentAdCount:I
.field public currentNewsCount:I
.field public dfPageTypeFlow:Ljava/lang/String;
.field public dfPageTypeVideo:Ljava/lang/String;
.field public endId:I
.field public endStatus:Ljava/lang/String;
.field public endTime:Ljava/lang/String;
.field public numAdvert:I
.field public numNews:I
.field public taskTitle:Ljava/lang/String;
.field public timeMin:F
.field public topDes:Ljava/lang/String;
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static transEntity(Ljava/lang/String;)Lcom/hhsq/cooperativestorelib/main/entity/TaskConfig;
.registers 4
new-instance v1, Lcom/hhsq/cooperativestorelib/main/entity/TaskConfig;
invoke-direct {v1}, Lcom/hhsq/cooperativestorelib/main/entity/TaskConfig;-><init>()V
:try_start_5
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0, p0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
const-string v2, "comStatus"
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
move-result v2
iput v2, v1, Lcom/hhsq/cooperativestorelib/main/entity/TaskConfig;->comStatus:I
const-string/jumbo v2, "timeMin"
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
move-result v2
int-to-float v2, v2
iput v2, v1, Lcom/hhsq/cooperativestorelib/main/entity/TaskConfig;->timeMin:F
const-string v2, "numNews"
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
move-result v2
iput v2, v1, Lcom/hhsq/cooperativestorelib/main/entity/TaskConfig;->numNews:I
const-string v2, "numAdvert"
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
move-result v2
iput v2, v1, Lcom/hhsq/cooperativestorelib/main/entity/TaskConfig;->numAdvert:I
const-string/jumbo v2, "topDes"
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
iput-object v2, v1, Lcom/hhsq/cooperativestorelib/main/entity/TaskConfig;->topDes:Ljava/lang/String;
const-string v2, "endId"
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
move-result v2
iput v2, v1, Lcom/hhsq/cooperativestorelib/main/entity/TaskConfig;->endId:I
const-string v2, "endTime"
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
iput-object v2, v1, Lcom/hhsq/cooperativestorelib/main/entity/TaskConfig;->endTime:Ljava/lang/String;
const-string v2, "endStatus"
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
iput-object v2, v1, Lcom/hhsq/cooperativestorelib/main/entity/TaskConfig;->endStatus:Ljava/lang/String;
const-string v2, "dfPageTypeFlow"
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
iput-object v2, v1, Lcom/hhsq/cooperativestorelib/main/entity/TaskConfig;->dfPageTypeFlow:Ljava/lang/String;
const-string v2, "dfPageTypeVideo"
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
iput-object v2, v1, Lcom/hhsq/cooperativestorelib/main/entity/TaskConfig;->dfPageTypeVideo:Ljava/lang/String;
const-string/jumbo v2, "taskTitle"
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iput-object v0, v1, Lcom/hhsq/cooperativestorelib/main/entity/TaskConfig;->taskTitle:Ljava/lang/String;
:try_end_66
.catch Lorg/json/JSONException; {:try_start_5 .. :try_end_66} :catch_67
:goto_66
return-object v1
:catch_67
move-exception v0
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
goto :goto_66
.end method