summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-01-09 17:11:28 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-01-09 17:11:28 +0300
commitee2dac14cc7ef216f42ff46794eea5d37ebc6871 (patch)
tree98bd5d11d0311569b7707128f2b9042c7ea2ad5b /protocols/Discord/src/proto.h
parent4f8c1e527ab9b5421f3ebb1c61ffe9a859df82e4 (diff)
INT64_PARAM - a new type of SnowFlake http params
Diffstat (limited to 'protocols/Discord/src/proto.h')
-rw-r--r--protocols/Discord/src/proto.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h
index 66709e8f3b..d6b00fe878 100644
--- a/protocols/Discord/src/proto.h
+++ b/protocols/Discord/src/proto.h
@@ -45,6 +45,15 @@ struct INT_PARAM : public PARAM
};
AsyncHttpRequest* operator<<(AsyncHttpRequest*, const INT_PARAM&);
+struct INT64_PARAM : public PARAM
+{
+ SnowFlake iValue;
+ __forceinline INT64_PARAM(LPCSTR _name, SnowFlake _value) :
+ PARAM(_name), iValue(_value)
+ {}
+};
+AsyncHttpRequest* operator<<(AsyncHttpRequest*, const INT64_PARAM&);
+
struct CHAR_PARAM : public PARAM
{
LPCSTR szValue;