Lean  $LEAN_TAG$
QuantConnect.Util.MarketHoursDatabaseJsonConverter Class Reference

Provides json conversion for the MarketHoursDatabase class More...

Inheritance diagram for QuantConnect.Util.MarketHoursDatabaseJsonConverter:
[legend]

Classes

class  MarketHoursDatabaseEntryJson
 Defines the json structure of a single entry in the market-hours-database.json file More...
 
class  MarketHoursDatabaseJson
 Defines the json structure of the market-hours-database.json file More...
 

Protected Member Functions

override MarketHoursDatabaseJson Convert (MarketHoursDatabase value)
 Convert the input value to a value to be serialzied More...
 
override MarketHoursDatabase Convert (MarketHoursDatabaseJson value)
 Converts the input value to be deserialized More...
 
override MarketHoursDatabase Create (Type type, JToken token)
 Creates an instance of the un-projected type to be deserialized More...
 
- Protected Member Functions inherited from QuantConnect.Util.TypeChangeJsonConverter< MarketHoursDatabase, MarketHoursDatabaseJsonConverter.MarketHoursDatabaseJson >
abstract TResult Convert (T value)
 Convert the input value to a value to be serialized More...
 
abstract T Convert (TResult value)
 Converts the input value to be deserialized More...
 

Additional Inherited Members

- Public Member Functions inherited from QuantConnect.Util.TypeChangeJsonConverter< MarketHoursDatabase, MarketHoursDatabaseJsonConverter.MarketHoursDatabaseJson >
override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 Reads the JSON representation of the object. More...
 
override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
 Writes the JSON representation of the object. More...
 
override bool CanConvert (Type objectType)
 Determines whether this instance can convert the specified object type. More...
 
- Protected Attributes inherited from QuantConnect.Util.TypeChangeJsonConverter< MarketHoursDatabase, MarketHoursDatabaseJsonConverter.MarketHoursDatabaseJson >
virtual bool PopulateProperties
 True will populate TResult object returned by Convert(TResult) with json properties More...
 

Detailed Description

Provides json conversion for the MarketHoursDatabase class

Definition at line 32 of file MarketHoursDatabaseJsonConverter.cs.

Member Function Documentation

◆ Convert() [1/2]

override MarketHoursDatabaseJson QuantConnect.Util.MarketHoursDatabaseJsonConverter.Convert ( MarketHoursDatabase  value)
protected

Convert the input value to a value to be serialzied

Parameters
valueThe input value to be converted before serialziation
Returns
A new instance of TResult that is to be serialzied

Definition at line 39 of file MarketHoursDatabaseJsonConverter.cs.

Here is the caller graph for this function:

◆ Convert() [2/2]

override MarketHoursDatabase QuantConnect.Util.MarketHoursDatabaseJsonConverter.Convert ( MarketHoursDatabaseJson  value)
protected

Converts the input value to be deserialized

Parameters
valueThe deserialized value that needs to be converted to T
Returns
The converted value

Definition at line 49 of file MarketHoursDatabaseJsonConverter.cs.

Here is the call graph for this function:

◆ Create()

override MarketHoursDatabase QuantConnect.Util.MarketHoursDatabaseJsonConverter.Create ( Type  type,
JToken  token 
)
protectedvirtual

Creates an instance of the un-projected type to be deserialized

Parameters
typeThe input object type, this is the data held in the token
tokenThe input data to be converted into a T
Returns
A new instance of T that is to be serialized using default rules

Reimplemented from QuantConnect.Util.TypeChangeJsonConverter< MarketHoursDatabase, MarketHoursDatabaseJsonConverter.MarketHoursDatabaseJson >.

Definition at line 60 of file MarketHoursDatabaseJsonConverter.cs.

Here is the call graph for this function:

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