This repository has been archived on 2022-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
patterns/command/remoteundostatusmacro/tvoffcommand.d

25 lines
331 B
D

module command.remoteundostatusmacro.tvoffcommand;
import command.remoteundostatusmacro.command;
import command.remoteundostatusmacro.tv;
class TVOffCommand : Command
{
TV tv;
this(TV tv)
{
this.tv = tv;
}
void execute()
{
tv.off();
}
void undo()
{
tv.on();
}
}