package app.lsgui.gui.streamInfoPanel;

import java.io.IOException;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import app.lsgui.model.twitch.TwitchStreamModel;
import app.lsgui.utils.Utils;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.control.CheckBox;
import javafx.scene.control.Label;
import javafx.scene.image.ImageView;
import javafx.scene.layout.BorderPane;

public class StreamInfoPanel extends BorderPane {

    private static final Logger LOGGER = LoggerFactory.getLogger(StreamInfoPanel.class);
    private static FXMLLoader loader;

    @FXML
    private CheckBox notifyCheckBox;

    @FXML
    private Label streamInfoLabel;

    @FXML
    private ImageView previewImageView;

    public StreamInfoPanel(TwitchStreamModel model) {
        LOGGER.debug("Construct StreamInfoPanel");
        loader = new FXMLLoader(getClass().getResource("/StreamInfoPanel.fxml"));
        loader.setRoot(this);
        loader.setController(this);
        try {
            loader.load();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    @FXML
    private void startStream() {
        LOGGER.info("Starting Stream {} with Quality {}", "NOSTREAM", "NOQUALITY");
        Utils.startLivestreamer("", "");
    }

    @FXML
    private void recordStream() {
        LOGGER.info("Record Stream {} with Quality {}", "NOSTREAM", "NOQUALITY");
        Utils.recordLivestreamer("", "");
    }

    @FXML
    private void openChat() {

    }

    @FXML
    private void openInBrowser() {
        Utils.openURLInBrowser("");
    }
}

@@ -1198,93 +1198,8 @@
  %7B%0D%0A
-        LOGGER.info(%22Starting Stream %7B%7D with Quality %7B%7D%22, %22NOSTREAM%22, %22NOQUALITY%22);%0D%0A
     
@@ -1295,91 +1295,8 @@
  %7B%0D%0A
-        LOGGER.info(%22Record Stream %7B%7D with Quality %7B%7D%22, %22NOSTREAM%22, %22NOQUALITY%22);%0D%0A
     

move logger calls