ISocialClient
An interface in Alta.Api.Client, Alta.Api.Client.HighLevel.
Alta web API calls for friends. ApiAccess.ApiClient.SocialClient. TavernEssentials swaps in its own social client.
- Listed in Alta.Api.Client
- Derived types
OfflineSocialClient,SocialClient
Methods
| Member | What it is |
|---|---|
Task<FriendRequestedType> AddFriend(int friendIdentifier) | Sends a friend request. The result says whether they became friends, the request was sent, or it was already done. |
Task<FriendRequestResult> CreateFriendshipBetweenUsers(int userIdentifier, int friendIdentifier) | Makes two given users friends. Probably needs admin rights. |
Task<IEnumerable<FriendshipInfo>> GetFriendRequests() | Lists friend requests sent to the logged-in user. |
Task<IEnumerable<FriendshipInfo>> GetFriends() | Lists the logged-in user's friends. |
Task<IEnumerable<FriendshipInfo>> GetFriendsForUser(int userIdentifier) | Lists a given user's friends. |
Task<FriendshipInfo> GetFriendship(int userIdentifier, int friendIdentifier) | Gets the friendship between two users. |
Task<IEnumerable<OculusFriendInfo>> GetOculusFriends(IEnumerable<ulong> oculusIds) | Looks up Alta friendships for a list of Oculus ids. |
Task<IEnumerable<FriendshipInfo>> GetSentFriendRequests() | Lists friend requests the logged-in user has sent. |
Task RemoveFriend(int friendIdentifier) | Removes a friend. |
Used in
Members of other types that take, return or hold a ISocialClient: