new User( [json])
FamilySearch user.
Parameters:
| Name | Type | Argument | Description |
|---|---|---|---|
json |
Object |
<optional> |
Extends
Methods
-
addField(field)
-
Add a field
Parameters:
Name Type Description fieldField - Inherited From:
Returns:
this- Type
- ExtensibleData
-
addLink(link)
-
Add a link
Parameters:
Name Type Description linkLink - Inherited From:
Returns:
this- Type
- ExtensibleData
-
getAlternateEmail()
-
Get the alternateEmail
Returns:
alternateEmail- Type
- String
-
getBirthDate()
-
Get the birthDate
Returns:
birthDate- Type
- String
-
getContactName()
-
Get the contactName
Returns:
contactName- Type
- String
-
getCountry()
-
Get the country
Returns:
country- Type
- String
-
getDisplayName()
-
Get the displayName
Returns:
displayName- Type
- String
-
getEmail()
-
Get the email
Returns:
email- Type
- String
-
getFamilyName()
-
Get the familyName
Returns:
familyName- Type
- String
-
getFields()
-
Get the fields
- Inherited From:
Returns:
- Type
- Array.<Field>
-
getFullName()
-
Get the fullName
Returns:
fullName- Type
- String
-
getGender()
-
Get the gender
Returns:
gender- Type
- String
-
getGivenName()
-
Get the givenName
Returns:
givenName- Type
- String
-
getHelperAccessPin()
-
Get the helperAccessPin
Returns:
helperAccessPin- Type
- String
-
getId()
-
Get the object's id.
- Inherited From:
Returns:
Id- Type
- String
-
getLink(rel)
-
Get a link
Parameters:
Name Type Description relString - Inherited From:
Returns:
- Type
- Link
-
getLinks()
-
Get the links
- Inherited From:
Returns:
- Type
- Array.<Link>
-
getMailingAddress()
-
Get the mailingAddress
Returns:
mailingAddress- Type
- String
-
getMobilePhoneNumber()
-
Get the mobilePhoneNumber
Returns:
mobilePhoneNumber- Type
- String
-
getPersonId()
-
Get the personId
Returns:
personId- Type
- String
-
getPhoneNumber()
-
Get the phoneNumber
Returns:
phoneNumber- Type
- String
-
getPreferredLanguage()
-
Get the preferredLanguage
Returns:
preferredLanguage- Type
- String
-
getTreeUserId()
-
Get the treeUserId
Returns:
treeUserId- Type
- String
-
init(json)
-
Initialize from JSON
Parameters:
Name Type Description jsonObject - Overrides:
Returns:
User this -
<static> isInstance(obj)
-
Check whether the given object is an instance of this class.
Parameters:
Name Type Description objObject Returns:
- Type
- Boolean
-
setAlternateEmail(alternateEmail)
-
Set the alternateEmail
Parameters:
Name Type Description alternateEmailString Returns:
this- Type
- User
-
setBirthDate(birthDate)
-
Set the birthDate
Parameters:
Name Type Description birthDateString Returns:
this- Type
- User
-
setContactName(contactName)
-
Set the contactName
Parameters:
Name Type Description contactNameString Returns:
this- Type
- User
-
setCountry(country)
-
Set the country
Parameters:
Name Type Description countryString Returns:
this- Type
- User
-
setDisplayName(displayName)
-
Set the displayName
Parameters:
Name Type Description displayNameString Returns:
this- Type
- User
-
setEmail(email)
-
Set the email
Parameters:
Name Type Description emailString Returns:
this- Type
- User
-
setFamilyName(familyName)
-
Set the familyName
Parameters:
Name Type Description familyNameString Returns:
this- Type
- User
-
setFields(fields)
-
Set the fields
Parameters:
Name Type Description fieldsArray.<Field> - Inherited From:
Returns:
this- Type
- ExtensibleData
-
setFullName(fullName)
-
Set the fullName
Parameters:
Name Type Description fullNameString Returns:
this- Type
- User
-
setGender(gender)
-
Set the gender
Parameters:
Name Type Description genderString Returns:
this- Type
- User
-
setGivenName(givenName)
-
Set the givenName
Parameters:
Name Type Description givenNameString Returns:
this- Type
- User
-
setHelperAccessPin(helperAccessPin)
-
Set the helperAccessPin
Parameters:
Name Type Description helperAccessPinString Returns:
this- Type
- User
-
setId(id)
-
Set the object's id.
Parameters:
Name Type Description idString - Inherited From:
Returns:
This object, for chaining.- Type
- ExtensibleData
-
setLinks(links)
-
Set the links
Parameters:
Name Type Description linksLinks - Inherited From:
Returns:
this- Type
- ExtensibleData
-
setMailingAddress(mailingAddress)
-
Set the mailingAddress
Parameters:
Name Type Description mailingAddressString Returns:
this- Type
- User
-
setMobilePhoneNumber(mobilePhoneNumber)
-
Set the mobilePhoneNumber
Parameters:
Name Type Description mobilePhoneNumberString Returns:
this- Type
- User
-
setPersonId(personId)
-
Set the personId
Parameters:
Name Type Description personIdString Returns:
this- Type
- User
-
setPhoneNumber(phoneNumber)
-
Set the phoneNumber
Parameters:
Name Type Description phoneNumberString Returns:
this- Type
- User
-
setPreferredLanguage(preferredLanguage)
-
Set the preferredLanguage
Parameters:
Name Type Description preferredLanguageString Returns:
this- Type
- User
-
setTreeUserId(treeUserId)
-
Set the treeUserId
Parameters:
Name Type Description treeUserIdString Returns:
this- Type
- User
-
toJSON()
-
Export the object as JSON
- Overrides:
Returns:
JSON object- Type
- Object