Add Support for Referencing Files Object in Item Class #84
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
I had to access information of attached files in an item.
Description
A new
File
class has been added to represent the files associated with an item.The
Item
class has been updated to include aFiles
property, allowing easy access to any files linked to an item.I have not added the support for editing file objects.
Note
Due to limitations in my local environment, I was unable to run the suite of tests or add new test cases for this feature. I would greatly appreciate it if someone with the appropriate setup could assist with testing or guide me through the process.
I kept the existing code style in the new code but I welcome any feedback or suggestions for improvement.
Thank you for your consideration.