namespace Clock_Audio;
        // class declarations
         class ButtonSwitchState;
         class Response;
         class ResponseLedBrightnessList;
         class Command;
         class ButtonMapper;
         class IntegerEventArgs;
         class LedStateEventArgs;
         class LedState;
         class TrackingState;
         class BrightnessMap;
         class DeviceBase;
         class TIM1000;
         class ResponseLedState;
         class ResponseHeartbeat;
         class ResponseLedColorState;
         class ResponsePresetLoad;
         class ResponseNoiseSup;
         class LedColorState;
         class NoiseSupState;
         class ButtonsState;
         class StateMap;
         class PortUtil;
         class AptStateEventArgs;
         class UDPComm;
         class ResponseLedColorBrightness;
         class EQMap;
         class ClockAudioDevice;
         class ResponseLedBrightness;
         class AddressStateEventArgs;
         class PhantomState;
         class ResponsePhantom;
         class ResponseArm;
         class ResponseButtonSwitchState;
         class CDT100MkI;
         class ResponsePresetSave;
         class ResponseDefaults;
         class ColorMap;
         class ResponseLedColorBrightnessList;
         class StringEventArgs;
         class EQStateEventArgs;
         class CDT100MkII;
         class ResponseLedColorStateList;
         class ResponseEQ;
         class ModeMap;
         class PhantomStateEventArgs;
         class EQState;
         class AptState;
         class ArmState;
         class ResponseButtonState;
         class DeviceMap;
         class LedsState;
         class AddressState;
         class ResponseLedAndButtonStateList;
         class C303D;
         class PhantomsState;
         class ResponseAddress;
         class ResponseLedAndButtonState;
         class LevelConverter;
         class CommandBuilder;
         class ResponseLedColorBrightnessGroup;
         class ResponseApt;
         class AptMap;
         class ResponseParser;
         class ButtonStateEventArgs;
         class ButtonState;
         class ResponsePhantomList;
         class ResponseTracking;
         class ArmStateEventArgs;
         class Constants;
         class ResponseLedColorBrightnessGroupList;
     class ButtonSwitchState 
    {
        // class delegates

        // class events

        // class functions
        INTEGER_FUNCTION GetState ();
        FUNCTION ToggleState ();
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class Response 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class ButtonMapper 
    {
        // class delegates

        // class events

        // class functions
        static INTEGER_FUNCTION MapButtonChannel ( DeviceMap device , INTEGER button );
        static INTEGER_FUNCTION MapButtonSwitch ( DeviceMap device , INTEGER button );
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class IntegerEventArgs 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
        INTEGER payload;
    };

     class LedStateEventArgs 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
        LedsState payload;
    };

     class LedState 
    {
        // class delegates

        // class events

        // class functions
        INTEGER_FUNCTION GetColorCount ();
        INTEGER_FUNCTION GetState ( ColorMap color );
        INTEGER_FUNCTION GetBrightness ( ColorMap color );
        FUNCTION ToggleState ( ColorMap color );
        FUNCTION SetBrightness ( ColorMap color , INTEGER value );
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class TrackingState 
    {
        // class delegates

        // class events

        // class functions
        INTEGER_FUNCTION GetState ();
        FUNCTION ToggleState ();
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class BrightnessMap 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        static BrightnessMap STANDARD;
        static BrightnessMap DUTY_CYCLE;
        static BrightnessMap UNKNOWN;

        // class properties
        SIGNED_LONG_INTEGER index;
    };

     class LedColorState 
    {
        // class delegates

        // class events

        // class functions
        INTEGER_FUNCTION GetState ();
        INTEGER_FUNCTION GetBrightness ();
        FUNCTION ToggleState ();
        FUNCTION SetBrightness ( INTEGER value );
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class NoiseSupState 
    {
        // class delegates

        // class events

        // class functions
        INTEGER_FUNCTION GetState ();
        FUNCTION ToggleState ();
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class ButtonsState 
    {
        // class delegates

        // class events

        // class functions
        INTEGER_FUNCTION GetButtonCount ();
        INTEGER_FUNCTION GetState ( INTEGER index , INTEGER sw );
        FUNCTION ToggleState ( INTEGER index , INTEGER sw );
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class StateMap 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        static StateMap OFF;
        static StateMap ON;

        // class properties
        INTEGER index;
        STRING name[];
    };

     class PortUtil 
    {
        // class delegates

        // class events

        // class functions
        static SIGNED_LONG_INTEGER_FUNCTION GetNextLocalPort ();
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class AptStateEventArgs 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
        AptState payload;
    };

     class EQMap 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        static EQMap LOW;
        static EQMap MEDIUM;
        static EQMap HIGH;
        static EQMap UNKNOWN;

        // class properties
        SIGNED_LONG_INTEGER index;
        SIGNED_LONG_INTEGER value;
    };

     class ClockAudioDevice 
    {
        // class delegates

        // class events
        EventHandler OnDebugChange ( ClockAudioDevice sender, StringEventArgs args );
        EventHandler OnCommunicatingChange ( ClockAudioDevice sender, IntegerEventArgs args );
        EventHandler OnInitializedChange ( ClockAudioDevice sender, IntegerEventArgs args );
        EventHandler OnDebugEnableChange ( ClockAudioDevice sender, IntegerEventArgs args );
        EventHandler OnLatchingEnableChange ( ClockAudioDevice sender, IntegerEventArgs args );
        EventHandler OnPassbackEnableChange ( ClockAudioDevice sender, IntegerEventArgs args );
        EventHandler OnAddressChange ( ClockAudioDevice sender, AddressStateEventArgs args );
        EventHandler OnArmCChange ( ClockAudioDevice sender, ArmStateEventArgs args );
        EventHandler OnPhantomChange ( ClockAudioDevice sender, PhantomStateEventArgs args );
        EventHandler OnLedChange ( ClockAudioDevice sender, LedStateEventArgs args );
        EventHandler OnButtonChange ( ClockAudioDevice sender, ButtonStateEventArgs args );
        EventHandler OnPresetChange ( ClockAudioDevice sender, IntegerEventArgs args );
        EventHandler OnPassbackChange ( ClockAudioDevice sender, StringEventArgs args );
        EventHandler OnTrackingChange ( ClockAudioDevice sender, IntegerEventArgs args );
        EventHandler OnAptChange ( ClockAudioDevice sender, AptStateEventArgs args );
        EventHandler OnEQChange ( ClockAudioDevice sender, EQStateEventArgs args );
        EventHandler OnNoiseSupChange ( ClockAudioDevice sender, IntegerEventArgs args );

        // class functions
        STRING_FUNCTION GetIP ();
        FUNCTION Configure ( INTEGER deviceType , STRING remoteIP , INTEGER remotePort , INTEGER adapterType , INTEGER brightnessType );
        FUNCTION Reinitialize ();
        FUNCTION SetDebug ( INTEGER state );
        FUNCTION SetLatching ( INTEGER state );
        FUNCTION SetPassback ( INTEGER state );
        FUNCTION SetArmC ( INTEGER state );
        FUNCTION ToggleArmC ();
        FUNCTION SetPhantomAll ( INTEGER state );
        FUNCTION SetPhantom ( INTEGER index , INTEGER state );
        FUNCTION TogglePhantom ( INTEGER index );
        FUNCTION SetLedStateAll ( INTEGER color , INTEGER state );
        FUNCTION SetLedState ( INTEGER index , INTEGER color , INTEGER state );
        FUNCTION ToggleLedState ( INTEGER index , INTEGER color );
        FUNCTION SetLedBrightAll ( INTEGER color , INTEGER value );
        FUNCTION SetLedBright ( INTEGER index , INTEGER color , INTEGER value );
        FUNCTION SavePreset ();
        FUNCTION LoadPreset ();
        FUNCTION Passthrough ( STRING text );
        FUNCTION SetIdentify ( INTEGER state );
        FUNCTION SetFind ();
        FUNCTION SetDefaults ();
        FUNCTION SetTracking ( INTEGER state );
        FUNCTION ToggleTracking ();
        FUNCTION SetNoiseSup ( INTEGER state );
        FUNCTION ToggleNoiseSup ();
        FUNCTION SetApt ( INTEGER value );
        FUNCTION SetEQ ( INTEGER index , INTEGER value );
        FUNCTION ProcessResponse ( Response response );
        FUNCTION SendHeartbeat ();
        FUNCTION FailedResponse ();
        FUNCTION CommunicationLost ();
        FUNCTION ForwardMessage ( Command message , INTEGER priority );
        FUNCTION Debug ( STRING message );
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class AddressStateEventArgs 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
        AddressState payload;
    };

     class PhantomState 
    {
        // class delegates

        // class events

        // class functions
        INTEGER_FUNCTION GetState ();
        FUNCTION ToggleState ();
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class ColorMap 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        static ColorMap RED;
        static ColorMap GREEN;
        static ColorMap BLUE;

        // class properties
        SIGNED_LONG_INTEGER index;
        STRING value[];
        STRING name[];
    };

     class StringEventArgs 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
        STRING payload[];
    };

     class EQStateEventArgs 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
        EQState payload;
    };

     class ModeMap 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        static ModeMap CDT100_MKI;
        static ModeMap CDT100_MKII;

        // class properties
        INTEGER value;
    };

     class PhantomStateEventArgs 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
        PhantomsState payload;
    };

     class EQState 
    {
        // class delegates

        // class events

        // class functions
        INTEGER_FUNCTION GetEQCount ();
        INTEGER_FUNCTION GetLevel ( INTEGER index );
        FUNCTION SetLevel ( INTEGER index , INTEGER value );
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class AptState 
    {
        // class delegates

        // class events

        // class functions
        INTEGER_FUNCTION GetState ();
        FUNCTION SetState ( INTEGER state );
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class ArmState 
    {
        // class delegates

        // class events

        // class functions
        INTEGER_FUNCTION GetState ();
        FUNCTION ToggleState ();
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class DeviceMap 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        static DeviceMap CDT100_MKI;
        static DeviceMap CDT100_MKII;
        static DeviceMap C303D;
        static DeviceMap TIM_1000;
        static DeviceMap UNKNOWN;

        // class properties
        INTEGER value;
    };

     class LedsState 
    {
        // class delegates

        // class events

        // class functions
        INTEGER_FUNCTION GetLedCount ();
        INTEGER_FUNCTION GetState ( INTEGER index , INTEGER color );
        INTEGER_FUNCTION GetBrightness ( INTEGER index , INTEGER color );
        FUNCTION ToggleState ( INTEGER index , ColorMap color );
        FUNCTION SetBrightness ( INTEGER index , ColorMap color , INTEGER value );
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class AddressState 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION GetSwitchAddress ();
        STRING_FUNCTION GetIpAddress ();
        FUNCTION SetSwitchAddress ( STRING value );
        FUNCTION SetIpAddress ( STRING value );
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class PhantomsState 
    {
        // class delegates

        // class events

        // class functions
        INTEGER_FUNCTION GetPhantomCount ();
        INTEGER_FUNCTION GetState ( INTEGER index );
        FUNCTION ToggleState ( INTEGER sw );
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class LevelConverter 
    {
        // class delegates

        // class events

        // class functions
        static INTEGER_FUNCTION ScaleToCrestronRGB ( INTEGER levelIn );
        static INTEGER_FUNCTION ScaleFromCrestronRGB ( INTEGER levelIn );
        static INTEGER_FUNCTION ScaleToCrestronCH32 ( INTEGER levelIn );
        static INTEGER_FUNCTION ScaleFromCrestronCH32 ( INTEGER levelIn );
        static INTEGER_FUNCTION ScaleToCrestronTSB ( INTEGER levelIn );
        static INTEGER_FUNCTION ScaleFromCrestronTSB ( INTEGER levelIn );
        static INTEGER_FUNCTION ScaleToCrestronEQ ( SIGNED_INTEGER levelIn );
        static SIGNED_INTEGER_FUNCTION ScaleFromCrestronEQ ( INTEGER levelIn );
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class CommandBuilder 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class AptMap 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        static AptMap OFF;
        static AptMap SLOW;
        static AptMap MEDIUM;
        static AptMap NORMAL;
        static AptMap UNKNOWN;

        // class properties
        SIGNED_LONG_INTEGER index;
        SIGNED_LONG_INTEGER value;
    };

     class ResponseParser 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class ButtonStateEventArgs 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
        ButtonsState payload;
    };

     class ButtonState 
    {
        // class delegates

        // class events

        // class functions
        INTEGER_FUNCTION GetSwitchCount ();
        INTEGER_FUNCTION GetState ( INTEGER sw );
        FUNCTION ToggleState ( INTEGER sw );
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
    };

     class ArmStateEventArgs 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        INTEGER __class_id__;

        // class properties
        ArmState payload;
    };

     class Constants 
    {
        // class delegates

        // class events

        // class functions
        STRING_FUNCTION ToString ();
        SIGNED_LONG_INTEGER_FUNCTION GetHashCode ();

        // class variables
        static SIGNED_LONG_INTEGER MAX_BUFFER;
        static INTEGER PRIORITY_LEVELS;
        static INTEGER PRIORITY_COMMAND;
        static INTEGER PRIORITY_QUERY;
        static INTEGER MAX_FAILED_RESPONSES;
        static STRING DEV_CMD_DELIM[];
        static STRING DEV_CMD_VERSION[];
        static STRING DEV_CMD_SET_MODE[];
        static STRING DEV_CMD_GET_MODE[];
        static STRING DEV_CMD_ASYNC[];
        static STRING DEV_CMD_ADDRESS[];
        static STRING DEV_CMD_GET_ARM_C[];
        static STRING DEV_CMD_SET_ARM_C[];
        static STRING DEV_CMD_GET_PHANTOM[];
        static STRING DEV_CMD_SET_PHANTOM[];
        static STRING DEV_CMD_GET_CH32[];
        static STRING DEV_CMD_GET_TS[];
        static STRING DEV_CMD_SET_CH32[];
        static STRING DEV_CMD_SET_TS[];
        static STRING DEV_CMD_GET_CH32_B[];
        static STRING DEV_CMD_GET_RGB[];
        static STRING DEV_CMD_SET_CH32_B[];
        static STRING DEV_CMD_SET_TSB[];
        static STRING DEV_CMD_SET_RGB[];
        static STRING DEV_CMD_INPUT_STATUS[];
        static STRING DEV_CMD_PRESET_SAVE[];
        static STRING DEV_CMD_PRESET_LOAD[];
        static STRING DEV_CMD_IDENTIFY[];
        static STRING DEV_CMD_FIND[];
        static STRING DEV_CMD_DEFAULTS[];
        static STRING DEV_CMD_APT[];
        static STRING DEV_CMD_TRACKING[];
        static STRING DEV_CMD_EQ[];
        static STRING DEV_CMD_NOISESUP[];
        static STRING DEV_CMD_ID[];
        static STRING DEV_CMD_GET_TSB[];
        static STRING DEV_RSP_ACK[];
        static STRING DEV_RSP_NACK[];

        // class properties
    };

