5/28/2023 0 Comments Avast gog galaxy![]() ![]() Override this method to return the game time for the game Game_ids ( List) – the ids of the games for which game time are imported Return typeĬontext coroutine get_game_time ( self, game_id, context ) Override this method to prepare context for get_game_time. List coroutine prepare_game_times_context ( self, game_ids ) retrieve_friends () 6 return friends Return type is_authenticated (): 3 raise AuthenticationRequired () 4 5 friends = self. This method is called by the GOG Galaxy Client.ġ async def get_friends ( self ): 2 if not self. Override this method to return the list of Override this method to handle operations after achievements import is finished List of Achievement objects achievements_import_complete ( ) Game_id ( str) – the id of the game for which the achievements are returnedĬontext ( Any) – the value returned from prepare_achievements_context() This method is called by import task initialized by GOG Galaxy Client. Override this method to return list of unlocked achievementsįor the game identified by the provided game_id. Game_ids ( List) – the ids of the games for which achievements are imported Return typeĬontext coroutine get_unlocked_achievements ( self, game_id, context ) This allows for optimizations like batch requests to platform API.ĭefault implementation returns None. Override this method to prepare context for get_unlocked_achievements. List coroutine prepare_achievements_context ( self, game_ids ) retrieve_owned_games () 6 return games Return type authenticated (): 3 raise AuthenticationRequired () 4 5 games = self. Or NextStep if it requires going to another cef url.Ĭredentials ( Dict) – end_uri previous NextStep finished on.Ĭookies ( List]) – cookies extracted from the end_uri site.ġ async def get_owned_games ( self ): 2 if not self. This method’s parameters provide the data extracted from the web page navigation that previous NextStep finished on. This method is called if we return NextStep from authenticate() Union coroutine pass_login_credentials ( self, step, credentials, cookies ) _authenticate ( stored_credentials ) 7 except AccessDenied : 8 raise InvalidCredentials () 9 return Authentication ( user_data, user_data ) Return type In the previous session they will be passed here as a parameter.ġ async def authenticate ( self, stored_credentials = None ): 2 if not stored_credentials : 3 return NextStep ( "web_session", PARAMS, cookies = COOKIES ) 4 else : 5 try : 6 user_data = self. Stored_credentials ( Optional) – If the client received any credentials to store locally This method is called by the GOG Galaxy Client. Or NextStep if it requires going to another url. This method should either return Authentication if the authentication is finished Override this method to handle user authentication. None coroutine authenticate ( self, stored_credentials = None ) This method is called on integration shutdown. check_for_removed_games ()) 6 if not self. Override it to implement periodical non-blocking tasks.Įxample of possible override of the method:ġ def tick ( self ): 2 if not self. Override it if you need to do additional plugin initializations. Persistent cache is available when this method is called. This method is called right after the handshake with the GOG Galaxy Client is complete andīefore any other operations are called by the GOG Galaxy Client. None coroutine refresh_credentials ( self, params, sensitive_params ) Return type Push local copy of the persistent cache to the GOG Galaxy Client replacing existing one. Notify the client that integration has lost authentication for theĬurrent user and is unable to perform actions which would require it. User_presence ( UserPresence) – presence information of the specified user User_id ( str) – the id of the user whose presence information is updated Notify the client about the updated user presence information. None update_user_presence ( user_id, user_presence ) Game_time ( GameTime) – game time to update Return type Notify the client to update game time for a game. User ( UserInfo) – UserInfo of a friend whose info was updated Return type Notify the client about the updated friend information. User_id ( str) – id of the user to remove from friends list Return type Notify the client to remove a user from friends list of the currently authenticated user. ![]() User ( UserInfo) – UserInfo of a user that the client will add to friends list Return type Notify the client to add a user to friends list of the currently authenticated user. sleep ( 5 ) # interval 8 9 def tick ( self ): 10 if self. ![]() update_local_game_status ( LocalGame ( game. 1 async def _check_statuses ( self ): 2 for game in await self. ![]()
0 Comments
Leave a Reply. |