public UserApi(Endpoints endPoints, IApiClient apiClient, IJsonSerializer serializer, Credentials credentials) : base(apiClient, serializer, credentials, endPoints.LoggedIn) { this.endPoints = endPoints.User; this.serializer = serializer; }
public AdminEndpoint(IRestClient client) { Nests = new NestEndpoints(client); Users = new UserEndpoints(client); Locations = new LocationEndpoints(client); Nodes = new NodeEndpoints(client); Servers = new ServerEndpoints(client); Database = new DatabaseEndpoints(client); }
public UserApi(UserEndpoints endPoints, IApiClient apiClient, IJsonSerializer serializer, Credentials credentials) : base(apiClient, serializer, credentials) { this.endPoints = endPoints; }
/// <summary> /// Returns a list of the user's friends /// </summary> /// <param name="steamID">Steam ID of the user</param> /// <returns></returns> public List <Friend> GetFriendList(long steamID) { ThrowMissingApiKey(); return(UserEndpoints.GetFriendList(ApiKey, steamID)); }
/// <summary> /// Converts a Steam user's vanity profile URL to their Steam ID /// </summary> /// <param name="profileUrl">URL to the users profile homepage</param> /// <returns></returns> public long?ResolveVanityUrl(string profileUrl) { ThrowMissingApiKey(); return(UserEndpoints.ResolveVanityUrl(ApiKey, profileUrl)); }
/// <summary> /// Get player information for multiple players. Some information is not available if /// the player's profile is private or friends only. Requires an API key. /// </summary> /// <param name="steamIDs">List of player's Steam IDs</param> public List <SteamUser> GetPlayerSummaries(IEnumerable <long> steamIDs) { ThrowMissingApiKey(); return(UserEndpoints.GetPlayerSummaries(ApiKey, steamIDs)); }