feat(delmia-notifier): recipe DTOs + JSON source-gen context
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace ZB.MOM.WW.ScadaBridge.DelmiaNotifier;
|
||||
|
||||
[JsonSerializable(typeof(RecipeDownload))]
|
||||
[JsonSerializable(typeof(RecipeDownloadResult))]
|
||||
internal partial class NotifierJsonContext : JsonSerializerContext;
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace ZB.MOM.WW.ScadaBridge.DelmiaNotifier;
|
||||
|
||||
internal sealed class RecipeDownload
|
||||
{
|
||||
public string? MachineCode { get; set; }
|
||||
public string? DownloadPath { get; set; }
|
||||
public string? WorkOrderNumber { get; set; }
|
||||
public string? PartNumber { get; set; }
|
||||
public string? JobStepNumber { get; set; }
|
||||
public string? Username { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace ZB.MOM.WW.ScadaBridge.DelmiaNotifier;
|
||||
|
||||
internal sealed class RecipeDownloadResult
|
||||
{
|
||||
public bool Result { get; set; }
|
||||
public string? ResultText { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user