underbbs/ts/adapter.ts

18 lines
523 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>;
2024-06-30 00:18:31 +00:00
public profileCache: Map<string, Author>;
constructor(protocol: string) {
this.protocol = protocol;
this.messages = new Map<string, Message>();
this.directMessages = new Map<string, Message>();
this.profileCache = new Map<string, Author>();
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;
}