PlexHistoryEntry class final Playback and play queues

One play in /status/sessions/history/all.

Constructors

PlexHistoryEntry({required String historyKey, required String title, required Map<String, Object?> raw, String? ratingKey, String? parentTitle, String? grandparentTitle, String? type, DateTime? viewedAt, int? accountId, int? deviceId, String? librarySectionId})
Builds a history entry from already-parsed components.
const
PlexHistoryEntry.fromJson(Map<String, Object?> json)
Decodes a history Metadata entry.
factory

Properties

accountId → int?
The account that played it.
final
deviceId → int?
The device it was played on.
final
grandparentTitle → String?
Artist name, for a track.
final
hashCode → int
The hash code for this object.
no setterinherited
historyKey → String
/status/sessions/history/{id} — delete it to forget the play.
final
librarySectionId → String?
The section the item belongs to.
final
parentTitle → String?
Album title, for a track.
final
ratingKey → String?
Rating key of the item played, when sent.
final
raw → Map<String, Object?>
The decoded entry.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
title → String
Item title.
final
type → String?
The item kind, as the server spells it (track, episode, …).
final
viewedAt → DateTime?
When it was played.
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