You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.4 KiB
52 lines
1.4 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using NzbDrone.Common.Extensions;
|
|
using NzbDrone.Core.Qualities;
|
|
|
|
namespace NzbDrone.Core.MediaFiles.TrackImport.Manual
|
|
{
|
|
public class ManualImportFile : IEquatable<ManualImportFile>
|
|
{
|
|
public string Path { get; set; }
|
|
public int ArtistId { get; set; }
|
|
public int AlbumId { get; set; }
|
|
public int AlbumReleaseId { get; set; }
|
|
public List<int> TrackIds { get; set; }
|
|
public QualityModel Quality { get; set; }
|
|
public string DownloadId { get; set; }
|
|
public bool DisableReleaseSwitching { get; set; }
|
|
public bool IsSingleFileRelease { get; set; }
|
|
public string CueSheetPath { get; set; }
|
|
|
|
public bool Equals(ManualImportFile other)
|
|
{
|
|
if (other == null)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return Path.PathEquals(other.Path);
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (obj == null)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
if (obj.GetType() != GetType())
|
|
{
|
|
return false;
|
|
}
|
|
|
|
return Path.PathEquals(((ManualImportFile)obj).Path);
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return Path != null ? Path.GetHashCode() : 0;
|
|
}
|
|
}
|
|
}
|