ignore IsEmpty property of ApiMessage
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
namespace Pilz.Net.Api;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace Pilz.Net.Api;
|
||||
|
||||
public abstract class ApiMessage
|
||||
{
|
||||
@@ -6,5 +8,6 @@ public abstract class ApiMessage
|
||||
|
||||
public static ApiMessage Empty { get; } = new EmptyApiMessage();
|
||||
|
||||
[JsonIgnore]
|
||||
public bool IsEmpty => this is EmptyApiMessage;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user