Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeviceRegistrationService

Hierarchy

Index

Constructors

constructor

Methods

accept

bootstrap

create

  • Parameters

    Returns Promise<IResult<IDeviceRegistration>>

    Response wrapped in IResult

    Example

    
       const mandantoryObject: IDeviceRegistrationCreate = {
         id: 1,
       };
    
       (async () => {
         const {data, res} = await deviceRegistrationService.create(mandantoryObject);
       })();
    

delete

  • Parameters

    Returns Promise<IResult<null>>

    Response wrapped in IResult

detail

  • Parameters

    Returns Promise<IResult<IDeviceRegistration>>

    Response wrapped in IResult

    Example

    
       const entityId: number = 1;
    
       (async () => {
         const {data, res} = await deviceRegistrationService.detail(entityId);
       })();
    

list

list$

  • Parameters

    Returns Observable<IDeviceRegistration[]>

    Data wrapped as Observable.

    Example

    
      const list$ = deviceRegistrationService.list$();
      list$.subscribe((data) => console.log(data));
    

    Deprecated This function will be removed soon in favor of decoupling this library from rxjs. Use Realtime for realtime connection and rxjs defer() or from() to composite an observable on your own.

Generated using TypeDoc