# Path: pysiriproxy/constants.py
# class Directions:
#     '''The Directions class contains several properties which are used to
#     indicate which direction data is entering the system.
# 
#     '''
# 
#     From_Server = "From_Server"
#     '''The From_Server property indicates that data was received from Apple's
#     server.
# 
#     '''
# 
#     From_iPhone = "From_iPhone"
#     '''The From_iPhone property indicates that data was received from the
#     iPhone.
# 
#     '''


from pysiriproxy.constants import Directions
from pyamp.logging import LogData, LogLevel, Colors

    ##### Private functions #####

    @classmethod
    def __log(cls, message):
        '''Log an information message to the output.

        * message -- The message to log

        '''
        logger = LogData().get(cls.Direction, color=Colors.Foreground.Red)
        logger.info(message)


class iPhone(Connection):
    '''Create an iPhone Connection for testing.'''

    Direction = Directions.From_iPhone
    '''Define the direction for this Connection to indicate that it is from
    the iPhone.

    '''

    RefId = "iPhone refId"
    '''Define the reference ID for the iPhone Connection.'''


class Server(Connection):
    '''Create a Server Connection for testing.'''


# Path: pysiriproxy/constants.py
# class Directions:
#     '''The Directions class contains several properties which are used to
#     indicate which direction data is entering the system.
# 
#     '''
# 
#     From_Server = "From_Server"
#     '''The From_Server property indicates that data was received from Apple's
#     server.
# 
#     '''
# 
#     From_iPhone = "From_iPhone"
#     '''The From_iPhone property indicates that data was received from the
#     iPhone.
# 
#     '''


# Path: pysiriproxy/testing/testSupport.py
from pysiriproxy.constants import Directions
from pyamp.logging import LogData, LogLevel, Colors


    ##### Private functions #####

    @classmethod
    def __log(cls, message):
        '''Log an information message to the output.

        * message -- The message to log

        '''
        logger = LogData().get(cls.Direction, color=Colors.Foreground.Red)
        logger.info(message)


class iPhone(Connection):
    '''Create an iPhone Connection for testing.'''

    Direction = Directions.From_iPhone
    '''Define the direction for this Connection to indicate that it is from
    the iPhone.

    '''

    RefId = "iPhone refId"
    '''Define the reference ID for the iPhone Connection.'''


class Server(Connection):
    '''Create a Server Connection for testing.'''


    Direction = Directions.From_Server