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
@ -1,234 +1,243 @@
|
|||||||
import { Action } from '@ngrx/store';
|
import { Action } from '@ngrx/store';
|
||||||
|
|
||||||
import { IItemTypes } from '../models/item.types';
|
import { IItemTypes } from '../models/item.types';
|
||||||
import { IListItem } from '../models/list.item';
|
import { IListItem } from '../models/list.item';
|
||||||
import { IUser } from '../models/user';
|
import { IUser } from '../models/user';
|
||||||
|
|
||||||
export const INITUSER = '[AppCommon] InitUser';
|
export const INITUSER = '[AppCommon] InitUser';
|
||||||
export const INITUSERSUCCESS = '[AppCommon] InitUserSuccess';
|
export const INITUSERSUCCESS = '[AppCommon] InitUserSuccess';
|
||||||
|
|
||||||
export const INITROOT = '[Explorer] InitRoot';
|
export const INITROOT = '[Explorer] InitRoot';
|
||||||
export const INITROOTSUCCESS = '[Explorer] InitRootSuccess';
|
export const INITROOTSUCCESS = '[Explorer] InitRootSuccess';
|
||||||
|
|
||||||
export const OPENMODAL = '[AppCommon] OpenModal';
|
export const OPENMODAL = '[AppCommon] OpenModal';
|
||||||
export const CLOSEMODAL = '[AppCommon] CloseModal';
|
export const CLOSEMODAL = '[AppCommon] CloseModal';
|
||||||
export const LOGIN = '[AppCommon] Login';
|
export const LOGIN = '[AppCommon] Login';
|
||||||
export const INITIALIZED = '[AppCommon] Initialized';
|
export const INITIALIZED = '[AppCommon] Initialized';
|
||||||
export const ESCAPE = '[AppCommon] Escape';
|
export const ESCAPE = '[AppCommon] Escape';
|
||||||
|
|
||||||
export const LOADITEMTYPES = '[AppCommon] LoadItemTypes';
|
export const LOADITEMTYPES = '[AppCommon] LoadItemTypes';
|
||||||
export const LOADITEMTYPESSUCCESS = '[AppCommon] LoadItemTypesSuccess';
|
export const LOADITEMTYPESSUCCESS = '[AppCommon] LoadItemTypesSuccess';
|
||||||
|
|
||||||
export const ITEMCHANGEDEVENT = '[AppCommon] ItemChangedEvent';
|
export const ITEMCHANGEDEVENT = '[AppCommon] ItemChangedEvent';
|
||||||
export const ITEMADDEDEVENT = '[AppCommon] ItemAddedEvent';
|
export const ITEMADDEDEVENT = '[AppCommon] ItemAddedEvent';
|
||||||
export const ITEMDELETEDEVENT = '[AppCommon] ItemDeletedEvent';
|
export const ITEMDELETEDEVENT = '[AppCommon] ItemDeletedEvent';
|
||||||
|
|
||||||
export const TASKSTARTEVENT = '[AppCommon] TaskStartEvent';
|
export const TASKSTARTEVENT = '[AppCommon] TaskStartEvent';
|
||||||
export const TASKENDEVENT = '[AppCommon] TaskEndEvent';
|
export const TASKENDEVENT = '[AppCommon] TaskEndEvent';
|
||||||
export const TASKERRORTEVENT = '[AppCommon] TaskErrorEvent';
|
export const TASKERRORTEVENT = '[AppCommon] TaskErrorEvent';
|
||||||
|
|
||||||
export const DELETEITEMS = '[AppCommon] DeleteItems';
|
export const DEVICEUPDATEEVENT = '[AppCommon] DeviceUpdateEvent';
|
||||||
export const DELETEITEMSSUCCESS = '[AppCommon] DeleteItemsSuccess';
|
|
||||||
|
export const DELETEITEMS = '[AppCommon] DeleteItems';
|
||||||
export const STARTROUTELOADING = '[AppCommon] StartRouteLoading';
|
export const DELETEITEMSSUCCESS = '[AppCommon] DeleteItemsSuccess';
|
||||||
export const ENDROUTELOADING = '[AppCommon] EndRouteLoading';
|
|
||||||
|
export const STARTROUTELOADING = '[AppCommon] StartRouteLoading';
|
||||||
export const FULLSCREEN = '[AppCommon] FullScreen';
|
export const ENDROUTELOADING = '[AppCommon] EndRouteLoading';
|
||||||
export const SHOWNAVBAR = '[AppCommon] ShowNavBar';
|
|
||||||
|
export const FULLSCREEN = '[AppCommon] FullScreen';
|
||||||
export const EDITITEM = "[AppCommon] EditItem";
|
export const SHOWNAVBAR = '[AppCommon] ShowNavBar';
|
||||||
|
|
||||||
export const VIEWITEM = "[AppCommon] ViewItem";
|
export const EDITITEM = "[AppCommon] EditItem";
|
||||||
|
|
||||||
export const FAIL = '[AppCommon] Fail';
|
export const VIEWITEM = "[AppCommon] ViewItem";
|
||||||
|
|
||||||
export const UPLOADEDFILECLICK = '[AppCommon] UploadedFileClick';
|
export const FAIL = '[AppCommon] Fail';
|
||||||
|
|
||||||
export class InitUser implements Action {
|
export const UPLOADEDFILECLICK = '[AppCommon] UploadedFileClick';
|
||||||
readonly type = INITUSER;
|
|
||||||
|
export class InitUser implements Action {
|
||||||
constructor() { }
|
readonly type = INITUSER;
|
||||||
}
|
|
||||||
|
constructor() { }
|
||||||
export class InitUserSuccess implements Action {
|
}
|
||||||
readonly type = INITUSERSUCCESS;
|
|
||||||
|
export class InitUserSuccess implements Action {
|
||||||
constructor(public user:IUser ) { }
|
readonly type = INITUSERSUCCESS;
|
||||||
}
|
|
||||||
|
constructor(public user:IUser ) { }
|
||||||
export class InitRoot implements Action {
|
}
|
||||||
readonly type = INITROOT;
|
|
||||||
|
export class InitRoot implements Action {
|
||||||
constructor() { }
|
readonly type = INITROOT;
|
||||||
}
|
|
||||||
|
constructor() { }
|
||||||
export class InitRootSuccess implements Action {
|
}
|
||||||
readonly type = INITROOTSUCCESS;
|
|
||||||
|
export class InitRootSuccess implements Action {
|
||||||
constructor(public items:IListItem[]) { }
|
readonly type = INITROOTSUCCESS;
|
||||||
}
|
|
||||||
|
constructor(public items:IListItem[]) { }
|
||||||
export class OpenModal implements Action {
|
}
|
||||||
readonly type = OPENMODAL;
|
|
||||||
|
export class OpenModal implements Action {
|
||||||
constructor(public modalName: string) { }
|
readonly type = OPENMODAL;
|
||||||
}
|
|
||||||
|
constructor(public modalName: string) { }
|
||||||
export class CloseModal implements Action {
|
}
|
||||||
readonly type = CLOSEMODAL;
|
|
||||||
|
export class CloseModal implements Action {
|
||||||
constructor() { }
|
readonly type = CLOSEMODAL;
|
||||||
}
|
|
||||||
|
constructor() { }
|
||||||
export class StartRouteLoading implements Action {
|
}
|
||||||
readonly type = STARTROUTELOADING;
|
|
||||||
|
export class StartRouteLoading implements Action {
|
||||||
constructor() { }
|
readonly type = STARTROUTELOADING;
|
||||||
}
|
|
||||||
|
constructor() { }
|
||||||
export class EndRouteLoading implements Action {
|
}
|
||||||
readonly type = ENDROUTELOADING;
|
|
||||||
|
export class EndRouteLoading implements Action {
|
||||||
constructor() { }
|
readonly type = ENDROUTELOADING;
|
||||||
}
|
|
||||||
|
constructor() { }
|
||||||
export class Login implements Action {
|
}
|
||||||
readonly type = LOGIN;
|
|
||||||
|
export class Login implements Action {
|
||||||
constructor(public url: string) { }
|
readonly type = LOGIN;
|
||||||
}
|
|
||||||
|
constructor(public url: string) { }
|
||||||
export class Initialized implements Action {
|
}
|
||||||
readonly type = INITIALIZED;
|
|
||||||
|
export class Initialized implements Action {
|
||||||
constructor() { }
|
readonly type = INITIALIZED;
|
||||||
}
|
|
||||||
|
constructor() { }
|
||||||
export class Escape implements Action {
|
}
|
||||||
readonly type = ESCAPE;
|
|
||||||
|
export class Escape implements Action {
|
||||||
constructor(public escapeKey:boolean, public click:boolean) { }
|
readonly type = ESCAPE;
|
||||||
}
|
|
||||||
|
constructor(public escapeKey:boolean, public click:boolean) { }
|
||||||
export class LoadItemTypes implements Action {
|
}
|
||||||
readonly type = LOADITEMTYPES;
|
|
||||||
|
export class LoadItemTypes implements Action {
|
||||||
constructor() { }
|
readonly type = LOADITEMTYPES;
|
||||||
}
|
|
||||||
|
constructor() { }
|
||||||
export class LoadItemTypesSuccess implements Action {
|
}
|
||||||
readonly type = LOADITEMTYPESSUCCESS;
|
|
||||||
|
export class LoadItemTypesSuccess implements Action {
|
||||||
constructor(public itemTypes: IItemTypes) { }
|
readonly type = LOADITEMTYPESSUCCESS;
|
||||||
}
|
|
||||||
|
constructor(public itemTypes: IItemTypes) { }
|
||||||
export class Fail implements Action {
|
}
|
||||||
readonly type = FAIL;
|
|
||||||
|
export class Fail implements Action {
|
||||||
constructor(public payload: string) { }
|
readonly type = FAIL;
|
||||||
}
|
|
||||||
|
constructor(public payload: string) { }
|
||||||
export class ItemChangedEvent implements Action {
|
}
|
||||||
readonly type = ITEMCHANGEDEVENT;
|
|
||||||
|
export class ItemChangedEvent implements Action {
|
||||||
constructor(public itemCode: string, public attributes: any) { }
|
readonly type = ITEMCHANGEDEVENT;
|
||||||
}
|
|
||||||
|
constructor(public itemCode: string, public attributes: any) { }
|
||||||
export class ItemAddedEvent implements Action {
|
}
|
||||||
readonly type = ITEMADDEDEVENT;
|
|
||||||
|
export class ItemAddedEvent implements Action {
|
||||||
constructor(public itemCode: string, public attributes: any) { }
|
readonly type = ITEMADDEDEVENT;
|
||||||
}
|
|
||||||
|
constructor(public itemCode: string, public attributes: any) { }
|
||||||
export class ItemDeletedEvent implements Action {
|
}
|
||||||
readonly type = ITEMDELETEDEVENT;
|
|
||||||
|
export class ItemDeletedEvent implements Action {
|
||||||
constructor(public itemCode: string, public attributes: any) { }
|
readonly type = ITEMDELETEDEVENT;
|
||||||
}
|
|
||||||
|
constructor(public itemCode: string, public attributes: any) { }
|
||||||
export class TaskStartEvent implements Action {
|
}
|
||||||
readonly type = TASKSTARTEVENT;
|
|
||||||
|
export class TaskStartEvent implements Action {
|
||||||
constructor(public itemCode: string, public attributes: any) { }
|
readonly type = TASKSTARTEVENT;
|
||||||
}
|
|
||||||
|
constructor(public itemCode: string, public attributes: any) { }
|
||||||
export class TaskEndEvent implements Action {
|
}
|
||||||
readonly type = TASKENDEVENT;
|
|
||||||
|
export class TaskEndEvent implements Action {
|
||||||
constructor(public itemCode: string, public attributes: any) { }
|
readonly type = TASKENDEVENT;
|
||||||
}
|
|
||||||
|
constructor(public itemCode: string, public attributes: any) { }
|
||||||
export class TaskErrorEvent implements Action {
|
}
|
||||||
readonly type = TASKERRORTEVENT;
|
|
||||||
|
export class TaskErrorEvent implements Action {
|
||||||
constructor(public itemCode: string, public attributes: any) { }
|
readonly type = TASKERRORTEVENT;
|
||||||
}
|
|
||||||
|
constructor(public itemCode: string, public attributes: any) { }
|
||||||
export class DeleteItems implements Action {
|
}
|
||||||
readonly type = DELETEITEMS;
|
|
||||||
|
export class DeviceUpdateEvent implements Action {
|
||||||
constructor(public itemCodes: string[]) { }
|
readonly type = DEVICEUPDATEEVENT;
|
||||||
}
|
|
||||||
|
constructor(public itemCode: string, public attributes: any) { }
|
||||||
export class DeleteItemsSuccess implements Action {
|
}
|
||||||
readonly type = DELETEITEMSSUCCESS;
|
|
||||||
|
export class DeleteItems implements Action {
|
||||||
constructor(public deletedItemCodes: string[]) { }
|
readonly type = DELETEITEMS;
|
||||||
}
|
|
||||||
|
constructor(public itemCodes: string[]) { }
|
||||||
export class EditItem implements Action {
|
}
|
||||||
readonly type = EDITITEM;
|
|
||||||
|
export class DeleteItemsSuccess implements Action {
|
||||||
constructor(public item: IListItem) { }
|
readonly type = DELETEITEMSSUCCESS;
|
||||||
}
|
|
||||||
|
constructor(public deletedItemCodes: string[]) { }
|
||||||
export class ViewItem implements Action {
|
}
|
||||||
readonly type = VIEWITEM;
|
|
||||||
|
export class EditItem implements Action {
|
||||||
constructor(public item: IListItem) { }
|
readonly type = EDITITEM;
|
||||||
}
|
|
||||||
|
constructor(public item: IListItem) { }
|
||||||
export class FullScreen implements Action {
|
}
|
||||||
readonly type = FULLSCREEN;
|
|
||||||
|
export class ViewItem implements Action {
|
||||||
constructor() { }
|
readonly type = VIEWITEM;
|
||||||
}
|
|
||||||
|
constructor(public item: IListItem) { }
|
||||||
export class ShowNavBar implements Action {
|
}
|
||||||
readonly type = SHOWNAVBAR;
|
|
||||||
|
export class FullScreen implements Action {
|
||||||
constructor() { }
|
readonly type = FULLSCREEN;
|
||||||
}
|
|
||||||
|
constructor() { }
|
||||||
export class UploadedFileClick implements Action {
|
}
|
||||||
readonly type = UPLOADEDFILECLICK;
|
|
||||||
constructor(public itemCode:string) { }
|
export class ShowNavBar implements Action {
|
||||||
}
|
readonly type = SHOWNAVBAR;
|
||||||
|
|
||||||
|
constructor() { }
|
||||||
export type Actions = OpenModal
|
}
|
||||||
| InitRoot
|
|
||||||
| InitRootSuccess
|
export class UploadedFileClick implements Action {
|
||||||
| CloseModal
|
readonly type = UPLOADEDFILECLICK;
|
||||||
| Login
|
constructor(public itemCode:string) { }
|
||||||
| Initialized
|
}
|
||||||
| ItemChangedEvent
|
|
||||||
| ItemAddedEvent
|
|
||||||
| ItemDeletedEvent
|
export type Actions = OpenModal
|
||||||
| Escape
|
| InitRoot
|
||||||
| LoadItemTypes
|
| InitRootSuccess
|
||||||
| LoadItemTypesSuccess
|
| CloseModal
|
||||||
| DeleteItems
|
| Login
|
||||||
| DeleteItemsSuccess
|
| Initialized
|
||||||
| Fail
|
| ItemChangedEvent
|
||||||
| EditItem
|
| ItemAddedEvent
|
||||||
| ViewItem
|
| ItemDeletedEvent
|
||||||
| FullScreen
|
| Escape
|
||||||
| ShowNavBar
|
| LoadItemTypes
|
||||||
| StartRouteLoading
|
| LoadItemTypesSuccess
|
||||||
| EndRouteLoading
|
| DeleteItems
|
||||||
| InitUser
|
| DeleteItemsSuccess
|
||||||
| InitUserSuccess
|
| Fail
|
||||||
| TaskStartEvent
|
| EditItem
|
||||||
| TaskEndEvent
|
| ViewItem
|
||||||
| TaskErrorEvent;
|
| FullScreen
|
||||||
|
| ShowNavBar
|
||||||
|
| StartRouteLoading
|
||||||
|
| EndRouteLoading
|
||||||
|
| InitUser
|
||||||
|
| InitUserSuccess
|
||||||
|
| TaskStartEvent
|
||||||
|
| TaskEndEvent
|
||||||
|
| TaskErrorEvent
|
||||||
|
| DeviceUpdateEvent;
|
||||||
|
@ -77,6 +77,10 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||||||
action = new commonActions.TaskErrorEvent(event.itemCode, event.attributes);
|
action = new commonActions.TaskErrorEvent(event.itemCode, event.attributes);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case "deviceUpdate": {
|
||||||
|
action = new commonActions.DeviceUpdateEvent(event.itemCode, event.attributes);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return action;
|
return action;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user