ts/adapter.ts (raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
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 = []; } } export interface AdapterState { [nickname: string]: AdapterData; } |