/// <summary> /// Successful events are added to dictionary for scorekeeping /// </summary> /// <param name="eventId"></param> public void NotifyEventSuccess(int eventId) { EventIds eid = (EventIds)eventId; _finishedEvents.Add(eid.ToString(), eventId); _pastEventsList.Add(eventId); _isEventInProgress = false; }
/// <summary> /// Failed event is added to dictionary for scorekeeping /// </summary> /// <param name="eventId">Event's ID</param> public void NotifyEventFailier(int eventId) { EventIds eid = (EventIds)eventId; _failedEvents.Add(eid.ToString(), eventId); _pastEventsList.Add(eventId); _isEventInProgress = false; }
public static EventId ToEventId(this EventIds eventId) { return(new EventId((int)eventId, eventId.ToString())); }