// // Copyright © 2018å¹´ dahua. All rights reserved. // #import <Foundation/Foundation.h> #import "ISearchDeviceNetInfo.h" @class DHDeviceDefinition; @interface DHDeviceNetInfo : NSObject <ISearchDeviceNetInfo> @property (nonatomic) NSInteger searchSequence; /**< æœç´¢çš„åºå·ï¼Œç”¨æ¥æ ‡è®°æ˜¯å±žäºŽå“ªæ¬¡æœç´¢ */ @property (nonatomic)BOOL isVaild;//æ˜¯å¦æœ‰æ•ˆ éžNETSDKè¿”å›žæ•°æ® ç”¨äºŽä¸Šå±‚æ ‡è®°åœ¨ä¸€ä¸ªå‘¨æœŸå†…æœ‰æ²¡æœ‰æ”¶åˆ°è¯¥è®¾å¤‡æ•°æ® @property (nonatomic)int ipVersion; @property (nonatomic, copy)NSString *ip; @property (nonatomic)int port; // tcpç«¯å£ @property (nonatomic, copy)NSString *submask; // å网掩ç IPV6æ— å网掩ç @property (nonatomic, copy)NSString *mac; // MACåœ°å€ @property (nonatomic, copy)NSString *gateway; // 网关 @property (nonatomic, copy)NSString *deviceType; // 设备类型 @property (nonatomic)int manuFactory; //ç›®æ ‡è®¾å¤‡çš„ç”Ÿäº§åŽ‚å•† 具体å‚考NETSDKä¸EM_IPC_TYPEç±» @property (nonatomic)int definition; //1-æ ‡æ¸… 2-高清 @property (nonatomic)BOOL dhcpEn; //Dhcp使能状æ€, true-å¼€, false-å…³ @property (nonatomic)int reserved1; //å—èŠ‚å¯¹é½ @property (nonatomic, copy)NSString *verifyData; // éªŒæ•°æ® é€šè¿‡å¼‚æ¥æœç´¢å›žè°ƒèŽ·å–(在修改设备IP时会用æ¤ä¿¡æ¯è¿›è¡Œæ ¡éªŒ) @property (nonatomic, copy)NSString *serialNo; // åºåˆ—å· @property (nonatomic, copy)NSString *devSoftVersion; // è®¾å¤‡è½¯ä»¶ç‰ˆæœ¬å· @property (nonatomic, copy)NSString *detailType; // è®¾å¤‡åž‹å· @property (nonatomic, copy)NSString *vendor; // OEM客户类型 @property (nonatomic, copy)NSString *devName; //设备åç§° @property (nonatomic, copy)NSString *userName; // 登陆设备用户å @property (nonatomic, copy)NSString *passWord; // 登陆设备密ç @property (nonatomic)int httpPort; // HTTPæœåŠ¡ç«¯å£å· @property (nonatomic)int videoInputCh; // è§†é¢‘è¾“å…¥é€šé“æ•° @property (nonatomic)int remoteVideoInputCh; // è¿œç¨‹è§†é¢‘è¾“å…¥é€šé“æ•° @property (nonatomic)int videoOutputCh; // è§†é¢‘è¾“å‡ºé€šé“æ•° @property (nonatomic)int alarmInputCh; // 报è¦è¾“å…¥é€šé“æ•° @property (nonatomic)int alarmOutputCh; // 报è¦è¾“å‡ºé€šé“æ•° @property (nonatomic)BOOL newWordLen; //ä½¿ç”¨æ–°å—æ®µå¯†ç @property (nonatomic, copy)NSString *nowPassWord; //登录设备密ç //设备åˆå§‹åŒ–状æ€ï¼ŒæŒ‰ä½ç¡®å®šåˆå§‹åŒ–çŠ¶æ€ // bit0~1:0-è€è®¾å¤‡ï¼Œæ²¡æœ‰åˆå§‹åŒ–功能 1-未åˆå§‹åŒ–è´¦å· 2-å·²åˆå§‹åŒ–账户 // bit2~3:0-è€è®¾å¤‡ï¼Œä¿ç•™ 1-公网接入未使能 2-公网接入已使能 // bit4~5:0-è€è®¾å¤‡ï¼Œä¿ç•™ 1-手机直连未使能 2-手机直连使能 // bit6~7: 0- 未知 1-䏿”¯æŒå¯†ç é‡ç½® 2-支æŒå¯†ç é‡ç½® @property (nonatomic)int initStatus; //支æŒå¯†ç é‡ç½®æ–¹å¼ï¼šæŒ‰ä½ç¡®å®šå¯†ç é‡ç½®æ–¹å¼ï¼Œåªåœ¨è®¾å¤‡æœ‰åˆå§‹åŒ–è´¦å·æ—¶æœ‰æ„义: bit0-支æŒé¢„ç½®æ‰‹æœºå· bit1-支æŒé¢„置邮箱 bit2-æ”¯æŒæ–‡ä»¶å¯¼å‡º bit3-支æŒå›½å†…æ³¨å†Œæ‰‹æœºå· @property (nonatomic)int byPWDResetWay; //设备åˆå§‹åŒ–能力,按高八ä½ç¡®å®šåˆå§‹åŒ–能力 //bit0-æ˜¯å¦æ”¯æŒ2D Code修改IP: 0 䏿”¯æŒ 1 æ”¯æŒ //bit1-æ˜¯å¦æ”¯æŒPN制:0 䏿”¯æŒ 1æ”¯æŒ //bit2-3(3.7新设备程åºèƒ½åŠ›)-设备的IPåœ°å€æ˜¯å¦DHCP分é…:0-䏿”¯æŒ 1-æœªåˆ†é… 2-已分é…3-DHCPä½¿èƒ½å…³é— @property (nonatomic)int specialAbility; @property (nonatomic, copy)NSString *nowDetailType; //è®¾å¤‡åž‹å· @property (nonatomic)BOOL bNowUserName; //TRUE表示使用新用户å(szNewUserName)å—æ®µ @property (nonatomic, copy)NSString *nowUserName; // 登陆设备用户å(在修改设备IP时需è¦å¡«å†™ï¼‰ @property (nonatomic, assign) BOOL hasPtz; /**< æ˜¯å¦æœ‰äº‘å° */ @property (nonatomic, assign) BOOL hasPtzAuth; /**< æ˜¯å¦æœ‰äº‘å°æƒé™ */ - (instancetype)initWithNetInfo:(void *) pDevNetInfo; //DEVICE_NET_INFO_EX @end //MARK: Product Definition @interface DHDeviceProductDefinition : NSObject <ISearchDeviceNetInfo> @property (nonatomic, assign) int wlanScanConfigType; /**< æ˜¯å¦æ”¯æŒ3代åè®®æœç´¢WiFi */ @property (nonatomic, assign) BOOL hasPtz; /**< æ˜¯å¦æ”¯æŒäº‘å° */ @end //MARK: UserInfo definition @interface DHDeviceUserInfoDefinition : NSObject @property (nonatomic, assign) BOOL hasPtzAuth; /**< è´¦å·æ˜¯å¦æœ‰äº‘å°æŽ§åˆ¶æƒé™ */ @end //MARK: è®¾å¤‡ç™»å½•ä¿¡æ¯ @interface DHNetLoginDeviceInfo : NSObject // 设备登录handle @property (nonatomic, assign) long loginHandle; // 设备åºåˆ—å· @property (nonatomic, copy) NSString *deviceId; // 报è¦è¾“入个数 @property (nonatomic, assign) int alarmInPortNum; // 报è¦è¾“出个数 @property (nonatomic, assign) int alarmOutPortNum; // 硬盘个数 @property (nonatomic, assign) int diskNum; // DVR类型 @property (nonatomic, assign) int DVRType; // 通é“个数 @property (nonatomic, assign) int channelNum; @end