public async Task <ItemResult> GetItem(string url) { using (DnD5eAPIClient client = new DnD5eAPIClient()) { string uri = url; var responseObject = await client.GetAsync <ItemResult>(uri); return(responseObject); } }
public async Task <EquipmentListResult> ItemList(string itemUriPrefix) { using (DnD5eAPIClient client = new DnD5eAPIClient()) { string uri = itemUriPrefix; var responseObject = await client.GetAsync <EquipmentListResult>(uri); return(responseObject); } }