MCPcopy Create free account
hub / github.com/BlueMatthew/WechatExporter / parseAppMsgChannelCard

Method parseAppMsgChannelCard

WechatExporter/core/MessageParser.cpp:825–834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

823}
824
825void MessageParser::parseAppMsgChannelCard(const WXAPPMSG& appMsg, const XmlParser& xmlParser, const Session& session, TemplateValues& tv) const
826{
827 // Channel Card
828 std::map<std::string, std::string> nodes = { {"username", ""}, {"avatar", ""}, {"nickname", ""}};
829 xmlParser.parseNodesValue("/msg/appmsg/findernamecard/*", nodes);
830
831 std::string portraitDir = ((m_options & SPO_ICON_IN_SESSION) == SPO_ICON_IN_SESSION) ? session.getOutputFileName() + "_files/Portrait" : "Portrait";
832
833 parseChannelCard(session, portraitDir, nodes["username"], nodes["avatar"], "", nodes["nickname"], tv);
834}
835
836void MessageParser::parseAppMsgChannels(const WXAPPMSG& appMsg, const XmlParser& xmlParser, const Session& session, TemplateValues& tv) const
837{

Callers

nothing calls this directly

Calls 2

parseNodesValueMethod · 0.80
getOutputFileNameMethod · 0.80

Tested by

no test coverage detected