// Path: app/src/main/java/com/YC2010/MyClass/utils/Constants.java
// public class Constants {
//     public static String UWAPIROOT = "https://api.uwaterloo.ca/v2/";
//     public static List<Reminder_item> holiday_2015;
//     public static List<Reminder_item> sample_reminder;
// 
//     public static String lectureSectionObjectListKey = "LEC_OBJECTS";
//     public static String testObjectListKey = "TST_OBJECTS";
//     public static String tutorialObjectListKey = "TUT_OBJECTS";
//     public static String finalObjectListKey = "FINAL_OBJECTS";
// 
//     // default term value
//     public static Integer defaultCurTermNum = 1161;
//     public static String defaultCurTermName = "Winter 2016 (Current)";
//     public static Integer defaultNextTermNum = 1165;
//     public static String defaultNextTermName = "Spring 2016 (Next)";
// 
//     // temporarily hardcoded
//     // Note: month off by one because of unix time standard
//     public static GregorianCalendar nextTermStartDate = new GregorianCalendar(2016, 4, 2);
// 
// 
// 
//     public static List<Reminder_item> get_sample_reminder(){
//         sample_reminder = new ArrayList<>();
//         Reminder_item tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Final end","", 2015, 7, 15, "d");
//         sample_reminder.add(tmp);
//         tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Next term start","", 2015, 8, 14, "d");
//         sample_reminder.add(tmp);
//         tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "First penalty end","", 2015, 9, 3, "d");
//         sample_reminder.add(tmp);
//         tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Late fee for fall","", 2015, 7, 28, "d");
//         sample_reminder.add(tmp);
// 
//         return sample_reminder;
//     }
// 
//     public static List<Reminder_item> get_holidays(){
//         holiday_2015 = new ArrayList<>();
//         Reminder_item tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Civic Holiday","", 2015, 7, 3, "d");
//         holiday_2015.add(tmp);
//         tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Labour Day","", 2015, 8, 7, "d");
//         holiday_2015.add(tmp);
//         tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Thanksgiving","", 2015, 9, 12, "d");
//         holiday_2015.add(tmp);
//         tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Christmas","", 2015, 11, 25, "d");
//         holiday_2015.add(tmp);
// 
//         tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Boxing Day","", 2015, 11, 28, "d");
//         holiday_2015.add(tmp);
// 
//         return holiday_2015;
//     }
// }
// 
// Path: app/src/main/java/com/YC2010/MyClass/model/TestObject.java
// public class TestObject implements Parcelable {
//     private String section;
//     private String time;
//     private String location;
//     private String capacity;
//     private String total;
// 
//     public TestObject() {}
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(section);
//         dest.writeString(time);
//         dest.writeString(location);
//         dest.writeString(capacity);
//         dest.writeString(total);
//     }
// 
//     public TestObject(Parcel src) {
//         this.section = src.readString();
//         this.time = src.readString();
//         this.location = src.readString();
//         this.capacity = src.readString();
//         this.total = src.readString();
//     }
// 
//     public static final Creator CREATOR = new Creator() {
//         @Override
//         public TestObject createFromParcel(Parcel source) {
//             return new TestObject(source);
//         }
// 
//         @Override
//         public TestObject[] newArray(int size) {
//             return new TestObject[size];
//         }
//     };
// 
//     // Setters
// 
//     public void setTotal(String total) {
//         this.total = total;
//     }
// 
//     public void setSection(String section) {
//         this.section = section;
//     }
// 
//     public void setTime(String time) {
//         this.time = time;
//     }
// 
//     public void setCapacity(String capacity) {
//         this.capacity = capacity;
//     }
// 
//     public void setLocation(String location) {
//         this.location = location;
//     }
// 
//     public String getSection() {
//         return section;
//     }
// 
//     public String getTime() {
//         return time;
//     }
// 
//     public String getLocation() {
//         return location;
//     }
// 
//     public String getCapacity() {
//         return capacity;
//     }
// 
//     public String getTotal() {
//         return total;
//     }
// }


import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.YC2010.MyClass.utils.Constants;
import com.YC2010.MyClass.model.TestObject;
import com.YC2010.MyClass.R;
import java.util.ArrayList;
package com.YC2010.MyClass.ui.adapters;




public class TstListAdapter extends BaseAdapter {
    ArrayList<TestObject> mArrayList;
    Context mContext;
    LayoutInflater mLayoutInflater;

    public TstListAdapter(Context context, int textViewResourceId, Bundle bundle) {
        mLayoutInflater = LayoutInflater.from(context);
// Path: app/src/main/java/com/YC2010/MyClass/utils/Constants.java
// public class Constants {
//     public static String UWAPIROOT = "https://api.uwaterloo.ca/v2/";
//     public static List<Reminder_item> holiday_2015;
//     public static List<Reminder_item> sample_reminder;
// 
//     public static String lectureSectionObjectListKey = "LEC_OBJECTS";
//     public static String testObjectListKey = "TST_OBJECTS";
//     public static String tutorialObjectListKey = "TUT_OBJECTS";
//     public static String finalObjectListKey = "FINAL_OBJECTS";
// 
//     // default term value
//     public static Integer defaultCurTermNum = 1161;
//     public static String defaultCurTermName = "Winter 2016 (Current)";
//     public static Integer defaultNextTermNum = 1165;
//     public static String defaultNextTermName = "Spring 2016 (Next)";
// 
//     // temporarily hardcoded
//     // Note: month off by one because of unix time standard
//     public static GregorianCalendar nextTermStartDate = new GregorianCalendar(2016, 4, 2);
// 
// 
// 
//     public static List<Reminder_item> get_sample_reminder(){
//         sample_reminder = new ArrayList<>();
//         Reminder_item tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Final end","", 2015, 7, 15, "d");
//         sample_reminder.add(tmp);
//         tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Next term start","", 2015, 8, 14, "d");
//         sample_reminder.add(tmp);
//         tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "First penalty end","", 2015, 9, 3, "d");
//         sample_reminder.add(tmp);
//         tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Late fee for fall","", 2015, 7, 28, "d");
//         sample_reminder.add(tmp);
// 
//         return sample_reminder;
//     }
// 
//     public static List<Reminder_item> get_holidays(){
//         holiday_2015 = new ArrayList<>();
//         Reminder_item tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Civic Holiday","", 2015, 7, 3, "d");
//         holiday_2015.add(tmp);
//         tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Labour Day","", 2015, 8, 7, "d");
//         holiday_2015.add(tmp);
//         tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Thanksgiving","", 2015, 9, 12, "d");
//         holiday_2015.add(tmp);
//         tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Christmas","", 2015, 11, 25, "d");
//         holiday_2015.add(tmp);
// 
//         tmp = new Reminder_item(UUID.randomUUID().toString(),
//                 "Boxing Day","", 2015, 11, 28, "d");
//         holiday_2015.add(tmp);
// 
//         return holiday_2015;
//     }
// }
// 
// Path: app/src/main/java/com/YC2010/MyClass/model/TestObject.java
// public class TestObject implements Parcelable {
//     private String section;
//     private String time;
//     private String location;
//     private String capacity;
//     private String total;
// 
//     public TestObject() {}
// 
//     @Override
//     public int describeContents() {
//         return 0;
//     }
// 
//     @Override
//     public void writeToParcel(Parcel dest, int flags) {
//         dest.writeString(section);
//         dest.writeString(time);
//         dest.writeString(location);
//         dest.writeString(capacity);
//         dest.writeString(total);
//     }
// 
//     public TestObject(Parcel src) {
//         this.section = src.readString();
//         this.time = src.readString();
//         this.location = src.readString();
//         this.capacity = src.readString();
//         this.total = src.readString();
//     }
// 
//     public static final Creator CREATOR = new Creator() {
//         @Override
//         public TestObject createFromParcel(Parcel source) {
//             return new TestObject(source);
//         }
// 
//         @Override
//         public TestObject[] newArray(int size) {
//             return new TestObject[size];
//         }
//     };
// 
//     // Setters
// 
//     public void setTotal(String total) {
//         this.total = total;
//     }
// 
//     public void setSection(String section) {
//         this.section = section;
//     }
// 
//     public void setTime(String time) {
//         this.time = time;
//     }
// 
//     public void setCapacity(String capacity) {
//         this.capacity = capacity;
//     }
// 
//     public void setLocation(String location) {
//         this.location = location;
//     }
// 
//     public String getSection() {
//         return section;
//     }
// 
//     public String getTime() {
//         return time;
//     }
// 
//     public String getLocation() {
//         return location;
//     }
// 
//     public String getCapacity() {
//         return capacity;
//     }
// 
//     public String getTotal() {
//         return total;
//     }
// }


// Path: app/src/main/java/com/YC2010/MyClass/ui/adapters/TstListAdapter.java
import android.content.Context;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
import com.YC2010.MyClass.utils.Constants;
import com.YC2010.MyClass.model.TestObject;
import com.YC2010.MyClass.R;
import java.util.ArrayList;

package com.YC2010.MyClass.ui.adapters;




public class TstListAdapter extends BaseAdapter {
    ArrayList<TestObject> mArrayList;
    Context mContext;
    LayoutInflater mLayoutInflater;

    public TstListAdapter(Context context, int textViewResourceId, Bundle bundle) {
        mLayoutInflater = LayoutInflater.from(context);
        mArrayList = bundle.getParcelableArrayList(Constants.testObjectListKey);