Reading Buses APIV2.1.0
A C#, .net Standard Library for the Reading Buses Open Data API (http://rtl2.ods-live.co.uk/cms/apiservice), available to use in your C# console, WPF, UWP or Win Form Applications.
ReadingBusesAPI.Common.ParseOperatorConverter Class Reference

Converts a string short code for an Operator into an Operator Enum and back again for the JSON converter. More...

Inheritance diagram for ReadingBusesAPI.Common.ParseOperatorConverter:

Public Member Functions

override bool CanConvert (Type t)
override object ReadJson (JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
override void WriteJson (JsonWriter writer, object untypedValue, JsonSerializer serializer)

Static Public Attributes

static readonly ParseOperatorConverter Singleton = new ParseOperatorConverter()

Detailed Description

Converts a string short code for an Operator into an Operator Enum and back again for the JSON converter.

Member Function Documentation

CanConvert()

override bool ReadingBusesAPI.Common.ParseOperatorConverter.CanConvert ( Type t )

ReadJson()

override object ReadingBusesAPI.Common.ParseOperatorConverter.ReadJson ( JsonReader reader,
Type t,
object existingValue,
JsonSerializer serializer
)

WriteJson()

override void ReadingBusesAPI.Common.ParseOperatorConverter.WriteJson ( JsonWriter writer,
object untypedValue,
JsonSerializer serializer
)

Member Data Documentation

Singleton

readonly ParseOperatorConverter ReadingBusesAPI.Common.ParseOperatorConverter.Singleton = new ParseOperatorConverter()
static

The documentation for this class was generated from the following file: