AutoRefreshWithUpdate
This interface extends AutoRefresh by adding the capability to update an item identified by its ItemID. It provides a method to modify an existing item within the auto-refresh mechanism.
Methods
Update()
@classmethod
def Update(
id: [ItemID](../cache/itemid.md?sid=flytestdlib_cache_itemid),
item: [Item](../cache/item.md?sid=flytestdlib_cache_item)
) - > bool
Updates an existing item identified by its ID with new item data. This method is used to modify the properties of an item.
Parameters
| Name | Type | Description |
|---|---|---|
| id | [ItemID](../cache/itemid.md?sid=flytestdlib_cache_itemid) | The unique identifier of the item to be updated. |
| item | [Item](../cache/item.md?sid=flytestdlib_cache_item) | The new item data to apply to the existing item. This object should contain the updated properties. |
Returns
| Type | Description |
|---|---|
bool | A boolean indicating whether the update operation was successful (true) or not (false). |