Exemplo n.º 1
0
 public Character GetCharacter(string region, string realm, string name,
                               bool getGuildInfo,
                               bool getStatsInfo,
                               bool getTalentsInfo,
                               bool getItemsInfo,
                               bool getReputationInfo,
                               bool getTitlesInfo,
                               bool getProfessionsInfo,
                               bool getAppearanceInfo,
                               bool getCompanionsInfo,
                               bool getMountsInfo,
                               bool getPetsInfo,
                               bool getAchievementsInfo,
                               bool getProgressionInfo)
 {
     return(GetData <Character>(string.Format(baseAPIurl + CharacterUtil.basePath + "{1}/{2}", region, realm, name)
                                + CharacterUtil.buildOptionalQuery(
                                    getGuildInfo,
                                    getStatsInfo,
                                    getTalentsInfo,
                                    getItemsInfo,
                                    getReputationInfo,
                                    getTitlesInfo,
                                    getProfessionsInfo,
                                    getAppearanceInfo,
                                    getCompanionsInfo,
                                    getMountsInfo,
                                    getPetsInfo,
                                    getAchievementsInfo,
                                    getProgressionInfo)));
 }