package godau.fynn.dsbdirect.table.reader;

import godau.fynn.dsbdirect.table.Entry;

import javax.annotation.Nullable;
import java.util.ArrayList;

public class Dummy extends Reader {
    public Dummy() {
        super(null);
    }

    @Override
    public ArrayList<Entry> read() {

        ArrayList<Entry> entries = new ArrayList<>();

        // For issue #33 https://notabug.org/fynngodau/DSBDirect/issues/33
        entries.add(new Entry("10a · D", "3", null, "E47 · statt Mi", null));
        entries.add(new Entry("10a · D", "4", null, "E47 · statt Mi", null));
        entries.add(new Entry("10b · F 2. FS", "5", null, "U5 · Raumänderung", null));
        entries.add(new Entry("10b · F 2. FS", "6", null, "U5 · Raumänderung", null));
        entries.add(new Entry("10c", "5", null, "--- · fällt aus", null));
        entries.add(new Entry("10d · M", "3", null, "E44 · statt Mi", null));

        return entries;
    }

    @Nullable
    @Override
    public String getSchoolName() {
        String[] names = {"Baumschule", "Dummydatengymnasium", "Max-Mustermann-Realschule"};

        int rand = (int) (Math.random() * names.length); // Cut off decimals

        return names[rand];
    }
}
