.class public Lcom/moji/mjad/statistics/StatReportManager;
.super Ljava/lang/Object;
.source "StatReportManager.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/mjad/statistics/StatReportManager$StatReportManagerHolder;
    }
.end annotation


# direct methods
.method private constructor <init>()V
    .locals 0

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

    return-void
.end method

.method synthetic constructor <init>(Lcom/moji/mjad/statistics/StatReportManager$1;)V
    .locals 0

    .line 23
    invoke-direct {p0}, Lcom/moji/mjad/statistics/StatReportManager;-><init>()V

    return-void
.end method

.method public static a()Lcom/moji/mjad/statistics/StatReportManager;
    .locals 1

    .line 36
    invoke-static {}, Lcom/moji/mjad/statistics/StatReportManager$StatReportManagerHolder;->a()Lcom/moji/mjad/statistics/StatReportManager;

    move-result-object v0

    return-object v0
.end method


# virtual methods
.method public a(Lcom/moji/launchserver/AdCommonInterface$AdRequest$Builder;)V
    .locals 2

    const-string v0, "StatReportManager"

    const-string v1, "reportStat is run"

    .line 45
    invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->b(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz p1, :cond_0

    .line 46
    invoke-virtual {p1}, Lcom/moji/launchserver/AdCommonInterface$AdRequest$Builder;->getPositionCount()I

    move-result v0

    if-lez v0, :cond_0

    .line 48
    invoke-static {}, Lcom/moji/mjad/base/network/socket/AdSocketManager;->a()Lcom/moji/mjad/base/network/socket/AdSocketManager;

    move-result-object v0

    new-instance v1, Lcom/moji/mjad/statistics/StatReportManager$1;

    invoke-direct {v1, p0}, Lcom/moji/mjad/statistics/StatReportManager$1;-><init>(Lcom/moji/mjad/statistics/StatReportManager;)V

    invoke-virtual {v0, p1, v1}, Lcom/moji/mjad/base/network/socket/AdSocketManager;->a(Lcom/moji/launchserver/AdCommonInterface$AdRequest$Builder;Lcom/moji/mjad/base/network/AdRequestCallback;)Ljava/lang/String;

    :cond_0
    return-void
.end method

.method public a(Ljava/lang/String;IZ)V
    .locals 4

    .line 80
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 84
    :cond_0
    invoke-static {}, Lcom/moji/launchserver/AdCommonInterface$AdRequest;->newBuilder()Lcom/moji/launchserver/AdCommonInterface$AdRequest$Builder;

    move-result-object v0

    .line 85
    sget-object v1, Lcom/moji/launchserver/AdCommonInterface$AdType;->OTHERS_TYPE:Lcom/moji/launchserver/AdCommonInterface$AdType;

    invoke-virtual {v0, v1}, Lcom/moji/launchserver/AdCommonInterface$AdRequest$Builder;->setType(Lcom/moji/launchserver/AdCommonInterface$AdType;)Lcom/moji/launchserver/AdCommonInterface$AdRequest$Builder;

    .line 87
    sget-object v1, Lcom/moji/launchserver/AdCommonInterface$AdPosition;->POS_FEED_CLICK:Lcom/moji/launchserver/AdCommonInterface$AdPosition;

    invoke-virtual {v0, v1}, Lcom/moji/launchserver/AdCommonInterface$AdRequest$Builder;->addPosition(Lcom/moji/launchserver/AdCommonInterface$AdPosition;)Lcom/moji/launchserver/AdCommonInterface$AdRequest$Builder;

    .line 89
    invoke-static {}, Lcom/moji/launchserver/AdCommonInterface$FeedClick;->newBuilder()Lcom/moji/launchserver/AdCommonInterface$FeedClick$Builder;

    move-result-object v1

    .line 91
    invoke-static {}, Lcom/moji/launchserver/AdCommonInterface$Action;->newBuilder()Lcom/moji/launchserver/AdCommonInterface$Action$Builder;

    move-result-object v2

    .line 92
    sget-object v3, Lcom/moji/launchserver/AdCommonInterface$ActionType;->content_click:Lcom/moji/launchserver/AdCommonInterface$ActionType;

    invoke-virtual {v2, v3}, Lcom/moji/launchserver/AdCommonInterface$Action$Builder;->setActionType(Lcom/moji/launchserver/AdCommonInterface$ActionType;)Lcom/moji/launchserver/AdCommonInterface$Action$Builder;

    .line 93
    invoke-virtual {v2, p1}, Lcom/moji/launchserver/AdCommonInterface$Action$Builder;->setUrl(Ljava/lang/String;)Lcom/moji/launchserver/AdCommonInterface$Action$Builder;

    if-eqz p3, :cond_1

    .line 96
    sget-object p1, Lcom/moji/launchserver/AdCommonInterface$ContentType;->video:Lcom/moji/launchserver/AdCommonInterface$ContentType;

    invoke-virtual {v2, p1}, Lcom/moji/launchserver/AdCommonInterface$Action$Builder;->setContentType(Lcom/moji/launchserver/AdCommonInterface$ContentType;)Lcom/moji/launchserver/AdCommonInterface$Action$Builder;

    goto :goto_0

    .line 98
    :cond_1
    sget-object p1, Lcom/moji/launchserver/AdCommonInterface$ContentType;->text:Lcom/moji/launchserver/AdCommonInterface$ContentType;

    invoke-virtual {v2, p1}, Lcom/moji/launchserver/AdCommonInterface$Action$Builder;->setContentType(Lcom/moji/launchserver/AdCommonInterface$ContentType;)Lcom/moji/launchserver/AdCommonInterface$Action$Builder;

    .line 101
    :goto_0
    invoke-virtual {v1, p2}, Lcom/moji/launchserver/AdCommonInterface$FeedClick$Builder;->setPositionId(I)Lcom/moji/launchserver/AdCommonInterface$FeedClick$Builder;

    .line 102
    invoke-virtual {v1, v2}, Lcom/moji/launchserver/AdCommonInterface$FeedClick$Builder;->setAction(Lcom/moji/launchserver/AdCommonInterface$Action$Builder;)Lcom/moji/launchserver/AdCommonInterface$FeedClick$Builder;

    .line 103
    invoke-static {}, Lcom/moji/mjad/common/data/AdParamsFactory;->f()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Lcom/moji/launchserver/AdCommonInterface$FeedClick$Builder;->setManufacturer(Ljava/lang/String;)Lcom/moji/launchserver/AdCommonInterface$FeedClick$Builder;

    .line 105
    invoke-virtual {v0, v1}, Lcom/moji/launchserver/AdCommonInterface$AdRequest$Builder;->setFeedClick(Lcom/moji/launchserver/AdCommonInterface$FeedClick$Builder;)Lcom/moji/launchserver/AdCommonInterface$AdRequest$Builder;

    .line 106
    invoke-virtual {p0, v0}, Lcom/moji/mjad/statistics/StatReportManager;->a(Lcom/moji/launchserver/AdCommonInterface$AdRequest$Builder;)V

    return-void
.end method
