-
Notifications
You must be signed in to change notification settings - Fork 0
New interface #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Net8 update
# Conflicts: # Directory.Packages.props # McQuery.Net.slnx # README.md # sources/McQuery.Net/Data/ChallengeToken.cs # sources/McQuery.Net/Data/Packages/Request.cs # sources/McQuery.Net/Data/Packages/Responses/IResponse.cs # sources/McQuery.Net/Data/Packages/Responses/RawResponse.cs # sources/McQuery.Net/Data/Packages/Responses/ServerBasicStateResponse.cs # sources/McQuery.Net/Data/Packages/Responses/ServerFullStateResponse.cs # sources/McQuery.Net/Data/Packages/Responses/TimeoutResponse.cs # sources/McQuery.Net/Data/Packages/Responses/WrongResponse.cs # sources/McQuery.Net/Data/Server.cs # sources/McQuery.Net/Data/SessionId.cs # sources/McQuery.Net/GlobalUsings.cs # sources/McQuery.Net/Services/McQueryService.cs # sources/McQuery.Net/Services/RequestFormingService.cs # sources/McQuery.Net/Services/ResposeParsingService.cs # sources/McQuery.Net/Services/SessionIdProviderService.cs # sources/McQuery.Net/Services/UdpSendReceiveService.cs
return new FullStatus( | ||
statusKeyValues["hostname"], | ||
statusKeyValues["gametype"], | ||
statusKeyValues["game_id"], | ||
statusKeyValues["version"], | ||
statusKeyValues["plugins"], | ||
statusKeyValues["map"], | ||
int.Parse(statusKeyValues["numplayers"]), | ||
int.Parse(statusKeyValues["maxplayers"]), | ||
players.ToArray(), | ||
int.Parse(statusKeyValues["hostport"]), | ||
statusKeyValues["hostip"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add try catch block in order to throw an appropriate exception in case if some field was gone missing for some reason
namespace McQuery.Net.Exceptions; | ||
|
||
[PublicAPI] | ||
public class AlreadyExpiredException : ArgumentException |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it can be internal. Should add public common McQuery exception instead to provide an appropriate message.
That's all we need to mark that something goes wrong I belive
be329b2
to
8c88eef
Compare
0f0c256
to
b8a4d98
Compare
Full interface refactoring.
Only public clients and data strucures can be accessed from outside code