package org.tndata.officehours.parser;


import org.tndata.officehours.model.Course;
import org.tndata.officehours.model.ResultSet;

import java.util.List;

/**
 * This class contains the specifications of the API responses that do not match the model
 * to let Gson take care of everything.
 *
 * @author Ismael Alonso
 * @version 1.0.0
 */
public final class ParserModels{
    private abstract class ListResultSet implements ResultSet{
        public int count;
        public String previous;
        public String next;
    }

    public class CourseList extends ListResultSet{
        public List<Course> results;
    }

    private ParserModels(){

    }
}

@@ -78,16 +78,61 @@
 Course;%0A
+import org.tndata.officehours.model.Message;%0A
 import o
@@ -660,24 +660,121 @@
 lts;%0A    %7D%0A%0A
+    public class MessageList extends ListResultSet%7B%0A        public List%3CMessage%3E results;%0A    %7D%0A%0A
     private 

Add model for message list