예제 #1
0
        private void CheckBrewButtonStatus()
        {
            var brewButtonStatus = _coffeeMakerApi.GetBrewButtonStatus();

            if (brewButtonStatus == BrewButtonStatus.Pushed)
            {
                Brew();
            }
        }
예제 #2
0
        public void Poll()
        {
            BrewButtonStatus status = api.GetBrewButtonStatus();

            if (status == BrewButtonStatus.PUSHED)
            {
                StartBrewing();
            }
        }