GpsLocationJsonConverter Class

Converts the GeoLocation 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.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
internal sealed class GpsLocationJsonConverter : JsonConverter<GeoLocation>
Inheritance
Object    JsonConverter    JsonConverterGeoLocation    GpsLocationJsonConverter

Constructors

GpsLocationJsonConverterInitializes a new instance of the GpsLocationJsonConverter 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