Package org.cis1200
Class InviteCommand
java.lang.Object
org.cis1200.Command
org.cis1200.InviteCommand
Represents a
Command
issued by a client to add another client to an
invite-only channel owned by the sender.-
Constructor Summary
ConstructorsConstructorDescriptionInviteCommand
(int senderId, String sender, String channel, String userToInvite) -
Method Summary
Modifier and TypeMethodDescriptiontoString()
updateServerModel
(ServerModel model) Process the command and update the server model accordingly.Methods inherited from class org.cis1200.Command
equals, getSender, getSenderId
-
Constructor Details
-
InviteCommand
-
-
Method Details
-
updateServerModel
Description copied from class:Command
Process the command and update the server model accordingly.- Specified by:
updateServerModel
in classCommand
- Parameters:
model
- An instance of theServerModel
class which represents the current state of the server.- Returns:
- A
Broadcast
object, informing clients about changes resulting from the command.
-
getChannel
-
getUserToInvite
-
toString
-