public virtual bool IsFailed(HashSet <GuildWars2.ArenaNet.Model.EventState> events) { IEnumerable <Guid> eventIds = EventStates.Select(es => es.Event).Distinct(); return(events.Where(es => eventIds.Contains(es.EventId) && es.StateEnum == EventStateType.Fail).Count() > 0); }
public virtual bool IsSuccessful(HashSet <GuildWars2.ArenaNet.Model.V1.EventState> events) { IEnumerable <Guid> eventIds = EventStates.Select(es => es.Event).Distinct(); return(events.Where(es => eventIds.Contains(es.EventId) && es.StateEnum == EventStateType.Success).Count() == eventIds.Count()); }