Example #1
0
 static void Main(string[] args)
 {
     try
     {
         MTGClient client = new MTGClient();
         client.SearchCards("f:pioneer c=rbu");
     }
     catch (Exception e)
     {
         Console.WriteLine(e.ToString());
     }
     finally
     {
         Console.ReadKey();
     }
 }
Example #2
0
        public Search Search()
        {
            MTGClient client = new MTGClient();

            List <string> querys = new List <string>();

            querys.Add($"f:{Format}");
            if (!string.IsNullOrWhiteSpace(CardName))
            {
                querys.Add(CardName);
            }
            if (!string.IsNullOrWhiteSpace(CardText))
            {
                querys.Add($"o:'{CardText}'");
            }

            string q = string.Join(" ", querys);

            Data = client.SearchCards(q, Page);

            return(Data);
        }