Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
tp-4
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pirkl-poo-2018
tp-4
Commits
630c7fea
Verified
Commit
630c7fea
authored
6 years ago
by
Théo Pirkl
Browse files
Options
Downloads
Patches
Plain Diff
Implements events when two people meet
parent
135d1ff7
Branches
Branches containing commit
No related tags found
1 merge request
!21
*poof* final version
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/ch/hepia/events/Meeting.java
+49
-0
49 additions, 0 deletions
src/main/java/ch/hepia/events/Meeting.java
with
49 additions
and
0 deletions
src/main/java/ch/hepia/events/Meeting.java
0 → 100644
+
49
−
0
View file @
630c7fea
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
=
0xAEF34565679
L
;
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
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment