Class JellyfinReportPeopleItem

java.lang.Object
com.lariflix.jemm.dtos.JellyfinCadPeopleItem
com.lariflix.jemm.reports.JellyfinReportPeopleItem

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

    • JellyfinReportPeopleItem

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

    • setItem

      public void setItem(JellyfinCadPeopleItem people)
      Sets the properties of this JellyfinReportPeopleItem based on the given JellyfinCadPeopleItem. This method sets the name, server ID, ID, premiere date, critic rating, official rating, channel ID, community rating, production year, type, and location type of this JellyfinReportPeopleItem to the corresponding properties of the given JellyfinCadPeopleItem.
      Parameters:
      people - A JellyfinCadPeopleItem object that should be used to set the properties of this JellyfinReportPeopleItem.
      Since:
      1.1
    • getPeopleMetadata

      public JellyfinItemMetadata getPeopleMetadata()
      Retrieves the peopleMetadata property of this JellyfinReportPeopleItem.
      Returns:
      A JellyfinItemMetadata object representing the metadata of the person in this JellyfinReportPeopleItem. This includes the name, server ID, ID, channel ID, type, location type, premiere date, critic rating, official rating, and community rating.
      Since:
      1.1
    • setPeopleMetadata

      public void setPeopleMetadata(JellyfinItemMetadata peopleMetadata)
      Sets the peopleMetadata property of this JellyfinReportPeopleItem. This method sets the metadata of the person in this JellyfinReportPeopleItem to the given JellyfinItemMetadata. If the JellyfinItemMetadata has at least one production location, it also sets the peoplePlace of this JellyfinReportPeopleItem to the first production location.
      Parameters:
      peopleMetadata - A JellyfinItemMetadata object that should be used as the new metadata for the person in this JellyfinReportPeopleItem. This includes the name, server ID, ID, channel ID, type, location type, premiere date, critic rating, official rating, and community rating.
      Since:
      1.1
    • addPeopleEpisode

      public void addPeopleEpisode(JellyfinItem episode, JellyfinItemMetadata episodeMetadata)
      Adds an episode to the peopleEpisodes property of this JellyfinReportPeopleItem. 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 peopleEpisodes 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
    • getPeopleEpisodes

      public ArrayList<JellyfinReportInventorySubItem> getPeopleEpisodes()
      Retrieves the peopleEpisodes property of this JellyfinReportPeopleItem.
      Returns:
      An ArrayList of JellyfinReportInventorySubItem objects representing the episodes of the person in this JellyfinReportPeopleItem. 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
    • setPeopleEpisodes

      public void setPeopleEpisodes(ArrayList<JellyfinReportInventorySubItem> peopleEpisodes)
      Sets the peopleEpisodes property of this JellyfinReportPeopleItem.
      Parameters:
      peopleEpisodes - An ArrayList of JellyfinReportInventorySubItem objects that should be used as the new episodes for the person in this JellyfinReportPeopleItem. 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
    • getPeoplePlace

      public String getPeoplePlace()
      Retrieves the peoplePlace property of this JellyfinReportPeopleItem.
      Returns:
      A String representing the place of the person in this JellyfinReportPeopleItem. This could be the location where the person was born or currently resides.
      Since:
      1.1
    • setPeoplePlace

      public void setPeoplePlace(String peoplePlace)
      Sets the peoplePlace property of this JellyfinReportPeopleItem.
      Parameters:
      peoplePlace - A String that should be used as the new place for the person in this JellyfinReportPeopleItem. This could be the location where the person was born or currently resides.
      Since:
      1.1