private string GetCommentItemTitle(TraktCommentItem comment)
{
string title = string.Empty;
switch (comment.Type)
{
case "movie":
title = comment.Movie.Title;
break;
case "show":
title = comment.Show.Title;
break;
case "season":
title = string.Format("{0} - {1} {2}", comment.Show.Title, Translation.Season, comment.Season.Number);
break;
case "episode":
title = string.Format("{0} - {1}x{2} - {3}", comment.Show.Title, comment.Episode.Season, comment.Episode.Number, comment.Episode.Title ?? string.Format("{0} {1}", Translation.Episode, comment.Episode.Number));
break;
case "list":
title = comment.List.Name;
break;
}
return title;
}