26 return getNumberProperty(KeyId);
30 return getStringProperty(KeyTimeBase);
34 return getNumberProperty(KeyStart);
38 return getStringProperty(KeyStartTime);
42 return getNumberProperty(KeyEnd);
46 return getStringProperty(KeyEndTime);
50 return getProperty(KeyTags);
54 if (_chapterValue->HasMember(key)) {
55 return std::make_shared<std::string>((*_chapterValue)[key].GetString());
62 if (_chapterValue->HasMember(key)) {
63 return std::make_shared<int64_t>((*_chapterValue)[key].GetInt64());
70 if (_chapterValue->HasMember(key)) {
71 auto value = std::make_shared<rapidjson::Value>();
72 *value = (*_chapterValue)[key];
80 if (_chapterValue !=
nullptr) {
81 auto all = std::make_shared<rapidjson::Value>();
82 *all = (*_chapterValue);
std::shared_ptr< rapidjson::Value > getProperty(const char *key)
std::shared_ptr< std::string > getStartTime()
std::shared_ptr< int64_t > getNumberProperty(const char *key)
std::shared_ptr< rapidjson::Value > getAllProperties()
Chapter(std::shared_ptr< rapidjson::Value > chapterValue)
std::shared_ptr< int64_t > getStart()
std::shared_ptr< int64_t > getEnd()
std::shared_ptr< std::string > getEndTime()
std::shared_ptr< int64_t > getId()
std::shared_ptr< std::string > getStringProperty(const char *key)
std::shared_ptr< std::string > getTimeBase()
std::shared_ptr< rapidjson::Value > getTags()