14 lines
483 B
TypeScript
14 lines
483 B
TypeScript
import { VariablesRepositoryInterface } from "./VariablesRepositoryInterface";
|
|
|
|
/**
|
|
* Mock class in charge of NOT saving/loading variables from the data store
|
|
*/
|
|
export class VoidVariablesRepository implements VariablesRepositoryInterface {
|
|
loadVariables(roomUrl: string): Promise<{ [key: string]: string }> {
|
|
return Promise.resolve({});
|
|
}
|
|
|
|
saveVariable(roomUrl: string, key: string, value: string): Promise<number> {
|
|
return Promise.resolve(0);
|
|
}
|
|
}
|