package com.example.schedulerapp; import java.time.LocalDateTime; import java.util.ArrayList; public class Model { 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<>(); 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(123, LocalDateTime.of(2022, 3, 6, 8, 30), LocalDateTime.of(2022, 3, 9, 16, 30))); test.add(new Shift(123, LocalDateTime.of(2022, 3, 10, 14, 0), LocalDateTime.of(2022, 3, 9, 22, 0))); return test; } }