SocketMsgModel.h 860 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // SocketMsgModel.h
  3. // OneCable
  4. //
  5. // Created by KaRam Kim on 2017. 4. 20..
  6. // Copyright © 2017년 ntels. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "JDJSONModel.h"
  10. #define MSG_TYPE_LOGIN @"auth"
  11. #define MSG_TYPE_DEVICE_ALIVE @"device.alive"
  12. #define MSG_TYPE_AUTO_LOGIN @"auth.auto"
  13. #define MSG_TYPE_DEVICE_COMMAND @"device.command"
  14. #define MSG_TYPE_DEVICE_COMMAND_RES @"device.command.result"
  15. #define CMD_TYPE_PAIRING_START @"pairing_start"
  16. #define CMD_TYPE_PAIRING_STOP @"pairing_stop"
  17. #define CMD_TYPE_UNPAIRING_START @"unpairing_start"
  18. @interface SocketRequestModel : SocketModel
  19. @property (copy, nonatomic) NSDictionary *requestMsg;
  20. //-(void)setRequestId:(int)requestId;
  21. -(NSString *)getSendMessage;
  22. -(id)initWithMsgType:(NSString *)msgType;
  23. @end