Skip to main content

SocialClient

A class in Alta.Api.Client, Alta.Api.Client.HighLevel.

Online client for friends. Reached as ApiAccess.ApiClient.SocialClient; calls Alta's web API, which no longer answers. TavernEssentials swaps in its own.

Constructors​

1 private and internal constructor
MemberWhat it is
internal SocialClient(IHighLevelApiClientManager clientManager)Creates a SocialClient from clientManager.

Methods​

MemberWhat it is
async Task<FriendRequestedType> AddFriend(int friendIdentifier)Sends or accepts a friend request and returns what happened.
Task<FriendRequestResult> CreateFriendshipBetweenUsers(int userIdentifier, int friendIdentifier)Makes two users friends directly, an admin call.
Task<IEnumerable<FriendshipInfo>> GetFriendRequests()Gets every incoming friend request, all pages.
Task<IEnumerable<FriendshipInfo>> GetFriends()Gets every friend of the logged-in user, all pages.
Task<IEnumerable<FriendshipInfo>> GetFriendsForUser(int userIdentifier)Gets every friend of the given user, all pages.
Task<FriendshipInfo> GetFriendship(int userIdentifier, int friendIdentifier)Gets the friendship between two users.
Task<IEnumerable<OculusFriendInfo>> GetOculusFriends(IEnumerable<ulong> oculusIds)Gets Alta friendship details for a list of Oculus IDs.
Task<IEnumerable<FriendshipInfo>> GetSentFriendRequests()Gets every outgoing friend request, all pages.
Task RemoveFriend(int friendIdentifier)Removes a friend.