diff options
author | George Hazan <george.hazan@gmail.com> | 2025-03-30 11:35:03 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-03-30 11:35:03 +0300 |
commit | 7d95e67308ee0abcce5c7bd66265146d3dfefd74 (patch) | |
tree | 9c377087518bb53a429151edb6a947fc47e89242 /protocols/Weather/src/stdafx.h | |
parent | 66821b916cc298111f9e5ddd2684d15ff7909f02 (diff) |
useful helper JsonReply moved to the core
Diffstat (limited to 'protocols/Weather/src/stdafx.h')
-rw-r--r-- | protocols/Weather/src/stdafx.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/protocols/Weather/src/stdafx.h b/protocols/Weather/src/stdafx.h index 956ce498b9..96e5410c71 100644 --- a/protocols/Weather/src/stdafx.h +++ b/protocols/Weather/src/stdafx.h @@ -150,20 +150,3 @@ const wchar_t *GetDefaultText(int c); // function from multiwin module
void UpdateMwinData(MCONTACT hContact);
-
-/////////////////////////////////////////////////////////////////////////////////////////
-// utils
-
-class JsonReply
-{
- JSONNode *m_root = nullptr;
- int m_errorCode = 0;
-
-public:
- JsonReply(MHttpResponse *);
- ~JsonReply();
-
- __forceinline int error() const { return m_errorCode; }
- __forceinline JSONNode &data() const { return *m_root; }
- __forceinline operator bool() const { return m_errorCode == 200; }
-};
|