Added CommandId to commands

This commit is contained in:
Mark McDowall 2013-08-27 17:51:54 -07:00
commit a3961ffb69
27 changed files with 218 additions and 46 deletions

View file

@ -1,3 +1,5 @@
using System;
using NzbDrone.Common;
using NzbDrone.Common.Messaging;
namespace NzbDrone.Core.MediaFiles.Commands
@ -7,8 +9,16 @@ namespace NzbDrone.Core.MediaFiles.Commands
public int SeriesId { get; private set; }
public int SeasonNumber { get; private set; }
public String CommandId { get; set; }
public RenameSeasonCommand()
{
CommandId = HashUtil.GenerateCommandId();
}
public RenameSeasonCommand(int seriesId, int seasonNumber)
{
CommandId = HashUtil.GenerateCommandId();
SeriesId = seriesId;
SeasonNumber = seasonNumber;
}