UniPRT SDK v1.0.0.0
 
Loading...
Searching...
No Matches
JsonMng.h
1//
2// JsonMng.h
3// TSCPrinters SDK
4//
5// Created by Realbuber on 2024/4/7.
6//
7
8#ifndef JsonMng_h
9#define JsonMng_h
10
11
12#endif /* JsonMng_h */
13
30@interface JsonMng : NSObject
31
42@property (nonatomic, strong) NSString *command;
43
54@property (nonatomic, strong) NSString *from;
55
66@property (nonatomic, strong) NSString *to;
67
78@property (nonatomic, strong) NSString *trackNo;
79
90@property (nonatomic, strong) NSString *strResponse;
91
109- (NSString *)getTrackNo;
110
127- (void)setTrackNo:(NSString *)trackNo;
149- (instancetype)initWithMgmtMsg:(NSString *)mgmtMsg;
150
151@end
A class for managing JSON messages.
Definition JsonMng.h:31
NSString * strResponse
The response string of the JSON message.
Definition JsonMng.h:90
NSString * command
Mgmt command sent to printer or response from printer.
Definition JsonMng.h:42
NSString * to
Identifies the intended message receiver. If this is a response, this has the From that was in the or...
Definition JsonMng.h:66
NSString * from
Identifies the message sender. If printer sends a response, this will be in the To field of the respo...
Definition JsonMng.h:54
NSString * trackNo
This can be set to any value but in order to differentiate messages intended for the same recipient,...
Definition JsonMng.h:78