The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/packages/apps-engine/tests/test-data/bridges/messageBridge.ts

43 lines
1.5 KiB

import type { IMessage, Reaction } from '../../../src/definition/messages';
import type { IRoom } from '../../../src/definition/rooms';
import type { IUser } from '../../../src/definition/users';
import { MessageBridge } from '../../../src/server/bridges';
import type { ITypingDescriptor } from '../../../src/server/bridges/MessageBridge';
export class TestsMessageBridge extends MessageBridge {
public create(message: IMessage, appId: string): Promise<string> {
throw new Error('Method not implemented.');
}
public getById(messageId: string, appId: string): Promise<IMessage> {
throw new Error('Method not implemented.');
}
public update(message: IMessage, appId: string): Promise<void> {
throw new Error('Method not implemented.');
}
public notifyUser(user: IUser, message: IMessage, appId: string): Promise<void> {
throw new Error('Method not implemented.');
}
public notifyRoom(room: IRoom, message: IMessage, appId: string): Promise<void> {
throw new Error('Method not implemented.');
}
public delete(message: IMessage, user: IUser, appId: string): Promise<void> {
throw new Error('Method not implemented.');
}
public typing(options: ITypingDescriptor): Promise<void> {
throw new Error('Method not implemented.');
}
public addReaction(_messageId: string, _userId: string, _reaction: Reaction): Promise<void> {
throw new Error('Method not implemented.');
}
public removeReaction(_messageId: string, _userId: string, _reaction: Reaction): Promise<void> {
throw new Error('Method not implemented.');
}
}