mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
b506fd3ab7
Co-Authored-By: Mark McDowall <markus101@users.noreply.github.com>
51 lines
1.1 KiB
C#
51 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using NzbDrone.Core.Messaging.Commands;
|
|
|
|
namespace NzbDrone.Core.Music.Commands
|
|
{
|
|
public class BulkMoveArtistCommand : Command
|
|
{
|
|
public List<BulkMoveArtist> Artist { get; set; }
|
|
public string DestinationRootFolder { get; set; }
|
|
|
|
public override bool SendUpdatesToClient => true;
|
|
}
|
|
|
|
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();
|
|
}
|
|
}
|
|
}
|