using System.Text.Json.Serialization; using Prospect.Server.Api.Models.Client.Data; namespace Prospect.Server.Api.Models.Client; public class FExecuteFunctionResult { /// /// [optional] Error from the CloudScript Azure Function. /// [JsonPropertyName("Error")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] public FFunctionExecutionError? Error { get; set; } /// /// The amount of time the function took to execute /// [JsonPropertyName("ExecutionTimeMilliseconds")] public int ExecutionTimeMilliseconds { get; set; } /// /// [optional] The name of the function that executed /// [JsonPropertyName("FunctionName")] public string? FunctionName { get; set; } /// /// [optional] The object returned from the function, if any /// [JsonPropertyName("FunctionResult")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] public object? FunctionResult { get; set; } /// /// [optional] Flag indicating if the FunctionResult was too large and was subsequently dropped from this event. /// [JsonPropertyName("FunctionResultTooLarge")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] public bool? FunctionResultTooLarge { get; set; } }