Exemplo n.º 1
0
        public async Task <List <ItemModel> > GetEquippedItems(MemberModel member, ItemService service, ItemsManifestService manifest, CharacterModel character)
        {
            var equippedPath = await service.GetEquippedItemHashesAsync(member, character.Id.ToString(), _aPIAccessor);

            var equippedManifest = await service.AddItemsListAsync("Equipped", equippedPath, member, manifest, _aPIAccessor);

            return(equippedManifest);
        }
Exemplo n.º 2
0
        public async Task <List <ItemModel> > GetVaultItems(MemberModel member, ItemService service, ItemsManifestService manifest)
        {
            var vaultPath = await service.GetVaultItemHashesAsync(member, _aPIAccessor);

            var vaultManifest = await service.AddItemsListAsync("Vault", vaultPath, member, manifest, _aPIAccessor);

            return(vaultManifest);
        }
Exemplo n.º 3
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);
        }