smartuniverse/ts/interfaces/universemessage.interfaces.ts

16 lines
332 B
TypeScript
Raw 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
targetChannelName: string;
}
export interface IUniverseMessage extends IMessageCreator {
id: string;
/**
* time of creation
*/
timestamp: number;
passphrase: string;
2019-04-11 16:50:43 +00:00
}