Skip to content
Snippets Groups Projects
Verified Commit 630c7fea authored by Théo Pirkl's avatar Théo Pirkl :nail_care:
Browse files

Implements events when two people meet

parent 135d1ff7
Branches
No related tags found
1 merge request!21*poof* final version
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;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment