Class: Person

Person(data)

Class representing a Person. This has no connection to the Users table.

Constructor

new Person(data)

Creates a Person object
Parameters:
Name Type Description
data Person | Object
Source:

Members

_id :string

Unique ID for a person
Type:
  • string
Default Value:
  • ''
Source:

birthday :string

Person's birthday in format MM/DD
Type:
  • string
Default Value:
  • ''
Source:

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
Default Value:
  • ''
Source:

deceased :boolean

True if the person is dead
Type:
  • boolean
Default Value:
  • ''
Source:

description :string

Description of the person
Type:
  • string
Default Value:
  • ''
Source:

fullName :string

Person's full name
Type:
  • string
Default Value:
  • ''
Source:

name :string

Person's common name
Type:
  • string
Default Value:
  • ''
Source:

note :string

Note about the person
Type:
  • string
Default Value:
  • ''
Source:

photoFilename :string

Filename of a picture of the person (no path, but does include extension)
Type:
  • string
Default Value:
  • ''
Source:

sex :string

Person's sex
Type:
  • string
Default Value:
  • ''
Source:

Methods

set(data) → {Person}

Creates an updated Person object
Parameters:
Name Type Description
data Person | Object
Source:
Returns:
Type
Person