marcelog / Nami

Asterisk manager interface (ami) client for nodejs
http://marcelog.github.com/Nami
Apache License 2.0
99 stars 59 forks source link

Improvements and Updates in the Code. Converted to ES6 class #57

Open xmaop opened 2 months ago

xmaop commented 2 months ago
  1. nami.js:

    • Converted to ES6 class.
    • Updated methods to use class method syntax.
  2. message.js:

    • Converted to ES6 class.
    • Updated methods to use class method syntax.
  3. action.js:

    • Converted to ES6 class.
    • Implemented super() for calls to the parent class constructor.
    • Dynamic generation of action classes using createActionClass.
    • Exported dynamically generated classes.
  4. response.js:

    • Converted to ES6 class.
    • Implemented super() for calls to the parent class constructor.
    • Updated to export the Response class.
  5. event.js:

    • Converted to ES6 class.
    • Implemented super() for calls to the parent class constructor.
    • Updated to export the Event class.