Closed su-chang closed 2 years ago
I think manager refactor and event support should be divided into 2 PRs
I think manager refactor and event support should be divided into 2 PRs
The title is refactor manager, and the real result is move methods which related WhatsApp
directly in Manager
to whatsapp
directory as this pr describe.
BTW, if you think it's better to divided this PR into 2 PRs, I will do it later, and the first one is : refactor: split whatsapp event from manager class
and the second one is: refactor: move whatsapp.ts file from src to src/whatsapp dir
src/whatsapp/whatsapp-base.ts
and src/whatsapp/whatsapp-manager.ts
less than 200 lines , but seperate to 2 files.
src/whatsapp/whatsapp-base.ts
andsrc/whatsapp/whatsapp-manager.ts
less than 200 lines , but seperate to 2 files.
The WhatsAppBase
will extends event listener EE
, and other related classes extends it.
This PR will be closed now, and it has already divided into 2 PRs: #257 and #258
Pick up
whatsapp
related methods fromManager
class towhatsapp
directory which contain these classes: