// 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.IO;
namespace Microsoft.Plugin.Program
{
///
/// Contains user added folder location contents as well as all user disabled applications
///
///
/// Win32 class applications set UniqueIdentifier using their full file path
/// UWP class applications set UniqueIdentifier using their Application User Model ID
/// Custom user added program sources set UniqueIdentifier using their location
///
public class ProgramSource
{
private string name;
public string Location { get; set; }
public string Name { get => name ?? new DirectoryInfo(Location).Name; set => name = value; }
public bool Enabled { get; set; } = true;
public string UniqueIdentifier { get; set; }
}
}