smartuniverse/ts/interfaces/universemessage.interfaces.ts
2019-08-12 17:23:10 +02:00

19 lines
344 B
TypeScript

export interface IMessageCreator {
messageText: string;
payload?: string | number | any;
payloadStringType?: 'Buffer' | 'string' | 'object';
}
/**
*
*/
export interface IUniverseMessage extends IMessageCreator {
id: string;
/**
* time of creation
*/
timestamp: number;
passphrase: string;
targetChannelName: string;
}