AdConfig$Ad.smali
.class public Lcom/hhsq/cooperativestorelib/main/AdConfig$Ad;
.super Ljava/lang/Object;
.source ""
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/hhsq/cooperativestorelib/main/AdConfig;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Ad"
.end annotation
# instance fields
.field public appTypeId:Ljava/lang/String;
.field public configFlow:Lcom/hhsq/cooperativestorelib/main/AdConfig$AdParam;
.field public configVideo:Lcom/hhsq/cooperativestorelib/main/AdConfig$AdParam;
.field public mediaId:Ljava/lang/String;
.field public typePlatform: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 transAd(Lorg/json/JSONObject;)Lcom/hhsq/cooperativestorelib/main/AdConfig$Ad;
.registers 3
new-instance v0, Lcom/hhsq/cooperativestorelib/main/AdConfig$Ad;
invoke-direct {v0}, Lcom/hhsq/cooperativestorelib/main/AdConfig$Ad;-><init>()V
const-string v1, "typePlatform"
invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
iput-object v1, v0, Lcom/hhsq/cooperativestorelib/main/AdConfig$Ad;->typePlatform:Ljava/lang/String;
const-string v1, "mediaId"
invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
iput-object v1, v0, Lcom/hhsq/cooperativestorelib/main/AdConfig$Ad;->mediaId:Ljava/lang/String;
const-string v1, "appTypeId"
invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
iput-object v1, v0, Lcom/hhsq/cooperativestorelib/main/AdConfig$Ad;->appTypeId:Ljava/lang/String;
const-string v1, "configVideo"
invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
move-result-object v1
invoke-static {v1}, Lcom/hhsq/cooperativestorelib/main/AdConfig$AdParam;->transEntity(Lorg/json/JSONObject;)Lcom/hhsq/cooperativestorelib/main/AdConfig$AdParam;
move-result-object v1
iput-object v1, v0, Lcom/hhsq/cooperativestorelib/main/AdConfig$Ad;->configVideo:Lcom/hhsq/cooperativestorelib/main/AdConfig$AdParam;
const-string v1, "configFlow"
invoke-virtual {p0, v1}, Lorg/json/JSONObject;->optJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
move-result-object v1
invoke-static {v1}, Lcom/hhsq/cooperativestorelib/main/AdConfig$AdParam;->transEntity(Lorg/json/JSONObject;)Lcom/hhsq/cooperativestorelib/main/AdConfig$AdParam;
move-result-object v1
iput-object v1, v0, Lcom/hhsq/cooperativestorelib/main/AdConfig$Ad;->configFlow:Lcom/hhsq/cooperativestorelib/main/AdConfig$AdParam;
return-object v0
.end method