Apple interview question

Design an API that would allow remote interaction with a shared microwave in the office