package ctbrec.ui.sites.streamate;

import java.io.IOException;

import ctbrec.sites.streamate.Streamate;
import ctbrec.ui.sites.AbstractSiteUi;
import ctbrec.ui.sites.ConfigUI;
import ctbrec.ui.tabs.TabProvider;

public class StreamateSiteUi extends AbstractSiteUi {

    private StreamateTabProvider tabProvider;
    private StreamateConfigUI configUi;
    private Streamate streamate;

    public StreamateSiteUi(Streamate streamate) {
        this.streamate = streamate;
        tabProvider = new StreamateTabProvider(streamate);
        configUi = new StreamateConfigUI(streamate);
    }

    @Override
    public TabProvider getTabProvider() {
        return tabProvider;
    }

    @Override
    public ConfigUI getConfigUI() {
        return configUi;
    }

    @Override
    public boolean login() throws IOException {
        return streamate.login();
    }

}
