package com.ssj.service.conch.student.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class HomeworkTaskDto implements Serializable {
    private static final long serialVersionUID = 1L;

    private int isToday = 0;

    private String date;

    private String week;

    private List<HomeworkSubjectDto> subjectList;

    public HomeworkTaskDto () {
        this.subjectList = new ArrayList<>();
    }

    public int getIsToday() {
        return isToday;
    }

    public void setIsToday(int isToday) {
        this.isToday = isToday;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getWeek() {
        return week;
    }

    public void setWeek(String week) {
        this.week = week;
    }

    public List<HomeworkSubjectDto> getSubjectList() {
        return subjectList;
    }

    public void setSubjectList(List<HomeworkSubjectDto> subjectList) {
        this.subjectList = subjectList;
    }

    public void addSubject (HomeworkSubjectDto subject){
        this.subjectList.add(subject);
    }
}
