/// <summary> /// This data can also be found using GetItem if the item is part of a set. /// </summary> /// <example> /// You can use this if you already know the set ID, ie 1060. /// Can be a good choice if you don't need all stats for each item that you would get from the GetItem method. /// </example> /// <param name="itemSetID"></param> /// <returns>ItemSetRoot object</returns> public ItemSetRoot GetItemSet(string itemSetID) { var item = new ItemSetRoot(); var url = string.Format(@"{0}/wow/item/{1}?locale={2}&apikey={3}", _Host, itemSetID, _Locale, _APIKey); item = json.GetDataFromURL <ItemSetRoot>(url); return(item); }
/// <summary> /// This data can also be found using GetItem if the item is part of a set. /// </summary> /// <example> /// You can use this if you already know the set ID, ie 1060. /// Can be a good choice if you don't need all stats for each item that you would get from the GetItem method. /// </example> /// <param name="itemSetID"></param> /// <returns></returns> public async Task <ItemSetRoot> GetItemSet(string itemSetID) { var item = new ItemSetRoot(); var url = string.Format( @"{0}/wow/item/{1}?locale={2}&apikey={3}", _Host, itemSetID, _Locale, _APIKey); item = await this.jsonUtility.GetDataFromURLAsync <ItemSetRoot>(url); return(item); }