Match TFS Changeset 303348

This commit is contained in:
2022-02-01 18:02:51 -07:00
parent d9057d2071
commit 0cfcb46ee7
118 changed files with 17934 additions and 13 deletions

View File

@ -0,0 +1,33 @@
using System.Collections.Generic;
using System.Text.Json;
namespace Adaptation.Shared.Metrology
{
public partial class WS
{
// this class represents the response from the Inbound API endpoint
public class Results
{
// true or false if data was written to the database
public bool Success { get; set; }
// if true, contains ID of the Header record in the database
public long HeaderID { get; set; }
// if false, this collection will contain a list of errors
public List<string> Errors { get; set; }
// this collection will contain a list of warnings, they will not prevent data from being saved
public List<string> Warnings { get; set; }
// this is just a helper function to make displaying the results easier
public override string ToString()
{
return JsonSerializer.Serialize(this, GetType());
}
}
}
}