Files
Leeksov 4647310322 GLEGram 12.5 — Initial public release
Based on Swiftgram 12.5 (Telegram iOS 12.5).
All GLEGram features ported and organized in GLEGram/ folder.

Features: Ghost Mode, Saved Deleted Messages, Content Protection Bypass,
Font Replacement, Fake Profile, Chat Export, Plugin System, and more.

See CHANGELOG_12.5.md for full details.
2026-04-06 09:48:12 +03:00

41 lines
991 B
C++

#ifndef ImageLayerModel_hpp
#define ImageLayerModel_hpp
#include "Lottie/Private/Model/Layers/LayerModel.hpp"
#include "Lottie/Private/Parsing/JsonParsing.hpp"
namespace lottie {
/// A layer that holds an image.
class ImageLayerModel: public LayerModel {
public:
explicit ImageLayerModel(lottiejson11::Json::object const &json) noexcept(false) :
LayerModel(json) {
referenceID = getString(json, "refId");
_sc = getOptionalString(json, "sc");
}
virtual ~ImageLayerModel() = default;
virtual void toJson(lottiejson11::Json::object &json) const override {
LayerModel::toJson(json);
json.insert(std::make_pair("refId", referenceID));
if (_sc.has_value()) {
json.insert(std::make_pair("sc", _sc.value()));
}
}
public:
/// The reference ID of the image.
std::string referenceID;
std::optional<std::string> _sc;
};
}
#endif /* ImageLayerModel_hpp */