Class TeamSpeak3
TeamSpeak 3 Protocol
public class TeamSpeak3 : ProtocolBase
- Inheritance
-
TeamSpeak3
- Inherited Members
Constructors
TeamSpeak3(string, int, int, int)
Initializes a new instance of the TeamSpeak3 class.
public TeamSpeak3(string host, int port, int voicePort, int timeout = 5000)
Parameters
host
stringThe host.
port
intThe port.
voicePort
intThe voice port.
timeout
intThe timeout. Default is 5000.
Properties
FullName
Gets the full name of the protocol.
public override string FullName { get; }
Property Value
Methods
GetChannels()
Gets the channel list asynchronously.
public Task<List<Dictionary<string, string>>> GetChannels()
Returns
- Task<List<Dictionary<string, string>>>
A task that represents the asynchronous operation. The task result contains the channel list.
Exceptions
- TimeoutException
Thrown when the operation times out.
GetClients()
Gets the client list asynchronously.
public Task<List<Dictionary<string, string>>> GetClients()
Returns
- Task<List<Dictionary<string, string>>>
A task that represents the asynchronous operation. The task result contains the client list.
Exceptions
- TimeoutException
Thrown when the operation times out.
GetInfo()
Gets the server information asynchronously.
public Task<Dictionary<string, string>> GetInfo()
Returns
- Task<Dictionary<string, string>>
A task that represents the asynchronous operation. The task result contains the server information.
Exceptions
- TimeoutException
Thrown when the operation times out.