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-01 15:04:25 +00:00
|
|
|
*
|
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
|
|
|
}
|