underbbs/ts/adapter.ts

18 lines
No EOL
523 B
TypeScript

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 = new Map<string, Message>();
this.directMessages = new Map<string, Message>();
this.profileCache = new Map<string, Author>();
}
}
export interface AdapterState {
[nickname: string]: AdapterData;
}