using System;
using System.Collections.Generic;
using JetBrains.Annotations;
namespace NugetForUnity.Models
{
///
/// Information about a single installed package.
///
internal class PackageInstallOperationResultEntry : IEquatable
{
///
/// Initializes a new instance of the class.
///
/// The package that was installed.
public PackageInstallOperationResultEntry([NotNull] INugetPackage package)
{
Package = package;
}
///
/// Gets the package that was installed.
///
[NotNull]
public INugetPackage Package { get; }
///
/// Gets the native runtime's of the package.
///
[NotNull]
public List AvailableNativeRuntimes { get; } = new List();
///
public bool Equals([CanBeNull] PackageInstallOperationResultEntry other)
{
if (other is null)
{
return false;
}
return Package.Equals(other.Package);
}
///
public override bool Equals([CanBeNull] object obj)
{
return Equals(obj as PackageInstallOperationResultEntry);
}
///
public override int GetHashCode()
{
return Package.GetHashCode();
}
}
}