module command.remoteundo.garagedoorupcommand;

import command.remoteundo.command;
import command.remoteundo.garagedoor;

class GarageDoorUpCommand : Command
{
    GarageDoor garageDoor;

    this(GarageDoor garageDoor)
    {
        this.garageDoor = garageDoor;
    }

    void execute()
    {
        garageDoor.up();
    }

    void undo()
    {
        garageDoor.down();
    }
}
