Added deviceUpdateEvent
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/develop This commit looks good
This commit is contained in:
parent
5d7fd63adc
commit
2e0b090fb7
@ -27,6 +27,8 @@ export const TASKSTARTEVENT = '[AppCommon] TaskStartEvent';
|
||||
export const TASKENDEVENT = '[AppCommon] TaskEndEvent';
|
||||
export const TASKERRORTEVENT = '[AppCommon] TaskErrorEvent';
|
||||
|
||||
export const DEVICEUPDATEEVENT = '[AppCommon] DeviceUpdateEvent';
|
||||
|
||||
export const DELETEITEMS = '[AppCommon] DeleteItems';
|
||||
export const DELETEITEMSSUCCESS = '[AppCommon] DeleteItemsSuccess';
|
||||
|
||||
@ -164,6 +166,12 @@ export class TaskErrorEvent implements Action {
|
||||
constructor(public itemCode: string, public attributes: any) { }
|
||||
}
|
||||
|
||||
export class DeviceUpdateEvent implements Action {
|
||||
readonly type = DEVICEUPDATEEVENT;
|
||||
|
||||
constructor(public itemCode: string, public attributes: any) { }
|
||||
}
|
||||
|
||||
export class DeleteItems implements Action {
|
||||
readonly type = DELETEITEMS;
|
||||
|
||||
@ -231,4 +239,5 @@ export type Actions = OpenModal
|
||||
| InitUserSuccess
|
||||
| TaskStartEvent
|
||||
| TaskEndEvent
|
||||
| TaskErrorEvent;
|
||||
| TaskErrorEvent
|
||||
| DeviceUpdateEvent;
|
||||
|
@ -77,6 +77,10 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
action = new commonActions.TaskErrorEvent(event.itemCode, event.attributes);
|
||||
break;
|
||||
}
|
||||
case "deviceUpdate": {
|
||||
action = new commonActions.DeviceUpdateEvent(event.itemCode, event.attributes);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return action;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user