Package org.cis1200
package org.cis1200
-
ClassDescriptionA
Command
represents a string sent from a client to the server, after parsing it into a more convenient form.TheCommandParser
class includes a single static method that can convert a String into the appropriateCommand
object that it represents.Represents aCommand
issued by a client to create a new channel.ErrorCode
is an enumerated type (enum) that lists all possible response codes a server can send to a client in the case of an erroneous command.Represents aCommand
issued by a client to add another client to an invite-only channel owned by the sender.Represents aCommand
issued by a client to join an existing channel.Represents aCommand
issued by a client to remove another client from a channel owned by the sender.Represents aCommand
issued by a client to leave a channel.Represents aCommand
issued by a client to send a message to all other clients in the channel.Represents aCommand
issued by a client to change his or her nickname.A message that the server sends to a client in response to a command Each response has two parts: the userId for the recipient of the response and a string containing the text of the message itself.AResponseSet
stores a set of messages that should be sent in response to processing a command.TheServerBackend
handles networking and communication with clients, and is responsible for managing the server state and executing tasks.Initializes and starts aServerBackend
, aServerModel
, and a very basic UI to indicate that the server is running.TheServerModel
is the class responsible for tracking the state of the server, including its current users and the channels they are in.