C# 클래스 Sharpcraft.Steam.SteamFriendList

Class for managing Steam friends.
파일 보기 프로젝트 열기: SijmenSchoon/Sharpcraft 1 사용 예제들

공개 메소드들

메소드 설명
GetFriendByName ( string name ) : SteamFriend

Get a friend by their name (alias).

Note that the name (alias) can change frequently, do not rely on the name to keep track of friends.

GetFriendBySteamId ( string id ) : SteamFriend

Get a friend by their SteamID.

GetFriendCount ( bool online = false ) : int

Get number of Steam friends.

GetFriends ( ) : IEnumerable

Return the list of Steam friends.

비공개 메소드들

메소드 설명
FriendsUpdate ( SteamFriendsEventArgs e ) : void

Method called from SteamFriendList that fires OnFriendsUpdate.

LoadFriends ( ) : void

Load all Steam friends into list.

SteamClose ( ) : void

Handler for SteamClose event, disposes timer and clears friend list.

SteamFriendList ( ) : System.Collections.Generic

Initialize a new SteamFriendList.

Update ( object state ) : void

Updates the friend list.

메소드 상세

GetFriendByName() 공개 메소드

Get a friend by their name (alias).
Note that the name (alias) can change frequently, do not rely on the name to keep track of friends.
public GetFriendByName ( string name ) : SteamFriend
name string The name (alias) to look up.
리턴 SteamFriend

GetFriendBySteamId() 공개 메소드

Get a friend by their SteamID.
public GetFriendBySteamId ( string id ) : SteamFriend
id string representation of the friend's SteamID.
리턴 SteamFriend

GetFriendCount() 공개 메소드

Get number of Steam friends.
public GetFriendCount ( bool online = false ) : int
online bool Whether or not to only return the number of online friends.
리턴 int

GetFriends() 공개 메소드

Return the list of Steam friends.
public GetFriends ( ) : IEnumerable
리턴 IEnumerable