From 7d95e67308ee0abcce5c7bd66265146d3dfefd74 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 30 Mar 2025 11:35:03 +0300 Subject: useful helper JsonReply moved to the core --- protocols/Weather/src/stdafx.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'protocols/Weather/src/stdafx.h') 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; } -}; -- cgit v1.2.3