public WishedByMatch(UserWishlistList list) { _items = new Dictionary <ulong, Item>(list.Items.Count); foreach (var item in list.Items) { _items[item.Id] = new Item(item); } }
void ResetWishedByMatch(UserWishlistList list) { try { _wishedBy = new WishedByMatch(list); _logger.LogDebug($"Loaded user wishlist list: {JsonConvert.SerializeObject(list)}"); } catch (Exception e) { _wishedBy = default; _logger.LogWarning(e, "Could not build wishlist match."); } }