Свойство | Type | Description | |
---|---|---|---|
DefaultHost | string | ||
DefaultPort | short |
Méthode | Description | |
---|---|---|
Connect ( ) : System.Threading.Tasks.Task |
Connects to the Query API server.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
QueryClient ( ) : System |
Creates a new instance of TeamSpeak3QueryApi.Net.QueryClient using the QueryClient.DefaultHost and QueryClient.DefaultPort.
|
|
QueryClient ( string hostName ) : System |
Creates a new instance of TeamSpeak3QueryApi.Net.QueryClient using the provided host and the QueryClient.DefaultPort.
|
|
QueryClient ( string hostName, short port ) : System |
Creates a new instance of TeamSpeak3QueryApi.Net.QueryClient using the provided host TCP port.
|
|
Send ( string cmd ) : Task |
Sends a Query API command wihtout parameters to the server.
|
|
Send ( string cmd, |
Sends a Query API command with parameters and options to the server.
|
|
Subscribe ( string notificationName, Action |
Subscribes to a notification. If the subscribed notification is received, the callback is getting executed.
|
|
Unsubscribe ( string notificationName ) : void |
Unsubscribes all callbacks of a notification.
|
|
Unsubscribe ( string notificationName, Action |
Unsubscribe a callback of a notification.
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
Méthode | Description | |
---|---|---|
CheckQueue ( ) : System.Threading.Tasks.Task | ||
InvokeNotification ( |
||
InvokeResponse ( |
||
NormalizeNotificationName ( string name ) : string | ||
ParseError ( string errorString ) : |
||
ParseNotification ( string notificationString ) : |
||
ParseResponse ( string rawResponse ) : QueryResponseDictionary[] | ||
ResponseProcessingLoop ( ) : void |
public Connect ( ) : System.Threading.Tasks.Task | ||
Résultat | System.Threading.Tasks.Task |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | A value indicating whether the object is disposing or finalizing. |
Résultat | void |
public QueryClient ( string hostName ) : System | ||
hostName | string | The host name of the remote server. |
Résultat | System |
public QueryClient ( string hostName, short port ) : System | ||
hostName | string | The host name of the remote server. |
port | short | The TCP port of the Query API server. |
Résultat | System |
public Send ( string cmd, |
||
cmd | string | The command. |
parameters | The parameters of the command. | |
options | string | The options of the command. |
Résultat | Task |
public Subscribe ( string notificationName, Action |
||
notificationName | string | The name of the notification (without the "notify" prefix). |
callback | Action |
The callback to execute on occurrence. |
Résultat | void |
public Unsubscribe ( string notificationName ) : void | ||
notificationName | string | The name of the notification to unsubscribe (without the "notify" prefix). |
Résultat | void |
public Unsubscribe ( string notificationName, Action |
||
notificationName | string | The name of the notification to unsubscribe (without the "notify" prefix). |
callback | Action |
The callback to unsubscribe. |
Résultat | void |