// Path: app/src/main/java/org/pquery/dao/Schedule.java
// public class Schedule {
//     private final String href;
//     private final Integer day;
//     private final boolean enabled;
// 
//     public Schedule(String href, Integer day, boolean enabled) {
//         this.href = href;
//         this.day = day;
//         this.enabled = enabled;
//     }
// 
//     public String getHref() {
//         return href;
//     }
// 
//     public Integer getDay() {
//         return day;
//     }
// 
//     public boolean isEnabled() {
//         return enabled;
//     }
// 
// }


import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import org.pquery.R;
import org.pquery.dao.Schedule;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
package org.pquery.fragments;




/**
 * Dialog with a list of weekdays to change the scheduling of a PQ
 */
public class SchedulePQFragment extends DialogFragment {

    private List<String> mSelectedItems = new ArrayList<String>();
    private boolean[] selectedWeekdays;
    private Map<Integer, Schedule> schedules;
    private PQListFragment.PQClickedListener listener;

    public void setSchedules(Map<Integer, Schedule> schedules) {
        this.schedules = schedules;
        selectedWeekdays = new boolean[schedules.size()];
// Path: app/src/main/java/org/pquery/dao/Schedule.java
// public class Schedule {
//     private final String href;
//     private final Integer day;
//     private final boolean enabled;
// 
//     public Schedule(String href, Integer day, boolean enabled) {
//         this.href = href;
//         this.day = day;
//         this.enabled = enabled;
//     }
// 
//     public String getHref() {
//         return href;
//     }
// 
//     public Integer getDay() {
//         return day;
//     }
// 
//     public boolean isEnabled() {
//         return enabled;
//     }
// 
// }


// Path: app/src/main/java/org/pquery/fragments/SchedulePQFragment.java
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.DialogFragment;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import org.pquery.R;
import org.pquery.dao.Schedule;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

package org.pquery.fragments;




/**
 * Dialog with a list of weekdays to change the scheduling of a PQ
 */
public class SchedulePQFragment extends DialogFragment {

    private List<String> mSelectedItems = new ArrayList<String>();
    private boolean[] selectedWeekdays;
    private Map<Integer, Schedule> schedules;
    private PQListFragment.PQClickedListener listener;

    public void setSchedules(Map<Integer, Schedule> schedules) {
        this.schedules = schedules;
        selectedWeekdays = new boolean[schedules.size()];
        for (Schedule schedule : schedules.values()) {