C# Класс Sharpcraft.Steam.SteamFriendList

Class for managing Steam friends.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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