import Subscriber from 'opengate-js/src/collection/devices/collect/Subscriber.js'Subscriber
This is a base object that allows the user to create a Subscription.
Constructor Summary
| Public Constructor | ||
| public |
|
|
Method Summary
| Public Methods | ||
| public |
composeElement(): * |
|
| public |
withHardware(hardware: Hardware): Subscriber Set the hardware attribute |
|
| public |
withId(id: string): Subscriber Set the id attribute |
|
| public |
withName(name: string): Subscriber Set the name attribute |
|
| public |
withType(type: string): Subscriber Set the type attribute |
|
Public Constructors
public constructor() source
Public Methods
public withHardware(hardware: Hardware): Subscriber source
Set the hardware attribute
Params:
| Name | Type | Attribute | Description |
| hardware | Hardware | optionals field |
public withId(id: string): Subscriber source
Set the id attribute
Params:
| Name | Type | Attribute | Description |
| id | string | optional field |
public withName(name: string): Subscriber source
Set the name attribute
Params:
| Name | Type | Attribute | Description |
| name | string | optional field |
public withType(type: string): Subscriber source
Set the type attribute
Params:
| Name | Type | Attribute | Description |
| type | string | optional field |