1 /****************************************************************************** 2 * TVShow.java - domain object 3 * 4 * BuckoVidLib - The BuckoSoft Video Library 5 * Copyright(c) 2014 - Dick Balaska 6 * 7 */ 8 package com.buckosoft.BuckoVidLib.domain; 9 10 import java.util.ArrayList; 11 import java.util.List; 12 13 /** A TV show entry in Plex. This extends a video with additional attributes 14 * for child (Season 1, 2, 3) handling. 15 * Also note, TVShow derives from a plex Directory, not a plex Video. 16 * 17 * @author dick 18 * @since 2014-10-11 19 */ 20 public class TVShow extends Video { 21 private List<TVSeason> seasons = new ArrayList<TVSeason>(); 22 23 public void addSeason(TVSeason season) { 24 seasons.add(season); 25 } 26 27 public List<TVSeason> getSeasons() { 28 return(seasons); 29 } 30 31 public void setSeasons(List<TVSeason> seasons) { 32 this.seasons = seasons; 33 } 34 }