feat(channel): starting the channel class
This commit is contained in:
parent
cb5f92db0c
commit
12cc225603
3 changed files with 206 additions and 2 deletions
11
diagram.puml
11
diagram.puml
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue