26 lines
359 B
D
26 lines
359 B
D
|
module command.remoteundostatusmacro.tvoncommand;
|
||
|
|
||
|
import command.remoteundostatusmacro.command;
|
||
|
import command.remoteundostatusmacro.tv;
|
||
|
|
||
|
class TVOnCommand : Command
|
||
|
{
|
||
|
TV tv;
|
||
|
|
||
|
this(TV tv)
|
||
|
{
|
||
|
this.tv = tv;
|
||
|
}
|
||
|
|
||
|
void execute()
|
||
|
{
|
||
|
tv.on();
|
||
|
tv.setInputChannel();
|
||
|
}
|
||
|
|
||
|
void undo()
|
||
|
{
|
||
|
tv.off();
|
||
|
}
|
||
|
}
|