package net.micode.myapplication.model;

public class Note {
    private String noteId;
    private String title;
    private String description;
    private String ocrText;
    private String courseId;
    private String chapterId;
    private String filePath;
    private long uploadTime;
    private long updateTime;

    public Note() {
        this.uploadTime = System.currentTimeMillis();
        this.updateTime = this.uploadTime;
    }

    public Note(String noteId, String title, String description, String filePath) {
        this.noteId = noteId;
        this.title = title;
        this.description = description;
        this.filePath = filePath;
        this.uploadTime = System.currentTimeMillis();
        this.updateTime = this.uploadTime;
    }

    public String getNoteId() {
        return noteId;
    }

    public void setNoteId(String noteId) {
        this.noteId = noteId;
    }

    public String getTitle() {
        return title;
    }

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

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getOcrText() {
        return ocrText;
    }

    public void setOcrText(String ocrText) {
        this.ocrText = ocrText;
    }

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public String getChapterId() {
        return chapterId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public long getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(long uploadTime) {
        this.uploadTime = uploadTime;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Note{" +
                "noteId='" + noteId + '\'' +
                ", title='" + title + '\'' +
                ", description='" + description + '\'' +
                ", courseId='" + courseId + '\'' +
                ", chapterId='" + chapterId + '\'' +
                ", uploadTime=" + uploadTime +
                '}';
    }
}