Replaced built-in valuetypes with language keywords.

This commit is contained in:
Taloth Saldono
2015-10-03 19:45:26 +02:00
parent d6a135857d
commit ccfa13e383
454 changed files with 2042 additions and 2042 deletions
@@ -14,14 +14,14 @@ namespace NzbDrone.Core.Parser.Model
Episodes = new List<Episode>();
}
public String Path { get; set; }
public Int64 Size { get; set; }
public string Path { get; set; }
public long Size { get; set; }
public ParsedEpisodeInfo ParsedEpisodeInfo { get; set; }
public Series Series { get; set; }
public List<Episode> Episodes { get; set; }
public QualityModel Quality { get; set; }
public MediaInfoModel MediaInfo { get; set; }
public Boolean ExistingFile { get; set; }
public bool ExistingFile { get; set; }
public int SeasonNumber
{
@@ -7,18 +7,18 @@ namespace NzbDrone.Core.Parser.Model
{
public class ParsedEpisodeInfo
{
public String SeriesTitle { get; set; }
public string SeriesTitle { get; set; }
public SeriesTitleInfo SeriesTitleInfo { get; set; }
public QualityModel Quality { get; set; }
public Int32 SeasonNumber { get; set; }
public Int32[] EpisodeNumbers { get; set; }
public Int32[] AbsoluteEpisodeNumbers { get; set; }
public String AirDate { get; set; }
public int SeasonNumber { get; set; }
public int[] EpisodeNumbers { get; set; }
public int[] AbsoluteEpisodeNumbers { get; set; }
public string AirDate { get; set; }
public Language Language { get; set; }
public Boolean FullSeason { get; set; }
public Boolean Special { get; set; }
public String ReleaseGroup { get; set; }
public String ReleaseHash { get; set; }
public bool FullSeason { get; set; }
public bool Special { get; set; }
public string ReleaseGroup { get; set; }
public string ReleaseHash { get; set; }
public ParsedEpisodeInfo()
{
@@ -30,7 +30,7 @@ namespace NzbDrone.Core.Parser.Model
{
get
{
return !String.IsNullOrWhiteSpace(AirDate);
return !string.IsNullOrWhiteSpace(AirDate);
}
//This prevents manually downloading a release from blowing up in mono
@@ -72,22 +72,22 @@ namespace NzbDrone.Core.Parser.Model
if (IsDaily && EpisodeNumbers.Empty())
{
episodeString = String.Format("{0}", AirDate);
episodeString = string.Format("{0}", AirDate);
}
else if (FullSeason)
{
episodeString = String.Format("Season {0:00}", SeasonNumber);
episodeString = string.Format("Season {0:00}", SeasonNumber);
}
else if (EpisodeNumbers != null && EpisodeNumbers.Any())
{
episodeString = String.Format("S{0:00}E{1}", SeasonNumber, String.Join("-", EpisodeNumbers.Select(c => c.ToString("00"))));
episodeString = string.Format("S{0:00}E{1}", SeasonNumber, string.Join("-", EpisodeNumbers.Select(c => c.ToString("00"))));
}
else if (AbsoluteEpisodeNumbers != null && AbsoluteEpisodeNumbers.Any())
{
episodeString = String.Format("{0}", String.Join("-", AbsoluteEpisodeNumbers.Select(c => c.ToString("000"))));
episodeString = string.Format("{0}", string.Join("-", AbsoluteEpisodeNumbers.Select(c => c.ToString("000"))));
}
return String.Format("{0} - {1} {2}", SeriesTitle, episodeString, Quality);
return string.Format("{0} - {1} {2}", SeriesTitle, episodeString, Quality);
}
}
}
@@ -11,7 +11,7 @@ namespace NzbDrone.Core.Parser.Model
public ParsedEpisodeInfo ParsedEpisodeInfo { get; set; }
public Series Series { get; set; }
public List<Episode> Episodes { get; set; }
public Boolean DownloadAllowed { get; set; }
public bool DownloadAllowed { get; set; }
public bool IsRecentEpisode()
{
@@ -7,10 +7,10 @@ namespace NzbDrone.Core.Parser.Model
{
public string MagnetUrl { get; set; }
public string InfoHash { get; set; }
public Int32? Seeders { get; set; }
public Int32? Peers { get; set; }
public int? Seeders { get; set; }
public int? Peers { get; set; }
public static Int32? GetSeeders(ReleaseInfo release)
public static int? GetSeeders(ReleaseInfo release)
{
var torrentInfo = release as TorrentInfo;