/// <summary> /// Function to make Mds API call that returns a value of type T /// </summary> /// <param name="movesenseDevice">IMovesenseDevice for the device</param> /// <param name="restOp">The type of REST call to make to MdsLib</param> /// <param name="path">The path of the MdsLib resource</param> /// <param name="body">JSON body if any</param> /// <param name="prefixPath">optional prefix of the target URI before the device serial number (defaults to empty string)</param> public async Task <T> ApiCallAsync <T>(IMovesenseDevice movesenseDevice, MdsOp restOp, string path, string body = null, string prefixPath = "") { return(await new ApiCallAsync <T>(movesenseDevice, restOp, path, body, prefixPath).CallAsync()); }