Constructor
new Person(data)
Creates a Person object
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Person | Object |
Members
_id :string
Unique ID for a person
Type:
- string
birthday :string
Person's birthday in format MM/DD
Type:
- string
dateLastUsedOnMobile :string
ISO date (e.g., '2022-06-20T15:50:40.055Z'), when user on Mobile last edited this person or added this person to a CultureEvent
Type:
- string
deceased :boolean
True if the person is dead
Type:
- boolean
description :string
Description of the person
Type:
- string
fullName :string
Person's full name
Type:
- string
name :string
Person's common name
Type:
- string
note :string
Note about the person
Type:
- string
photoFilename :string
Filename of a picture of the person (no path, but does include extension)
Type:
- string
sex :string
Person's sex
Type:
- string
Methods
set(data) → {Person}
Creates an updated Person object
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Person | Object |
Returns:
- Type
- Person