protected static async Task <T> GetInfo <T>(string command, string parameter = "") { var rawResult = await DevicePortalAPIHelper.GetInfosAsync(command, parameter); T result = JsonConvert.DeserializeObject <T>(rawResult); return(result); }
protected static async Task <Dictionary <string, string> > GetInfo <T>(Dictionary <string, string> returnedInfo, ObjectToDico <T> converter, string command, string parameter = "") { var rawResult = await DevicePortalAPIHelper.GetInfosAsync(command, parameter); T result = JsonConvert.DeserializeObject <T>(rawResult); return(await converter(returnedInfo, result)); }