Added server

This commit is contained in:
Myx
2022-01-02 01:26:38 +01:00
parent a0aef9e2c8
commit a30d6b2d63
293 changed files with 3337 additions and 5 deletions

View File

@@ -0,0 +1,42 @@
import { Action } from '@ngrx/store';
import { LoadSettingsState } from './gotobed.state';
export enum EGotobedActions {
SendCommandChanged = '[GOTOBED] Command changed',
AddressSettingsChanged = '[GOTOBED] Address settings changed',
ProtocolSettingsChanged = '[GOTOBED] Protocol settings changed',
PortSettingsChanged = '[GOTOBED] Port settings changed',
AppInitialized = '[GOTOBED] App initialized',
}
export class SendCommandChanged implements Action {
public readonly type = EGotobedActions.SendCommandChanged;
constructor(public payload: string) { }
}
export class SaveAddressSettings implements Action {
public readonly type = EGotobedActions.AddressSettingsChanged;
constructor(public payload: string) { }
}
export class ProtocolSettingsChanged implements Action {
public readonly type = EGotobedActions.ProtocolSettingsChanged;
constructor(public payload: string) { }
}
export class PortSettingsChanged implements Action {
public readonly type = EGotobedActions.PortSettingsChanged;
constructor(public payload: string) { }
}
export class AppInitialized implements Action {
public readonly type = EGotobedActions.AppInitialized;
constructor(public payload: LoadSettingsState) { }
}
export type GotobedActions =
SendCommandChanged |
ProtocolSettingsChanged |
PortSettingsChanged |
SaveAddressSettings |
AppInitialized;