//needs testing #region Character classes /// <summary> /// The character classes data API provides a list of character classes. /// </summary> /// <returns>DataCharacterClassesRoot object</returns> public DataCharacterClassesRoot GetClassData() { var classData = new DataCharacterClassesRoot(); var url = string.Format(@"{0}/wow/data/character/classes?locale={1}&apikey={2}", _Host, _Locale, _APIKey); classData = json.GetDataFromURL <DataCharacterClassesRoot>(url); return(classData); }
/// <summary> /// The character classes data API provides a list of character classes. /// </summary> /// <returns>DataCharacterClassesRoot object</returns> public async Task <DataCharacterClassesRoot> GetClassDataAsync() { var classData = new DataCharacterClassesRoot(); var url = string.Format( @"{0}/wow/data/character/classes?locale={1}&apikey={2}", _Host, _Locale, _APIKey); classData = await this.jsonUtility.GetDataFromURLAsync <DataCharacterClassesRoot>(url); return(classData); }