C# 클래스 SteamWebAPI.SteamAPISession

Class allowing you to use the Steam Web API to log in and use Steam Friends functionality.
파일 보기 프로젝트 열기: Overv/SteamWebAPI 1 사용 예제들

공개 메소드들

메소드 설명
Authenticate ( String accessToken ) : LoginStatus

Authenticate with an access token previously retrieved with a username and password (and SteamGuard code).

Authenticate ( String username, String password, String emailauthcode = "" ) : LoginStatus

Authenticate with a username and password. Sends the SteamGuard e-mail if it has been set up.

GetFriends ( String steamid = null ) : List

Fetch all friends of a given user.

This function does not provide detailed information.

GetGroupAvatar ( GroupInfo group, AvatarSize size = AvatarSize.Small ) : Bitmap

Retrieve the avatar of the specified group in the specified format.

GetGroupInfo ( String steamid ) : GroupInfo
GetGroupInfo ( List groups ) : List
GetGroupInfo ( List steamids ) : List

Retrieve information about the specified groups.

GetGroups ( String steamid = null ) : List

Fetch all groups of a given user.

GetServerInfo ( ) : ServerInfo

Retrieves information about the server.

GetUserAvatar ( User user, AvatarSize size = AvatarSize.Small ) : Bitmap

Retrieve the avatar of the specified user in the specified format.

GetUserInfo ( List friends ) : List
GetUserInfo ( List steamids ) : List

Retrieve information about the specified users.

This function doesn't have the 100 users limit the original API has.

GetUserInfo ( String steamid = null ) : User
Poll ( ) : List

Check for updates and new messages.

SendMessage ( String steamid, String message ) : bool
SendMessage ( User user, String message ) : bool

Send a text message to the specified user.

SendTypingNotification ( User user ) : bool

Let a user know you're typing a message. Should be called periodically.

비공개 메소드들

메소드 설명
login ( ) : bool

Helper function to complete the login procedure and check the credentials.

steamRequest ( String get, String post = null ) : String

Helper function to perform Steam API requests.

unixTimestamp ( long timestamp ) : System.DateTime

메소드 상세

Authenticate() 공개 메소드

Authenticate with an access token previously retrieved with a username and password (and SteamGuard code).
public Authenticate ( String accessToken ) : LoginStatus
accessToken String Access token retrieved with credentials
리턴 LoginStatus

Authenticate() 공개 메소드

Authenticate with a username and password. Sends the SteamGuard e-mail if it has been set up.
public Authenticate ( String username, String password, String emailauthcode = "" ) : LoginStatus
username String Username
password String Password
emailauthcode String SteamGuard code sent by e-mail
리턴 LoginStatus

GetFriends() 공개 메소드

Fetch all friends of a given user.
This function does not provide detailed information.
public GetFriends ( String steamid = null ) : List
steamid String steamid of target user or self
리턴 List

GetGroupAvatar() 공개 메소드

Retrieve the avatar of the specified group in the specified format.
public GetGroupAvatar ( GroupInfo group, AvatarSize size = AvatarSize.Small ) : Bitmap
group GroupInfo Group
size AvatarSize Requested avatar size
리턴 System.Drawing.Bitmap

GetGroupInfo() 공개 메소드

public GetGroupInfo ( String steamid ) : GroupInfo
steamid String
리턴 GroupInfo

GetGroupInfo() 공개 메소드

public GetGroupInfo ( List groups ) : List
groups List
리턴 List

GetGroupInfo() 공개 메소드

Retrieve information about the specified groups.
public GetGroupInfo ( List steamids ) : List
steamids List 64-bit SteamIDs of groups
리턴 List

GetGroups() 공개 메소드

Fetch all groups of a given user.
public GetGroups ( String steamid = null ) : List
steamid String SteamID
리턴 List

GetServerInfo() 공개 메소드

Retrieves information about the server.
public GetServerInfo ( ) : ServerInfo
리턴 ServerInfo

GetUserAvatar() 공개 메소드

Retrieve the avatar of the specified user in the specified format.
public GetUserAvatar ( User user, AvatarSize size = AvatarSize.Small ) : Bitmap
user User User
size AvatarSize Requested avatar size
리턴 System.Drawing.Bitmap

GetUserInfo() 공개 메소드

public GetUserInfo ( List friends ) : List
friends List
리턴 List

GetUserInfo() 공개 메소드

Retrieve information about the specified users.
This function doesn't have the 100 users limit the original API has.
public GetUserInfo ( List steamids ) : List
steamids List 64-bit SteamIDs of users
리턴 List

GetUserInfo() 공개 메소드

public GetUserInfo ( String steamid = null ) : User
steamid String
리턴 User

Poll() 공개 메소드

Check for updates and new messages.
public Poll ( ) : List
리턴 List

SendMessage() 공개 메소드

public SendMessage ( String steamid, String message ) : bool
steamid String
message String
리턴 bool

SendMessage() 공개 메소드

Send a text message to the specified user.
public SendMessage ( User user, String message ) : bool
user User
message String Message contents
리턴 bool

SendTypingNotification() 공개 메소드

Let a user know you're typing a message. Should be called periodically.
public SendTypingNotification ( User user ) : bool
user User
리턴 bool