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

Public Member Functions

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

Public Attributes

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

Constructor & Destructor Documentation

◆ MgmtMsg() [1/2]

com.UniPRT.Sdk.Mgmt.MgmtMsg.MgmtMsg ( )

◆ MgmtMsg() [2/2]

Member Function Documentation

◆ toString()

Member Data Documentation

◆ Command

String com.UniPRT.Sdk.Mgmt.MgmtMsg.Command = ""

Mgmt command sent to printer or response from printer.

Referenced by com.UniPRT.Sdk.Mgmt.MgmtMsg.MgmtMsg(), and com.UniPRT.Sdk.Mgmt.MgmtMsg.toString().

◆ Content

String com.UniPRT.Sdk.Mgmt.MgmtMsg.Content = ""

This is the command-dependent content/data. Callers are responsible for creating/parsing the proper JSON format.

Referenced by com.UniPRT.Sdk.Mgmt.MgmtMsg.MgmtMsg(), and com.UniPRT.Sdk.Mgmt.MgmtMsg.toString().

◆ From

String com.UniPRT.Sdk.Mgmt.MgmtMsg.From = ""

Identifies the message sender. If the printer sends a response, this will be in the To field of the response.

Referenced by com.UniPRT.Sdk.Mgmt.MgmtMsg.MgmtMsg(), and com.UniPRT.Sdk.Mgmt.MgmtMsg.toString().

◆ To

String com.UniPRT.Sdk.Mgmt.MgmtMsg.To = ""

Identifies the intended message receiver. If this is a response, this has the From that was in the original message.

Referenced by com.UniPRT.Sdk.Mgmt.MgmtMsg.MgmtMsg(), and com.UniPRT.Sdk.Mgmt.MgmtMsg.toString().

◆ TrackNo

String com.UniPRT.Sdk.Mgmt.MgmtMsg.TrackNo = ""

This can be set to any value, but to differentiate messages intended for the same recipient, this should be unique for every message.

Referenced by com.UniPRT.Sdk.Mgmt.MgmtMsg.MgmtMsg(), com.UniPRT.Sdk.Mgmt.Messenger.SendMsgAndWaitForResponse(), and com.UniPRT.Sdk.Mgmt.MgmtMsg.toString().


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