namespace Insight.Updater.Constants
{
    public static class Deploy
    {
        public static class Agent
        {
            public const string Name = "Agent";
            public const string ServiceName = "insight_agent";
            public const string Description = "Insight Agent";
        }

        public static DirectoryInfo GetAppDirectory(string appName)
            => new($"{Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)}/Webmatic/Insight/{appName}");

        public static FileInfo GetAppExecutable(string appName)
            => new($"{GetAppDirectory(appName).FullName}/{appName.ToLower()}.exe");

        public static Uri GetUpdateHref(Uri api, string appName)
            => new($"{api.AbsoluteUri}/update/{appName.ToLower()}/windows");
    }
}