sonarr-repo-only/NzbDrone.Api/Resolvers/QualityTypesToIntResolver.cs

17 lines
371 B
C#
Raw Normal View History

2012-11-09 16:28:59 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AutoMapper;
2013-02-27 03:19:22 +00:00
using NzbDrone.Core.Qualities;
2012-11-09 16:28:59 +00:00
namespace NzbDrone.Api.Resolvers
{
2013-02-27 03:19:22 +00:00
public class QualityTypesToIntResolver : ValueResolver<Quality, Int32>
2012-11-09 16:28:59 +00:00
{
2013-02-27 03:19:22 +00:00
protected override int ResolveCore(Quality source)
2012-11-09 16:28:59 +00:00
{
return source.Id;
}
}
}