GpsLocationWithHeadingValueConverter Class

Converts the GeoLocationWithHeading to and from JSON in the format "[latitude, longitude, altitude]", for the sake of memory management in COSMOS (we're storing a lot of these) and for performance reasons.

Definition

Namespace: MobileTrack.Common.Services.JsonConverters.Generics
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
internal sealed class GpsLocationWithHeadingValueConverter : JsonConverter<GeoLocationWithHeading>
Inheritance
Object    JsonConverter    JsonConverterGeoLocationWithHeading    GpsLocationWithHeadingValueConverter

Constructors

GpsLocationWithHeadingValueConverterInitializes a new instance of the GpsLocationWithHeadingValueConverter class

Methods

ReadReads and converts the JSON to type T.
(Overrides JsonConverterTRead(Utf8JsonReader, Type, JsonSerializerOptions))
WriteWrites a specified value as JSON.
(Overrides JsonConverterTWrite(Utf8JsonWriter, T, JsonSerializerOptions))

See Also