PlexMetadataType enum
The integer type tag used on every /library/metadata/{id} response.
type=1 movie, 2 show, 3 season, 4 episode, 5 trailer, 8 artist, 9 album, 10 track, 13 photoAlbum, 14 photo, 15 playlist, 18 collection.
Values
- movie → const PlexMetadataType
-
Movie (
type=1).const PlexMetadataType(1, 'movie') - show → const PlexMetadataType
-
TV show / series root (
type=2).const PlexMetadataType(2, 'show') - season → const PlexMetadataType
-
Season under a show (
type=3).const PlexMetadataType(3, 'season') - episode → const PlexMetadataType
-
Episode under a season (
type=4).const PlexMetadataType(4, 'episode') - trailer → const PlexMetadataType
-
Trailer (
type=5).const PlexMetadataType(5, 'trailer') - artist → const PlexMetadataType
-
Music artist (
type=8).const PlexMetadataType(8, 'artist') - album → const PlexMetadataType
-
Music album (
type=9).const PlexMetadataType(9, 'album') - track → const PlexMetadataType
-
Music track (
type=10).const PlexMetadataType(10, 'track') - photoAlbum → const PlexMetadataType
-
Photo album (
type=13).const PlexMetadataType(13, 'photoAlbum') - photo → const PlexMetadataType
-
Photo (
type=14).const PlexMetadataType(14, 'photo') - playlist → const PlexMetadataType
-
Playlist (
type=15).const PlexMetadataType(15, 'playlist') - collection → const PlexMetadataType
-
Collection (
type=18).const PlexMetadataType(18, 'collection') - unknown → const PlexMetadataType
-
Unrecognised or missing type — fallback used when the int / wire string doesn't match any known variant.
const PlexMetadataType(0, 'unknown')
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
Numeric
typetag as used in Plex JSON.final - wire → String
-
Lowercase wire string Plex sometimes uses in place of the numeric
value (e.g.
track,episode).final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromValue(
int? value) → PlexMetadataType -
Resolves a numeric
typetag, returning unknown when null or unmatched. -
fromWire(
String? value) → PlexMetadataType - Resolves a wire string variant, returning unknown when null or unmatched.
Constants
-
values
→ const List<
PlexMetadataType> - A constant List of the values in this enum, in order of their declaration.