in sdk/src/model/FileGetVideoPreviewPlayInfoRequest.cc [37:65]
std::shared_ptr<std::iostream> FileGetVideoPreviewPlayInfoRequest::Body() const
{
Json::Value root;
if (!driveID_.empty()) {
root["drive_id"] = driveID_;
}
if (!shareID_.empty()) {
root["share_id"] = shareID_;
}
root["file_id"] = fileID_;
root["category"] = category_;
if (0 != urlExpireSec_) {
root["url_expire_sec"] = urlExpireSec_;
}
if (!templateID_.empty()) {
root["template_id"] = templateID_;
}
if (nullptr != getWithoutUrl_) {
root["get_without_url"] = *getWithoutUrl_;
}
Json::StreamWriterBuilder builder;
builder.settings_["indentation"] = "";
std::shared_ptr<Json::StreamWriter> writer(builder.newStreamWriter());
auto content = std::make_shared<std::stringstream>();
writer->write(root, content.get());
return content;
}