import { MessageInterface, MessageListener } from './MessageInterface';

/**
 * an equivalent of /dev/null for messageinterface. Does nothing.
 */
export class NullMessageInterface implements MessageInterface {
    async send(userId: string, payload: string): Promise<void> {
        //do nothing
    }
    addMessageListener(listener: MessageListener): void {
        //do nothing
    }
    async addContact(userId: string, keyInformation: any): Promise<string | void> {
        //do nothing
    }
    async getKeyInformation(): Promise<any> {
        return 'null';
    }
    async getOwnUserId(): Promise<string> {
        return 'null';
    }

}