namespace _04_06_Sequences.SequencePrinters
{
    using System.IO;

    internal class LongestSequencePrinter : SequencePrinter
    {
        private const string LongestSequenceMessage = "This is the longest sequence of equal numbers: {0} {1}.";

        public LongestSequencePrinter(TextWriter writer)
            : base(writer)
        {
        }

        protected override string GetResultMessage()
        {
            return LongestSequenceMessage;
        }
    }
}