UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
JsonMng Class Reference

A class for managing JSON messages. More...

#include <JsonMng.h>

Inheritance diagram for JsonMng:

Instance Methods

(instancetype) - initWithMgmtMsg:
 Initializes a new instance with the given management message.
 

Properties

NSString * command
 Mgmt command sent to printer or response from printer.
 
NSString * from
 Identifies the message sender. If printer sends a response, this will be in the To field of the response.
 
NSString * to
 Identifies the intended message receiver. If this is a response, this has the From that was in the original message.
 
NSString * trackNo
 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.
 
NSString * strResponse
 The response string of the JSON message.
 

Detailed Description

A class for managing JSON messages.

Method Documentation

◆ initWithMgmtMsg:

- (instancetype) initWithMgmtMsg: (NSString *) mgmtMsg

Initializes a new instance with the given management message.

Parameters
mgmtMsgThe management message to initialize with.
Returns
An initialized instance of JsonMng, or nil if the object could not be created.

Property Documentation

◆ command

- (NSString*) command
readwritenonatomicstrong

Mgmt command sent to printer or response from printer.

◆ from

- (NSString*) from
readwritenonatomicstrong

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

◆ strResponse

- (NSString*) strResponse
readwritenonatomicstrong

The response string of the JSON message.

◆ to

- (NSString*) to
readwritenonatomicstrong

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

◆ trackNo

- (NSString*) trackNo
readwritenonatomicstrong

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.


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