I have recently been developing my own Android application for Piwigo, since I wanted to add features a bit different from those present in the current app.
I realized that in order to sync the changes between app and server, (e.g. to get recently added/deleted/moved photos), I need to call pwg.categories.getList and pwg.categories.getImages for all categories and all pictures all the time.
I think it would be really useful if we had an option to request IDs of pictures and categories that have been modified since the last sync date. It could be an additional parameter 'f_min_date_modified' in methods pwg.categories.getList and pwg.categories.getImages ?
This way we could call this methods regularly in a background thread with quick response and low amount of data, and quickly know when there are new changes to apply. We could also keep a local database of all the categories and pictures, and update it by asking all the IDs that were modified since last change.
Let me know if you think it makes sens, or if there's already an efficient way to do this that I missed :) Thanks !
Hi everyone !
I have recently been developing my own Android application for Piwigo, since I wanted to add features a bit different from those present in the current app.
I realized that in order to sync the changes between app and server, (e.g. to get recently added/deleted/moved photos), I need to call pwg.categories.getList and pwg.categories.getImages for all categories and all pictures all the time.
I think it would be really useful if we had an option to request IDs of pictures and categories that have been modified since the last sync date. It could be an additional parameter 'f_min_date_modified' in methods pwg.categories.getList and pwg.categories.getImages ?
This way we could call this methods regularly in a background thread with quick response and low amount of data, and quickly know when there are new changes to apply. We could also keep a local database of all the categories and pictures, and update it by asking all the IDs that were modified since last change.
Let me know if you think it makes sens, or if there's already an efficient way to do this that I missed :) Thanks !
<!-- github-sync-id:1059434198 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Hi everyone !
I have recently been developing my own Android application for Piwigo, since I wanted to add features a bit different from those present in the current app.
I realized that in order to sync the changes between app and server, (e.g. to get recently added/deleted/moved photos), I need to call pwg.categories.getList and pwg.categories.getImages for all categories and all pictures all the time.
I think it would be really useful if we had an option to request IDs of pictures and categories that have been modified since the last sync date. It could be an additional parameter 'f_min_date_modified' in methods pwg.categories.getList and pwg.categories.getImages ?
This way we could call this methods regularly in a background thread with quick response and low amount of data, and quickly know when there are new changes to apply. We could also keep a local database of all the categories and pictures, and update it by asking all the IDs that were modified since last change.
Let me know if you think it makes sens, or if there's already an efficient way to do this that I missed :) Thanks !