-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use JSON serializer for payload Note on FreeBSD .NET 8 support.
- Loading branch information
joelp
committed
Nov 10, 2024
1 parent
fbfeb64
commit 5df304d
Showing
6 changed files
with
84 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace adsb2mqtt; | ||
|
||
public struct FlightPayload | ||
{ | ||
[JsonInclude] | ||
public string icao; | ||
[JsonInclude] | ||
public string flt; | ||
[JsonInclude] | ||
public int alt; | ||
[JsonInclude] | ||
public int dir; | ||
[JsonInclude] | ||
public double lat; | ||
[JsonInclude] | ||
public double lng; | ||
[JsonInclude] | ||
public string t; | ||
[JsonInclude] | ||
public double nm; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters