Create new constructor for ReinscriptionRequest so you don't have to worry about the type of the request

This commit is contained in:
LeoMoulin committed 2024-03-12 17:53:52 +01:00
1 parent b7a574a312
commit 66282bce9f
1 file changed
+6
@@ -31,6 +31,12 @@ public class ReinscriptionRequest {
this.type = type;
}
public ReinscriptionRequest(User user, Cursus newCursus, RequestState state){
this.user = user;
this.newCursus = newCursus;
this.state = state;
}
public int getId() {
return id;
}