Exemple #1
0
        public static bool IsPlatformValid(List <AudienceCondition> audienceConditions)
        {
            int i     = 0;
            int count = audienceConditions.Count;

            while (i < count)
            {
                AudienceCondition audienceCondition = audienceConditions[i];
                if (audienceCondition.ConditionType == "platform")
                {
                    return(AudienceConditionUtils.EvaluateAudienceCondition(audienceCondition));
                }
                i++;
            }
            return(true);
        }
Exemple #2
0
        public static bool IsValidForClient(List <AudienceCondition> audienceConditions)
        {
            int i     = 0;
            int count = audienceConditions.Count;

            while (i < count)
            {
                AudienceCondition ac = audienceConditions[i];
                if (!AudienceConditionUtils.EvaluateAudienceCondition(ac))
                {
                    return(false);
                }
                i++;
            }
            return(true);
        }