File

protocol-lwm2m/factories/lwm2m-device-grid.factory.ts

Extends

Lwm2mClientService

Index

Properties
Methods

Constructor

constructor(client: FetchClient, tenantService: TenantUiService, modal: ModalService, translateService: TranslateService, alertService: AlertService)
Parameters :
Name Type Optional
client FetchClient No
tenantService TenantUiService No
modal ModalService No
translateService TranslateService No
alertService AlertService No

Methods

delete
delete(entityOrId: string | number | IIdentified)
Parameters :
Name Type Optional
entityOrId string | number | IIdentified No
Returns : Promise<IResult<undefined>>
get
get()
Returns : ActionControlHook
Async onDelete
onDelete(device: Lwm2mManagedObject)
Parameters :
Name Type Optional
device Lwm2mManagedObject No
Returns : unknown
detail
detail(entityOrId: string | number | T, filter: object)
Parameters :
Name Type Optional Default value
entityOrId string | number | T No
filter object No {}
Returns : Promise<IResult<T | any>>
fetch
fetch(url: string, init?: IFetchOptions)
Parameters :
Name Type Optional
url string No
init IFetchOptions Yes
Returns : Promise<IFetchResponse>
isLwm2mDevice
isLwm2mDevice(mo: Lwm2mManagedObject)
Parameters :
Name Type Optional
mo Lwm2mManagedObject No
Returns : any
update
update(entity: T)
Parameters :
Name Type Optional
entity T No
Returns : Promise<IResult<T | any>>

Properties

Protected listUrl
Type : string
Default value : 'deviceRegistration'
Protected baseUrl
Default value : agentBaseUrl

results matching ""

    No results matching ""