.class public abstract Lcom/intowow/sdk/CrystalExpressStreamAdapter;
.super Landroid/widget/BaseAdapter;
.source "SourceFile"

# interfaces
.implements Landroid/widget/AbsListView$OnScrollListener;
.implements Lcom/intowow/sdk/StreamHelper$StreamHelperListener;


# instance fields
.field protected a:Landroid/content/Context;

.field protected b:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 1

    .line 26
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    const/4 v0, 0x0

    .line 17
    iput-object v0, p0, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->a:Landroid/content/Context;

    .line 18
    iput-object v0, p0, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->b:Ljava/lang/String;

    .line 28
    iput-object p1, p0, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->a:Landroid/content/Context;

    .line 29
    iput-object p2, p0, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->b:Ljava/lang/String;

    return-void
.end method


# virtual methods
.method public clearAddedAd()V
    .locals 1

    .line 231
    invoke-virtual {p0}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->getStreamHelper()Lcom/intowow/sdk/StreamHelper;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 232
    invoke-virtual {p0}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->getStreamHelper()Lcom/intowow/sdk/StreamHelper;

    move-result-object v0

    invoke-virtual {v0}, Lcom/intowow/sdk/StreamHelper;->clearAddedAd()V

    :cond_0
    return-void
.end method

.method public abstract getAD(I)Landroid/view/View;
.end method

.method public abstract getAD(II)Landroid/view/View;
.end method

.method public abstract getAD(IIJ)Landroid/view/View;
.end method

.method public abstract getAD(IJ)Landroid/view/View;
.end method

.method public abstract getAD(IZ)Landroid/view/View;
.end method

.method public abstract getAD(IZJ)Landroid/view/View;
.end method

.method public getAddedPosition()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Ljava/lang/Integer;",
            ">;"
        }
    .end annotation

    .line 214
    invoke-virtual {p0}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->getStreamHelper()Lcom/intowow/sdk/StreamHelper;

    move-result-object v0

    invoke-virtual {v0}, Lcom/intowow/sdk/StreamHelper;->getAddedPosition()Ljava/util/List;

    move-result-object v0

    return-object v0
.end method

.method public getItemViewType(I)I
    .locals 1

    .line 241
    invoke-virtual {p0, p1}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->isAd(I)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 242
    invoke-virtual {p0}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->getStreamHelper()Lcom/intowow/sdk/StreamHelper;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/intowow/sdk/StreamHelper;->getItemViewType(I)I

    move-result p1

    return p1

    .line 244
    :cond_0
    invoke-super {p0, p1}, Landroid/widget/BaseAdapter;->getItemViewType(I)I

    move-result p1

    return p1
.end method

.method public abstract getStreamHelper()Lcom/intowow/sdk/StreamHelper;
.end method

.method public isAd(I)Z
    .locals 1

    .line 194
    invoke-virtual {p0}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->getStreamHelper()Lcom/intowow/sdk/StreamHelper;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/intowow/sdk/StreamHelper;->isAd(I)Z

    move-result p1

    return p1
.end method

.method public isAd(Landroid/view/View;)Z
    .locals 1

    .line 205
    invoke-virtual {p0}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->getStreamHelper()Lcom/intowow/sdk/StreamHelper;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/intowow/sdk/StreamHelper;->isAd(Landroid/view/View;)Z

    move-result p1

    return p1
.end method

.method public onPause()V
    .locals 1

    .line 162
    invoke-virtual {p0}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->getStreamHelper()Lcom/intowow/sdk/StreamHelper;

    move-result-object v0

    invoke-virtual {v0}, Lcom/intowow/sdk/StreamHelper;->onPause()V

    return-void
.end method

.method public onRecreate()V
    .locals 1

    .line 222
    invoke-virtual {p0}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->getStreamHelper()Lcom/intowow/sdk/StreamHelper;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 223
    invoke-virtual {p0}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->getStreamHelper()Lcom/intowow/sdk/StreamHelper;

    move-result-object v0

    invoke-virtual {v0}, Lcom/intowow/sdk/StreamHelper;->onRecreate()V

    :cond_0
    return-void
.end method

.method public onResume()V
    .locals 1

    .line 169
    invoke-virtual {p0}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->getStreamHelper()Lcom/intowow/sdk/StreamHelper;

    move-result-object v0

    invoke-virtual {v0}, Lcom/intowow/sdk/StreamHelper;->onResume()V

    return-void
.end method

.method public onScroll(Landroid/widget/AbsListView;III)V
    .locals 1

    .line 258
    invoke-virtual {p0}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->getStreamHelper()Lcom/intowow/sdk/StreamHelper;

    move-result-object v0

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/intowow/sdk/StreamHelper;->onScroll(Landroid/widget/AbsListView;III)V

    return-void
.end method

.method public onScrollStateChanged(Landroid/widget/AbsListView;I)V
    .locals 1

    .line 266
    invoke-virtual {p0}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->getStreamHelper()Lcom/intowow/sdk/StreamHelper;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Lcom/intowow/sdk/StreamHelper;->onScrollStateChanged(Landroid/widget/AbsListView;I)V

    return-void
.end method

.method public preroll()V
    .locals 0

    return-void
.end method

.method public release()V
    .locals 1

    .line 176
    invoke-virtual {p0}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->getStreamHelper()Lcom/intowow/sdk/StreamHelper;

    move-result-object v0

    invoke-virtual {v0}, Lcom/intowow/sdk/StreamHelper;->release()V

    return-void
.end method

.method public reset()V
    .locals 1

    .line 183
    invoke-virtual {p0}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->getStreamHelper()Lcom/intowow/sdk/StreamHelper;

    move-result-object v0

    invoke-virtual {v0}, Lcom/intowow/sdk/StreamHelper;->reset()V

    return-void
.end method

.method public setActive()V
    .locals 1

    .line 155
    invoke-virtual {p0}, Lcom/intowow/sdk/CrystalExpressStreamAdapter;->getStreamHelper()Lcom/intowow/sdk/StreamHelper;

    move-result-object v0

    invoke-virtual {v0}, Lcom/intowow/sdk/StreamHelper;->setActive()V

    return-void
.end method
