//
//  JDJSONModel.h
//  JasonDevelop
//
//  Created by Jason Lee on 7/10/15.
//  Copyright (c) 2015 ntels. All rights reserved.
//

#import "JSONModel.h"
#import "SocketMsgModel.h"

@protocol CommonCode;

@interface JDJSONModel : JSONModel
@property (copy, nonatomic) NSString *resultCode;
@property (copy, nonatomic) NSString *resultMsg;
@property (copy, nonatomic) NSString *msg;

@end


@protocol MobileDeviceModel;
@interface MobileDeviceModel : JDJSONModel

@property (copy, nonatomic) NSString *deviceName;
@property (copy, nonatomic) NSString *deviceSn;
@property (copy, nonatomic) NSString *createDatetime;
@property (copy, nonatomic) NSString *loginStatus;  //A:활성화 C:비활성

@end


@interface JDErrorModel : JDJSONModel

@property (copy, nonatomic) NSString *errorCode;
@property (copy, nonatomic) NSString *errorMessage;
@property (copy, nonatomic) NSString *errorDescription;
@property (copy, nonatomic) NSString *errorCount;

//로그인 요청 시 사용,
@property (copy, nonatomic) NSString *nickname;
@property (copy, nonatomic) NSArray<MobileDeviceModel> *deviceList;

@end


@interface CommonCode : JDJSONModel

@property (copy, nonatomic) NSString *commonCode;
@property (copy, nonatomic) NSString *commonCodeName;

@end

@interface CommonCodeList : JDJSONModel

@property (copy, nonatomic) NSArray<CommonCode> *list;

@end


@interface QRAuthModel : JDJSONModel

@property (copy, nonatomic) NSString *ownerYn;

@end


@interface SocketModel : JDJSONModel

@property (copy, nonatomic) NSString *messageType;
@property (copy, nonatomic) NSString *requestId;
@property (assign, nonatomic, readonly) BOOL isSuccess;

@end
