package com.example.myapplication.domain;

public class Note {
    private long id;
    private String uploaderId;
    private long courseId;
    private String content;
    private int downloadCount;
    private int likeCount;
    private String created;
    private String title;
    private String filePath;
    private Integer publisherGrade; // 发布者年级
    private String publisherMajor;  // 发布者专业
    
    // 额外字段用于 NoteUploadActivity
    private String description; // 描述
    private String ocrText; // OCR识别文本
    private long uploadTime; // 上传时间
    private long updateTime; // 更新时间
    private long chapterId; // 章节ID

    public Note() {}

    public Note(long id, String uploaderId, long courseId, String content,
                int downloadCount, int likeCount, String created, String title, String filePath,
                Integer publisherGrade, String publisherMajor) {
        this.id = id;
        this.uploaderId = uploaderId;
        this.courseId = courseId;
        this.content = content;
        this.downloadCount = downloadCount;
        this.likeCount = likeCount;
        this.created = created;
        this.title = title;
        this.filePath = filePath;
        this.publisherGrade = publisherGrade;
        this.publisherMajor = publisherMajor;
    }

    public int getLikeCount() { return likeCount; }
    public void setLikeCount(int likeCount) { this.likeCount = likeCount; }

    public long getId() { return id; }
    public void setId(long id) { this.id = id; }
    public String getUploaderId() { return uploaderId; }
    public void setUploaderId(String uploaderId) { this.uploaderId = uploaderId; }
    public long getCourseId() { return courseId; }
    public void setCourseId(long courseId) { this.courseId = courseId; }
    public String getContent() { return content; }
    public void setContent(String content) { this.content = content; }
    public int getDownloadCount() { return downloadCount; }
    public void setDownloadCount(int downloadCount) { this.downloadCount = downloadCount; }
    public String getCreated() { return created; }
    public void setCreated(String created) { this.created = created; }
    public String getTitle() { return title; }
    public void setTitle(String title) { this.title = title; }
    public String getFilePath() { return filePath; }
    public void setFilePath(String filePath) { this.filePath = filePath; }
    public Integer getPublisherGrade() { return publisherGrade; }
    public void setPublisherGrade(Integer publisherGrade) { this.publisherGrade = publisherGrade; }
    public String getPublisherMajor() { return publisherMajor; }
    public void setPublisherMajor(String publisherMajor) { this.publisherMajor = publisherMajor; }
    
    // 新增方法用于 NoteUploadActivity
    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 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; }
    public long getChapterId() { return chapterId; }
    public void setChapterId(long chapterId) { this.chapterId = chapterId; }
}