Modifier and Type | Field and Description |
---|---|
private int |
id |
private java.lang.String |
name |
Constructor and Description |
---|
GamesSaveCommand(int id,
java.lang.String name)
Creates a command to save the game.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Execute()
Executes a command
|
java.lang.String |
GetHeader()
Gets the new server header associated with the request.
|
java.lang.String |
GetResponse()
Gets the response for the server.
|
boolean |
Unexecute()
Unexecutes a command.
|
public GamesSaveCommand(int id, java.lang.String name)
id
- The ID of the game to save.name
- The file name to save the game under.public boolean Execute()
ICommand
public boolean Unexecute()
ICommand
public java.lang.String GetResponse()
ICommand
GetResponse
in interface ICommand