Skip to content
Snippets Groups Projects
Model.java 884 B
Newer Older
eyan_'s avatar
eyan_ committed
package com.example.schedulerapp;

ArktikHunter's avatar
ArktikHunter committed
import java.time.LocalDateTime;
import java.util.ArrayList;

eyan_'s avatar
eyan_ committed
public class Model {
ArktikHunter's avatar
ArktikHunter committed
    Schedule schedule;

    public Model(){
    }

    public ArrayList<Shift> getDailySchedule(){
        //sorted alphabetically
        //return new ArrayList<>();

        //test data
        ArrayList<Shift> test = new ArrayList<>();
        test.add(new Shift(123, LocalDateTime.of(2022, 3, 9, 8, 0),
                LocalDateTime.of(2022, 3, 9, 14, 0)));
        test.add(new Shift(456, LocalDateTime.of(2022, 3, 9, 8, 30),
                LocalDateTime.of(2022, 3, 9, 16, 30)));
        test.add(new Shift(789, LocalDateTime.of(2022, 3, 9, 14, 0),
                LocalDateTime.of(2022, 3, 9, 22, 0)));
        return test;
    }

    public ArrayList<Shift> getWeeklySchedule(){
        //doesn't need to be sorted
        return new ArrayList<>();
    }

eyan_'s avatar
eyan_ committed
}