Skip to content

Commit

Permalink
Update TeamSpeak 3 Protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Jan 17, 2024
1 parent 66c8aa4 commit 1e0406c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3,099 deletions.
10 changes: 5 additions & 5 deletions OpenGSQ/Protocols/Teamspeak3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@
namespace OpenGSQ.Protocols
{
/// <summary>
/// Teamspeak 3 Protocol
/// TeamSpeak 3 Protocol
/// </summary>
public class Teamspeak3 : ProtocolBase
public class TeamSpeak3 : ProtocolBase
{
/// <inheritdoc/>
public override string FullName => "Teamspeak 3 Protocol";
public override string FullName => "TeamSpeak 3 Protocol";

private readonly int _voicePort;

/// <summary>
/// Initializes a new instance of the Teamspeak3 class.
/// Initializes a new instance of the TeamSpeak3 class.
/// </summary>
/// <param name="host">The host.</param>
/// <param name="port">The port.</param>
/// <param name="voicePort">The voice port.</param>
/// <param name="timeout">The timeout. Default is 5000.</param>
public Teamspeak3(string host, int port, int voicePort, int timeout = 5000) : base(host, port, timeout)
public TeamSpeak3(string host, int port, int voicePort, int timeout = 5000) : base(host, port, timeout)
{
_voicePort = voicePort;
}
Expand Down
12 changes: 6 additions & 6 deletions OpenGSQTests/Protocols/Teamspeak3Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,31 @@
namespace OpenGSQ.Protocols.Tests
{
[TestClass()]
public class Teamspeak3Tests : TestBase
public class TeamSpeak3Tests : TestBase
{
public Teamspeak3 teamspeak3 = new("145.239.200.2", 10011, 9987);
public TeamSpeak3 teamSpeak3 = new("145.239.200.2", 10011, 9987);

public Teamspeak3Tests() : base(nameof(Teamspeak3Tests))
public TeamSpeak3Tests() : base(nameof(TeamSpeak3Tests))
{
_EnableSave = !false;
}

[TestMethod()]
public async Task GetInfoTest()
{
SaveResult(nameof(GetInfoTest), await teamspeak3.GetInfo());
SaveResult(nameof(GetInfoTest), await teamSpeak3.GetInfo());
}

[TestMethod()]
public async Task GetClientsTest()
{
SaveResult(nameof(GetClientsTest), await teamspeak3.GetClients());
SaveResult(nameof(GetClientsTest), await teamSpeak3.GetClients());
}

[TestMethod()]
public async Task GetChannelsTest()
{
SaveResult(nameof(GetChannelsTest), await teamspeak3.GetChannels());
SaveResult(nameof(GetChannelsTest), await teamSpeak3.GetChannels());
}
}
}
Loading

0 comments on commit 1e0406c

Please sign in to comment.