public void EnqueueMasteryNotification(UserSummary userSummary, GameInfoAndProgress gameInfoAndProgress) { if (CanPlay && !AlertsLayoutWindow.IsDisposed) { if (CustomMasteryEnabled && string.IsNullOrEmpty(CustomMasteryFile)) { CustomMasteryEnabled = false; } NotificationRequest notificationRequest = new NotificationRequest { UserSummary = userSummary, GameInfoAndProgress = gameInfoAndProgress }; NotificationRequests.Enqueue(notificationRequest); RunNotifications(); } }
public void EnqueueAchievementNotifications(List <Achievement> achievements) { if (CanPlay && !AlertsLayoutWindow.IsDisposed) { if (CustomAchievementEnabled && string.IsNullOrEmpty(CustomAchievementFile)) { CustomAchievementEnabled = false; } foreach (Achievement achievement in achievements) { NotificationRequest notificationRequest = new NotificationRequest { Achievement = achievement }; NotificationRequests.Enqueue(notificationRequest); } RunNotifications(); } }