Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/OrthancApiClient.h @ 315:aad37d0b6407 am-2
Added LayerWidget::RemoveLayer + DELETE commands in WebService
author | am@osimis.io |
---|---|
date | Fri, 05 Oct 2018 10:38:16 +0200 |
parents | 14ef1227120f |
children | c2e040ea8fbe |
comparison
equal
deleted
inserted
replaced
314:97f16214dc5e | 315:aad37d0b6407 |
---|---|
44 JsonResponseReadyMessage(const std::string& uri, | 44 JsonResponseReadyMessage(const std::string& uri, |
45 const Json::Value& response, | 45 const Json::Value& response, |
46 Orthanc::IDynamicObject* payload = NULL) | 46 Orthanc::IDynamicObject* payload = NULL) |
47 : BaseMessage(), | 47 : BaseMessage(), |
48 Response(response), | 48 Response(response), |
49 Uri(uri), | |
50 Payload(payload) | |
51 { | |
52 } | |
53 }; | |
54 | |
55 struct EmptyResponseReadyMessage : public BaseMessage<MessageType_OrthancApi_GenericEmptyResponse_Ready> | |
56 { | |
57 std::string Uri; | |
58 Orthanc::IDynamicObject* Payload; | |
59 | |
60 EmptyResponseReadyMessage(const std::string& uri, | |
61 Orthanc::IDynamicObject* payload = NULL) | |
62 : BaseMessage(), | |
49 Uri(uri), | 63 Uri(uri), |
50 Payload(payload) | 64 Payload(payload) |
51 { | 65 { |
52 } | 66 } |
53 }; | 67 }; |
140 const Json::Value& data, | 154 const Json::Value& data, |
141 MessageHandler<JsonResponseReadyMessage>* successCallback, | 155 MessageHandler<JsonResponseReadyMessage>* successCallback, |
142 MessageHandler<HttpErrorMessage>* failureCallback = NULL, | 156 MessageHandler<HttpErrorMessage>* failureCallback = NULL, |
143 Orthanc::IDynamicObject* payload = NULL); | 157 Orthanc::IDynamicObject* payload = NULL); |
144 | 158 |
159 // schedule a DELETE request expecting an empty response. | |
160 void DeleteAsync(const std::string& uri, | |
161 MessageHandler<EmptyResponseReadyMessage>* successCallback, | |
162 MessageHandler<HttpErrorMessage>* failureCallback = NULL, | |
163 Orthanc::IDynamicObject* payload = NULL); | |
164 | |
165 | |
145 }; | 166 }; |
146 } | 167 } |