C# 클래스 CSharpTradeOffers.Community.SteamUserHandler

Handles steam user related tasks.
파일 보기 프로젝트 열기: FatherFoxxy/CSharpTradeOffers 1 사용 예제들

공개 메소드들

메소드 설명
FetchMiniProfile ( SteamId id, bool client = true, int status = 1 ) : string
GetFriendList ( ulong steamId, string relationship = "" ) : List

Retrieves the friends list of the specified steamid64. The profile must be set to public or the owner of the api key must be friends with them. The profile cannot be private or the method will fail and it will return null.

GetPlayerBans ( List playersBansToRequest ) : List

Gets the bans of the specified SteamId64s

GetPlayerSummariesV2 ( List playerSummariesToRequest ) : List

Requests a list of player summaries of the players in the list.

GetUserGroupList ( ulong steamId ) : CSharpTradeOffers.Community.GetUserGroupListResult

Requests the GroupIds of the groups of the specified player.

ResolveVanityUrl ( string vanityUrl, int urlType = 1 ) : ResolveVanityUrlResult

Resolves a vanity url into a SteamId64.

SteamUserHandler ( string apiKey ) : System.Collections.Generic

Initializes a new SteamUserHandler, it is used to GetFriendList and other similiar functions.

비공개 메소드들

메소드 설명
CommaDelimit ( List toDelimit ) : string

메소드 상세

FetchMiniProfile() 공개 메소드

public FetchMiniProfile ( SteamId id, bool client = true, int status = 1 ) : string
id SteamId
client bool
status int
리턴 string

GetFriendList() 공개 메소드

Retrieves the friends list of the specified steamid64. The profile must be set to public or the owner of the api key must be friends with them. The profile cannot be private or the method will fail and it will return null.
public GetFriendList ( ulong steamId, string relationship = "" ) : List
steamId ulong SteamId64 to retrieve the friends list from.
relationship string All/Friend, there are others but I do not know what.
리턴 List

GetPlayerBans() 공개 메소드

Gets the bans of the specified SteamId64s
public GetPlayerBans ( List playersBansToRequest ) : List
playersBansToRequest List A List of steamid64s to retrieve ban information about.
리턴 List

GetPlayerSummariesV2() 공개 메소드

Requests a list of player summaries of the players in the list.
public GetPlayerSummariesV2 ( List playerSummariesToRequest ) : List
playerSummariesToRequest List A list of SteamIds to request their summaries.
리턴 List

GetUserGroupList() 공개 메소드

Requests the GroupIds of the groups of the specified player.
public GetUserGroupList ( ulong steamId ) : CSharpTradeOffers.Community.GetUserGroupListResult
steamId ulong SteamId64 of the player.
리턴 CSharpTradeOffers.Community.GetUserGroupListResult

ResolveVanityUrl() 공개 메소드

Resolves a vanity url into a SteamId64.
public ResolveVanityUrl ( string vanityUrl, int urlType = 1 ) : ResolveVanityUrlResult
vanityUrl string The vanity url part of the url (not whole url). ex: fatherfoxxy NOT https://steamcommunity.com/id/FatherFoxxy
urlType int /// 1 - (default) Individual profile /// 2 - Group Profile /// 3 - Offical Game Group Profile ///
리턴 ResolveVanityUrlResult

SteamUserHandler() 공개 메소드

Initializes a new SteamUserHandler, it is used to GetFriendList and other similiar functions.
public SteamUserHandler ( string apiKey ) : System.Collections.Generic
apiKey string Api key to use
리턴 System.Collections.Generic