use crate::property_metadata::{PropertyConformance, PropertyMetadata, PropertyWriteCapability};
use bacnet_types::enums::PropertyIdentifier;
use PropertyConformance::{Optional, RequiredRead};
use PropertyWriteCapability::{Always, ReadOnly};
pub(super) static EVENT_ENROLLMENT_PROPERTIES: &[PropertyMetadata] = &[
PropertyMetadata::new(
PropertyIdentifier::OBJECT_IDENTIFIER,
RequiredRead,
None,
ReadOnly,
),
PropertyMetadata::new(PropertyIdentifier::OBJECT_NAME, RequiredRead, None, Always),
PropertyMetadata::new(PropertyIdentifier::DESCRIPTION, Optional, None, Always),
PropertyMetadata::new(
PropertyIdentifier::OBJECT_TYPE,
RequiredRead,
None,
ReadOnly,
),
PropertyMetadata::new(PropertyIdentifier::EVENT_TYPE, RequiredRead, None, ReadOnly),
PropertyMetadata::new(PropertyIdentifier::NOTIFY_TYPE, RequiredRead, None, Always),
PropertyMetadata::new(
PropertyIdentifier::EVENT_PARAMETERS,
RequiredRead,
None,
Always,
),
PropertyMetadata::new(
PropertyIdentifier::OBJECT_PROPERTY_REFERENCE,
RequiredRead,
None,
ReadOnly,
),
PropertyMetadata::new(
PropertyIdentifier::EVENT_STATE,
RequiredRead,
None,
ReadOnly,
),
PropertyMetadata::new(PropertyIdentifier::EVENT_ENABLE, RequiredRead, None, Always),
PropertyMetadata::new(
PropertyIdentifier::ACKED_TRANSITIONS,
RequiredRead,
None,
ReadOnly,
),
PropertyMetadata::new(
PropertyIdentifier::EVENT_DETECTION_ENABLE,
RequiredRead,
None,
Always,
),
PropertyMetadata::new(
PropertyIdentifier::NOTIFICATION_CLASS,
RequiredRead,
None,
Always,
),
PropertyMetadata::new(
PropertyIdentifier::EVENT_TIME_STAMPS,
RequiredRead,
None,
ReadOnly,
),
PropertyMetadata::new(PropertyIdentifier::FAULT_TYPE, Optional, None, ReadOnly),
PropertyMetadata::new(PropertyIdentifier::FAULT_PARAMETERS, Optional, None, Always),
PropertyMetadata::new(
PropertyIdentifier::TIME_DELAY_NORMAL,
Optional,
None,
Always,
),
PropertyMetadata::new(
PropertyIdentifier::STATUS_FLAGS,
RequiredRead,
None,
ReadOnly,
),
PropertyMetadata::new(
PropertyIdentifier::RELIABILITY,
RequiredRead,
None,
ReadOnly,
),
PropertyMetadata::new(
PropertyIdentifier::PROPERTY_LIST,
RequiredRead,
None,
ReadOnly,
),
];
pub(super) static ALERT_ENROLLMENT_PROPERTIES: &[PropertyMetadata] = &[
PropertyMetadata::new(
PropertyIdentifier::OBJECT_IDENTIFIER,
RequiredRead,
None,
ReadOnly,
),
PropertyMetadata::new(
PropertyIdentifier::OBJECT_NAME,
RequiredRead,
None,
ReadOnly,
),
PropertyMetadata::new(PropertyIdentifier::DESCRIPTION, Optional, None, Always),
PropertyMetadata::new(
PropertyIdentifier::OBJECT_TYPE,
RequiredRead,
None,
ReadOnly,
),
PropertyMetadata::new(
PropertyIdentifier::PRESENT_VALUE,
RequiredRead,
None,
ReadOnly,
),
PropertyMetadata::new(
PropertyIdentifier::EVENT_STATE,
RequiredRead,
None,
ReadOnly,
),
PropertyMetadata::new(
PropertyIdentifier::EVENT_DETECTION_ENABLE,
RequiredRead,
None,
Always,
),
PropertyMetadata::new(
PropertyIdentifier::NOTIFICATION_CLASS,
RequiredRead,
None,
Always,
),
PropertyMetadata::new(PropertyIdentifier::EVENT_ENABLE, RequiredRead, None, Always),
PropertyMetadata::new(
PropertyIdentifier::ACKED_TRANSITIONS,
RequiredRead,
None,
ReadOnly,
),
PropertyMetadata::new(PropertyIdentifier::NOTIFY_TYPE, RequiredRead, None, Always),
PropertyMetadata::new(
PropertyIdentifier::EVENT_TIME_STAMPS,
RequiredRead,
None,
ReadOnly,
),
PropertyMetadata::new(
PropertyIdentifier::PROPERTY_LIST,
RequiredRead,
None,
ReadOnly,
),
];