2021-02-17 18:42:10 +00:00
|
|
|
/*
|
|
|
|
Sailfin: a Jellyfin client written using Qt
|
|
|
|
Copyright (C) 2021 Chris Josten
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Lesser General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
2020-10-10 12:30:49 +00:00
|
|
|
#ifndef JSON_SERIALIZER_H
|
|
|
|
#define JSON_SERIALIZER_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <QList>
|
|
|
|
#include <QJsonArray>
|
|
|
|
#include <QJsonObject>
|
|
|
|
#include <QJsonValue>
|
|
|
|
#include <QJsonValueRef>
|
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
namespace Jellyfin {
|
|
|
|
|
|
|
|
namespace JsonHelper {
|
|
|
|
void convertToCamelCase(QJsonValueRef val);
|
2021-02-20 22:20:39 +00:00
|
|
|
void convertToCamelCase(QJsonValue &val);
|
2020-10-10 12:30:49 +00:00
|
|
|
QString convertToCamelCaseHelper(const QString &str);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // JSONSERIALIZER_H
|