// Path: app/src/main/java/com/zhenghuiyan/todaything/data/ScheduleContract.java
// public final class ScheduleContract {
// 
//     public ScheduleContract() {}
// 
//     public static abstract class ScheduleContractEntry implements BaseColumns {
//         public static final String TABLE_NAME = "Schedule";
// 
//         public static final String COLUMN_NAME_ID = "id";
// 
//         public static final String COLUMN_NAME_STIME = "s_time";
// 
//         public static final String COLUMN_NAME_CONTENT = "content";
// 
//         public static final String COLUMN_NAME_FROM_TIME = "from_time";
// 
//         public static final String COLUMN_NAME_TO_TIME = "to_time";
// 
//         public static final String COLUMN_NAME_COMPLETE_DATE = "complete_date";
// 
//         public static final String COLUMN_NAME_THING_ID = "thing_id";
// 
//         public static final String COLUMN_NAME_WEEK_NUM = "week_num";
// 
//         public static final String DEFAULT_DATE = "2000-01-01";
// 
// 
//     }
// }
// 
// Path: app/src/main/java/com/zhenghuiyan/todaything/util/DateUtil.java
// public class DateUtil {
//     public static final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
// 
//     private DateUtil() {}
// 
//     public static String dateToString(Date d) {
//         return dateFormat.format(d);
//     }
// 
//     public static Date parseDate(String s) {
//         try {
//             return dateFormat.parse(s);
//         } catch (ParseException e) {
//             e.printStackTrace();
//         }
// 
//         return null;
//     }
// 
//     public static int getDayOfWeek(Date date) {
//         if (date == null) {
//             return -1;
//         }
//         Calendar c = Calendar.getInstance();
//         c.setTime(date);
// 
//         return c.get(Calendar.DAY_OF_WEEK);
//     }
// }


import com.zhenghuiyan.todaything.data.ScheduleContract;
import com.zhenghuiyan.todaything.util.DateUtil;
import java.io.Serializable;
import java.util.Date;
package com.zhenghuiyan.todaything.bean;


/**
 * Created by zhenghuiyan on 2015/1/27.
 */
public class Thing implements Comparable<Thing>, Serializable{
    private int id = 0;

    private String sTime;

    private String content;

    private HourAndMinute fromTime;

    private HourAndMinute toTime;

    private int thing_id;

// Path: app/src/main/java/com/zhenghuiyan/todaything/data/ScheduleContract.java
// public final class ScheduleContract {
// 
//     public ScheduleContract() {}
// 
//     public static abstract class ScheduleContractEntry implements BaseColumns {
//         public static final String TABLE_NAME = "Schedule";
// 
//         public static final String COLUMN_NAME_ID = "id";
// 
//         public static final String COLUMN_NAME_STIME = "s_time";
// 
//         public static final String COLUMN_NAME_CONTENT = "content";
// 
//         public static final String COLUMN_NAME_FROM_TIME = "from_time";
// 
//         public static final String COLUMN_NAME_TO_TIME = "to_time";
// 
//         public static final String COLUMN_NAME_COMPLETE_DATE = "complete_date";
// 
//         public static final String COLUMN_NAME_THING_ID = "thing_id";
// 
//         public static final String COLUMN_NAME_WEEK_NUM = "week_num";
// 
//         public static final String DEFAULT_DATE = "2000-01-01";
// 
// 
//     }
// }
// 
// Path: app/src/main/java/com/zhenghuiyan/todaything/util/DateUtil.java
// public class DateUtil {
//     public static final SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
// 
//     private DateUtil() {}
// 
//     public static String dateToString(Date d) {
//         return dateFormat.format(d);
//     }
// 
//     public static Date parseDate(String s) {
//         try {
//             return dateFormat.parse(s);
//         } catch (ParseException e) {
//             e.printStackTrace();
//         }
// 
//         return null;
//     }
// 
//     public static int getDayOfWeek(Date date) {
//         if (date == null) {
//             return -1;
//         }
//         Calendar c = Calendar.getInstance();
//         c.setTime(date);
// 
//         return c.get(Calendar.DAY_OF_WEEK);
//     }
// }


// Path: app/src/main/java/com/zhenghuiyan/todaything/bean/Thing.java
import com.zhenghuiyan.todaything.data.ScheduleContract;
import com.zhenghuiyan.todaything.util.DateUtil;
import java.io.Serializable;
import java.util.Date;

package com.zhenghuiyan.todaything.bean;


/**
 * Created by zhenghuiyan on 2015/1/27.
 */
public class Thing implements Comparable<Thing>, Serializable{
    private int id = 0;

    private String sTime;

    private String content;

    private HourAndMinute fromTime;

    private HourAndMinute toTime;

    private int thing_id;

    private String complete_date = ScheduleContract.ScheduleContractEntry.DEFAULT_DATE;