Skip to content

[New Feature] Contact.{tag,star,remark,find,findAll} #34

@huan

Description

@huan

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()

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions