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...
|
| 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) |
| |
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.
◆ 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: