using C4IT.XML; using F4SD.ActionConnector.Enumerations; using System; using System.Collections.Generic; using System.Net.Http; using System.Xml; namespace F4SD.ActionConnector.Models { public sealed class HttpCallDefinition : ActionDefinitionBase { public override ActionType Type => ActionType.HttpCall; public string Url { get; set; } public HttpMethod Method { get; set; } = HttpMethod.Post; public TimeSpan Timeout { get; set; } = TimeSpan.FromSeconds(30); public IDictionary Headers { get; set; } = new Dictionary(); public string Body { get; set; } /// /// jsonPath expressions keyed by field name, used to extract values from the response. /// public IDictionary MappedFieldJsonPaths { get; set; } = new Dictionary(); internal HttpCallDefinition(XmlElement xNode, cXmlParser parser) : base(xNode, parser) { } } }