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

export class NullTransportInterface implements TransportInterface {
    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 getOwnAddress(): Promise<string> {
        return 'null';
    }
    async getOwnUserId(): Promise<string> {
        return 'null';
    }
    requiresBootstrap(): boolean {
        return false;
    }
}