NET_DVR_ACS_EVENT_COND

Condition structure about getting access control events.

Structure Definition

struct{
  DWORD           dwSize;
  DWORD           dwMajor;
  DWORD           dwMinor;
  NET_DVR_TIME    struStartTime;
  NET_DVR_TIME    struEndTime;
  BYTE            byCardNo[ACS_CARD_NO_LEN/*32*/];
  BYTE            byName[NAME_LEN/*32*/];
  BYTE            byPicEnable;
  BYTE            byTimeType;
  BYTE            byRes2[2];
  DWORD           dwBeginSerialNo;
  DWORD           dwEndSerialNo;
  DWORD           dwIOTChannelNo;
  WORD            wInductiveEventType;
  BYTE            bySearchType;
  BYTE            byEventAttribute;
  char            szMonitorID[NET_SDK_MONITOR_ID_LEN/*64*/];
  BYTE            byEmployeeNo[NET_SDK_EMPLOYEE_NO_LEN/*32*/];
  BYTE            byRes[140];
}NET_DVR_ACS_EVENT_COND,*LPNET_DVR_ACS_EVENT_COND;

Members

dwSize

Structure size.

dwMajor

Event major types, see details in Access Control Event Types, 0-all.

dwMinor

Event minor types, see details in Access Control Event Types, 0-all.

struStartTime

Start time, see NET_DVR_TIME for details.

struEndTime

End time, see NET_DVR_TIME for details.

byCardNo

Card No.

byName

Cardholder name.

byPicEnable

Whether contain pictures: 0-no, 1-yes. If this member is set to 0, all events that meet the requirements will be uploaded without pictures. If this member is set to 1, for all events that meet the requirements, the event information will be uploaded if there is no linkage picture, and the event information along with the linkage pictures will be uploaded if there are any.

byTimeType

Time type: 0-device local time (default), 1-UTC time (which is same as struStartTime and struEndTime).

byRes2

Reserved, set to 0.

dwBeginSerialNo

Start serial No.: 0-all.

dwEndSerialNo

End serial No.: 0-all.

dwIOTChannelNo

IOT channel No., 0-invalid.

wInductiveEventType

Inductive event type, 0-invalid. The alarm event types will be distinguished according to the inductive event type if wInductiveEventType is not 0; otherwise, the alarm event types will be distinguished according to dwMajor and dwMinor.

bySearchType

Search mode: 0-reserved, 1-search by event source (the channel No. is the non-video channel No.), 2-search by monitoring resource ID.

byEventAttribute

Event attribute: 0-undefined, 1-valid authentication, 2-other.

szMonitorID

Monitoring resource ID which consists of device serial No., channel type, and No. For example, the access point ID is device serial No.+"DOOR"+door No.

byEmployeeNo

Employee No. (person ID)

byRes

Reserved, set to 0.