mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Fixed: UI fixes from Sonarr
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
This commit is contained in:
parent
6eafffeb2c
commit
b506fd3ab7
20 changed files with 117 additions and 88 deletions
|
@ -1,3 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using NzbDrone.Core.Messaging.Commands;
|
||||
|
||||
|
@ -11,9 +12,39 @@ namespace NzbDrone.Core.Music.Commands
|
|||
public override bool SendUpdatesToClient => true;
|
||||
}
|
||||
|
||||
public class BulkMoveArtist
|
||||
public class BulkMoveArtist : IEquatable<BulkMoveArtist>
|
||||
{
|
||||
public int ArtistId { get; set; }
|
||||
public string SourcePath { get; set; }
|
||||
|
||||
public bool Equals(BulkMoveArtist other)
|
||||
{
|
||||
if (other == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return ArtistId.Equals(other.ArtistId);
|
||||
}
|
||||
|
||||
public override bool Equals(object obj)
|
||||
{
|
||||
if (obj == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (obj.GetType() != GetType())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return ArtistId.Equals(((BulkMoveArtist)obj).ArtistId);
|
||||
}
|
||||
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return ArtistId.GetHashCode();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue