Method EconomyGetInventoryItems
EconomyGetInventoryItems(String)
Gets information about items available in the current player's inventory.
Declaration
public System.Threading.Tasks.Task<Den.Dev.Grunt.Models.HaloApiResultContainer<Den.Dev.Grunt.Models.HaloInfinite.PlayerInventory,Den.Dev.Grunt.Models.RawResponseContainer>> EconomyGetInventoryItems (string player);
Parameters
Type | Name | Description |
---|---|---|
System.String | player | The unique player XUID, in the format "xuid(XUID_VALUE)". |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<HaloApiResultContainer<PlayerInventory,RawResponseContainer>> | If successful, returns an instance of PlayerInventory that contains a list of items in the player's inventory. Otherwise, returns null. |
Examples
Here is an example response from the API, as snapshotted on 6/13/2022:
{
"Items": [
{
"Amount": 2,
"ItemId": "301-100-base-cyan-899ff22a",
"ItemPath": "Inventory/Ai/Colors/301-100-base-cyan-899ff22a.json",
"ItemType": "AiColor",
"FirstAcquiredDate": {
"ISO8601Date": "2021-11-20T05:41:32.354Z"
}
},
{
"Amount": 2,
"ItemId": "301-100-base-orange-58e3a39b",
"ItemPath": "Inventory/Ai/Colors/301-100-base-orange-58e3a39b.json",
"ItemType": "AiColor",
"FirstAcquiredDate": {
"ISO8601Date": "2021-11-20T05:41:32.355Z"
}
}
]
}