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