ManageFactory
Summary
Defines a factory to manage communications with the server.
Item Index
Methods
addDeviceToGroup
Syntax
Summary
Adds a device to a group.
Returns:
Promise resolving when device has been added
addSchedule
Syntax
Summary
Adds a manageable's schedule.
Parameters:
Returns:
Promise resolving when schedule has been added
askForDevicesSettings
Syntax
Summary
Asks server for devices' settings.
Parameters:
-
ids
ArrayThe devices' ids
Returns:
Promise resolving when request to devices have been sent
createGroup
Syntax
Summary
Creates a new group.
Returns:
Promise resolving with the new created group
getConfiguration
Syntax
Summary
Gets Manage plugin configuration.
Returns:
A promise resolving with manage's configuration
getDevices
Syntax
Summary
Gets all devices from server.
Returns:
A promise resolving with the list of devices categorized by state (either "pending", "accepted" or "refused")
getGroups
Syntax
Summary
Gets all groups devices from server.
Returns:
A promise resolving with the list of groups
remove
Syntax
Summary
Removes a manageable.
Returns:
Promise resolving when the manageable has been removed
removeDeviceFromGroup
Syntax
Summary
Removes a device from its group.
Parameters:
-
id
StringThe id of the device to remove from its group
Returns:
Promise resolving when device has been removed from its group
removeHistoric
Syntax
Summary
Removes a manageable's historic.
Parameters:
Returns:
Promise resolving when historic has been removed
removeHistory
Syntax
Summary
Removes the whole manageable's history.
Returns:
Promise resolving when history has been removed
removeSchedule
Syntax
Summary
Removes a manageable's schedule.
Parameters:
Returns:
Promise resolving when schedule has been removed
startRecord
Syntax
Summary
Starts a new record session on devices.
Returns:
Promise resolving when a start request has been sent to devices
stopRecord
Syntax
Summary
Stops a recording session on devices.
Parameters:
-
ids
ArrayThe list of devices' ids
Returns:
Promise resolving when a stop request has been sent to devices
tagRecord
Syntax
Summary
Tags a recording session on devices.
Parameters:
-
ids
ArrayThe list of devices' ids
Returns:
Promise resolving when a tag request has been sent to devices
updateDeviceState
Syntax
Summary
Updates the state of a device.
Returns:
Promise resolving when state has been changed