public AnimeMatch(AnimeWishlist wishlist) { _items = new Item[wishlist.Items.Count]; for (var i = 0; i < _items.Length; i++) { _items[i] = new Item(wishlist.Items[i]); } }
void ResetAnimeMatch(AnimeWishlist wishlist) { try { _anime = new AnimeMatch(wishlist); _logger.LogDebug($"Loaded anime wishlist: {JsonConvert.SerializeObject(wishlist)}"); } catch (Exception e) { _anime = default; _logger.LogWarning(e, "Could not build anime match."); } }