diff --git a/src/main/java/ch/hepia/events/JoinedJourney.java b/src/main/java/ch/hepia/events/JoinedJourney.java index 0ab57b330fbc720bdabf916caa9e98ed2d52d277..e342c61ed06ec30a4e3ebcb142355b5eaca32316 100644 --- a/src/main/java/ch/hepia/events/JoinedJourney.java +++ b/src/main/java/ch/hepia/events/JoinedJourney.java @@ -27,6 +27,22 @@ public class JoinedJourney implements Serializable{ this.sections = new ArrayList<>(sections); } + /** + * Returns the user + * @return the user + */ + public User getUser(){ + return user; + } + + /** + * Returns the list of sections of this journey. + * @return the list of sections of this journey + */ + public List<Section> getSections(){ + return new ArrayList<>(sections); + } + @Override public String toString() { // TODO diff --git a/src/main/java/ch/hepia/events/LeftJourney.java b/src/main/java/ch/hepia/events/LeftJourney.java index 34a0dac630f903ccdbd320ef7a2256aadc77472c..4a4cc6e022c68839f193589aeb56cb09ca86a587 100644 --- a/src/main/java/ch/hepia/events/LeftJourney.java +++ b/src/main/java/ch/hepia/events/LeftJourney.java @@ -27,6 +27,22 @@ public class LeftJourney implements Serializable { this.sections = new ArrayList<>(sections); } + /** + * Returns the user + * @return the user + */ + public User getUser(){ + return user; + } + + /** + * Returns the list of sections of this journey. + * @return the list of sections of this journey + */ + public List<Section> getSections(){ + return new ArrayList<>(sections); + } + @Override public String toString() { // TODO