/*
 * Copyright (C) 2014 Pedro Vicente Gómez Sánchez.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.github.pedrovgs.sample.viewmodel;

/**
 * @author Pedro Vicente Gómez Sánchez.
 */
public class TvShowViewModel {

    private final String title;
    private final String poster;
    private final String fanArt;
    private final int numberOfSeasons;
    private final EpisodeCollection episodes;

    public TvShowViewModel(String title, String poster, String fanArt, int numberOfSeasons) {
        this.title = title;
        this.poster = poster;
        this.fanArt = fanArt;
        this.numberOfSeasons = numberOfSeasons;
        this.episodes = new EpisodeCollection();
    }

    public void addEpisode(EpisodeViewModel episodeViewModel) {
        episodes.add(episodeViewModel);
    }

    public String getTitle() {
        return title;
    }

    public String getPoster() {
        return poster;
    }

    public String getFanArt() {
        return fanArt;
    }

    public int getNumberOfSeasons() {
        return numberOfSeasons;
    }

    public EpisodeCollection getEpisodes() {
        return episodes;
    }
}

@@ -656,16 +656,158 @@
 l;%0A%0A/**%0A
+ * TvShowViewModel implementation created to contain all the tv show information and to keep all the representation%0A * state of a tv show.%0A *%0A
  * @auth
@@ -838,16 +838,16 @@
 %C3%A1nchez.%0A
-
  */%0Apubl
@@ -1336,32 +1336,132 @@
 ction();%0A    %7D%0A%0A
+    /**%0A     * Add an episode to the tvShowViewModel.%0A     *%0A     * @param episodeViewModel%0A     */%0A
     public void 
@@ -1547,32 +1547,82 @@
 wModel);%0A    %7D%0A%0A
+    /**%0A     * @return the tv show title.%0A     */%0A
     public Strin
@@ -1657,32 +1657,83 @@
 n title;%0A    %7D%0A%0A
+    /**%0A     * @return the tv show poster.%0A     */%0A
     public Strin
@@ -1770,32 +1770,84 @@
  poster;%0A    %7D%0A%0A
+    /**%0A     * @return the tv show fan art.%0A     */%0A
     public Strin
@@ -1884,32 +1884,94 @@
  fanArt;%0A    %7D%0A%0A
+    /**%0A     * @return the tv show number of seasons.%0A     */%0A
     public int g
@@ -2027,24 +2027,86 @@
 ons;%0A    %7D%0A%0A
+    /**%0A     * @return the tv show EpisodeCollection.%0A     */%0A
     public E

Add javadoc to TvShowViewModel