smartuniverse/ts/interfaces/universemessage.interfaces.ts

19 lines
354 B
TypeScript
Raw Permalink Normal View History

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