Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2697874
typing.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
typing.hpp
View Options
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#pragma once
#include
"basejob.hpp"
namespace
Kazv
{
/*! \brief Informs the server that the user has started or stopped typing.
*
* This tells the server that the user is typing for the next N
* milliseconds where N is the value specified in the ``timeout`` key.
* Alternatively, if ``typing`` is ``false``, it tells the server that the
* user has stopped typing.
*/
class
SetTypingJob
:
public
BaseJob
{
public
:
// Construction/destruction
/*! \brief Informs the server that the user has started or stopped typing.
*
* \param userId
* The user who has started to type.
*
* \param roomId
* The room in which the user is typing.
*
* \param typing
* Whether the user is typing or not. If ``false``, the ``timeout``
* key can be omitted.
*
* \param timeout
* The length of time in milliseconds to mark this user as typing.
*/
explicit
SetTypingJob
(
std
::
string
serverUrl
,
std
::
string
_accessToken
,
std
::
string
userId
,
std
::
string
roomId
,
bool
typing
,
std
::
optional
<
int
>
timeout
=
std
::
nullopt
);
static
BaseJob
::
Body
buildBody
(
std
::
string
userId
,
std
::
string
roomId
,
bool
typing
,
std
::
optional
<
int
>
timeout
);
};
}
namespace
nlohmann
{
using
namespace
Kazv
;
}
namespace
Kazv
{
}
// namespace Kazv
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Fri, Jul 18, 7:28 AM (13 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
261422
Default Alt Text
typing.hpp (1 KB)
Attached To
Mode
rL libkazv
Attached
Detach File
Event Timeline
Log In to Comment