# Class ShowSecondsLeftForGuiCommand

java.lang.Object
it.polimi.ingsw.is25am31.network.socket.serverClientMessages.ShowSecondsLeftForGuiCommand

All Implemented Interfaces:
  `ServerClientCommand`, `Serializable`

public class ShowSecondsLeftForGuiCommand extends Object implements ServerClientCommand, Serializable
Represents a command sent from the server to the client (specifically for GUI) to display the remaining seconds for an hourglass timer.

See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ShowSecondsLeftForGuiCommand(int count, int secondsLeft)`
  Constructs a new `ShowSecondsLeftForGuiCommand`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `execute(SocketClient client)`
  Executes the command on the `SocketClient`, instructing it to show the remaining seconds for the GUI.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ShowSecondsLeftForGuiCommand

    public ShowSecondsLeftForGuiCommand(int count, int secondsLeft)
    Constructs a new `ShowSecondsLeftForGuiCommand`.
    Parameters:
      `count` - The current hourglass number.
      `secondsLeft` - The number of seconds remaining.

- ## Method Details

  - ### execute

    public void execute(SocketClient client) throws Exception
    Executes the command on the `SocketClient`, instructing it to show the remaining seconds for the GUI.
    Specified by:
      `execute` in interface `ServerClientCommand`
    Parameters:
      `client` - The `SocketClient` instance to execute the command on.
    Throws:
      `Exception` - if an error occurs during the display of seconds left.