/*
 * Copyright (C) 2024 Open Autonomous Connection - All Rights Reserved
 *
 * You are unauthorized to remove this copyright.
 * You have to give Credits to the Author in your project and link this GitHub site: https://github.com/Open-Autonomous-Connection
 * See LICENSE-File if exists
 */

package org.openautonomousconnection.browser;

import org.openautonomousconnection.browser.controller.Browser;
import org.openautonomousconnection.protocol.domain.Domain;
import org.openautonomousconnection.protocol.side.ProtocolClient;
import org.openautonomousconnection.protocol.utils.SiteType;

public class Client extends ProtocolClient {
    @Override
    public void handleHTMLContent(SiteType siteType, Domain domain, String htmlContent) {
        Browser.getInstance().loadHtml(siteType, domain, htmlContent);
    }

    @Override
    public void handleMessage(String message) {
        MessageDialog.show(message);
    }
}
