Jellyfin Qt
QML Library for interacting with the Jellyfin multimedia server
Loading...
Searching...
No Matches
Jellyfin::DTO::MediaSegmentDto Class Reference

#include <mediasegmentdto.h>

Public Member Functions

 MediaSegmentDto (QString jellyfinId, QString itemId, MediaSegmentType type, qint64 startTicks, qint64 endTicks)
 MediaSegmentDto (const MediaSegmentDto &other)
void replaceData (MediaSegmentDto &other)
void setFromJson (QJsonObject source)
QJsonObject toJson () const
QString jellyfinId () const
 Gets or sets the id of the media segment.
void setJellyfinId (QString newJellyfinId)
 Gets or sets the id of the media segment.
QString itemId () const
 Gets or sets the id of the associated item.
void setItemId (QString newItemId)
 Gets or sets the id of the associated item.
MediaSegmentType type () const
void setType (MediaSegmentType newType)
qint64 startTicks () const
 Gets or sets the start of the segment.
void setStartTicks (qint64 newStartTicks)
 Gets or sets the start of the segment.
qint64 endTicks () const
 Gets or sets the end of the segment.
void setEndTicks (qint64 newEndTicks)
 Gets or sets the end of the segment.

Static Public Member Functions

static MediaSegmentDto fromJson (QJsonObject source)

Protected Attributes

QString m_jellyfinId
QString m_itemId
MediaSegmentType m_type
qint64 m_startTicks
qint64 m_endTicks

Constructor & Destructor Documentation

◆ MediaSegmentDto() [1/2]

Jellyfin::DTO::MediaSegmentDto::MediaSegmentDto ( QString jellyfinId,
QString itemId,
MediaSegmentType type,
qint64 startTicks,
qint64 endTicks )

◆ MediaSegmentDto() [2/2]

Jellyfin::DTO::MediaSegmentDto::MediaSegmentDto ( const MediaSegmentDto & other)

Member Function Documentation

◆ endTicks()

qint64 Jellyfin::DTO::MediaSegmentDto::endTicks ( ) const

Gets or sets the end of the segment.

◆ fromJson()

MediaSegmentDto Jellyfin::DTO::MediaSegmentDto::fromJson ( QJsonObject source)
static

◆ itemId()

QString Jellyfin::DTO::MediaSegmentDto::itemId ( ) const

Gets or sets the id of the associated item.

◆ jellyfinId()

QString Jellyfin::DTO::MediaSegmentDto::jellyfinId ( ) const

Gets or sets the id of the media segment.

◆ replaceData()

void Jellyfin::DTO::MediaSegmentDto::replaceData ( MediaSegmentDto & other)

Replaces the data being hold by this class with that of the other.

◆ setEndTicks()

void Jellyfin::DTO::MediaSegmentDto::setEndTicks ( qint64 newEndTicks)

Gets or sets the end of the segment.

◆ setFromJson()

void Jellyfin::DTO::MediaSegmentDto::setFromJson ( QJsonObject source)

◆ setItemId()

void Jellyfin::DTO::MediaSegmentDto::setItemId ( QString newItemId)

Gets or sets the id of the associated item.

◆ setJellyfinId()

void Jellyfin::DTO::MediaSegmentDto::setJellyfinId ( QString newJellyfinId)

Gets or sets the id of the media segment.

◆ setStartTicks()

void Jellyfin::DTO::MediaSegmentDto::setStartTicks ( qint64 newStartTicks)

Gets or sets the start of the segment.

◆ setType()

void Jellyfin::DTO::MediaSegmentDto::setType ( MediaSegmentType newType)

◆ startTicks()

qint64 Jellyfin::DTO::MediaSegmentDto::startTicks ( ) const

Gets or sets the start of the segment.

◆ toJson()

QJsonObject Jellyfin::DTO::MediaSegmentDto::toJson ( ) const

◆ type()

MediaSegmentType Jellyfin::DTO::MediaSegmentDto::type ( ) const

Member Data Documentation

◆ m_endTicks

qint64 Jellyfin::DTO::MediaSegmentDto::m_endTicks
protected

◆ m_itemId

QString Jellyfin::DTO::MediaSegmentDto::m_itemId
protected

◆ m_jellyfinId

QString Jellyfin::DTO::MediaSegmentDto::m_jellyfinId
protected

◆ m_startTicks

qint64 Jellyfin::DTO::MediaSegmentDto::m_startTicks
protected

◆ m_type

MediaSegmentType Jellyfin::DTO::MediaSegmentDto::m_type
protected

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