C# Class Sharpcraft.Steam.SteamFriend

Represents a steam user that is a friend of the currently logged in user.
ファイルを表示 Open project: SijmenSchoon/Sharpcraft Class Usage Examples

Public Properties

Property Type Description
SteamID Steam4NET.CSteamID

Public Methods

Method Description
GetName ( ) : string

Gets the current name of this friend.

GetState ( ) : EPersonaState

Get the EPersonaState of this friend.

GetStatus ( bool pretty = false ) : string

Get a string representation of this friend's state.

IsOnline ( ) : bool

Check if this friend is online-

SendEmote ( string emote ) : void

Send an emote to this friend.

This will appear in the target's chatlog as "<user> <emote>.

SendMessage ( string message ) : void

Send a message to this friend.

Private Methods

Method Description
SteamFriend ( CSteamID steamID ) : Steam4NET

Initialize a new SteamFriend.

Method Details

GetName() public method

Gets the current name of this friend.
public GetName ( ) : string
return string

GetState() public method

Get the EPersonaState of this friend.
public GetState ( ) : EPersonaState
return EPersonaState

GetStatus() public method

Get a string representation of this friend's state.
public GetStatus ( bool pretty = false ) : string
pretty bool If true, will change the format of the return value to have the first letter capitalized.
return string

IsOnline() public method

Check if this friend is online-
public IsOnline ( ) : bool
return bool

SendEmote() public method

Send an emote to this friend.
This will appear in the target's chatlog as "<user> <emote>.
public SendEmote ( string emote ) : void
emote string Emote to send.
return void

SendMessage() public method

Send a message to this friend.
public SendMessage ( string message ) : void
message string Message to send.
return void

Property Details

SteamID public_oe property

SteamID associated with this friend.
public CSteamID,Steam4NET SteamID
return Steam4NET.CSteamID