Loading...
Searching...
No Matches
ATAS.Indicators.CandleSeriesTimeFrameJsonConverter Class Reference

Round-trips CandleSeriesTimeFrame as a compact "PeriodType:Value" string (e.g. "Minutes:5"). The struct exposes only factory methods and a private constructor, so default Newtonsoft handling (parameter-name matching) would be fragile across refactorings; templates persist these values. Reading tolerates the legacy object form and returns the default (unset) value for anything unparsable. More...

Inheritance diagram for ATAS.Indicators.CandleSeriesTimeFrameJsonConverter:
[legend]
Collaboration diagram for ATAS.Indicators.CandleSeriesTimeFrameJsonConverter:
[legend]

Public Member Functions

override bool CanConvert (Type objectType)
 
override void WriteJson (JsonWriter writer, object? value, JsonSerializer serializer)
 
override? object ReadJson (JsonReader reader, Type objectType, object? existingValue, JsonSerializer serializer)
 

Detailed Description

Round-trips CandleSeriesTimeFrame as a compact "PeriodType:Value" string (e.g. "Minutes:5"). The struct exposes only factory methods and a private constructor, so default Newtonsoft handling (parameter-name matching) would be fragile across refactorings; templates persist these values. Reading tolerates the legacy object form and returns the default (unset) value for anything unparsable.

Member Function Documentation

◆ CanConvert()

override bool ATAS.Indicators.CandleSeriesTimeFrameJsonConverter.CanConvert ( Type  objectType)

◆ ReadJson()

override? object ATAS.Indicators.CandleSeriesTimeFrameJsonConverter.ReadJson ( JsonReader  reader,
Type  objectType,
object?  existingValue,
JsonSerializer  serializer 
)

◆ WriteJson()

override void ATAS.Indicators.CandleSeriesTimeFrameJsonConverter.WriteJson ( JsonWriter  writer,
object?  value,
JsonSerializer  serializer 
)

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