Example #1
0
        public override void execute()
        {
            UInt32       zoneID       = 0;
            BS2ErrorCode handleResult = zoneManager.checkAPBZoneRule(deviceID, userID_1, userID_2, isDualAuth, out zoneID);

            Console.WriteLine("[Server] responded with a status of {0}, zoneID[{6}] : device[{1}] seq[{2}], userID_1[{3}], userID_2[{4}], isDualAuth[{5}]", handleResult, deviceID, seq, userID_1, userID_2, isDualAuth, zoneID);
            BS2ErrorCode result = (BS2ErrorCode)API.BS2_CheckGlobalAPBViolation(sdkContext, deviceID, seq, (int)handleResult, zoneID);

            if (result != BS2ErrorCode.BS_SDK_SUCCESS)
            {
                Console.WriteLine("Got error({0}).", result);
            }
        }