Skip to content

API Entity Unit

Gordan Krešić edited this page Nov 25, 2016 · 6 revisions

Unit

{
	id: "b8ebe73e-a476-11e6-aedd-4485006d0fd8",
	unitType: "Text",
	title: "Overhead transmission",
	author: { /* user */ },
	keywords: [ "primary", "distribution", "voltage" ],
	attributes: { /* attributes */ }
}
Attribute Description
id Mentor's internal identificator for this unit
type Unit type
title Unit title
author User that owns this unit
keywords Array of keywords and phrases associated with this unit
attributes Attributes specific to each type of unit

Text units

Units of type Text have these attributes:

{
	"textUnitType": "Mentor"
}
Attribute Description
textUnitType Text unit type

Mentor text units

Text units of type Mentor have these attributes:

{
	"textUnitType": "Mentor",
	"markupType": "None",
	"markup": "Primary distribution voltages are 22kV or 11 kV.[10] Only large consumers are fed directly from distribution voltages; most utility customers are connected to a transformer, which reduces the distribution voltage to the low voltage used by lighting and interior wiring systems.\n\nVoltage varies according to its role in the supply and distribution system. According to international standards, there are initially two voltage groups: low voltage (LV): up to and including 1kV AC (or 1.5kV DC) and high voltage (HV): above 1 kV AC (or 1.5 kV DC)."
}
Attribute Description
markupType Type of markup used to format text.
markup Formatted text for this unit.

Video units

Units of type Video have these attributes:

{
	"videoUnitType": "Mentor",
	"width": 320,
	"height": 240,
	"duration": 315
}
Attribute Description
videoUnitType Video unit type
width Video width, in pixels.
height Video height, in pixels.
duration Video duration, in seconds.

Mentor video units

Video units of type Mentor do not have any additional attributes.

Clone this wiki locally