react-application-core
Version:
A react-based application core for the business applications.
36 lines (35 loc) • 932 B
TypeScript
import { IKeyValue, AnyT } from '../../definitions.interface';
import { ObjectStatus } from './object.status';
import { CommandResult } from './command.result';
import { IProtocolPayloadEntity } from './protocol.interface';
/**
* @stable [24.05.2018]
*/
export declare class PayloadWrapper {
private type;
private payload;
/**
* @stable [24.05.2018]
* @param {IKeyValue | IProtocolPayloadEntity} payload
*/
constructor(payload: IKeyValue | IProtocolPayloadEntity);
/**
* @stable [21.05.2018]
* @returns {ObjectStatus}
*/
getObjectStatus(): ObjectStatus;
/**
* @stable [08.11.2020]
*/
getCommandResult<TData = {}>(): CommandResult<TData>;
/**
* @stable [21.05.2018]
* @returns {AnyT}
*/
getPayload(): AnyT;
/**
* @stable [21.05.2018]
* @returns {string}
*/
getType(): string;
}