Example #1
0
        public async Task <List <ItemModel> > GetCharInventory(MemberModel member, ItemService service, ItemsManifestService manifest, CharacterModel character)
        {
            var inventoryPath = await service.GetInventoryItemHashesAsync(member, character.Id.ToString(), _aPIAccessor);

            var inventoryManifest = await service.AddItemsListAsync("Equipped", inventoryPath, member, manifest, _aPIAccessor);

            if (inventoryManifest.Count == 0)
            {
                inventoryManifest = service.AddEmptyItem();
            }

            return(inventoryManifest);
        }