# Path: insteonplm/constants.py
# MESSAGE_FLAG_EXTENDED_0X10 = 0x10
# 
# MESSAGE_TYPE_ALL_LINK_BROADCAST = 6
# 
# MESSAGE_TYPE_ALL_LINK_CLEANUP = 2
# 
# MESSAGE_TYPE_ALL_LINK_CLEANUP_ACK = 3
# 
# MESSAGE_TYPE_ALL_LINK_CLEANUP_NAK = 7
# 
# MESSAGE_TYPE_BROADCAST_MESSAGE = 4
# 
# MESSAGE_TYPE_DIRECT_MESSAGE_ACK = 1
# 
# MESSAGE_TYPE_DIRECT_MESSAGE_NAK = 5


import logging
import binascii
from insteonplm.constants import (
    MESSAGE_FLAG_EXTENDED_0X10,
    MESSAGE_TYPE_ALL_LINK_BROADCAST,
    MESSAGE_TYPE_ALL_LINK_CLEANUP,
    MESSAGE_TYPE_ALL_LINK_CLEANUP_ACK,
    MESSAGE_TYPE_ALL_LINK_CLEANUP_NAK,
    MESSAGE_TYPE_BROADCAST_MESSAGE,
    MESSAGE_TYPE_DIRECT_MESSAGE_ACK,
    MESSAGE_TYPE_DIRECT_MESSAGE_NAK,
)
        return direct

    @property
    def isDirectACK(self):
        """Test if the message is a direct ACK message type."""
        return self._messageType == MESSAGE_TYPE_DIRECT_MESSAGE_ACK

    @property
    def isDirectNAK(self):
        """Test if the message is a direct NAK message type."""
        return self._messageType == MESSAGE_TYPE_DIRECT_MESSAGE_NAK

    @property
    def isAllLinkBroadcast(self):
        """Test if the message is an ALl-Link broadcast message type."""
        return self._messageType == MESSAGE_TYPE_ALL_LINK_BROADCAST

    @property
    def isAllLinkCleanup(self):
        """Test if the message is a All-Link cleanup message type."""
        return self._messageType == MESSAGE_TYPE_ALL_LINK_CLEANUP

    @property
    def isAllLinkCleanupACK(self):
        """Test if the message is a All-LInk cleanup ACK message type."""
        return self._messageType == MESSAGE_TYPE_ALL_LINK_CLEANUP_ACK

    @property
    def isAllLinkCleanupNAK(self):
        """Test if the message is a All-Link cleanup NAK message type."""

# Path: insteonplm/constants.py
# MESSAGE_FLAG_EXTENDED_0X10 = 0x10
# 
# MESSAGE_TYPE_ALL_LINK_BROADCAST = 6
# 
# MESSAGE_TYPE_ALL_LINK_CLEANUP = 2
# 
# MESSAGE_TYPE_ALL_LINK_CLEANUP_ACK = 3
# 
# MESSAGE_TYPE_ALL_LINK_CLEANUP_NAK = 7
# 
# MESSAGE_TYPE_BROADCAST_MESSAGE = 4
# 
# MESSAGE_TYPE_DIRECT_MESSAGE_ACK = 1
# 
# MESSAGE_TYPE_DIRECT_MESSAGE_NAK = 5


# Path: insteonplm/messages/messageFlags.py
import logging
import binascii
from insteonplm.constants import (
    MESSAGE_FLAG_EXTENDED_0X10,
    MESSAGE_TYPE_ALL_LINK_BROADCAST,
    MESSAGE_TYPE_ALL_LINK_CLEANUP,
    MESSAGE_TYPE_ALL_LINK_CLEANUP_ACK,
    MESSAGE_TYPE_ALL_LINK_CLEANUP_NAK,
    MESSAGE_TYPE_BROADCAST_MESSAGE,
    MESSAGE_TYPE_DIRECT_MESSAGE_ACK,
    MESSAGE_TYPE_DIRECT_MESSAGE_NAK,
)

        return direct

    @property
    def isDirectACK(self):
        """Test if the message is a direct ACK message type."""
        return self._messageType == MESSAGE_TYPE_DIRECT_MESSAGE_ACK

    @property
    def isDirectNAK(self):
        """Test if the message is a direct NAK message type."""
        return self._messageType == MESSAGE_TYPE_DIRECT_MESSAGE_NAK

    @property
    def isAllLinkBroadcast(self):
        """Test if the message is an ALl-Link broadcast message type."""
        return self._messageType == MESSAGE_TYPE_ALL_LINK_BROADCAST

    @property
    def isAllLinkCleanup(self):
        """Test if the message is a All-Link cleanup message type."""
        return self._messageType == MESSAGE_TYPE_ALL_LINK_CLEANUP

    @property
    def isAllLinkCleanupACK(self):
        """Test if the message is a All-LInk cleanup ACK message type."""
        return self._messageType == MESSAGE_TYPE_ALL_LINK_CLEANUP_ACK

    @property
    def isAllLinkCleanupNAK(self):
        """Test if the message is a All-Link cleanup NAK message type."""

        return self._messageType == MESSAGE_TYPE_ALL_LINK_CLEANUP_NAK