smartuniverse/ts/interfaces/universemessage.interfaces.ts
2019-04-22 09:58:36 +02:00

16 lines
332 B
TypeScript

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