Skip to content

Commit

Permalink
#187 NTFY JsonConverter
Browse files Browse the repository at this point in the history
  • Loading branch information
C9Glax committed Jun 15, 2024
1 parent fab30dc commit 8607bd2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public override object ReadJson(JsonReader reader, Type objectType, object? exis
case (byte)NotificationConnector.NotificationConnectorType.LunaSea:
return new LunaSea(this._clone, jo.GetValue("id")!.Value<string>()!);
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();
Expand Down

0 comments on commit 8607bd2

Please sign in to comment.