mirror of
https://github.com/gogcom/galaxy-integrations-python-api.git
synced 2026-01-28 00:28:25 -05:00
Add achievements_import_complete and game_times_import_complete
This commit is contained in:
@@ -545,6 +545,7 @@ class Plugin:
|
||||
finally:
|
||||
self._achievements_import_finished()
|
||||
self._achievements_import_in_progress = False
|
||||
self.achievements_import_complete()
|
||||
|
||||
self.create_task(import_games_achievements(game_ids, context), "Games unlocked achievements import")
|
||||
self._achievements_import_in_progress = True
|
||||
@@ -568,6 +569,11 @@ class Plugin:
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def achievements_import_complete(self):
|
||||
"""Override this method to handle operations after achievements import is finished
|
||||
(like updating cache).
|
||||
"""
|
||||
|
||||
async def get_local_games(self) -> List[LocalGame]:
|
||||
"""Override this method to return the list of
|
||||
games present locally on the users pc.
|
||||
@@ -692,6 +698,7 @@ class Plugin:
|
||||
finally:
|
||||
self._game_times_import_finished()
|
||||
self._game_times_import_in_progress = False
|
||||
self.game_times_import_complete()
|
||||
|
||||
self.create_task(import_game_times(game_ids, context), "Game times import")
|
||||
self._game_times_import_in_progress = True
|
||||
@@ -714,6 +721,11 @@ class Plugin:
|
||||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def game_times_import_complete(self):
|
||||
"""Override this method to handle operations after game times import is finished
|
||||
(like updating cache).
|
||||
"""
|
||||
|
||||
|
||||
def create_and_run_plugin(plugin_class, argv):
|
||||
"""Call this method as an entry point for the implemented integration.
|
||||
|
||||
Reference in New Issue
Block a user