C# Class GW2PAO.TS3.Services.TeamspeakConnection

Mostrar archivo Open project: SamHurne/gw2pao

Public Methods

Method Description
Connect ( ) : void

Connects to the Teamspeak Client Query interface

Disconnect ( ) : void

Disconnects from the Teamspeak Client Query interface

SendCommand ( TS3QueryLib.Core.CommandHandling.Command command ) : string

Sends a command to teamspeak

SendWhoAmI ( ) : WhoAmIResponse

Sends the WhoAmI command

TeamspeakConnection ( ) : GW2PAO.TS3.Data.Enums

Default constructor

Private Methods

Method Description
CommandQueryDispatcher_ReadyForSendingCommands ( object sender, EventArgs e ) : void

Handler for the ReadyForSendingCommands event

EventQueryDispatcher_NotificationReceived ( object sender, EventArgs e ) : void

Handler for the NotificationReceived event

EventQueryDispatcher_ReadyForSendingCommands ( object sender, EventArgs e ) : void

Handler for the ReadyForSendingCommands event

EventQueryDispatcher_ServerClosedConnection ( object sender, EventArgs e ) : void

Handler for the ServerClosedConnection event

EventQueryRunner_TalkStatusChanged ( object sender, TS3QueryLib e ) : void

Handler for the TalkStatusChanged event

Poll ( ) : void

Method used to poll the server, keeping the connection open

QueryDispatcher_BanDetected ( object sender, EventArgs e ) : void

Handler for the BanDetected event

QueryDispatcher_SocketError ( object sender, TS3QueryLib.Core.Communication.SocketErrorEventArgs e ) : void

Handler for the SocketError event

RaiseConnected ( ) : void

Raises the TalkStatusChanged event

RaiseConnectionRefused ( ) : void

Raises the TalkStatusChanged event

RaiseDisconnected ( ) : void

Raises the TalkStatusChanged event

RaiseNotificationReceived ( string notification ) : void

Raises the NotificationReceived event

RaiseTalkStatusChanged ( TalkStatusEventArgs args ) : void

Raises the TalkStatusChanged event

Method Details

Connect() public method

Connects to the Teamspeak Client Query interface
public Connect ( ) : void
return void

Disconnect() public method

Disconnects from the Teamspeak Client Query interface
public Disconnect ( ) : void
return void

SendCommand() public method

Sends a command to teamspeak
public SendCommand ( TS3QueryLib.Core.CommandHandling.Command command ) : string
command TS3QueryLib.Core.CommandHandling.Command The command to send
return string

SendWhoAmI() public method

Sends the WhoAmI command
public SendWhoAmI ( ) : WhoAmIResponse
return WhoAmIResponse

TeamspeakConnection() public method

Default constructor
public TeamspeakConnection ( ) : GW2PAO.TS3.Data.Enums
return GW2PAO.TS3.Data.Enums