Ejemplo n.º 1
0
        public async Task <CardIdleProfileInfo> LoadCardIdleProfileAsync()
        {
            string url = "https://steamcommunity.com/profiles/76561198801350858/";

            var html = await GetSteamHtmlDocument(url);

            var result = new CardIdleProfileInfo();

            result.ProfileUrl = url;

            ParseProfile(html, result);

            var titleNode = html.SelectSingleNode("//div[contains(@class, 'profile_customization_header')]");

            if (titleNode != null)
            {
                result.MessageTitle = titleNode.InnerText.Replace("&amp;", "&").Trim();
            }

            var messageNode = html.SelectSingleNode("//div[contains(@class, 'showcase_notes')]");

            if (messageNode != null)
            {
                result.SetMessage(messageNode.InnerText.Replace("&amp;", "&").Trim());
            }


            return(result);
        }
Ejemplo n.º 2
0
 public async void LoadCardIdleProfile()
 {
     CardIdleProfile = await new SteamParser().LoadCardIdleProfileAsync();
 }