﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Azure.Sdk.Tools.TestProxy.Common
{
    public class ModifiableRecordSession
    {
        public RecordMatcher CustomMatcher { get; set;}

        public RecordSession Session { get; }

        public ModifiableRecordSession(RecordSession session)
        {
            Session = session;
        }

        public List<ResponseTransform> AdditionalTransforms { get; } = new List<ResponseTransform>();

        public List<RecordedTestSanitizer> AdditionalSanitizers { get; }= new List<RecordedTestSanitizer>();

        public string SourceRecordingId { get; set; }

        public void ResetExtensions()
        {
            AdditionalTransforms.Clear();
            AdditionalSanitizers.Clear();
            CustomMatcher = null;
        }
    }
}
