package com.gaoyuan.weixinrecord.example;

/**
 * 作者：wgyscsf on 2017/1/2 18:44
 * 邮箱：wgyscsf@163.com
 * 博客：http://blog.csdn.net/wgyscsf
 */
public class Record {
    private String path;
    private int second;
    private boolean isPlayed = false;//是否已经播放过
    private boolean isPlaying = false;//是否正在播放
    private String createTime;
    private String filenote;

    public Record(){

    }

    public Record(String path, int audioLength){
        this.path = path;
        this.second = audioLength <= 0 ? 1 : audioLength;
    }

    public Record(String path, int audioLength, String createTime){
        this.path = path;
        this.second = audioLength <= 0 ? 1 : audioLength;
        this.createTime = createTime;
    }

    public boolean isPlaying() {
        return isPlaying;
    }

    public void setPlaying(boolean playing) {
        isPlaying = playing;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public int getSecond() {
        return second;
    }

    public void setSecond(int second) {
        this.second = second;
    }

    public boolean isPlayed() {
        return isPlayed;
    }

    public void setPlayed(boolean played) {
        isPlayed = played;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getFilenote() {
        return filenote;
    }

    public void setFilenote(String filenote) {
        this.filenote = filenote;
    }

    @Override
    public String toString() {
        return "Record{" +
                "path='" + path + '\'' +
                ", second=" + second +
                ", isPlayed=" + isPlayed +
                ", createTime=" + createTime +
                ", fileNote=" + filenote +
                '}';
    }
}
