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
|
@ -36,7 +36,7 @@
|
|||
#include <QString>
|
||||
#include <optional>
|
||||
|
||||
#include "JellyfinQt/dto/sessioninfo.h"
|
||||
#include "JellyfinQt/dto/sessioninfodto.h"
|
||||
#include "JellyfinQt/dto/userdto.h"
|
||||
#include "JellyfinQt/support/jsonconv.h"
|
||||
|
||||
|
@ -52,7 +52,7 @@ class AuthenticationResult {
|
|||
public:
|
||||
AuthenticationResult(
|
||||
QSharedPointer<UserDto> user,
|
||||
QSharedPointer<SessionInfo> sessionInfo
|
||||
QSharedPointer<SessionInfoDto> sessionInfo
|
||||
);
|
||||
|
||||
AuthenticationResult(const AuthenticationResult &other);
|
||||
|
@ -73,20 +73,28 @@ public:
|
|||
void setUser(QSharedPointer<UserDto> newUser);
|
||||
|
||||
|
||||
QSharedPointer<SessionInfo> sessionInfo() const;
|
||||
|
||||
void setSessionInfo(QSharedPointer<SessionInfo> newSessionInfo);
|
||||
QSharedPointer<SessionInfoDto> sessionInfo() const;
|
||||
|
||||
void setSessionInfo(QSharedPointer<SessionInfoDto> newSessionInfo);
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the access token.
|
||||
*/
|
||||
QString accessToken() const;
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the access token.
|
||||
*/
|
||||
void setAccessToken(QString newAccessToken);
|
||||
bool accessTokenNull() const;
|
||||
void setAccessTokenNull();
|
||||
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the server id.
|
||||
*/
|
||||
QString serverId() const;
|
||||
|
||||
/**
|
||||
* @brief Gets or sets the server id.
|
||||
*/
|
||||
void setServerId(QString newServerId);
|
||||
bool serverIdNull() const;
|
||||
void setServerIdNull();
|
||||
|
@ -94,7 +102,7 @@ public:
|
|||
|
||||
protected:
|
||||
QSharedPointer<UserDto> m_user = QSharedPointer<UserDto>();
|
||||
QSharedPointer<SessionInfo> m_sessionInfo = QSharedPointer<SessionInfo>();
|
||||
QSharedPointer<SessionInfoDto> m_sessionInfo = QSharedPointer<SessionInfoDto>();
|
||||
QString m_accessToken;
|
||||
QString m_serverId;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue