I am trying to retrieve a collection of folders and process any Query Folders that exist among them.
Right now, I am retrieving a folder named "Actions" that resides in the Cabinet folder, and then getting a list of subfolders under the "Actions" folder.
I am unable to cast the folder object in the getFolderListResponse object as QueryFolders. In addition, the Folder class seems to be missing a way to determine the type of each of the folders in the collection. (Oddly, there is are "type" and "folderType" members in the QueryFolder and SystemFolder classes, but if I have a QueryFolder or SystemFolder object, I already know the type, so they don't help...)
What's the best way to retrieve query folders and modify/process their query objects and targets?