// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.Collections.Generic;

namespace Microsoft.Plugin.Program
{
    public class ProgramPluginSettings
    {
        public DateTime LastIndexTime { get; set; }

        public List<ProgramSource> ProgramSources { get; } = new List<ProgramSource>();

        public List<DisabledProgramSource> DisabledProgramSources { get; } = new List<DisabledProgramSource>();

        public List<string> ProgramSuffixes { get; } = new List<string>() { "bat", "appref-ms", "exe", "lnk", "url" };

        public bool EnableStartMenuSource { get; set; } = true;

        public bool EnableDesktopSource { get; set; } = true;

        public bool EnableRegistrySource { get; set; } = true;

        public bool EnablePathEnvironmentVariableSource { get; set; } = true;

        public double MinScoreThreshold { get; set; } = 0.75;

        internal const char SuffixSeparator = ';';
    }
}
