public void SetCharacter(Character character) { _region = character.Region; _realm = character.Realm; _name = character.Name; _class = character.Class; buildTreeFramework(); }
public XmlDocument DownloadUpgrades(string characterName, Character.CharacterRegion region, string realm, int itemId) { //http://{0}.wowarmory.com/search.xml?searchType=items&pr={1}&pn={2}&pi={3} string domain = _domains[region]; XmlDocument doc = null; if (!String.IsNullOrEmpty(characterName)) { doc = DownloadXml(string.Format(NetworkSettingsProvider.ItemUpgradeURI, domain, realm, characterName, itemId.ToString())); } return(doc); }
public XmlDocument DownloadCharacterSheet(string characterName, Character.CharacterRegion region, string realm) { //http://{0}.wowarmory.com/character-sheet.xml?r={1}&n={2} string domain = _domains[region]; XmlDocument doc = null; if (!String.IsNullOrEmpty(characterName)) { doc = DownloadXml(string.Format(NetworkSettingsProvider.CharacterSheetURI, domain, realm, characterName)); } return(doc); }