Skip to content

Commit

Permalink
Add meeting object
Browse files Browse the repository at this point in the history
  • Loading branch information
P1otrulla committed Dec 10, 2023
1 parent 2ac98d8 commit b72c15d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/main/java/com/eternalcode/discordapp/meeting/Meeting.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.eternalcode.discordapp.meeting;

import java.time.Instant;
import java.util.HashSet;
import java.util.Set;

public class Meeting {

private Instant issuedAt;
private final Set<Long> presentMembers = new HashSet<>();
private final Set<Long> absentMembers = new HashSet<>();

void addPresentMemeber(long id) {
this.presentMembers.add(id);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
@Contextual
public class MeetingUser {

private Long discordId;
private long discordId;
private MeetingNotificationType notificationType;
private Boolean isPresent;

Expand Down

0 comments on commit b72c15d

Please sign in to comment.