|
11 | 11 | from galaxy.api.errors import ImportInProgress, UnknownError
|
12 | 12 | from galaxy.api.jsonrpc import ApplicationError, NotificationClient, Server
|
13 | 13 | from galaxy.api.types import (
|
14 |
| - Achievement, Authentication, FriendInfo, Game, GameLibrarySettings, GameTime, LocalGame, NextStep, UserPresence |
| 14 | + Achievement, Authentication, Game, GameLibrarySettings, GameTime, LocalGame, NextStep, UserInfo, UserPresence |
15 | 15 | )
|
16 | 16 | from galaxy.task_manager import TaskManager
|
17 | 17 |
|
@@ -383,10 +383,10 @@ def tick(self):
|
383 | 383 | params = {"local_game": local_game}
|
384 | 384 | self._notification_client.notify("local_game_status_changed", params)
|
385 | 385 |
|
386 |
| - def add_friend(self, user: FriendInfo) -> None: |
| 386 | + def add_friend(self, user: UserInfo) -> None: |
387 | 387 | """Notify the client to add a user to friends list of the currently authenticated user.
|
388 | 388 |
|
389 |
| - :param user: FriendInfo of a user that the client will add to friends list |
| 389 | + :param user: UserInfo of a user that the client will add to friends list |
390 | 390 | """
|
391 | 391 | params = {"friend_info": user}
|
392 | 392 | self._notification_client.notify("friend_added", params)
|
@@ -747,7 +747,7 @@ async def launch_platform_client(self) -> None:
|
747 | 747 | This method is called by the GOG Galaxy Client."""
|
748 | 748 | raise NotImplementedError()
|
749 | 749 |
|
750 |
| - async def get_friends(self) -> List[FriendInfo]: |
| 750 | + async def get_friends(self) -> List[UserInfo]: |
751 | 751 | """Override this method to return the friends list
|
752 | 752 | of the currently authenticated user.
|
753 | 753 | This method is called by the GOG Galaxy Client.
|
|
0 commit comments