ignore IsEmpty property of ApiMessage

This commit is contained in:
Pilzinsel64
2025-03-18 10:58:47 +01:00
parent 1fd0b61408
commit 307092cfc2

View File

@@ -1,4 +1,6 @@
namespace Pilz.Net.Api; using Newtonsoft.Json;
namespace Pilz.Net.Api;
public abstract class ApiMessage public abstract class ApiMessage
{ {
@@ -6,5 +8,6 @@ public abstract class ApiMessage
public static ApiMessage Empty { get; } = new EmptyApiMessage(); public static ApiMessage Empty { get; } = new EmptyApiMessage();
[JsonIgnore]
public bool IsEmpty => this is EmptyApiMessage; public bool IsEmpty => this is EmptyApiMessage;
} }