Exemple #1
0
    /// <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;
    }
Exemple #2
0
    /// <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;
    }
Exemple #3
0
 public static EventId ToEventId(this EventIds eventId)
 {
     return(new EventId((int)eventId, eventId.ToString()));
 }