// Unity C# reference source
// Copyright (c) Unity Technologies. For terms of use, see
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License

using System;
using UnityEngine;

namespace UnityEditor.PackageManager.UI.Internal
{
    [ExcludeFromPreset]
    [Serializable]
    internal class PackageSelectionObject : ScriptableObject
    {
        public string displayName;
        public string packageUniqueId;
        public string versionUniqueId;

        public string uniqueId => string.IsNullOrEmpty(versionUniqueId) ? packageUniqueId : versionUniqueId;
    }
}
