42@property (nonatomic, strong) NSString *
command;
54@property (nonatomic, strong) NSString *
from;
66@property (nonatomic, strong) NSString *
to;
78@property (nonatomic, strong) NSString *
trackNo;
109- (NSString *)getTrackNo;
127- (void)setTrackNo:(NSString *)trackNo;
149- (instancetype)initWithMgmtMsg:(NSString *)mgmtMsg;
用於管理 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