src/utils/MockService.ts
Properties |
Methods |
constructor(service: any, items: any, resultPostCall: any, customFunction: any)
|
config |
Type : object
|
Default value : {
useDynamicServerEvents: true,
usePercentage: false,
webMapVersion: "v5",
}
|
core |
Type : object
|
Default value : {
getEvent(): any {
return {
publish: (event: string, data?: any) => {},
subscribe: (event: string, lambda: (data: any) => void) => "token",
unSubscribe: (token: string) => false,
};
},
}
|
currentService |
Default value : this
|
customFunction |
Type : any
|
enabledServerEvents |
Default value : true
|
forms |
Type : object
|
Default value : { formdialog: "86c8eebf-6e27-4ddb-8eca-6e68c096ca70" }
|
itemstoFetch |
Type : any
|
postResult |
Type : any
|
result |
Type : string
|
Default value : ""
|
serviceModel |
Type : any
|
fetch |
fetch(url: any, id: any)
|
Returns :
any
|
getModel | ||||
getModel(Id)
|
||||
Parameters :
Returns :
Promise<any>
|
invoke | ||||||
invoke(arg: any)
|
||||||
Parameters :
Returns :
void
|
notifyChange | ||||||
notifyChange(mode, property)
|
||||||
Parameters :
Returns :
void
|
post |
post(url: any, data: any)
|
Returns :
any
|
sendCommand | |||||||||
sendCommand(command: AngularCommand, callback?: (response?: any) => void)
|
|||||||||
Parameters :
Returns :
void
|