#187 NTFY JsonConverter
This commit is contained in:
parent
5614729eab
commit
9d92069a4b
@ -28,7 +28,7 @@ public class NotificationManagerJsonConverter : JsonConverter
|
|||||||
case (byte)NotificationConnector.NotificationConnectorType.LunaSea:
|
case (byte)NotificationConnector.NotificationConnectorType.LunaSea:
|
||||||
return new LunaSea(this._clone, jo.GetValue("id")!.Value<string>()!);
|
return new LunaSea(this._clone, jo.GetValue("id")!.Value<string>()!);
|
||||||
case (byte)NotificationConnector.NotificationConnectorType.Ntfy:
|
case (byte)NotificationConnector.NotificationConnectorType.Ntfy:
|
||||||
return new Ntfy(this._clone, jo.GetValue("endpoint")!.Value<string>()!, jo.GetValue("auth")!.Value<string>()!);
|
return new Ntfy(this._clone, jo.GetValue("endpoint")!.Value<string>()!, jo.GetValue("topic")!.Value<string>()!, jo.GetValue("auth")!.Value<string>()!);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Exception();
|
throw new Exception();
|
||||||
|
Loading…
Reference in New Issue
Block a user