package app.lsgui.model;

import java.util.List;

public class ServiceModel {

    public ServiceModel(String asString, String asString2) {
        // TODO Auto-generated constructor stub
    }

    public List<StreamModel> getChannels() {
        // TODO Auto-generated method stub
        return null;
    }

    public String getName() {
        // TODO Auto-generated method stub
        return null;
    }

    public String getUrl() {
        // TODO Auto-generated method stub
        return null;
    }

}

@@ -40,101 +40,982 @@
 til.
+Array
 List;%0A
-%0Apublic class ServiceModel %7B%0A%0A    public ServiceModel(String asString, String as
+import java.util.List;%0Aimport java.util.Set;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Aimport app.lsgui.model.twitch.TwitchStreamModel;%0Aimport app.lsgui.service.twitch.TwitchProcessor;%0Aimport javafx.application.Platform;%0Aimport javafx.beans.property.ListProperty;%0Aimport javafx.beans.property.SimpleListProperty;%0Aimport javafx.beans.property.SimpleStringProperty;%0Aimport javafx.beans.property.StringProperty;%0Aimport javafx.collections.FXCollections;%0A%0Apublic class ServiceModel %7B%0A    private static final Logger LOGGER = LoggerFactory.getLogger(ServiceModel.class);%0A%0A    private StringProperty name;%0A    private StringProperty url;%0A    private ListProperty%3CStreamModel%3E channels;%0A%0A    public ServiceModel(String name, String url) %7B%0A        this.name = new SimpleStringProperty(name);%0A        this.url = new SimpleStringProperty(url);%0A        this.channels = new SimpleListProperty%3CStreamModel%3E();%0A    %7D%0A%0A    public void addStream(final 
 String
-2
+ name
 ) %7B%0A
@@ -1026,65 +1026,613 @@
     
-// TODO Auto-generated constructor stub%0A    %7D%0A%0A    public
+LOGGER.debug(%22Add Stream to List%22);%0A        List%3CStreamModel%3E streams = new ArrayList%3CStreamModel%3E(getChannels().subList(0, getChannels().getSize()));%0A        streams.add(new TwitchStreamModel(name));%0A        getChannels().setValue(FXCollections.observableArrayList(streams));%0A    %7D%0A%0A    public void removeSelectedStream(final StreamModel selectedStream) %7B%0A        if (selectedStream != null) %7B%0A            LOGGER.debug(%22Remove stream %7B%7D from list%22, selectedStream.getName());%0A            Platform.runLater(new Runnable() %7B%0A                @Override%0A                public void run() %7B%0A                   
  Lis
@@ -1645,16 +1645,26 @@
 amModel%3E
+ streams =
  getChan
@@ -1673,154 +1673,912 @@
 ls()
- %7B%0A        // TODO Auto-generated method stub%0A        return null;%0A    %7D%0A%0A    public String getName() %7B%0A        // TODO Auto-generated method stub
+.subList(0, getChannels().getSize());%0A                    streams.remove(selectedStream);%0A                    getChannels().setValue(FXCollections.observableArrayList(streams));%0A                %7D%0A            %7D);%0A        %7D%0A    %7D%0A%0A    public void addFollowedStreams(final String username) %7B%0A        LOGGER.debug(%22Import followed Streams for user %7B%7D%22, username);%0A        Platform.runLater(new Runnable() %7B%0A            @Override%0A            public void run() %7B%0A                Set%3CString%3E set = TwitchProcessor.instance().getListOfFollowedStreams(username);%0A                List%3CStreamModel%3E list = new ArrayList%3CStreamModel%3E();%0A                for (String s : set) %7B%0A                    list.add(new TwitchStreamModel(s));%0A                %7D%0A                getChannels().setValue(FXCollections.observableArrayList(list));%0A            %7D%0A        %7D);%0A    %7D%0A%0A    public ListProperty%3CStreamModel%3E getChannels() %7B
 %0A   
@@ -2581,36 +2581,40 @@
 %0A        return 
-null
+channels
 ;%0A    %7D%0A%0A    pub
@@ -2627,62 +2627,93 @@
 ring
- getUrl() %7B%0A        // TODO Auto-generated method stub
+Property getName() %7B%0A        return name;%0A    %7D%0A%0A    public StringProperty getUrl() %7B
 %0A   
@@ -2724,19 +2724,18 @@
  return 
-nul
+ur
 l;%0A    %7D

add functionality to manage a list of streams