private List <EntertainmentModel.FavoriteList> ConvertToModelFavoriteList(PopcornTime_2._0.FavoritList.FavoriteList[] serviceFavoriteLists)
        {
            EntertainmentModel.FavoriteList        temp = new EntertainmentModel.FavoriteList();
            List <EntertainmentModel.FavoriteList> convertedFavoriteList = new List <EntertainmentModel.FavoriteList>();

            foreach (PopcornTime_2._0.FavoritList.FavoriteList oldFav in serviceFavoriteLists)
            {
                EntertainmentModel.FavoriteList temp1 = new Models.FavoriteList
                {
                    Id          = oldFav.Id,
                    Author      = oldFav.Author,
                    Name        = oldFav.Name,
                    Description = oldFav.Description,
                };
                temp = temp1;
                convertedFavoriteList.Add(temp);
            }


            return(convertedFavoriteList);
        }
Example #2
0
 public void AddToFavoriteList(FavoriteList favoritelist)
 {
     favoritelists.Add(favoritelist);
 }