示例#1
0
        /// <summary>
        /// Given filter criteria, return a collection of cards
        /// </summary>
        /// <param name="filters">MingleFilter describing selection criteria</param>
        /// <returns>MingleCardCollection object</returns>
        public MingleCardCollection GetCards(Collection <string> filters)
        {
            var cards = new MingleCardCollection(this);

            cards.Parse(filters);
            return(cards);
        }
示例#2
0
        /// <summary>
        /// Returns the card_type value
        /// </summary>
        /// <param name="cardNumber"></param>
        /// <returns></returns>
        public string GetCardType(string cardNumber)
        {
            var cards = new MingleCardCollection(this);

            cards.Parse(Convert.ToInt32(cardNumber));
            return(cards.Count == 0 ? string.Empty : cards[0].Type);
        }