underbbs/ts/adapter.ts

17 lines
425 B
TypeScript
Raw Normal View History

2024-06-30 00:18:31 +00:00
import {Message, Author} from "./message"
export class AdapterData {
public protocol: string;
public directMessages Map<string, Message>();
public messages: Map<string, Message>();
public profileCache: Map<string, Author>;
constructor(protocol: string) {
this.protocol = protocol;
this.messages = [];
this.profileCache = [];
2024-04-27 22:39:53 +00:00
}
2024-04-27 16:50:27 +00:00
}
2024-06-30 00:18:31 +00:00
export interface AdapterState {
[nickname: string]: AdapterData;
}