提交 0ffdba4f 编写于 作者: W windmemory

add corp basic info methods on contact class

上级 33ec3ccd
......@@ -818,6 +818,26 @@ class Contact extends ContactEventEmitter implements Sayable {
return (this.payload && this.payload.weixin) || null
}
public corp (): string | null {
return (this.payload && this.payload.corp) || null
}
public title (): string | null {
return (this.payload && this.payload.title) || null
}
public description (): string | null {
return (this.payload && this.payload.description) || null
}
public external (): boolean | null {
return (this.payload && this.payload.isExternal) || null
}
public isWeixin (): boolean | null {
return (this.payload && this.payload.isWeixin) || null
}
}
function wechatifyContact (wechaty: Wechaty): typeof Contact {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册