Show:

Users.Contact Class

Constructs a contact from fields, which are typically returned from the server.

Constructor

Users.Contact

(
  • fields
)

Parameters:

Item Index

Methods

Methods

add

(
  • userId
  • label
  • contactUserId
  • callback
)

Adds a contact.

Parameters:

  • userId String

    The user's id

  • label String

    The contact's label

  • contactUserId String

    The contact user's id

  • callback Function

    if there were errors, first parameter is an array of errors otherwise, first parameter is null and second parameter is a Users.Contact object

get

(
  • userId
  • label
  • contactUserId
  • callback
)

Contacts batch getter.

Parameters:

  • userId String

    The user's id

  • label String

    The contact's label

  • contactUserId String

    The contact user's id

  • callback Function

    if there were errors, first parameter is an array of errors otherwise, first parameter is null and second parameter is a Users.Contact object

remove

(
  • userId
  • label
  • contactUserId
  • callback
)

Remove a contact.

Parameters:

  • userId String

    The user's id

  • label String

    The contact's label

  • contactUserId String

    The contact user's id

  • callback Function

    if there were errors, first parameter is an array of errors otherwise, first parameter is null and second parameter is a Users.Contact object