Remove xml doc stubs

This commit is contained in:
J2ghz 2016-11-17 11:15:26 +01:00
parent b7ab56a45b
commit 269563de63
2 changed files with 29 additions and 61 deletions

View File

@ -6,6 +6,7 @@ namespace Trakt.ScheduledTasks
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
@ -58,11 +59,8 @@ namespace Trakt.ScheduledTasks
}
/// <summary>
///
/// Gather users and call <see cref="SyncTraktDataForUser"/>
/// </summary>
/// <param name="cancellationToken"></param>
/// <param name="progress"></param>
/// <returns></returns>
public async Task Execute(CancellationToken cancellationToken, IProgress<double> progress)
{
var users = _userManager.Users.Where(u => UserHelper.GetTraktUser(u) != null).ToList();
@ -290,20 +288,21 @@ namespace Trakt.ScheduledTasks
// _logger.Info(syncItemFailures + " items not parsed");
}
private string GetVerboseEpisodeData(Episode episode)
private static string GetVerboseEpisodeData(Episode episode)
{
string episodeString = string.Empty;
episodeString += "Episode: " + (episode.ParentIndexNumber != null ? episode.ParentIndexNumber.ToString() : "null");
episodeString += "x" + (episode.IndexNumber != null ? episode.IndexNumber.ToString() : "null");
episodeString += " '" + episode.Name + "' ";
episodeString += "Series: '" + (episode.Series != null
? !string.IsNullOrWhiteSpace(episode.Series.Name)
? episode.Series.Name
: "null property"
: "null class");
episodeString += "'";
return episodeString;
var episodeString = new StringBuilder();
episodeString.Append("Episode: ");
episodeString.Append(episode.ParentIndexNumber != null ? episode.ParentIndexNumber.ToString() : "null");
episodeString.Append("x");
episodeString.Append(episode.IndexNumber != null ? episode.IndexNumber.ToString() : "null");
episodeString.Append(" '").Append(episode.Name).Append("' ");
episodeString.Append("Series: '");
episodeString.Append(episode.Series != null
? !string.IsNullOrWhiteSpace(episode.Series.Name) ? episode.Series.Name : "null property"
: "null class");
episodeString.Append("'");
return episodeString.ToString();
}
public static TraktShowWatched FindMatch(Series item, IEnumerable<TraktShowWatched> results)
@ -370,35 +369,15 @@ namespace Trakt.ScheduledTasks
return false;
}
public string Key => "TraktSyncFromTraktTask";
public IEnumerable<TaskTriggerInfo> GetDefaultTriggers() => new List<TaskTriggerInfo>();
public string Key
{
get { return "TraktSyncFromTraktTask"; }
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public IEnumerable<TaskTriggerInfo> GetDefaultTriggers()
{
return new List<TaskTriggerInfo>();
}
/// <summary>
///
/// </summary>
public string Name => "Import playstates from Trakt.tv";
/// <summary>
///
/// </summary>
public string Description => "Sync Watched/Unwatched status from Trakt.tv for each Emby user that has a configured Trakt account";
/// <summary>
///
/// </summary>
public string Category => "Trakt";
}
}

View File

@ -58,6 +58,9 @@ namespace Trakt.ScheduledTasks
get { return "TraktSyncLibraryTask"; }
}
/// <summary>
/// Gather users and call <see cref="SyncUserLibrary"/>
/// </summary>
public async Task Execute(CancellationToken cancellationToken, IProgress<double> progress)
{
var users = _userManager.Users.Where(u => UserHelper.GetTraktUser(u) != null).ToList();
@ -91,6 +94,10 @@ namespace Trakt.ScheduledTasks
}
}
/// <summary>
/// Count media items and call <see cref="SyncMovies"/> and <see cref="SyncShows"/>
/// </summary>
/// <returns></returns>
private async Task SyncUserLibrary(
User user,
TraktUser traktUser,
@ -124,27 +131,6 @@ namespace Trakt.ScheduledTasks
/// <summary>
/// Sync watched and collected status of <see cref="Movie"/>s with trakt.
/// </summary>
/// <param name="user">
/// <see cref="User"/> to get <see cref="UserItemData"/> (e.g. watched status) from.
/// </param>
/// <param name="traktUser">
/// The <see cref="TraktUser"/> to sync with.
/// </param>
/// <param name="progress">
/// Progress reporter.
/// </param>
/// <param name="progPercent">
/// Initial progress value.
/// </param>
/// <param name="percentPerItem">
/// Progress percent per item.
/// </param>
/// <param name="cancellationToken">
/// The cancellation token.
/// </param>
/// <returns>
/// Awaitable <see cref="Task"/>.
/// </returns>
private async Task SyncMovies(
User user,
TraktUser traktUser,
@ -311,6 +297,9 @@ namespace Trakt.ScheduledTasks
}
}
/// <summary>
/// Sync watched and collected status of <see cref="Movie"/>s with trakt.
/// </summary>
private async Task SyncShows(
User user,
TraktUser traktUser,