﻿using System.Collections.Generic;
using Newtonsoft.Json;
using PactNet.Configuration.Json.Converters;

namespace PactNet.Mocks.MockHttpService.Models
{
    public class ProviderServiceResponse : IHttpMessage
    {
        [JsonProperty(PropertyName = "status")]
        public int Status { get; set; }

        [JsonProperty(PropertyName = "headers")]
        [JsonConverter(typeof(PreserveCasingDictionaryConverter))]
        public IDictionary<string, string> Headers { get; set; }

        [JsonProperty(PropertyName = "body")]
        public dynamic Body { get; set; }

        [JsonProperty(PropertyName = "responseMatchingRules")]
        public IDictionary<string, dynamic> ResponseMatchingRules { get; set; }
    }
}