C# Class Sharpcraft.Steam.SteamFriendList

Class for managing Steam friends.
Afficher le fichier Open project: SijmenSchoon/Sharpcraft Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

GetFriendByName() public méthode

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.
Résultat SteamFriend

GetFriendBySteamId() public méthode

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

GetFriendCount() public méthode

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

GetFriends() public méthode

Return the list of Steam friends.
public GetFriends ( ) : IEnumerable
Résultat IEnumerable