Category

Category

Category Objects

class Category()

Defines the builder to configure a category of a datamodel. With this builder you can configure a category

constructor
function constructor()

Arguments:

  • Reference InternalOpenGateAPI - to the API object.
  • identifier identifier - of category
  • datastreams Array - of category

addDatastream
function addDatastream(datastream: Object) -> 'Category'

Add a datastream to the category

Arguments:

  • datastream Object - json object

Returns:

  • Category

addDatastreams
function addDatastreams(datastreams: Object) -> 'Category'

Add a datastreams to the category

Arguments:

  • datastreams Object - of datastream json object

Returns:

  • Category

withName
function withName(name: *) -> '*'

Arguments:

  • name *

Returns:

  • *