| 34 | } |
| 35 | |
| 36 | std::string FileTransferRecord::AsJson2() { |
| 37 | nlohmann::json obj; |
| 38 | obj["the_file_id"] = the_file_id_; |
| 39 | obj["begin"] = begin_; |
| 40 | obj["end"] = end_; |
| 41 | obj["visitor_device"] = visitor_device_; |
| 42 | obj["target_device"] = target_device_; |
| 43 | obj["direction"] = direction_; |
| 44 | obj["file_detail"] = file_detail_; |
| 45 | return obj.dump(2); |
| 46 | } |
| 47 | |
| 48 | std::string FileTransferRecord::AsUpdateJson() { |
| 49 | nlohmann::json obj; |
nothing calls this directly
no outgoing calls
no test coverage detected