Package com.lariflix.jemm.reports
Class JellyfinReportPeopleItem
java.lang.Object
com.lariflix.jemm.dtos.JellyfinCadPeopleItem
com.lariflix.jemm.reports.JellyfinReportPeopleItem
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:
-
Field Summary
Fields inherited from class com.lariflix.jemm.dtos.JellyfinCadPeopleItem
channelId, communityRating, criticRating, id, locationType, name, officialRating, premiereDate, productionYear, serverId, type
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the JellyfinReportPeopleItem class. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPeopleEpisode
(JellyfinItem episode, JellyfinItemMetadata episodeMetadata) Adds an episode to the peopleEpisodes property of this JellyfinReportPeopleItem.Retrieves the peopleEpisodes property of this JellyfinReportPeopleItem.Retrieves the peopleMetadata property of this JellyfinReportPeopleItem.Retrieves the peoplePlace property of this JellyfinReportPeopleItem.void
setItem
(JellyfinCadPeopleItem people) Sets the properties of this JellyfinReportPeopleItem based on the given JellyfinCadPeopleItem.void
setPeopleEpisodes
(ArrayList<JellyfinReportInventorySubItem> peopleEpisodes) Sets the peopleEpisodes property of this JellyfinReportPeopleItem.void
setPeopleMetadata
(JellyfinItemMetadata peopleMetadata) Sets the peopleMetadata property of this JellyfinReportPeopleItem.void
setPeoplePlace
(String peoplePlace) Sets the peoplePlace property of this JellyfinReportPeopleItem.Methods inherited from class com.lariflix.jemm.dtos.JellyfinCadPeopleItem
getChannelId, getCommunityRating, getCriticRating, getId, getLocationType, getName, getOfficialRating, getPremiereDate, getProductionYear, getServerId, getType, setChannelId, setCommunityRating, setCriticRating, setId, setLocationType, setName, setOfficialRating, setPremiereDate, setProductionYear, setServerId, setType
-
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
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
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
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
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
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
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
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
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
-