-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
update 2016-10-17: there's no api for star
/tag
in web api. we can only do remark
name by api.
according to #14
Contact : {
remark() : string
remark(string) : string
}
type TagInfo = { any: boolean }
tag() : string[]
tag(tags: TagInfo): string[]
star() : boolean
star(boolean) : boolean
static findByTag(tags: TagInfo)
static findByStar()
Tag / Star / Remark Contact
const contact = Contact.load(message.get('from'))
contact.remark('Remark Memo Name')
contact.tag({tag1: true})
contact.tag({tag1: false})
contact.tag() : string[]
contact.star(true)
contact.star(false)
contact.star() : boolean
Find Contact
const contact = Contact.findByTag({tag1: true})
const starContacts = Contact.findByStar()