Package com.lariflix.jemm.reports
Class JellyfinReportYearsItem
java.lang.Object
com.lariflix.jemm.reports.JellyfinReportYearsItem
The JellyfinReportYearsItem class is used to represent a year in a report.
This class contains the details of a year, such as the name and other relevant details.
It also contains a list of items associated with the year, if any. It provides methods to set and retrieve these details.
- Author:
- Cesar Bianchi
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the JellyfinReportYearsItem class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds an episode to the yearEpisodes property of this JellyfinReportYearsItem and updates the yearMediaItems property.getYear()
Retrieves the year property of this JellyfinReportYearsItem.Retrieves the yearEpisodes property of this JellyfinReportYearsItem.int
Retrieves the yearMediaItems property of this JellyfinReportYearsItem.void
Sets the year property of this JellyfinReportYearsItem.void
setYearEpisodes
(ArrayList<JellyfinReportInventorySubItem> yearEpisodes) Sets the yearEpisodes property of this JellyfinReportYearsItem and updates the yearMediaItems property.void
Sets the yearMediaItems property of this JellyfinReportYearsItem to the size of the yearEpisodes list.
-
Constructor Details
-
JellyfinReportYearsItem
public JellyfinReportYearsItem()Constructor for the JellyfinReportYearsItem class. This constructor initializes a new instance of the JellyfinReportYearsItem class and sets the yearMediaItems property to the size of the yearEpisodes list.- Since:
- 1.1
-
-
Method Details
-
getYear
Retrieves the year property of this JellyfinReportYearsItem.- Returns:
- A String representing the year in this JellyfinReportYearsItem.
- Since:
- 1.1
-
setYear
Sets the year property of this JellyfinReportYearsItem.- Parameters:
yearName
- A String that should be used as the new year in this JellyfinReportYearsItem.- Since:
- 1.1
-
getYearEpisodes
Retrieves the yearEpisodes property of this JellyfinReportYearsItem.- Returns:
- An ArrayList of JellyfinReportInventorySubItem objects representing the episodes of the year in this JellyfinReportYearsItem. Each JellyfinReportInventorySubItem represents an episode and includes the name, server ID, ID, channel ID, type, location type, premiere date, critic rating, official rating, and community rating.
- Since:
- 1.1
-
setYearEpisodes
Sets the yearEpisodes property of this JellyfinReportYearsItem and updates the yearMediaItems property.- Parameters:
yearEpisodes
- An ArrayList of JellyfinReportInventorySubItem objects that should be used as the new episodes for the year in this JellyfinReportYearsItem. Each JellyfinReportInventorySubItem should represent an episode and include the name, server ID, ID, channel ID, type, location type, premiere date, critic rating, official rating, and community rating.- Since:
- 1.1
-
addYearEpisode
Adds an episode to the yearEpisodes property of this JellyfinReportYearsItem and updates the yearMediaItems property.- Parameters:
episode
- A JellyfinReportInventorySubItem object representing the episode to add. This includes the name, server ID, ID, channel ID, type, location type, premiere date, critic rating, official rating, and community rating.- Since:
- 1.1
-
getYearMediaItems
public int getYearMediaItems()Retrieves the yearMediaItems property of this JellyfinReportYearsItem.- Returns:
- An integer representing the total number of media items in this JellyfinReportYearsItem. This is the same as the size of the yearEpisodes list.
- Since:
- 1.1
-
setYearMediaItems
public void setYearMediaItems()Sets the yearMediaItems property of this JellyfinReportYearsItem to the size of the yearEpisodes list.- Since:
- 1.1
-