public AccountAttributes(String responseContent) { this.m_name = HtmlUtils.GetStringValueByXPathExpression(responseContent, "//ul[1]/li[1]/text()"); this.m_name = this.m_name.Split(' ')[1]; this.m_parafia = HtmlUtils.GetStringValueByXPathExpression(responseContent, "//ul[1]/li[2]/text()"); this.m_parafia = this.m_parafia.Split(' ')[1]; this.m_odpusty = HtmlUtils.GetStringValueByXPathExpression(responseContent, "//ul[1]/li[3]/text()"); this.m_odpusty = this.m_odpusty.Split(' ')[1]; this.m_level = new Level(HtmlUtils.GetSingleNodeByXPathExpression(responseContent, "//ul[2]/li[1]")); this.m_cash = new Field(HtmlUtils.GetSingleNodeByXPathExpression(responseContent, "//ul[2]/li[2]")); this.safe = new Field(HtmlUtils.GetSingleNodeByXPathExpression(responseContent, "//ul[2]/li[3]")); this.health = new Field(HtmlUtils.GetSingleNodeByXPathExpression(responseContent, "//ul[2]/li[4]")); this.energy = new Field(HtmlUtils.GetSingleNodeByXPathExpression(responseContent, "//ul[2]/li[5]")); this.believer = new Field(HtmlUtils.GetSingleNodeByXPathExpression(responseContent, "//ul[2]/li[6]")); this.vicar = new Field(HtmlUtils.GetSingleNodeByXPathExpression(responseContent, "//ul[2]/li[7]")); this.relics = new Relics(HtmlUtils.GetSingleNodeByXPathExpression(responseContent, "//ul[2]/li[8]")); String mailText = HtmlUtils.GetAttributeValueOfElementByXPathExpression(responseContent, "title", "//a[@class='mailbox']"); mailText = Utils.RemoveAllNotNumberCharacters(mailText); if (String.IsNullOrEmpty(mailText)) { this.mail = 0; } else { this.mail = Int32.Parse(mailText); } }