diff options
author | George Hazan <ghazan@miranda.im> | 2017-01-09 17:11:28 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-01-09 17:11:28 +0300 |
commit | ee2dac14cc7ef216f42ff46794eea5d37ebc6871 (patch) | |
tree | 98bd5d11d0311569b7707128f2b9042c7ea2ad5b /protocols/Discord/src/http.cpp | |
parent | 4f8c1e527ab9b5421f3ebb1c61ffe9a859df82e4 (diff) |
INT64_PARAM - a new type of SnowFlake http params
Diffstat (limited to 'protocols/Discord/src/http.cpp')
-rw-r--r-- | protocols/Discord/src/http.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/Discord/src/http.cpp b/protocols/Discord/src/http.cpp index e5941a71a4..90393ec6ef 100644 --- a/protocols/Discord/src/http.cpp +++ b/protocols/Discord/src/http.cpp @@ -98,6 +98,15 @@ AsyncHttpRequest* operator<<(AsyncHttpRequest *pReq, const INT_PARAM ¶m) return pReq; } +AsyncHttpRequest* operator<<(AsyncHttpRequest *pReq, const INT64_PARAM ¶m) +{ + CMStringA &s = pReq->m_szParam; + if (!s.IsEmpty()) + s.AppendChar('&'); + s.AppendFormat("%s=%lld", param.szName, param.iValue); + return pReq; +} + AsyncHttpRequest* operator<<(AsyncHttpRequest *pReq, const CHAR_PARAM ¶m) { CMStringA &s = pReq->m_szParam; |