| 27 | } |
| 28 | |
| 29 | get<DataType extends BaseClass>(endpoint: string, accessor: IDataAccessor, |
| 30 | descriptor: IDataDescriptor<DataType>, |
| 31 | query: Query, subscribe: boolean) { |
| 32 | return this.getAny(endpoint, accessor, descriptor, query, subscribe, |
| 33 | () => { |
| 34 | const c = new DataCollection<DataType>(this.nextDataCollectionInternalId); |
| 35 | this.nextDataCollectionInternalId += 1; |
| 36 | c.open(endpoint, query, accessor, descriptor, this.webSocketClient); |
| 37 | return c; |
| 38 | }); |
| 39 | } |
| 40 | |
| 41 | getProperties(endpoint: string, accessor: IDataAccessor, |
| 42 | query: Query, subscribe: boolean) { |