internal static void RemoveCommentFromLikes(TraktComment comment) { if (_LikedComments == null) return; var likedComments = _LikedComments.ToList(); likedComments.RemoveAll(l => l.Comment.Id == comment.Id); _LikedComments = likedComments; }
internal static void AddCommentToLikes(TraktComment comment) { var likedComments = (_LikedComments ?? new List<TraktLike>()).ToList(); likedComments.Add(new TraktLike { LikedAt = DateTime.UtcNow.ToISO8601(), Comment = comment, Type = "comment" }); _LikedComments = likedComments; }