001package net.filebot.web; 002 003import java.io.Serializable; 004import java.util.Locale; 005 006public class SearchResultDetails extends SearchResult implements Serializable { 007 008 // common properties 009 protected String overview; 010 protected String originalName; 011 protected String[] country; 012 013 // TheTVDB properties 014 protected String slug; 015 protected String network; 016 protected String status; 017 018 public SearchResultDetails() { 019 // used by deserializer 020 } 021 022 public SearchResultDetails(SearchResult base, SearchResultDetails details) { 023 super(base); 024 025 this.overview = details.overview; 026 this.originalName = details.originalName; 027 this.country = details.country; 028 029 // TheTVDB properties 030 this.slug = details.slug; 031 this.network = details.network; 032 this.status = details.status; 033 } 034 035 public SearchResultDetails(int id, String name, String[] aliasNames, SimpleDate firstAired, String overview, String originalName, String originalLanguage, String[] country, Integer runtime, Number popularity, String slug, String network, String status, Locale locale) { 036 super(id, name, aliasNames, firstAired, originalLanguage, runtime, popularity, locale); 037 038 this.overview = overview; 039 this.originalName = originalName; 040 this.country = country; 041 042 // TheTVDB properties 043 this.slug = slug; 044 this.network = network; 045 this.status = status; 046 } 047 048 // common properties 049 050 public String getOverview() { 051 return overview; 052 } 053 054 public String getOriginalName() { 055 return originalName; 056 } 057 058 public String[] getCountry() { 059 return country; 060 } 061 062 // TheTVDB properties 063 064 public String getSlug() { 065 return slug; 066 } 067 068 public String getNetwork() { 069 return network; 070 } 071 072 public String getStatus() { 073 return status; 074 } 075 076 @Override 077 public SearchResultDetails clone() { 078 return new SearchResultDetails(this, this); 079 } 080 081}