diff --git a/src/main/java/ch/hepia/events/Meeting.java b/src/main/java/ch/hepia/events/Meeting.java new file mode 100644 index 0000000000000000000000000000000000000000..73f5e4c213a429098d7328c677d072b71d2797fc --- /dev/null +++ b/src/main/java/ch/hepia/events/Meeting.java @@ -0,0 +1,49 @@ +package ch.hepia.events; + +import ch.hepia.api.transport.Section; +import ch.hepia.models.User; + +import java.io.Serializable; + +public class Meeting implements Serializable, Event { + private static final long serialVersionUID = 0xAEF34565679L; + private User user; // + private User partner; + private Section section; + + + /** + * Main constructor + * @param userOne The first user to meet the other + * @param userTwo The other user to meet the first one + * @param section The section where both meet each other + */ + public Meeting(User userOne, User userTwo, Section section){ + this.user = userOne; + this.partner = userTwo; + this.section = section; + } + + + @Override + public User getUser() { + return user; + } + + /** + * Gets the user two + * @return The second user + */ + public User getPartner(){ + return partner; + } + + /** + * Gets the section where the two users meet + * @return The section where the two users meet + */ + public Section getSection(){ + return section; + } + +}