Class JellyfinReportYearsItem

java.lang.Object
com.lariflix.jemm.reports.JellyfinReportYearsItem

public class JellyfinReportYearsItem extends Object
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 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

      public String getYear()
      Retrieves the year property of this JellyfinReportYearsItem.
      Returns:
      A String representing the year in this JellyfinReportYearsItem.
      Since:
      1.1
    • setYear

      public void setYear(String yearName)
      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

      public ArrayList<JellyfinReportInventorySubItem> 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

      public void setYearEpisodes(ArrayList<JellyfinReportInventorySubItem> yearEpisodes)
      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

      public void addYearEpisode(JellyfinReportInventorySubItem episode)
      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