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