Create new constructor for ReinscriptionRequest so you don't have to worry about the type of the request
This commit is contained in:
parent
b7a574a312
commit
66282bce9f
@ -31,6 +31,12 @@ public class ReinscriptionRequest {
|
|||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ReinscriptionRequest(User user, Cursus newCursus, RequestState state){
|
||||||
|
this.user = user;
|
||||||
|
this.newCursus = newCursus;
|
||||||
|
this.state = state;
|
||||||
|
}
|
||||||
|
|
||||||
public int getId() {
|
public int getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user