blocked on some logic...WIP commit
This commit is contained in:
parent
6cca64e62e
commit
e3b0f99f04
6 changed files with 191 additions and 168 deletions
|
@ -1,18 +0,0 @@
|
|||
import {MessageUserPosition} from "./MessageUserPosition";
|
||||
export class Group {
|
||||
static readonly MAX_PER_GROUP = 4;
|
||||
|
||||
users: MessageUserPosition[];
|
||||
|
||||
constructor(users: MessageUserPosition[]) {
|
||||
this.users = users;
|
||||
}
|
||||
|
||||
getUsers(): MessageUserPosition[] {
|
||||
return this.users;
|
||||
}
|
||||
|
||||
isFull(): boolean {
|
||||
return this.users.length >= Group.MAX_PER_GROUP;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue