UniPRT SDK  v1.0.0.0
UniPRT.Sdk.Mgmt.MgmtMsg Class Reference

Container class used to hold JSON messages. More...

Public Member Functions

 MgmtMsg (string mgmtMsg)
 All fields created from fully formed management/json message.
 
override string ToString ()
 This is the JSON formatted equivalent of the command structure.
 

Properties

string Command = "" [get, set]
 Mgmt command sent to printer or response from printer.
 
string Content = "" [get, set]
 This is the command dependent content/data. Callers responsible for creating/parsing proper JSON format.
 
string From = "" [get, set]
 Identifies the message sender. If printer sends a response, this will be in the To field of the response.
 
string To = "" [get, set]
 Identifies the intended message receiver. If this is response, this has the From that was in the original message.
 
string TrackNo = "" [get, set]
 This can be set to any value but in order to differentiate messages intended for the same recipient, this should be unique for every message.
 

Detailed Description

Container class used to hold JSON messages.

For JSON command format refer to: JSON data-interchange with printer