DataSource.NET  8.0.1.207118-0de6d82f
Caplin.DataSource.Messaging.JSON.IJsonChannelMessage Interface Reference
Inheritance diagram for Caplin.DataSource.Messaging.JSON.IJsonChannelMessage:
Caplin.DataSource.Messaging.JSON.IJsonMessage Caplin.DataSource.Messaging.IMessage

Public Member Functions

String GetContribUser ()
 
GetJsonAsType< T > (Type jsonType)
 
void SetJsonTree (Object jsonTree)
 
- Public Member Functions inherited from Caplin.DataSource.Messaging.JSON.IJsonMessage
bool IsPatch ()
 Checks if the JSON object is a patch. More...
 

Additional Inherited Members

- Properties inherited from Caplin.DataSource.Messaging.JSON.IJsonMessage
string JsonString [get]
 Gets the the JSON object string. More...
 
Object JsonTree [get]
 Gets the the JSON object. More...
 
string JsonTreeString [get, set]
 Gets the the JSON tree string represenatation. More...
 
- Properties inherited from Caplin.DataSource.Messaging.IMessage
bool Image [get, set]
 Gets or sets a boolean value indicating whether this IMessage represents an image or an update. More...
 
string Subject [get]
 Gets the subject of this message. More...
 

Detailed Description

Provides an interface for receiving JSON Channel messages in a JsonChannel to allow json communication while avoiding having to deal with additional metadata contained in the packet.

Member Function Documentation

String Caplin.DataSource.Messaging.JSON.IJsonChannelMessage.GetContribUser ( )

Grabs the string value of the user who has contributed from the Json message metadata

Returns
the contribUser value as String
T Caplin.DataSource.Messaging.JSON.IJsonChannelMessage.GetJsonAsType< T > ( Type  jsonType)

Returns the object JSON deserialized into a class of type which is passed in as jsonType

Parameters
jsonTypethe class which we deserialize intp
Returns
the deserialized json class
void Caplin.DataSource.Messaging.JSON.IJsonChannelMessage.SetJsonTree ( Object  jsonTree)

Set the JsonTree in the Message to the given value

Parameters
jsonTreethe json object to be set

Generated on Fri Feb 23 2024 15:25:36 for DataSource.NET