public static bool IsAnswerCorrect(SparseBooleanArray checkedItems, int[] answerIds) {
			if (checkedItems == null || answerIds == null) {
				Log.Info(Tag, "isAnswerCorrect got a null parameter input.");
				return false;
			}
			foreach (int answer in answerIds) {
				if (0 > checkedItems.IndexOfKey(answer)) {
					return false;
				}
			}
			return true;
		}
Example #2
0
        public static bool IsAnswerCorrect(SparseBooleanArray checkedItems, int[] answerIds)
        {
            if (checkedItems == null || answerIds == null)
            {
                Log.Info(Tag, "isAnswerCorrect got a null parameter input.");
                return(false);
            }

            foreach (int answer in answerIds)
            {
                if (0 > checkedItems.IndexOfKey(answer))
                {
                    return(false);
                }
            }

            return(true);
        }