// Path: backend/src/main/java/com/github/istin/schedule/backend/University.java
// public enum University {
// 
//     GRSU("ГрГУ", new GrsuAdapter()),
//     GR_MED_UNIVER("Гродненский Мед. университет", new GrsuAdapter());
// 
//     private String mName;
// 
//     private IUniversityAdapter mUniversityAdapter;
// 
//     University(String pName, IUniversityAdapter pUniversityAdapter) {
//         mName = pName;
//         mUniversityAdapter = pUniversityAdapter;
//     }
// 
//     public String getName() {
//         return mName;
//     }
// 
//     public IUniversityAdapter getUniversityAdapter() {
//         return mUniversityAdapter;
//     }
// }
// 
// Path: domain/src/main/java/com/github/istin/schedule/gson/Lecturer.java
// public class Lecturer extends BaseModel {
// 
// }


import com.github.istin.schedule.backend.University;
import com.github.istin.schedule.gson.Lecturer;
import com.google.gson.Gson;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/*
   For step-by-step instructions on connecting your Android application to this backend module,
   see "App Engine Java Servlet Module" template documentation at
   https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloWorld
*/

package com.github.istin.schedule.backend.servlet;




public class LecturerList extends HttpServlet {

    @Override
    public void doGet(HttpServletRequest req, HttpServletResponse resp)
            throws IOException {
        resp.setContentType("application/json");
        resp.setCharacterEncoding("UTF-8");
        final String id = req.getParameter("id");
// Path: backend/src/main/java/com/github/istin/schedule/backend/University.java
// public enum University {
// 
//     GRSU("ГрГУ", new GrsuAdapter()),
//     GR_MED_UNIVER("Гродненский Мед. университет", new GrsuAdapter());
// 
//     private String mName;
// 
//     private IUniversityAdapter mUniversityAdapter;
// 
//     University(String pName, IUniversityAdapter pUniversityAdapter) {
//         mName = pName;
//         mUniversityAdapter = pUniversityAdapter;
//     }
// 
//     public String getName() {
//         return mName;
//     }
// 
//     public IUniversityAdapter getUniversityAdapter() {
//         return mUniversityAdapter;
//     }
// }
// 
// Path: domain/src/main/java/com/github/istin/schedule/gson/Lecturer.java
// public class Lecturer extends BaseModel {
// 
// }


// Path: backend/src/main/java/com/github/istin/schedule/backend/servlet/LecturerList.java
import com.github.istin.schedule.backend.University;
import com.github.istin.schedule.gson.Lecturer;
import com.google.gson.Gson;
import java.io.IOException;
import java.util.Collections;
import java.util.List;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/*
   For step-by-step instructions on connecting your Android application to this backend module,
   see "App Engine Java Servlet Module" template documentation at
   https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloWorld
*/

package com.github.istin.schedule.backend.servlet;




public class LecturerList extends HttpServlet {

    @Override
    public void doGet(HttpServletRequest req, HttpServletResponse resp)
            throws IOException {
        resp.setContentType("application/json");
        resp.setCharacterEncoding("UTF-8");
        final String id = req.getParameter("id");
        final University university = University.values()[Integer.valueOf(id)];