src/models/events/idm/idm-state-event.ts
Serializable, Generic IDM state event base class
Properties |
Methods |
deserialize | ||||||||
deserialize(input: any)
|
||||||||
Defined in src/models/events/idm/idm-state-event.ts:20
|
||||||||
Deserializes a JSON object into this class
Parameters :
Returns :
this
|
sourceId |
sourceId:
|
Type : string
|
Defined in src/models/events/idm/idm-state-event.ts:13
|
Source ID of the event |
stateChangeFrom |
stateChangeFrom:
|
Type : T
|
Defined in src/models/events/idm/idm-state-event.ts:15
|
The original state of the source |
stateChangeTo |
stateChangeTo:
|
Type : T
|
Defined in src/models/events/idm/idm-state-event.ts:17
|
The new state of the source |
import { ISerializable } from '../../serialization/index';
import { IdmEvent } from './idm-event';
/**
* Serializable, Generic IDM state event base class
*/
export class IdmStateEvent<T>
extends IdmEvent
implements ISerializable<IdmStateEvent<T>> {
/** Source ID of the event */
sourceId: string;
/** The original state of the source */
stateChangeFrom: T;
/** The new state of the source */
stateChangeTo: T;
/** Deserializes a JSON object into this class */
deserialize(input: any) {
this.sourceId = input.sourceId;
return this;
}
}