2026-05-01 11:22:06 +00:00
|
|
|
export interface IMessageCreator<T = any> {
|
2019-04-11 18:50:43 +02:00
|
|
|
messageText: string;
|
2026-05-01 11:22:06 +00:00
|
|
|
payload?: T;
|
2019-04-22 09:58:36 +02:00
|
|
|
}
|
|
|
|
|
|
2019-08-12 17:23:10 +02:00
|
|
|
/**
|
2019-09-10 00:29:08 +02:00
|
|
|
* A universe
|
2019-08-12 17:23:10 +02:00
|
|
|
*/
|
2026-05-01 11:22:06 +00:00
|
|
|
export interface IUniverseMessage<T = any> extends IMessageCreator<T> {
|
2019-04-22 09:58:36 +02:00
|
|
|
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
|
|
|
}
|