Mercurial > hg > orthanc
diff Core/JobsEngine/JobInfo.cpp @ 2589:a3fdfb6979ed jobs
getting rid of ReusableDicomConnection in REST API
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 15 May 2018 16:10:03 +0200 |
parents | 3372c5255333 |
children | 7b72061157b1 |
line wrap: on
line diff
--- a/Core/JobsEngine/JobInfo.cpp Mon May 14 21:44:41 2018 +0200 +++ b/Core/JobsEngine/JobInfo.cpp Tue May 15 16:10:03 2018 +0200 @@ -116,7 +116,8 @@ } - void JobInfo::Serialize(Json::Value& target) const + void JobInfo::Serialize(Json::Value& target, + bool includeInternalContent) const { target = Json::objectValue; target["ID"] = id_; @@ -131,7 +132,11 @@ target["Type"] = status_.GetJobType(); target["PublicContent"] = status_.GetPublicContent(); - target["InternalContent"] = status_.GetInternalContent(); + + if (includeInternalContent) + { + target["InternalContent"] = status_.GetInternalContent(); + } if (HasEstimatedTimeOfArrival()) {