From ee2dac14cc7ef216f42ff46794eea5d37ebc6871 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 9 Jan 2017 17:11:28 +0300 Subject: INT64_PARAM - a new type of SnowFlake http params --- protocols/Discord/src/proto.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'protocols/Discord/src/proto.h') 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; -- cgit v1.2.3