Class JellyfinReportStudiosItem

java.lang.Object
com.lariflix.jemm.dtos.JellyfinCadStudioItem
com.lariflix.jemm.reports.JellyfinReportStudiosItem

public class JellyfinReportStudiosItem extends JellyfinCadStudioItem
The JellyfinReportStudiosItem class extends the JellyfinCadStudioItem class and is used to represent a studio in a report. This class contains the details of a studio, such as the name and other relevant details. It also contains a list of items associated with the studio, if any. It provides methods to set and retrieve these details.
Author:
Cesar Bianchi
See Also:
  • Constructor Details

    • JellyfinReportStudiosItem

      public JellyfinReportStudiosItem()
      Constructor for the JellyfinReportStudiosItem class. This is a no-argument constructor that initializes a new instance of the JellyfinReportStudiosItem class. It doesn't perform any specific actions.
      Since:
      1.1
  • Method Details

    • setItem

      public void setItem(JellyfinCadStudioItem it)
      Sets the properties of this JellyfinReportStudiosItem based on the given JellyfinCadStudioItem. This method sets the name, server ID, ID, channel ID, type, and location type of this JellyfinReportStudiosItem to the corresponding properties of the given JellyfinCadStudioItem.
      Parameters:
      it - A JellyfinCadStudioItem object that should be used to set the properties of this JellyfinReportStudiosItem. This includes the name, server ID, ID, channel ID, type, and location type.
      Since:
      1.1
    • getStudioMetadata

      public JellyfinItemMetadata getStudioMetadata()
      Retrieves the studioMetadata property of this JellyfinReportStudiosItem.
      Returns:
      A JellyfinItemMetadata object representing the metadata of the studio in this JellyfinReportStudiosItem. This includes the name, server ID, ID, channel ID, type, location type, premiere date, critic rating, official rating, and community rating.
      Since:
      1.1
    • setStudioMetadata

      public void setStudioMetadata(JellyfinItemMetadata studiosMetadata)
      Sets the studioMetadata property of this JellyfinReportStudiosItem.
      Parameters:
      studiosMetadata - A JellyfinItemMetadata object that should be used as the new metadata for the studio in this JellyfinReportStudiosItem. 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 JellyfinReportStudiosItem.
      Parameters:
      totalsubItems - An integer that should be used as the new total number of sub-items in this JellyfinReportStudiosItem. This represents the total number of items associated with the studio.
      Since:
      1.1
    • addStudioEpisode

      public void addStudioEpisode(JellyfinItem episode, JellyfinItemMetadata episodeMetadata)
      Adds an episode to the studioEpisodes property of this JellyfinReportStudiosItem. This method creates a new JellyfinReportInventorySubItem, sets the sub-item and sub-item metadata of the JellyfinReportInventorySubItem to the given episode and episode metadata, and adds the JellyfinReportInventorySubItem to the studioEpisodes list.
      Parameters:
      episode - A JellyfinItem 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.
      episodeMetadata - A JellyfinItemMetadata object representing the metadata of 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
    • getStudioEpisodes

      public ArrayList<JellyfinReportInventorySubItem> getStudioEpisodes()
      Retrieves the studioEpisodes property of this JellyfinReportStudiosItem.
      Returns:
      An ArrayList of JellyfinReportInventorySubItem objects representing the episodes of the studio in this JellyfinReportStudiosItem. 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
    • setStudioEpisodes

      public void setStudioEpisodes(ArrayList<JellyfinReportInventorySubItem> studiosEpisodes)
      Sets the studioEpisodes property of this JellyfinReportStudiosItem.
      Parameters:
      studiosEpisodes - An ArrayList of JellyfinReportInventorySubItem objects that should be used as the new episodes for the studio in this JellyfinReportStudiosItem. 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