ConverterExtensions Class

Contains a number of recurring conversion methods that are used in multiple converters.

Definition

Namespace: MobileTrack.Common.Services.JsonConverters
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
internal static class ConverterExtensions
Inheritance
Object    ConverterExtensions

Methods

GetStringList Reads a list of strings from the reader.
GetTimeSpanByTicks Reads a TimeSpan from the reader, based on the ticks (Int64).
ReadFloatArray Reads a float array from the reader.
ReadIntArray Reads an integer array from the reader.
ReadObjectArrayT Reads an array of T from the reader.
ReadObjectListT Reads a list of T from the reader.
ReadValueMapListT Reads a list of AbstractValueMapT from the reader.
TryReadDeletedStatsT Checks if the property is one of the properties that are used by the interface IIsSoftDeletable. If so, we populate said property.
TryReadFourEyesCompanyStats Checks if the property is one of the properties that are used by the interface CompanyDto's four-eyes. If so, we populate said property.
TryReadFourEyesStatsT Checks if the property is one of the properties that are used by the interface IIsFourEyes. If so, we populate said property.
TryReadFreeFieldsT Checks if the property is one of the properties that are used by the interface IFreeFields. It does not discern if the CompanyDto allows the use of said fields. If a property was found, we populate said property.
TryReadLicenseExpireStatsT Checks if the property is one of the properties that are used by the interface IIsLicenseExpired. If so, we populate said property.
TryReadLockStatsT Checks if the property is one of the properties that are used by the interface IIsLocked. If so, we populate said property.
TryReadMapMarkerReferencesT Checks if the property is one of the properties that are used by the interface IHasMapMarkers. If so, we populate said property.
TryReadTimeZoneInfoT Try to read the TimeZone property from the reader.
WriteCreatedAndModifiedAtByT Writes IModifiedStats properties to JSON.
WriteCreatedAtByT(Utf8JsonWriter, T) doesn't have to be invoked after using this method.
WriteCreatedAtByT Writes ICreatedStats properties to JSON.
WriteDeletionStatsT Writes IIsSoftDeletable properties to JSON.
WriteFourEyesCompanyStats Writes CompanyDto Four-eyes properties to JSON.
WriteFourEyesStatsT Writes IIsFourEyes properties to JSON.
WriteFreeFieldsT Writes IFreeFields properties to JSON.
WriteGeneric Writes an object to the stack. Must be a number or simple type that easily converts to string
WriteGuidArray Writes an array of Guid's (Like so: [ "11c43ee8-b9d3-4e51-b73f-bd9dda66e29c", "00000000-0000-0000-0000-000000000000" ])
WriteIdLabelT Writes IIdLabel properties to JSON.
WriteLicenseExpireStatsT Writes IIsLicenseExpired properties to JSON.
WriteLockStatsT Writes IIsLocked properties to JSON.
WriteNumberArray(Utf8JsonWriter, String, IReadOnlyCollectionInt32) Writes an array of integers (Like so: [ 1, 2, 3 ])
WriteNumberArray(Utf8JsonWriter, String, IReadOnlyCollectionSingle) Writes an array of floating point numbers (Like so: [ 1.0, 2.0, 3.0 ])
WriteObjectArrayIfNotNullT Writes an array of serializable object belonging to property propertyName. If values is , nothing is written.
WriteObjectIfNotNullT Writes a business object to a property. If item is , nothing is written.
WriteSnapShotStats Writes Snapshot properties to JSON.
WriteStringList Writes a list of strings to the JSON writer.
WriteValueMapListT Writes a list of enum values to JSON.

See Also