PlayBackBean.java 3.69 KB
package com.cnlive.goldenline.ui.model;

import android.os.Parcel;
import android.os.Parcelable;
import android.support.annotation.NonNull;

import java.io.Serializable;

/**
 * Description:
 * Created on 2017/2/25
 * Author : 萧
 */

public class PlayBackBean implements Serializable, Parcelable {

    private String url;
    /**
     * 1 相声  2 音乐剧  3 评书
     */
    private int videoType;

    /**
     * 1 直播 2 回放
     */
    private int videoTag;

    private String title;

    private String des;

    private int online;

    /**
     * 1 不显示 间隔线
     */
    private int tag;

    private String time;

    public PlayBackBean() {
    }

    public PlayBackBean(String url, int videoType, int videoTag, String title, String des, int online, int tag, String time) {
        this.url = url;
        this.videoType = videoType;
        this.videoTag = videoTag;
        this.title = title;
        this.des = des;
        this.online = online;
        this.tag = tag;
        this.time = time;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getVideoType() {
        return videoType;
    }

    public void setVideoType(int videoType) {
        this.videoType = videoType;
    }

    public int getVideoTag() {
        return videoTag;
    }

    public void setVideoTag(int videoTag) {
        this.videoTag = videoTag;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    public int getOnline() {
        return online;
    }

    public void setOnline(int online) {
        this.online = online;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @NonNull
    @Override
    public String toString() {
        return "PlayBackBean{" +
                "url='" + url + '\'' +
                ", videoType=" + videoType +
                ", videoTag=" + videoTag +
                ", title='" + title + '\'' +
                ", des='" + des + '\'' +
                ", online=" + online +
                ", tag=" + tag +
                ", time='" + time + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(@NonNull Parcel dest, int flags) {
        dest.writeString(this.url);
        dest.writeInt(this.videoType);
        dest.writeInt(this.videoTag);
        dest.writeString(this.title);
        dest.writeString(this.des);
        dest.writeInt(this.online);
        dest.writeInt(this.tag);
        dest.writeString(this.time);
    }

    protected PlayBackBean(@NonNull Parcel in) {
        this.url = in.readString();
        this.videoType = in.readInt();
        this.videoTag = in.readInt();
        this.title = in.readString();
        this.des = in.readString();
        this.online = in.readInt();
        this.tag = in.readInt();
        this.time = in.readString();
    }

    public static final Parcelable.Creator<PlayBackBean> CREATOR = new Parcelable.Creator<PlayBackBean>() {
        @NonNull
        @Override
        public PlayBackBean createFromParcel(@NonNull Parcel source) {
            return new PlayBackBean(source);
        }

        @NonNull
        @Override
        public PlayBackBean[] newArray(int size) {
            return new PlayBackBean[size];
        }
    };
}