Files
Readarr/src/NzbDrone.Core/Parser/Model/RemoteAlbum.cs
Qstick 0f3c355381 New DB Schema
Rearrange DB Schema for Album Centric Plan
2017-06-12 22:02:17 -04:00

26 lines
672 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using NzbDrone.Core.Music;
namespace NzbDrone.Core.Parser.Model
{
public class RemoteAlbum
{
public ReleaseInfo Release { get; set; }
public ParsedTrackInfo ParsedTrackInfo { get; set; }
public Artist Artist { get; set; }
public List<Album> Albums { get; set; }
public bool DownloadAllowed { get; set; }
public bool IsRecentAlbum()
{
return Albums.Any(e => e.ReleaseDate >= DateTime.UtcNow.Date.AddDays(-14));
}
public override string ToString()
{
return Release.Title;
}
}
}