Added STL and TTL decoding.

This commit is contained in:
Patrick Fic
2020-02-12 09:50:47 -08:00
parent 8cdb41f59b
commit 49781173ee
4 changed files with 65 additions and 78 deletions

View File

@@ -32,9 +32,14 @@ namespace BodyshopUploader.Utils.Queries
try
{
var d = await Utils.GraphQL.ExecuteQuery(r);
return d.vehicles?[0].id?.Value;
return d.vehicles?[0]?.id?.Value;
}
catch(ArgumentOutOfRangeException Ex)
{
logger.Trace("No vehicles returned in GQL query.");
return "";
}
catch (Exception Ex)
{
logger.Error(Ex, "Querying for vehicle by VIN failed.");