using ScoreboardApi.Objects;

namespace ScoreboardApi.Extensions
{
    public static class EventTypeExtensions
    {
        public static bool IsMatchEvent(this EventType eventType)
        {
            return eventType is
                EventType.MatchStart
                or EventType.HalfTime
                or EventType.SecondHalfStart
                or EventType.TimeOff
                or EventType.TimeOn
                or EventType.MatchEnd;
        }
    }
}
