Package com.lariflix.jemm.reports
Class JellyfinReportGenresItem
java.lang.Object
com.lariflix.jemm.dtos.JellyfinCadGenresItem
com.lariflix.jemm.reports.JellyfinReportGenresItem
The JellyfinReportGenresItem class extends the JellyfinCadGenresItem class and is used to represent a genre item in a report.
This class contains the details of a genre item, such as the name, the number of items in the genre, and other relevant details.
It also contains a list of sub-items for the genre, if any.
- Author:
- Cesar Bianchi
- See Also:
-
Field Summary
Fields inherited from class com.lariflix.jemm.dtos.JellyfinCadGenresItem
channelId, communityRating, criticRating, id, locationType, name, officialRating, premiereDate, serverId, type
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the JellyfinReportGenresItem class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addGenreEpisode
(JellyfinItem episode, JellyfinItemMetadata episodeMetadata) Adds a new episode to the genreEpisodes list of this JellyfinReportGenresItem.Retrieves the genreEpisodes property of this JellyfinReportGenresItem.Retrieves the genreMetadata property of this JellyfinReportGenresItem.void
setGenreEpisodes
(ArrayList<JellyfinReportInventorySubItem> genreEpisodes) Sets the genreEpisodes property of this JellyfinReportGenresItem.void
setGenreMetadata
(JellyfinItemMetadata genreMetadata) Sets the genreMetadata property of this JellyfinReportGenresItem.void
Sets the item property of this JellyfinReportGenresItem.void
setTotalsubItems
(int totalsubItems) Sets the totalsubItems property of this JellyfinReportGenresItem.Methods inherited from class com.lariflix.jemm.dtos.JellyfinCadGenresItem
getChannelId, getCommunityRating, getCriticRating, getId, getLocationType, getName, getOfficialRating, getPremiereDate, getServerId, getType, setChannelId, setCommunityRating, setCriticRating, setId, setLocationType, setName, setOfficialRating, setPremiereDate, setServerId, setType
-
Constructor Details
-
JellyfinReportGenresItem
public JellyfinReportGenresItem()Constructor for the JellyfinReportGenresItem class. This is a no-argument constructor that initializes a new instance of the JellyfinReportGenresItem class. It doesn't perform any specific actions.- Since:
- 1.1
-
-
Method Details
-
setItem
Sets the item property of this JellyfinReportGenresItem. This method takes a JellyfinCadGenresItem object as a parameter and sets the properties of this JellyfinReportGenresItem to match the properties of the given item.- Parameters:
it
- A JellyfinCadGenresItem object that should be used to set the properties of this JellyfinReportGenresItem. This includes the name, server ID, ID, channel ID, type, location type, premiere date, critic rating, official rating, and community rating.- Since:
- 1.1
-
getGenreMetadata
Retrieves the genreMetadata property of this JellyfinReportGenresItem.- Returns:
- A JellyfinItemMetadata object representing the metadata of the genre of this JellyfinReportGenresItem. This includes the name, server ID, ID, channel ID, type, location type, premiere date, critic rating, official rating, and community rating.
- Since:
- 1.1
-
setGenreMetadata
Sets the genreMetadata property of this JellyfinReportGenresItem.- Parameters:
genreMetadata
- A JellyfinItemMetadata object that should be used as the new metadata for the genre of this JellyfinReportGenresItem. This includes the name, server ID, ID, channel ID, type, location type, premiere date, critic rating, official rating, and community rating.- Since:
- 1.1
-
setTotalsubItems
public void setTotalsubItems(int totalsubItems) Sets the totalsubItems property of this JellyfinReportGenresItem.- Parameters:
totalsubItems
- An integer that should be used as the new total number of sub-items for the genre of this JellyfinReportGenresItem.- Since:
- 1.1
-
addGenreEpisode
Adds a new episode to the genreEpisodes list of this JellyfinReportGenresItem.- Parameters:
episode
- A JellyfinItem object representing the episode to be added. This includes the name, server ID, ID, channel ID, type, location type, premiere date, critic rating, official rating, and community rating.episodeMetadata
- A JellyfinItemMetadata object representing the metadata of the episode to be added. This includes the name, server ID, ID, channel ID, type, location type, premiere date, critic rating, official rating, and community rating.- Since:
- 1.1
-
getGenreEpisodes
Retrieves the genreEpisodes property of this JellyfinReportGenresItem.- Returns:
- An ArrayList of JellyfinReportInventorySubItem objects representing the episodes of the genre of this JellyfinReportGenresItem.
- Since:
- 1.1
-
setGenreEpisodes
Sets the genreEpisodes property of this JellyfinReportGenresItem.- Parameters:
genreEpisodes
- An ArrayList of JellyfinReportInventorySubItem objects that should be used as the new episodes for the genre of this JellyfinReportGenresItem.- Since:
- 1.1
-