MCPcopy
hub / github.com/nodeWechat/wechat4u / constructor

Method constructor

src/wechat.js:24–36  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

22class Wechat extends WechatCore {
23
24 constructor (data) {
25 super(data)
26 _.extend(this, new EventEmitter())
27 this.state = this.CONF.STATE.init
28 this.contacts = {} // 所有联系人
29 this.Contact = ContactFactory(this)
30 this.Message = MessageFactory(this)
31 this.lastSyncTime = 0
32 this.syncPollingId = 0
33 this.syncErrorCount = 0
34 this.checkPollingId = 0
35 this.retryPollingId = 0
36 }
37
38 get friendList () {
39 let members = []

Callers

nothing calls this directly

Calls 2

ContactFactoryFunction · 0.85
MessageFactoryFunction · 0.85

Tested by

no test coverage detected