/// <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); }
/// <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); }