Esempio n. 1
0
        public Card LoadCard()
        {
            var gitHubUrl = UrlTemplate.Replace("USERNAME", _username);
            var sr        = new StreamReader(new HttpClient().GetStreamAsync(gitHubUrl).Result);

            string line  = null;
            var    lines = new List <string>();

            while ((line = sr.ReadLine()) != null)
            {
                lines.Add(line);
            }
            return(CardHelpers.CardFromLineArray(lines.ToArray()));
        }
Esempio n. 2
0
        public Card LoadCard()
        {
            var cardDataLines = File.ReadAllLines(Filename);

            return(CardHelpers.CardFromLineArray(cardDataLines));
        }