| 22 | } |
| 23 | |
| 24 | std::string FileTransferRecord::AsJson() { |
| 25 | nlohmann::json obj; |
| 26 | obj["the_file_id"] = the_file_id_; |
| 27 | obj["begin"] = TimeUtil::FormatTimestamp(begin_); |
| 28 | obj["end"] = TimeUtil::FormatTimestamp(end_); |
| 29 | obj["visitor_device"] = visitor_device_; |
| 30 | obj["target_device"] = target_device_; |
| 31 | obj["direction"] = direction_; |
| 32 | obj["file_detail"] = file_detail_; |
| 33 | return obj.dump(2); |
| 34 | } |
| 35 | |
| 36 | std::string FileTransferRecord::AsJson2() { |
| 37 | nlohmann::json obj; |
nothing calls this directly
no outgoing calls
no test coverage detected