mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-07-18 13:37:36 +00:00
Rewrote most of the library
This commit is contained in:
16
Sources/MpcNET.Test/Tests/MpdMessageExtension.cs
Normal file
16
Sources/MpcNET.Test/Tests/MpdMessageExtension.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using MpcNET.Message;
|
||||
|
||||
namespace MpcNET.Test
|
||||
{
|
||||
public static class MpdMessageExtension
|
||||
{
|
||||
public static bool HasSuccessResponse<T>(this IMpdMessage<T> message)
|
||||
{
|
||||
return message.Response.State.Connected &&
|
||||
message.Response.State.Status == "OK" &&
|
||||
!message.Response.State.Error &&
|
||||
message.Response.State.ErrorMessage == string.Empty &&
|
||||
message.Response.State.MpdError == string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user