MCPcopy Create free account
hub / github.com/KikoPlayProject/KikoPlay / toMap

Method toMap

MediaLibrary/animeinfo.cpp:294–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294QVariantMap Anime::toMap(bool fillEp)
295{
296 QVariantList eps, crts;
297 if(fillEp)
298 {
299 for(const auto &ep : epList())
300 eps.append(ep.toMap());
301 }
302 for(const auto &c : qAsConst(characters))
303 crts.append(c.toMap());
304 QVariantMap staffMap;
305 for(const auto &p : qAsConst(staff))
306 staffMap.insert(p.first, p.second);
307 return {
308 {"name", _name},
309 {"desc", _desc},
310 {"url", _url},
311 {"coverUrl", _coverURL},
312 {"scriptId", _scriptId},
313 {"data", _scriptData},
314 {"airDate", _airDate},
315 {"epCount", _epCount},
316 {"addTime", QString::number(_addTime)},
317 {"crt", crts},
318 {"staff", staffMap},
319 {"eps", eps}
320 };
321}
322
323const AnimeLite Anime::toLite() const
324{

Callers 10

AnimeModelMethod · 0.45
addAnimeMethod · 0.45
fromMapMethod · 0.45
showDialogMethod · 0.45
matchPoolMethod · 0.45
initSignalsMethod · 0.45
showMessageMethod · 0.45
listenMatchDownMethod · 0.45
listenDanmuAddedMethod · 0.45
listenCommonEventsMethod · 0.45

Calls 2

appendMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected