mirror of
https://github.com/HenkKalkwater/harbour-sailfin.git
synced 2025-09-05 10:12:46 +00:00
[2/3] update openapi spec: generate code
This updates the openapi spec and invokes the code generator to update to the Jellyfin 10.10.6 API. A big motivation to do this was because some mandatory fields have been made obsolete and are no longer included in responses. Sailfin tries to deserialize these mandatory fields and fails deserializing. It was evident in the list of sessions to control. The failing was a bit too gracefully in my opinion, it did not even show that an error occurred, nor was it logged anywhere. It took some time to debug.
This commit is contained in:
parent
eeb9183909
commit
d685b48ec1
504 changed files with 62190 additions and 41202 deletions
|
@ -52,7 +52,9 @@ namespace DTO {
|
|||
class CodecProfile {
|
||||
public:
|
||||
CodecProfile(
|
||||
CodecType type
|
||||
CodecType type,
|
||||
QList<ProfileCondition> conditions,
|
||||
QList<ProfileCondition> applyConditions
|
||||
);
|
||||
|
||||
CodecProfile(const CodecProfile &other);
|
||||
|
@ -72,34 +74,57 @@ public:
|
|||
|
||||
void setType(CodecType newType);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition which this profile must meet.
|
||||
*/
|
||||
QList<ProfileCondition> conditions() const;
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition which this profile must meet.
|
||||
*/
|
||||
void setConditions(QList<ProfileCondition> newConditions);
|
||||
bool conditionsNull() const;
|
||||
void setConditionsNull();
|
||||
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition to apply if this profile is met.
|
||||
*/
|
||||
QList<ProfileCondition> applyConditions() const;
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the list of MediaBrowser.Model.Dlna.ProfileCondition to apply if this profile is met.
|
||||
*/
|
||||
void setApplyConditions(QList<ProfileCondition> newApplyConditions);
|
||||
bool applyConditionsNull() const;
|
||||
void setApplyConditionsNull();
|
||||
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the codec(s) that this profile applies to.
|
||||
*/
|
||||
QString codec() const;
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the codec(s) that this profile applies to.
|
||||
*/
|
||||
void setCodec(QString newCodec);
|
||||
bool codecNull() const;
|
||||
void setCodecNull();
|
||||
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the container(s) which this profile will be applied to.
|
||||
*/
|
||||
QString container() const;
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the container(s) which this profile will be applied to.
|
||||
*/
|
||||
void setContainer(QString newContainer);
|
||||
bool containerNull() const;
|
||||
void setContainerNull();
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the sub-container(s) which this profile will be applied to.
|
||||
*/
|
||||
QString subContainer() const;
|
||||
/**
|
||||
* @brief Gets or sets the sub-container(s) which this profile will be applied to.
|
||||
*/
|
||||
void setSubContainer(QString newSubContainer);
|
||||
bool subContainerNull() const;
|
||||
void setSubContainerNull();
|
||||
|
||||
|
||||
protected:
|
||||
CodecType m_type;
|
||||
|
@ -107,6 +132,7 @@ protected:
|
|||
QList<ProfileCondition> m_applyConditions;
|
||||
QString m_codec;
|
||||
QString m_container;
|
||||
QString m_subContainer;
|
||||
|
||||
private:
|
||||
// Private constructor which generates an invalid object, for use withing CodecProfile::fromJson();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue