Exemple #1
0
 public void Notify(IWashStep state)
 {
     foreach (var subscriber in _subscribers)
     {
         subscriber.OnStateChange(state);
     }
 }
Exemple #2
0
 public IWashStep NextStep(IWashStep washStep)
 {
     nextStep = washStep;
     return(nextStep);
 }
Exemple #3
0
 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;
 }