Extends
Poi
class Room extends Poi
Static
create
static create(json = null): Room
Parameters:
Name | Type | Required | Default | Description |
json | null | object | No | null | Used to constructor from a JSON representation. See fromJSON |
Returns:
Type: Room
getName
static getName(): string
Returns:
Type: constant ("Room": string)
Constructor
constructor
constructor(json = null): Room
Parameters:
Name | Type | Required | Default | Description |
json | null | object | No | null | Used to constructor from a JSON representation. See fromJSON |
Properties
capacity
Type | Default | Description |
int | null | null | |
kind
Type | Default | Description |
string | null | null | |
phone
Type | Default | Description |
string | null | null | |
reference
Type | Default | Description |
string | null | null | |
Overwritten Properties
type
Read-Only
Inherited Properties
categories
children
client_id
Type | Default | Description |
string | null | null | |
created_at
Type | Default | Description |
Date | null | null | |
Read-Only
custom_objects
description
Type | Default | Description |
string | null | null | |
id
Type | Default | Description |
null | int | symbol | null | The entity identifier |
logos
medias
metadata
Type | Default | Description |
Map | new Map() | |
name
Type | Default | Description |
string | null | |
new
Type | Default | Description |
boolean | true | |
parents
pictures
places
signature
Type | Default | Description |
string | null | null | |
site
Type | Default | Description |
Reference<Site> | new Reference('Site', null) | |
tags
updated_at
Type | Default | Description |
Date | null | null | |
Read-Only
version
Type | Default | Description |
int | null | |
Read-Only
Methods
toJSON
toJSON(): object
Returns:
Type: object (see properties bellow)
Name | Type | Description |
categories | Array<int | symbol> | |
children | Array<{id: int | symbol, position: int}> | |
client_id | string | null | |
created_at | string | null | Datetime in ISO 8601 format |
custom_objects | Array<int | symbol> | |
description | null | string | |
id | null | int | symbol | |
logos | Array<{id: int | symbol, position: int}> | |
medias | Array<{id: int | symbol, position: int}> | |
metadata | object | |
name | string | null | |
new | boolean | |
parents | Array<int | symbol> | |
pictures | Array<{id: int | symbol, position: int}> | |
places | Array<int | symbol> | |
signature | string | null | |
site | null | int | symbol | |
tags | Array<int | symbol> | |
type | string | null | |
updated_at | string | null | Datetime in ISO 8601 format |
version | int | null | |
capacity | null | int | |
kind | null | string | |
phone | null | string | |
reference | null | string | |
fromJSON
fromJSON(json: object): Room
Parameters:
Name | Type | Required | Default | Description |
json | object | Yes | - | |
json.categories | Array<int | symbol> | No | [] | |
json.children | Array<{id: int | symbol, position: int}> | No | [] | |
json.client_id | string | null | No | null | |
json.created_at | string | null | No | null | Datetime in ISO 8601 format |
json.custom_objects | Array<int | symbol> | No | [] | |
json.description | null | string | No | null | |
json.id | null | int | symbol | No | null | |
json.logos | Array<{id: int | symbol, position: int}> | No | [] | |
json.medias | Array<{id: int | symbol, position: int}> | No | [] | |
json.metadata | object | No | {} | |
json.name | string | null | No | null | |
json.new | boolean | No | true | |
json.parents | Array<int | symbol> | No | [] | |
json.pictures | Array<{id: int | symbol, position: int}> | No | [] | |
json.places | Array<int | symbol> | No | [] | |
json.signature | string | null | No | null | |
json.site | null | int | symbol | No | null | |
json.tags | Array<int | symbol> | No | [] | |
json.type | string | null | No | 'room' | |
json.updated_at | string | null | No | null | Datetime in ISO 8601 format |
json.version | int | null | No | null | | json.phone | null | string | No | null | |
json.capacity | null | int | No | null | |
json.kind | null | string | No | null | |
json.phone | null | string | No | null | |
json.reference | null | string | No | null | |
Returns:
Returns this
clone
clone(): Room
Returns:
A new deep copy
Type: Room