Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.plex.models.PlexMediaSearchResult Class Reference

Public Member Functions

None __init__ (self, media, params=None)
 
int offset (self)
 
bool shuffle (self)
 

Public Attributes

 media
 

Private Attributes

 _params
 

Detailed Description

Represents results from a Plex media media_content_id search.

Results are used by media_player.play_media implementations.

Definition at line 150 of file models.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.plex.models.PlexMediaSearchResult.__init__ (   self,
  media,
  params = None 
)
Initialize the result.

Definition at line 156 of file models.py.

Member Function Documentation

◆ offset()

int homeassistant.components.plex.models.PlexMediaSearchResult.offset (   self)
Provide the appropriate offset in ms based on payload contents.

Definition at line 162 of file models.py.

◆ shuffle()

bool homeassistant.components.plex.models.PlexMediaSearchResult.shuffle (   self)
Return value of shuffle parameter.

Definition at line 174 of file models.py.

Member Data Documentation

◆ _params

homeassistant.components.plex.models.PlexMediaSearchResult._params
private

Definition at line 159 of file models.py.

◆ media

homeassistant.components.plex.models.PlexMediaSearchResult.media

Definition at line 158 of file models.py.


The documentation for this class was generated from the following file: