diff options
author | George Hazan <ghazan@miranda.im> | 2017-12-11 12:04:28 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-12-11 12:04:28 +0300 |
commit | 322fece4cdb97f834c3c13b7bb3157ba6e4fa449 (patch) | |
tree | ab02c0681f9c9bb1adc1038b251f502dcdb49638 /protocols/Discord/src/utils.cpp | |
parent | 4abcb6d6a611b10f32d803270b7f2480fbb6865e (diff) |
parameters unification between JSON & HTTP
Diffstat (limited to 'protocols/Discord/src/utils.cpp')
-rw-r--r-- | protocols/Discord/src/utils.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/protocols/Discord/src/utils.cpp b/protocols/Discord/src/utils.cpp index 2c0b254930..0b37e53167 100644 --- a/protocols/Discord/src/utils.cpp +++ b/protocols/Discord/src/utils.cpp @@ -42,40 +42,6 @@ int StrToStatus(const CMStringW &str) ///////////////////////////////////////////////////////////////////////////////////////// -JSONNode& operator<<(JSONNode &json, const INT_PARAM ¶m) -{ - json.push_back(JSONNode(param.szName, param.iValue)); - return json; -} - -JSONNode& operator<<(JSONNode &json, const INT64_PARAM ¶m) -{ - char tmp[100]; - _i64toa_s(param.iValue, tmp, _countof(tmp), 10); - json.push_back(JSONNode(param.szName, tmp)); - return json; -} - -JSONNode& operator<<(JSONNode &json, const BOOL_PARAM ¶m) -{ - json.push_back(JSONNode(param.szName, param.bValue)); - return json; -} - -JSONNode& operator<<(JSONNode &json, const CHAR_PARAM ¶m) -{ - json.push_back(JSONNode(param.szName, param.szValue)); - return json; -} - -JSONNode& operator<<(JSONNode &json, const WCHAR_PARAM ¶m) -{ - json.push_back(JSONNode(param.szName, ptrA(mir_utf8encodeW(param.wszValue)).get())); - return json; -} - -///////////////////////////////////////////////////////////////////////////////////////// - time_t StringToDate(const CMStringW &str) { struct tm T = { 0 }; |