package ch.heigvd.res.labs.roulette.net.protocol;

import ch.heigvd.res.labs.roulette.data.Student;
import java.util.List;

/**
 * This class is used to serialize/deserialize the response sent by the server
 * when processing the "LIST" command defined in the protocol specification. The
 * JsonObjectMapper utility class can use this class.
 *
 * @author Dbnsky & Iamfonky
 */

public class ListCommandResponse {
    private final List<Student> listStudent;

    public ListCommandResponse(List<Student> list) {
        this.listStudent = list;
    }

    public List<Student> getList() {
        return listStudent;
    }

    public Student getAtList(int index){
        return listStudent.get(index);
    }

}

@@ -423,14 +423,8 @@
 ate 
-final 
 List
@@ -447,16 +447,58 @@
 udent;%0A%0A
+    public ListCommandResponse()%7B%0A%0A    %7D%0A%0A
     publ

constr. par défaut