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/remote/ceilingfanoncommand.d

20 lines
328 B
D

module command.remote.ceilingfanoncommand;
import command.remote.command;
import command.remote.ceilingfan;
class CeilingFanOnCommand : Command
{
CeilingFan ceilingFan;
this(CeilingFan ceilingFan)
{
this.ceilingFan = ceilingFan;
}
override void execute()
{
ceilingFan.high();
}
}