C# Class Gablarski.Client.CurrentUser

Inheritance: UserInfo, ICurrentUserHandler
Datei anzeigen Open project: ermau/Gablarski

Public Methods

Method Description
CurrentUser ( IGablarskiClientContext context ) : System
Join ( string nickname, string serverPassword ) : void
Join ( string nickname, string phonetic, string serverPassword ) : void
Login ( string username, string password ) : void
MuteCapture ( ) : void

Mutes all capture and sets the user's status accordingly.

MutePlayback ( ) : void

Mutes all playback and sets the user's status accordingly.

Register ( string username, string password ) : void
SetComment ( string comment ) : void

Sets the current user's comment.

SetStatus ( UserStatus status ) : void

Sets the current user's status.

UnmuteCapture ( ) : void

Unmutes all capture and sets the user's status accordingly.

UnmutePlayback ( ) : void

Unmutes all playback and sets the user's status accordingly.

Protected Methods

Method Description
OnJoinResult ( ReceivedJoinResultEventArgs e ) : void
OnKicked ( EventArgs e ) : void
OnLoginResult ( ReceivedLoginResultEventArgs e ) : void
OnPermissionsChanged ( EventArgs e ) : void
OnRegisterResult ( ReceivedRegisterResultEventArgs e ) : void

Private Methods

Method Description
CurrentUser ( IGablarskiClientContext context, int userId, string nickname, int currentChannelId ) : System
OnJoinResultMessage ( MessageEventArgs e ) : void
OnLoginResultMessage ( MessageEventArgs e ) : void
OnPermissionsMessage ( MessageEventArgs e ) : void
OnRegisterResultMessage ( MessageEventArgs e ) : void
OnUserChangedChannelMessage ( MessageEventArgs e ) : void
OnUserKickedMessage ( MessageEventArgs e ) : void
OnUserUpdatedMessage ( MessageEventArgs e ) : void

Method Details

CurrentUser() public method

public CurrentUser ( IGablarskiClientContext context ) : System
context IGablarskiClientContext
return System

Join() public method

public Join ( string nickname, string serverPassword ) : void
nickname string
serverPassword string
return void

Join() public method

public Join ( string nickname, string phonetic, string serverPassword ) : void
nickname string
phonetic string
serverPassword string
return void

Login() public method

public Login ( string username, string password ) : void
username string
password string
return void

MuteCapture() public method

Mutes all capture and sets the user's status accordingly.
public MuteCapture ( ) : void
return void

MutePlayback() public method

Mutes all playback and sets the user's status accordingly.
public MutePlayback ( ) : void
return void

OnJoinResult() protected method

protected OnJoinResult ( ReceivedJoinResultEventArgs e ) : void
e ReceivedJoinResultEventArgs
return void

OnKicked() protected method

protected OnKicked ( EventArgs e ) : void
e System.EventArgs
return void

OnLoginResult() protected method

protected OnLoginResult ( ReceivedLoginResultEventArgs e ) : void
e ReceivedLoginResultEventArgs
return void

OnPermissionsChanged() protected method

protected OnPermissionsChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnRegisterResult() protected method

protected OnRegisterResult ( ReceivedRegisterResultEventArgs e ) : void
e ReceivedRegisterResultEventArgs
return void

Register() public method

public Register ( string username, string password ) : void
username string
password string
return void

SetComment() public method

Sets the current user's comment.
public SetComment ( string comment ) : void
comment string The comment to set. null is valid to clear.
return void

SetStatus() public method

Sets the current user's status.
public SetStatus ( UserStatus status ) : void
status UserStatus The status to set.
return void

UnmuteCapture() public method

Unmutes all capture and sets the user's status accordingly.
public UnmuteCapture ( ) : void
return void

UnmutePlayback() public method

Unmutes all playback and sets the user's status accordingly.
public UnmutePlayback ( ) : void
return void