// Path: NotificationAnalyser/app/src/main/java/com/tierep/notificationanalyser/NotificationAppView.java
// public class NotificationAppView {
//     public String AppName;
//     public Integer Notifications;
//     public Integer MaxNotifications;
// 
//     public NotificationAppView() {
//         this.AppName = "";
//         this.Notifications = 0;
//         this.MaxNotifications = 0;
//     }
// 
//     /**
//      *
//      * @param appName The name of the app.
//      * @param notifications The number of notifications from the app.
//      * @param maxNotifications The maximum number of notifications from any app.
//      */
//     public NotificationAppView(String appName, Integer notifications, Integer maxNotifications) {
//         this.AppName = appName;
//         this.Notifications = notifications;
//         this.MaxNotifications = maxNotifications;
//     }
// }
// 
// Path: NotificationAnalyser/app/src/main/java/com/tierep/notificationanalyser/NotificationDateView.java
// public class NotificationDateView {
//     public Date Date;
//     public Integer Notifications;
// 
//     public NotificationDateView() {
//         this.Date = null;
//         this.Notifications = 0;
//     }
// 
//     public NotificationDateView(Date date, Integer notifications) {
//         this.Date = date;
//         this.Notifications = notifications;
//     }
// }


import android.content.Intent;
import android.util.Log;
import com.tierep.notificationanalyser.NotificationAppView;
import com.tierep.notificationanalyser.NotificationDateView;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
package com.tierep.notificationanalyser.ui;




/**
 * Created by pieter on 25/10/14.
 */
public class HistoryWeeklyFragment extends HistoryFragment {
    protected SimpleDateFormat dateFormat = new SimpleDateFormat("w");

    @Override
    protected void startAppDetailActivity(String appName, Date date) {
        Intent intent = new Intent(getActivity(), AppDetail.class);
        intent.putExtra(AppDetail.EXTRA_PACKAGENAME, appName);
        intent.putExtra(AppDetail.EXTRA_INTERVALTYPE, AppDetail.FLAG_VIEW_WEEKLY);
        intent.putExtra(AppDetail.EXTRA_DATESTRING, new SimpleDateFormat("yyyy-MM-dd").format(date));
        startActivity(intent);
    }

    @Override
// Path: NotificationAnalyser/app/src/main/java/com/tierep/notificationanalyser/NotificationAppView.java
// public class NotificationAppView {
//     public String AppName;
//     public Integer Notifications;
//     public Integer MaxNotifications;
// 
//     public NotificationAppView() {
//         this.AppName = "";
//         this.Notifications = 0;
//         this.MaxNotifications = 0;
//     }
// 
//     /**
//      *
//      * @param appName The name of the app.
//      * @param notifications The number of notifications from the app.
//      * @param maxNotifications The maximum number of notifications from any app.
//      */
//     public NotificationAppView(String appName, Integer notifications, Integer maxNotifications) {
//         this.AppName = appName;
//         this.Notifications = notifications;
//         this.MaxNotifications = maxNotifications;
//     }
// }
// 
// Path: NotificationAnalyser/app/src/main/java/com/tierep/notificationanalyser/NotificationDateView.java
// public class NotificationDateView {
//     public Date Date;
//     public Integer Notifications;
// 
//     public NotificationDateView() {
//         this.Date = null;
//         this.Notifications = 0;
//     }
// 
//     public NotificationDateView(Date date, Integer notifications) {
//         this.Date = date;
//         this.Notifications = notifications;
//     }
// }


// Path: NotificationAnalyser/app/src/main/java/com/tierep/notificationanalyser/ui/HistoryWeeklyFragment.java
import android.content.Intent;
import android.util.Log;
import com.tierep.notificationanalyser.NotificationAppView;
import com.tierep.notificationanalyser.NotificationDateView;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

package com.tierep.notificationanalyser.ui;




/**
 * Created by pieter on 25/10/14.
 */
public class HistoryWeeklyFragment extends HistoryFragment {
    protected SimpleDateFormat dateFormat = new SimpleDateFormat("w");

    @Override
    protected void startAppDetailActivity(String appName, Date date) {
        Intent intent = new Intent(getActivity(), AppDetail.class);
        intent.putExtra(AppDetail.EXTRA_PACKAGENAME, appName);
        intent.putExtra(AppDetail.EXTRA_INTERVALTYPE, AppDetail.FLAG_VIEW_WEEKLY);
        intent.putExtra(AppDetail.EXTRA_DATESTRING, new SimpleDateFormat("yyyy-MM-dd").format(date));
        startActivity(intent);
    }

    @Override
    protected List<NotificationDateView> getChartData(int items) throws SQLException {