예제 #1
0
파일: UserApi.cs 프로젝트: l0gaw/mobileapp
 public UserApi(Endpoints endPoints, IApiClient apiClient, IJsonSerializer serializer,
                Credentials credentials)
     : base(apiClient, serializer, credentials, endPoints.LoggedIn)
 {
     this.endPoints  = endPoints.User;
     this.serializer = serializer;
 }
예제 #2
0
 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);
 }
예제 #3
0
 public UserApi(UserEndpoints endPoints, IApiClient apiClient, IJsonSerializer serializer,
                Credentials credentials)
     : base(apiClient, serializer, credentials)
 {
     this.endPoints = endPoints;
 }
예제 #4
0
 /// <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));
 }
예제 #5
0
 /// <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));
 }
예제 #6
0
 /// <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));
 }