All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
WebResponseDto.h
1 // Copyright eeGeo Ltd (2015), All Rights Reserved
2 
3 #pragma once
4 
5 #include "Web.h"
6 #include "IWebLoadRequest.h"
7 #include "WebPostData.h"
8 #include <string>
9 
10 namespace Eegeo
11 {
12  namespace Web
13  {
15  {
16  public:
18  const TWebRequestId webRequestId,
19  const std::string& url,
20  const int httpStatusCode,
21  const WebLoadResponseCompletionCode::Values completionCode,
22  const TResourceData* headerData,
23  const TResourceData* bodyData,
24  const WebPostData postBodyData,
25  const WebLoadResponseStatistics& statistics)
26  : WebRequestId(webRequestId)
27  , Url(url)
28  , HttpStatusCode(httpStatusCode)
29  , CompletionCode(completionCode)
30  , HeaderData(headerData)
31  , BodyData(bodyData)
32  , PostBodyData(postBodyData)
33  , Statistics(statistics)
34  {
35 
36  }
37 
38  const TWebRequestId WebRequestId;
39  const std::string Url;
40  const int HttpStatusCode;
41  const WebLoadResponseCompletionCode::Values CompletionCode;
42  const TResourceData* const HeaderData;
43  const TResourceData* const BodyData;
44  const WebPostData PostBodyData;
45  const WebLoadResponseStatistics Statistics;
46  };
47  }
48 }