コード例 #1
0
 public abstract void AccessDoor(string Token, bool UseExtendedTime, [System.Xml.Serialization.XmlIgnoreAttribute()] bool UseExtendedTimeSpecified, [System.Xml.Serialization.XmlElementAttribute(DataType = "duration")] string AccessTime, [System.Xml.Serialization.XmlElementAttribute(DataType = "duration")] string OpenTooLongTime, [System.Xml.Serialization.XmlElementAttribute(DataType = "duration")] string PreAlarmTime, AccessDoorExtension Extension);
コード例 #2
0
        public override void AccessDoor(string Token, bool UseExtendedTime, [System.Xml.Serialization.XmlIgnoreAttribute()] bool UseExtendedTimeSpecified, [System.Xml.Serialization.XmlElementAttribute(DataType = "duration")] string AccessTime, [System.Xml.Serialization.XmlElementAttribute(DataType = "duration")] string OpenTooLongTime, [System.Xml.Serialization.XmlElementAttribute(DataType = "duration")] string PreAlarmTime, AccessDoorExtension Extension)
        {
            ParametersValidation validation = new ParametersValidation();

            validation.Add(ParameterType.String, "Token", Token);
            string extendedTimeString = null;

            if (UseExtendedTimeSpecified)
            {
                extendedTimeString = UseExtendedTime.ToString();
            }
            validation.Add(ParameterType.OptionalString, "UseExtendedTime", extendedTimeString);
            validation.Add(ParameterType.String, "AccessTime", AccessTime);
            validation.Add(ParameterType.String, "OpenTooLongTime", OpenTooLongTime);
            validation.Add(ParameterType.String, "PreAlarmTime", PreAlarmTime);
            ExecuteVoidCommand(validation, DoorServiceTest.AccessDoorTest);
        }