Package com.lariflix.jemm.dtos
Class JellyfinItem
java.lang.Object
com.lariflix.jemm.dtos.JellyfinItem
- Direct Known Subclasses:
JellyfinReportInventorySubItem
This class represents the JellyfinItem.
- Since:
- 1.0
- Author:
- Cesar Bianchi
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintbooleanint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the aspect ratio.intGets the community rating.Gets the container.intGets the critic rating.getId()Gets the id.Gets the item metadata.Gets the location type.Gets the media type.getName()Gets the name.Gets the official rating.Gets the ParentID metadata.Gets the premiere date.intGets the production year.Gets the server id.getType()Gets the type.Gets the video type.booleanIsFolder()Checks if the item is a folder.voidmySetCommunityRating(String rating) Sets the community rating.voidmySetCriticRating(String rating) Sets the critic rating.voidmySetPremiereDate(String cDate) Sets the premiere date.voidmySetProductionYear(String prdYear) Sets the production year.voidsetAspectRatio(String aspectRatio) Sets the aspect ratio.voidsetCommunityRating(int communityRating) Sets the community rating.voidsetContainer(String container) Sets the container.voidsetCriticRating(int criticRating) Sets the critic rating.voidSets the id.voidsetIsFolder(boolean isFolder) Sets whether the item is a folder.voidsetItemMetadata(JellyfinItemMetadata itemMetadata) Sets the item metadata.voidsetLocationType(String locationType) Sets the location type.voidsetMediaType(String mediaType) Sets the media type.voidSets the name.voidsetOfficialRating(String officialRating) Sets the official rating.voidsetParentId(String PrtId) Sets the ParentID metadata.voidsetPremiereDate(Date premiereDate) Sets the premiere date.voidsetProductionYear(int productionYear) Sets the production year.voidsetServerId(String serverId) Sets the server id.voidSets the type.voidsetVideoType(String videoType) Sets the video type.
-
Field Details
-
name
-
serverId
-
id
-
container
-
premiereDate
-
criticRating
public int criticRating -
officialRating
-
communityRating
public int communityRating -
aspectRatio
-
productionYear
public int productionYear -
isFolder
public boolean isFolder -
type
-
videoType
-
locationType
-
mediaType
-
ParentId
-
itemMetadata
-
-
Constructor Details
-
JellyfinItem
public JellyfinItem()Default constructor for JellyfinItem.- Since:
- 1.0
-
-
Method Details
-
getName
Gets the name.- Returns:
- A string representing the name.
- Since:
- 1.0
-
setName
Sets the name.- Parameters:
name- A string containing the new name.- Since:
- 1.0
-
getServerId
Gets the server id.- Returns:
- A string representing the server id.
- Since:
- 1.0
-
setServerId
Sets the server id.- Parameters:
serverId- A string containing the new server id.- Since:
- 1.0
-
getId
Gets the id.- Returns:
- A string representing the id.
- Since:
- 1.0
-
setId
Sets the id.- Parameters:
id- A string containing the new id.- Since:
- 1.0
-
getContainer
Gets the container.- Returns:
- A string representing the container.
- Since:
- 1.0
-
setContainer
Sets the container.- Parameters:
container- A string containing the new container.- Since:
- 1.0
-
getPremiereDate
Gets the premiere date.- Returns:
- A Date object representing the premiere date.
- Since:
- 1.0
-
setPremiereDate
Sets the premiere date.- Parameters:
premiereDate- A Date object containing the new premiere date.- Since:
- 1.0
-
mySetPremiereDate
Sets the premiere date.- Parameters:
premiereDate- A String containing the new premiere date.- Since:
- 1.0
-
getCriticRating
public int getCriticRating()Gets the critic rating.- Returns:
- An integer representing the critic rating.
- Since:
- 1.0
-
setCriticRating
public void setCriticRating(int criticRating) Sets the critic rating.- Parameters:
criticRating- An integer containing the new critic rating.- Since:
- 1.0
-
mySetCriticRating
Sets the critic rating.- Parameters:
criticRating- An String containing the new critic rating.- Since:
- 1.0
-
getOfficialRating
Gets the official rating.- Returns:
- A string representing the official rating.
- Since:
- 1.0
-
setOfficialRating
Sets the official rating.- Parameters:
officialRating- A string containing the new official rating.- Since:
- 1.0
-
getCommunityRating
public int getCommunityRating()Gets the community rating.- Returns:
- An integer representing the community rating.
- Since:
- 1.0
-
setCommunityRating
public void setCommunityRating(int communityRating) Sets the community rating.- Parameters:
communityRating- An integer containing the new community rating.- Since:
- 1.0
-
mySetCommunityRating
Sets the community rating.- Parameters:
communityRating- An integer containing the new community rating.- Since:
- 1.2.0
-
getAspectRatio
Gets the aspect ratio.- Returns:
- A string representing the aspect ratio.
- Since:
- 1.0
-
setAspectRatio
Sets the aspect ratio.- Parameters:
aspectRatio- A string containing the new aspect ratio.- Since:
- 1.0
-
getProductionYear
public int getProductionYear()Gets the production year.- Returns:
- An integer representing the production year.
- Since:
- 1.0
-
setProductionYear
public void setProductionYear(int productionYear) Sets the production year.- Parameters:
productionYear- An integer containing the new production year.- Since:
- 1.0
-
mySetProductionYear
Sets the production year.- Parameters:
productionYear- An String containing the new production year.- Since:
- 1.2.0
-
IsFolder
public boolean IsFolder()Checks if the item is a folder.- Returns:
- A boolean indicating whether the item is a folder.
- Since:
- 1.0
-
setIsFolder
public void setIsFolder(boolean isFolder) Sets whether the item is a folder.- Parameters:
isFolder- A boolean indicating the new folder status.- Since:
- 1.0
-
getType
Gets the type.- Returns:
- A string representing the type.
- Since:
- 1.0
-
setType
Sets the type.- Parameters:
type- A string containing the new type.- Since:
- 1.0
-
getVideoType
Gets the video type.- Returns:
- A string representing the video type.
- Since:
- 1.0
-
setVideoType
Sets the video type.- Parameters:
videoType- A string containing the new video type.- Since:
- 1.0
-
getLocationType
Gets the location type.- Returns:
- A string representing the location type.
- Since:
- 1.0
-
setLocationType
Sets the location type.- Parameters:
locationType- A string containing the new location type.- Since:
- 1.0
-
getMediaType
Gets the media type.- Returns:
- A string representing the media type.
- Since:
- 1.0
-
setMediaType
Sets the media type.- Parameters:
mediaType- A string containing the new media type.- Since:
- 1.0
-
getItemMetadata
Gets the item metadata.- Returns:
- A JellyfinItemMetadata object representing the item metadata.
- Since:
- 1.0
-
setItemMetadata
Sets the item metadata.- Parameters:
itemMetadata- A JellyfinItemMetadata object containing the new item metadata.- Since:
- 1.0
-
getParentId
Gets the ParentID metadata.- Returns:
- A JellyfinItemMetadata object representing the ParentID metadata.
- Since:
- 1.2.0
-
setParentId
Sets the ParentID metadata.- Parameters:
ParentId- A JellyfinItemMetadata ParentId String .- Since:
- 1.2.0
-