17 lines
No EOL
425 B
TypeScript
17 lines
No EOL
425 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 = [];
|
|
this.profileCache = [];
|
|
}
|
|
}
|
|
|
|
export interface AdapterState {
|
|
[nickname: string]: AdapterData;
|
|
} |