# Category

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

## constructor


   

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **Reference** | `InternalOpenGateAPI` | ❌ | to the API object. |
| **identifier** | `identifier` | ❌ | of category |
| **datastreams** | `Array` | ❌ | of category |


---
## addDatastream(datastream)


Add a datastream to the category 

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **datastream** | `Object` | ❌ | json object |

### Retorna

{{% notice tip %}}
**Tipo:** `Category`
<br>

{{% /notice %}}

---
## addDatastreams(datastreams)


Add a datastreams to the category 

### Parámetros

| Nombre | Tipo | Opcional | Descripción |
| :--- | :--- | :---: | :--- |
| **datastreams** | `Object` | ❌ | of datastream json object |

### Retorna

{{% notice tip %}}
**Tipo:** `Category`
<br>

{{% /notice %}}

---

