You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All of itchat method is encapsulated into split module, eg: contact, login, message, hotreload, which is attached to the Core object. Because all of submodule in components module is in the same class: Core, so we can pack all of methods into one Object: AsyncItchat which is the async-based itchat.
Design
In this case, all of methods in components is in same class and there are so many common codes can be refactored. I believe if this change has been done, it will make code smaller and more elegant.
The text was updated successfully, but these errors were encountered:
wj-Mcat
changed the title
Refactor the compoents design
Refactor the components design
Nov 14, 2021
Description
All of itchat method is encapsulated into split module, eg: contact, login, message, hotreload, which is attached to the Core object. Because all of submodule in
components
module is in the same class: Core, so we can pack all of methods into one Object:AsyncItchat
which is the async-based itchat.Design
In this case, all of methods in components is in same class and there are so many common codes can be refactored. I believe if this change has been done, it will make code smaller and more elegant.
The text was updated successfully, but these errors were encountered: