public void HandleEvent(EggIncubatorStatusEvent evt, ISession session) { Logger.Write(evt.WasAddedNow ? session.Translation.GetTranslation(TranslationString.IncubatorPuttingEgg, evt.KmRemaining) : session.Translation.GetTranslation(TranslationString.IncubatorStatusUpdate, evt.KmRemaining), LogLevel.Egg); }
public void HandleEvent(EggIncubatorStatusEvent evt, Context ctx) { if (evt.WasAddedNow) Logger.Write($"Putting egg in incubator: {evt.KmRemaining:0.00}km left"); else Logger.Write($"Incubator status update: {evt.KmRemaining:0.00}km left"); }
public void HandleEvent(EggIncubatorStatusEvent evt, Context ctx) { Logger.Write(evt.WasAddedNow ? ctx.Translations.GetTranslation(TranslationString.IncubatorPuttingEgg, evt.KmRemaining) : ctx.Translations.GetTranslation(TranslationString.IncubatorStatusUpdate, evt.KmRemaining)); }