smartuniverse/ts/interfaces/universemessage.interfaces.ts

19 lines
344 B
TypeScript
Raw Normal View History

2019-04-22 09:58:36 +02:00
export interface IMessageCreator {
2019-04-11 18:50:43 +02:00
messageText: string;
payload?: string | number | any;
payloadStringType?: 'Buffer' | 'string' | 'object';
2019-04-22 09:58:36 +02:00
}
2019-08-12 17:23:10 +02:00
/**
*
*/
2019-04-22 09:58:36 +02:00
export interface IUniverseMessage extends IMessageCreator {
id: string;
/**
* time of creation
*/
timestamp: number;
passphrase: string;
2019-08-12 17:23:10 +02:00
targetChannelName: string;
2019-04-11 18:50:43 +02:00
}