Lean  $LEAN_TAG$
QuantConnect.Notifications.NotificationJsonConverter Class Reference

Defines a JsonConverter to be used when deserializing to the Notification class. More...

Inheritance diagram for QuantConnect.Notifications.NotificationJsonConverter:
[legend]

Public Member Functions

override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
 Writes the JSON representation of the object. More...
 
override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 Reads the JSON representation of the object. More...
 
override bool CanConvert (Type objectType)
 Determines whether this instance can convert the specified object type. More...
 

Public Attributes

override bool CanWrite => false
 Use default implementation to write the json More...
 

Detailed Description

Defines a JsonConverter to be used when deserializing to the Notification class.

Definition at line 27 of file NotificationJsonConverter.cs.

Member Function Documentation

◆ WriteJson()

override void QuantConnect.Notifications.NotificationJsonConverter.WriteJson ( JsonWriter  writer,
object  value,
JsonSerializer  serializer 
)

Writes the JSON representation of the object.

Parameters
writerThe T:Newtonsoft.Json.JsonWriter to write to.
valueThe value.
serializerThe calling serializer.

Definition at line 38 of file NotificationJsonConverter.cs.

◆ ReadJson()

override object QuantConnect.Notifications.NotificationJsonConverter.ReadJson ( JsonReader  reader,
Type  objectType,
object  existingValue,
JsonSerializer  serializer 
)

Reads the JSON representation of the object.

Parameters
readerThe T:Newtonsoft.Json.JsonReader to read from.
objectTypeType of the object.
existingValueThe existing value of object being read.
serializerThe calling serializer.
Returns
The object value.

Definition at line 50 of file NotificationJsonConverter.cs.

◆ CanConvert()

override bool QuantConnect.Notifications.NotificationJsonConverter.CanConvert ( Type  objectType)

Determines whether this instance can convert the specified object type.

Parameters
objectTypeType of the object.
Returns
true if this instance can convert the specified object type; otherwise, false.

Definition at line 94 of file NotificationJsonConverter.cs.

Member Data Documentation

◆ CanWrite

override bool QuantConnect.Notifications.NotificationJsonConverter.CanWrite => false

Use default implementation to write the json

Definition at line 32 of file NotificationJsonConverter.cs.


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