Class JellyfinReportGenresItem

java.lang.Object
com.lariflix.jemm.dtos.JellyfinCadGenresItem
com.lariflix.jemm.reports.JellyfinReportGenresItem

public class JellyfinReportGenresItem extends JellyfinCadGenresItem
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:
  • 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

      public void setItem(JellyfinCadGenresItem it)
      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

      public JellyfinItemMetadata 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

      public void setGenreMetadata(JellyfinItemMetadata genreMetadata)
      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

      public void addGenreEpisode(JellyfinItem episode, JellyfinItemMetadata episodeMetadata)
      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

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

      public void setGenreEpisodes(ArrayList<JellyfinReportInventorySubItem> genreEpisodes)
      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