Add event-driven quick action dispatch
This commit is contained in:
@@ -5,29 +5,29 @@ namespace F4SD.ActionConnector.Models
|
||||
{
|
||||
public sealed class ActionResult
|
||||
{
|
||||
public string ActionId { get; set; }
|
||||
public ActionResultStatus Status { get; set; }
|
||||
public string ActionId { get; private set; }
|
||||
public ActionResultStatus Status { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// HTTP status code for HttpCall actions; null for other types.
|
||||
/// </summary>
|
||||
public int? HttpStatusCode { get; set; }
|
||||
public int? HttpStatusCode { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Raw response body (HttpCall) or serialized output (QuickAction).
|
||||
/// </summary>
|
||||
public string RawResponse { get; set; }
|
||||
public string RawResponse { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Named fields extracted from the response via jsonPath mappings.
|
||||
/// Populated when DisplayInCockpit is true.
|
||||
/// </summary>
|
||||
public IDictionary<string, string> MappedFields { get; set; } = new Dictionary<string, string>();
|
||||
public IDictionary<string, string> MappedFields { get; private set; } = new Dictionary<string, string>();
|
||||
|
||||
/// <summary>
|
||||
/// Human-readable error message; set when Status is Failure.
|
||||
/// </summary>
|
||||
public string ErrorMessage { get; set; }
|
||||
public string ErrorMessage { get; private set; }
|
||||
|
||||
public static ActionResult Ok(string actionId, string rawResponse = null)
|
||||
=> new ActionResult { ActionId = actionId, Status = ActionResultStatus.Success, RawResponse = rawResponse };
|
||||
|
||||
Reference in New Issue
Block a user