Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
No Matches
ADDON::CAddonDatabaseSerializer Class Reference

Addon content serializer/deserializer. More...

#include <AddonDatabase.h>

Static Public Member Functions

static std::string SerializeMetadata (const CAddonInfo &addon)
static void DeserializeMetadata (const std::string &document, CAddonInfoBuilderFromDB &builder)

Detailed Description

Addon content serializer/deserializer.

Used to save data from the add-on in the database using json format. The corresponding field in SQL is "addons" for "metadata".

Changes in the json format need a way to update the addon database for users, otherwise problems may occur when reading the old content.

Member Function Documentation

◆ DeserializeMetadata()

void CAddonDatabaseSerializer::DeserializeMetadata ( const std::string & document,
CAddonInfoBuilderFromDB & builder )

◆ SerializeMetadata()

std::string CAddonDatabaseSerializer::SerializeMetadata ( const CAddonInfo & addon)

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