示例#1
0
        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);
        }
示例#2
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());
        }