@@ -270,7 +270,7 @@ def remove_game(self, game_id: str) -> None:
270
270
"""Notify the client to remove game from the list of owned games
271
271
of the currently authenticated user.
272
272
273
- :param game_id: game id of the game to remove from the list of owned games
273
+ :param game_id: the id of the game to remove from the list of owned games
274
274
275
275
Example use case of remove_game:
276
276
@@ -300,7 +300,7 @@ def update_game(self, game: Game) -> None:
300
300
def unlock_achievement (self , game_id : str , achievement : Achievement ) -> None :
301
301
"""Notify the client to unlock an achievement for a specific game.
302
302
303
- :param game_id: game_id of the game for which to unlock an achievement.
303
+ :param game_id: the of the game for which to unlock an achievement.
304
304
:param achievement: achievement to unlock.
305
305
"""
306
306
params = {
@@ -552,9 +552,11 @@ async def import_games_achievements(game_ids_, context_):
552
552
553
553
async def prepare_achievements_context (self , game_ids : List [str ]) -> Any :
554
554
"""Override this method to prepare context for get_unlocked_achievements.
555
-
556
555
This allows for optimizations like batch requests to platform API.
557
556
Default implementation returns None.
557
+
558
+ :param game_ids: the ids of the games for which achievements are imported
559
+ :return: context
558
560
"""
559
561
return None
560
562
@@ -563,9 +565,9 @@ async def get_unlocked_achievements(self, game_id: str, context: Any) -> List[Ac
563
565
for the game identified by the provided game_id.
564
566
This method is called by import task initialized by GOG Galaxy Client.
565
567
566
- :param game_id:
567
- :param context: Value return from :meth:`prepare_achievements_context`
568
- :return:
568
+ :param game_id: the id of the game for which the achievements are returned
569
+ :param context: the value returned from :meth:`prepare_achievements_context`
570
+ :return: list of Achievement objects
569
571
"""
570
572
raise NotImplementedError ()
571
573
@@ -601,7 +603,7 @@ async def launch_game(self, game_id: str) -> None:
601
603
identified by the provided game_id.
602
604
This method is called by the GOG Galaxy Client.
603
605
604
- :param str game_id: id of the game to launch
606
+ :param str game_id: the id of the game to launch
605
607
606
608
Example of possible override of the method:
607
609
@@ -619,7 +621,7 @@ async def install_game(self, game_id: str) -> None:
619
621
identified by the provided game_id.
620
622
This method is called by the GOG Galaxy Client.
621
623
622
- :param str game_id: id of the game to install
624
+ :param str game_id: the id of the game to install
623
625
624
626
Example of possible override of the method:
625
627
@@ -637,7 +639,7 @@ async def uninstall_game(self, game_id: str) -> None:
637
639
identified by the provided game_id.
638
640
This method is called by the GOG Galaxy Client.
639
641
640
- :param str game_id: id of the game to uninstall
642
+ :param str game_id: the id of the game to uninstall
641
643
642
644
Example of possible override of the method:
643
645
@@ -707,6 +709,9 @@ async def prepare_game_times_context(self, game_ids: List[str]) -> Any:
707
709
"""Override this method to prepare context for get_game_time.
708
710
This allows for optimizations like batch requests to platform API.
709
711
Default implementation returns None.
712
+
713
+ :param game_ids: the ids of the games for which game time are imported
714
+ :return: context
710
715
"""
711
716
return None
712
717
@@ -715,13 +720,13 @@ async def get_game_time(self, game_id: str, context: Any) -> GameTime:
715
720
identified by the provided game_id.
716
721
This method is called by import task initialized by GOG Galaxy Client.
717
722
718
- :param game_id:
719
- :param context: Value return from :meth:`prepare_game_times_context`
720
- :return:
723
+ :param game_id: the id of the game for which the game time is returned
724
+ :param context: the value returned from :meth:`prepare_game_times_context`
725
+ :return: GameTime object
721
726
"""
722
727
raise NotImplementedError ()
723
728
724
- def game_times_import_complete (self ):
729
+ def game_times_import_complete (self ) -> None :
725
730
"""Override this method to handle operations after game times import is finished
726
731
(like updating cache).
727
732
"""
0 commit comments