// // Copyright © 2018年 dahua. All rights reserved. // #import #import "ISearchDeviceNetInfo.h" @class DHDeviceDefinition; @interface DHDeviceNetInfo : NSObject @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 @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