UniPRT SDK v2.0.0.0
 
载入中...
搜索中...
未找到
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;
129
149- (instancetype)initWithMgmtMsg:(NSString *)mgmtMsg;
150
151@end
用于管理 JSON 消息的类。
定义 JsonMng.h:31
NSString * strResponse
JSON 消息的响应字符串。
定义 JsonMng.h:90
NSString * command
发送到打印机的管理命令或来自打印机的响应。
定义 JsonMng.h:42
NSString * to
标识预期的消息接收者。如果这是一个响应,这里会有原始消息中的 From。
定义 JsonMng.h:66
NSString * from
标识消息发送者。如果打印机发送响应,这将出现在响应的 To 字段中。
定义 JsonMng.h:54
NSString * trackNo
这可以设置为任何值,但为了区分针对同一收件人的消息,每条消息都应该是唯一的。
定义 JsonMng.h:78