.class public Lcom/intowow/sdk/ContentADHelper;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Landroid/support/v4/view/ViewPager$OnPageChangeListener;


# instance fields
.field private a:Lcom/in2wow/sdk/b;


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

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

    const/4 v0, 0x0

    .line 12
    iput-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    .line 23
    new-instance v0, Lcom/in2wow/sdk/b;

    invoke-direct {v0, p1, p2}, Lcom/in2wow/sdk/b;-><init>(Landroid/app/Activity;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    return-void
.end method


# virtual methods
.method public declared-synchronized destroy()V
    .locals 1

    monitor-enter p0

    .line 30
    :try_start_0
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    if-eqz v0, :cond_0

    .line 31
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    invoke-virtual {v0}, Lcom/in2wow/sdk/b;->a()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 33
    :cond_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    .line 29
    monitor-exit p0

    throw v0
.end method

.method public onPageScrollStateChanged(I)V
    .locals 1

    .line 115
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    if-eqz v0, :cond_0

    .line 116
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    invoke-virtual {v0, p1}, Lcom/in2wow/sdk/b;->onPageScrollStateChanged(I)V

    :cond_0
    return-void
.end method

.method public onPageScrolled(IFI)V
    .locals 1

    .line 125
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    if-eqz v0, :cond_0

    .line 126
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    invoke-virtual {v0, p1, p2, p3}, Lcom/in2wow/sdk/b;->onPageScrolled(IFI)V

    :cond_0
    return-void
.end method

.method public onPageSelected(I)V
    .locals 1

    .line 135
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    if-eqz v0, :cond_0

    .line 136
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    invoke-virtual {v0, p1}, Lcom/in2wow/sdk/b;->onPageSelected(I)V

    :cond_0
    return-void
.end method

.method public declared-synchronized requestAD(I)Landroid/view/View;
    .locals 1

    monitor-enter p0

    .line 52
    :try_start_0
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    if-eqz v0, :cond_0

    .line 53
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    invoke-virtual {v0, p1}, Lcom/in2wow/sdk/b;->a(I)Landroid/view/View;

    move-result-object p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object p1

    :cond_0
    const/4 p1, 0x0

    .line 56
    monitor-exit p0

    return-object p1

    :catchall_0
    move-exception p1

    .line 51
    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized requestAD(IIZ)Landroid/view/View;
    .locals 1

    monitor-enter p0

    .line 85
    :try_start_0
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    if-eqz v0, :cond_0

    .line 86
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    invoke-virtual {v0, p1, p2, p3}, Lcom/in2wow/sdk/b;->a(IIZ)Landroid/view/View;

    move-result-object p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object p1

    :cond_0
    const/4 p1, 0x0

    .line 89
    monitor-exit p0

    return-object p1

    :catchall_0
    move-exception p1

    .line 84
    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized requestAD(IZ)Landroid/view/View;
    .locals 1

    monitor-enter p0

    .line 68
    :try_start_0
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    if-eqz v0, :cond_0

    .line 69
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    invoke-virtual {v0, p1, p2}, Lcom/in2wow/sdk/b;->a(IZ)Landroid/view/View;

    move-result-object p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return-object p1

    :cond_0
    const/4 p1, 0x0

    .line 72
    monitor-exit p0

    return-object p1

    :catchall_0
    move-exception p1

    .line 67
    monitor-exit p0

    throw p1
.end method

.method public setActive()V
    .locals 1

    .line 39
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    if-eqz v0, :cond_0

    .line 40
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    invoke-virtual {v0}, Lcom/in2wow/sdk/b;->b()V

    :cond_0
    return-void
.end method

.method public start()V
    .locals 1

    .line 96
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    if-eqz v0, :cond_0

    .line 97
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    invoke-virtual {v0}, Lcom/in2wow/sdk/b;->c()V

    :cond_0
    return-void
.end method

.method public stop()V
    .locals 1

    .line 105
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    if-eqz v0, :cond_0

    .line 106
    iget-object v0, p0, Lcom/intowow/sdk/ContentADHelper;->a:Lcom/in2wow/sdk/b;

    invoke-virtual {v0}, Lcom/in2wow/sdk/b;->d()V

    :cond_0
    return-void
.end method
