public void Notify(IWashStep state) { foreach (var subscriber in _subscribers) { subscriber.OnStateChange(state); } }
public IWashStep NextStep(IWashStep washStep) { nextStep = washStep; return(nextStep); }
public void OnStateChange(IWashStep step) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine($"[MobileAppClient] [{_username}]: {step.GetDescription()}"); Console.ForegroundColor = ConsoleColor.White; }
public void OnStateChange(IWashStep step) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine($"[SmsClient] [{_phoneNumber}]: {step.GetDescription()}"); Console.ForegroundColor = ConsoleColor.White; }