.class public Lcom/moji/mjad/base/data/AdVideoPlayerParam;
.super Ljava/lang/Object;
.source "AdVideoPlayerParam.java"

# interfaces
.implements Landroid/os/Parcelable;


# static fields
.field public static final CREATOR:Landroid/os/Parcelable$Creator;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/os/Parcelable$Creator<",
            "Lcom/moji/mjad/base/data/AdVideoPlayerParam;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field public autoRotate:Z

.field public clickParams:Ljava/lang/String;

.field public clickStaticsUrl:Ljava/lang/String;

.field public coverImageInfo:Lcom/moji/mjad/base/data/AdImageInfo;

.field public isAutoPlay:I

.field public isCyclePlay:Z

.field public lastStartShowTime:J

.field public lastStateChanged:I

.field public playValidTime:I

.field public showParams:Ljava/lang/String;

.field public showStaticsUrl:Ljava/lang/String;

.field public skipType:Lcom/moji/mjad/enumdata/MojiAdSkipType;

.field public toDetailUrl:Ljava/lang/String;

.field public videoDesc:Ljava/lang/String;

.field public videoLength:J

.field public videoLocalPath:Ljava/lang/String;

.field public videoUrl:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 124
    new-instance v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam$1;

    invoke-direct {v0}, Lcom/moji/mjad/base/data/AdVideoPlayerParam$1;-><init>()V

    sput-object v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->CREATOR:Landroid/os/Parcelable$Creator;

    return-void
.end method

.method public constructor <init>()V
    .locals 2

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

    const-wide/16 v0, 0x0

    .line 16
    iput-wide v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->lastStartShowTime:J

    const/4 v0, 0x0

    .line 17
    iput v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->lastStateChanged:I

    .line 26
    iput-boolean v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->autoRotate:Z

    .line 33
    iput-boolean v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->isCyclePlay:Z

    return-void
.end method

.method protected constructor <init>(Landroid/os/Parcel;)V
    .locals 3

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

    const-wide/16 v0, 0x0

    .line 16
    iput-wide v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->lastStartShowTime:J

    const/4 v0, 0x0

    .line 17
    iput v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->lastStateChanged:I

    .line 26
    iput-boolean v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->autoRotate:Z

    .line 33
    iput-boolean v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->isCyclePlay:Z

    .line 104
    invoke-virtual {p1}, Landroid/os/Parcel;->readLong()J

    move-result-wide v1

    iput-wide v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->lastStartShowTime:J

    .line 105
    invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I

    move-result v1

    iput v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->lastStateChanged:I

    .line 106
    invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I

    move-result v1

    iput v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->playValidTime:I

    .line 107
    invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I

    move-result v1

    iput v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->isAutoPlay:I

    .line 108
    invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->videoUrl:Ljava/lang/String;

    .line 109
    invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->videoLocalPath:Ljava/lang/String;

    .line 110
    invoke-virtual {p1}, Landroid/os/Parcel;->readSerializable()Ljava/io/Serializable;

    move-result-object v1

    check-cast v1, Lcom/moji/mjad/base/data/AdImageInfo;

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->coverImageInfo:Lcom/moji/mjad/base/data/AdImageInfo;

    .line 111
    invoke-virtual {p1}, Landroid/os/Parcel;->readLong()J

    move-result-wide v1

    iput-wide v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->videoLength:J

    .line 112
    invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->videoDesc:Ljava/lang/String;

    .line 113
    invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->toDetailUrl:Ljava/lang/String;

    .line 114
    invoke-virtual {p1}, Landroid/os/Parcel;->readInt()I

    move-result v1

    const/4 v2, -0x1

    if-ne v1, v2, :cond_0

    const/4 v1, 0x0

    goto :goto_0

    .line 115
    :cond_0
    invoke-static {}, Lcom/moji/mjad/enumdata/MojiAdSkipType;->values()[Lcom/moji/mjad/enumdata/MojiAdSkipType;

    move-result-object v2

    aget-object v1, v2, v1

    :goto_0
    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->skipType:Lcom/moji/mjad/enumdata/MojiAdSkipType;

    .line 116
    invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->showParams:Ljava/lang/String;

    .line 117
    invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->clickParams:Ljava/lang/String;

    .line 118
    invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->showStaticsUrl:Ljava/lang/String;

    .line 119
    invoke-virtual {p1}, Landroid/os/Parcel;->readString()Ljava/lang/String;

    move-result-object v1

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->clickStaticsUrl:Ljava/lang/String;

    .line 120
    invoke-virtual {p1}, Landroid/os/Parcel;->readByte()B

    move-result v1

    const/4 v2, 0x1

    if-eqz v1, :cond_1

    const/4 v1, 0x1

    goto :goto_1

    :cond_1
    const/4 v1, 0x0

    :goto_1
    iput-boolean v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->isCyclePlay:Z

    .line 121
    invoke-virtual {p1}, Landroid/os/Parcel;->readByte()B

    move-result p1

    if-eqz p1, :cond_2

    const/4 v0, 0x1

    :cond_2
    iput-boolean v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->autoRotate:Z

    return-void
.end method

.method public constructor <init>(Lcom/moji/mjad/avatar/data/AvatarCard;)V
    .locals 3

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

    const-wide/16 v0, 0x0

    .line 16
    iput-wide v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->lastStartShowTime:J

    const/4 v0, 0x0

    .line 17
    iput v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->lastStateChanged:I

    .line 26
    iput-boolean v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->autoRotate:Z

    .line 33
    iput-boolean v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->isCyclePlay:Z

    if-nez p1, :cond_0

    return-void

    .line 66
    :cond_0
    new-instance v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;

    invoke-direct {v0}, Lcom/moji/mjad/base/data/AdVideoPlayerParam;-><init>()V

    .line 67
    iget-object v1, p1, Lcom/moji/mjad/avatar/data/AvatarCard;->videoUrl:Lcom/moji/mjad/base/data/AdImageInfo;

    iget-object v1, v1, Lcom/moji/mjad/base/data/AdImageInfo;->imageUrl:Ljava/lang/String;

    iput-object v1, v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->videoUrl:Ljava/lang/String;

    .line 68
    iget-object v1, p1, Lcom/moji/mjad/avatar/data/AvatarCard;->videoUrl:Lcom/moji/mjad/base/data/AdImageInfo;

    if-eqz v1, :cond_1

    .line 69
    iget-object v1, p1, Lcom/moji/mjad/avatar/data/AvatarCard;->videoCover:Lcom/moji/mjad/base/data/AdImageInfo;

    iput-object v1, v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->coverImageInfo:Lcom/moji/mjad/base/data/AdImageInfo;

    .line 71
    :cond_1
    iget v1, p1, Lcom/moji/mjad/avatar/data/AvatarCard;->isAutoPlay:I

    iput v1, v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->isAutoPlay:I

    .line 72
    iget v1, p1, Lcom/moji/mjad/avatar/data/AvatarCard;->playValidTime:I

    iput v1, v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->playValidTime:I

    .line 73
    iget p1, p1, Lcom/moji/mjad/avatar/data/AvatarCard;->duration:I

    int-to-long v1, p1

    iput-wide v1, v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->videoLength:J

    const/4 p1, 0x1

    .line 74
    iput-boolean p1, v0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->isCyclePlay:Z

    return-void
.end method

.method public constructor <init>(Lcom/moji/mjad/base/data/AdCardNativeInfo;)V
    .locals 3

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

    const-wide/16 v0, 0x0

    .line 16
    iput-wide v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->lastStartShowTime:J

    const/4 v0, 0x0

    .line 17
    iput v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->lastStateChanged:I

    .line 26
    iput-boolean v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->autoRotate:Z

    .line 33
    iput-boolean v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->isCyclePlay:Z

    if-eqz p1, :cond_2

    .line 43
    iget-boolean v1, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->isAutoPlay:Z

    iput v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->isAutoPlay:I

    .line 44
    iget-object v1, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->video_url:Lcom/moji/mjad/base/data/AdImageInfo;

    if-eqz v1, :cond_0

    iget-object v1, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->video_url:Lcom/moji/mjad/base/data/AdImageInfo;

    iget-object v1, v1, Lcom/moji/mjad/base/data/AdImageInfo;->imageUrl:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 45
    iget-object v1, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->video_url:Lcom/moji/mjad/base/data/AdImageInfo;

    iget-object v1, v1, Lcom/moji/mjad/base/data/AdImageInfo;->imageUrl:Ljava/lang/String;

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->videoUrl:Ljava/lang/String;

    .line 47
    :cond_0
    iget-object v1, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->videoFilePath:Ljava/lang/String;

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->videoLocalPath:Ljava/lang/String;

    .line 48
    iget-object v1, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->info:Lcom/moji/mjad/base/data/AdImageInfo;

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->coverImageInfo:Lcom/moji/mjad/base/data/AdImageInfo;

    .line 49
    iget-wide v1, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->duration:J

    iput-wide v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->videoLength:J

    .line 50
    iget-object v1, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->clickUrl:Ljava/lang/String;

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->toDetailUrl:Ljava/lang/String;

    .line 51
    iget-object v1, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->skipType:Lcom/moji/mjad/enumdata/MojiAdSkipType;

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->skipType:Lcom/moji/mjad/enumdata/MojiAdSkipType;

    .line 52
    iget-object v1, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->showParams:Ljava/lang/String;

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->showParams:Ljava/lang/String;

    .line 53
    iget-object v1, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->clickParams:Ljava/lang/String;

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->clickParams:Ljava/lang/String;

    .line 54
    iget-object v1, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->showStaticsUrl:Ljava/lang/String;

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->showStaticsUrl:Ljava/lang/String;

    .line 55
    iget-object v1, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->clickStaticsUrl:Ljava/lang/String;

    iput-object v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->clickStaticsUrl:Ljava/lang/String;

    const/4 v1, 0x1

    .line 56
    iput v1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->isAutoPlay:I

    .line 57
    iget-object v1, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->adVideoExtendInfo:Lcom/moji/mjad/common/data/AdVideoExtendInfo;

    if-eqz v1, :cond_1

    iget-object v0, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->adVideoExtendInfo:Lcom/moji/mjad/common/data/AdVideoExtendInfo;

    iget-boolean v0, v0, Lcom/moji/mjad/common/data/AdVideoExtendInfo;->isRepeat:Z

    :cond_1
    iput-boolean v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->isCyclePlay:Z

    .line 58
    iget-boolean p1, p1, Lcom/moji/mjad/base/data/AdCardNativeInfo;->autoRotate:Z

    iput-boolean p1, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->autoRotate:Z

    :cond_2
    return-void
.end method


# virtual methods
.method public describeContents()I
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public writeToParcel(Landroid/os/Parcel;I)V
    .locals 2

    .line 84
    iget-wide v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->lastStartShowTime:J

    invoke-virtual {p1, v0, v1}, Landroid/os/Parcel;->writeLong(J)V

    .line 85
    iget p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->lastStateChanged:I

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V

    .line 86
    iget p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->playValidTime:I

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V

    .line 87
    iget p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->isAutoPlay:I

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V

    .line 88
    iget-object p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->videoUrl:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    .line 89
    iget-object p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->videoLocalPath:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    .line 90
    iget-object p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->coverImageInfo:Lcom/moji/mjad/base/data/AdImageInfo;

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeSerializable(Ljava/io/Serializable;)V

    .line 91
    iget-wide v0, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->videoLength:J

    invoke-virtual {p1, v0, v1}, Landroid/os/Parcel;->writeLong(J)V

    .line 92
    iget-object p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->videoDesc:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    .line 93
    iget-object p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->toDetailUrl:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    .line 94
    iget-object p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->skipType:Lcom/moji/mjad/enumdata/MojiAdSkipType;

    if-nez p2, :cond_0

    const/4 p2, -0x1

    goto :goto_0

    :cond_0
    iget-object p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->skipType:Lcom/moji/mjad/enumdata/MojiAdSkipType;

    invoke-virtual {p2}, Lcom/moji/mjad/enumdata/MojiAdSkipType;->ordinal()I

    move-result p2

    :goto_0
    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeInt(I)V

    .line 95
    iget-object p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->showParams:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    .line 96
    iget-object p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->clickParams:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    .line 97
    iget-object p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->showStaticsUrl:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    .line 98
    iget-object p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->clickStaticsUrl:Ljava/lang/String;

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V

    .line 99
    iget-boolean p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->isCyclePlay:Z

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeByte(B)V

    .line 100
    iget-boolean p2, p0, Lcom/moji/mjad/base/data/AdVideoPlayerParam;->autoRotate:Z

    invoke-virtual {p1, p2}, Landroid/os/Parcel;->writeByte(B)V

    return-void
.end method
