Exemple #1
0
    internal static void RemoveListFromLikes(TraktListDetail list)
    {
      if (_LikedLists == null)
        return;

      var likedLists = _LikedLists.ToList();
      likedLists.RemoveAll(l => l.List.Ids.Trakt == list.Ids.Trakt);

      _LikedLists = likedLists;
    }
Exemple #2
0
    internal static void AddListToLikes(TraktListDetail list)
    {
      var likedLists = (_LikedLists ?? new List<TraktLike>()).ToList();

      likedLists.Add(new TraktLike
      {
        LikedAt = DateTime.UtcNow.ToISO8601(),
        List = list,
        Type = "list"
      });

      _LikedLists = likedLists;
    }