feat(channel): starting the channel class

This commit is contained in:
Raphael 2025-05-20 22:55:43 +02:00
parent cb5f92db0c
commit 12cc225603
3 changed files with 206 additions and 2 deletions

View file

@ -68,10 +68,17 @@ class Channel {
- _topic : string
+ getName() : string
+ getTopic() : string
+ isUserInChannel(User *user) : bool
+ getUsers() : list<User>
+ getOwner() : User
+ isOperator(user : User) : bool
+ isUserInChannel(User *user) : bool
+ setTopic(newTopic : string) : void
+ addOperator(user : User) : void
+ addUser(user : User) : void
+ removeOperator(user : User) : void
+ isOperator(user : User) : bool
+ removeUser(user : User) : void
}
' ====================================
@ -151,4 +158,4 @@ PollManager --> CommandDispatcher.CommandDispatcher : calls
CommandDispatcher.CommandDispatcher --> Command : dispatches
CommandDispatcher.CommandDispatcher --> User : parses commands
@enduml
@enduml