module command.remoteundostatus.garagedoorupcommand;

import command.remoteundostatus.command;
import command.remoteundostatus.garagedoor;

class GarageDoorUpCommand : Command
{
    GarageDoor garageDoor;

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

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

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