libkazv
Loading...
Searching...
No Matches
typing.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
3 */
4
5#pragma once
6
7#include "basejob.hpp"
8
9
10namespace Kazv::Api {
11
19class SetTypingJob : public BaseJob {
20public:
21
22
23
24class JobResponse : public Response
25{
26
27public:
29 bool success() const;
30
31};
32 static constexpr auto needsAuth() {
33 return true
34 ;
35 }
36
37
38// Construction/destruction
39
55 explicit SetTypingJob(std::string serverUrl
56 , std::string _accessToken
57 ,
58 std::string userId , std::string roomId , bool typing , std::optional<int> timeout = std::nullopt
59 );
60
61
63 );
64
65 static BaseJob::Body buildBody(std::string userId, std::string roomId, bool typing, std::optional<int> timeout);
66
67
68
69
70
73 };
75 }
76 namespace nlohmann
77 {
78 using namespace Kazv;
79 using namespace Kazv::Api;
80
81 }
82
83 namespace Kazv::Api
84 {
85
86} // namespace Kazv::Api
Definition typing.hpp:25
bool success() const
Definition typing.cpp:78
Informs the server that the user has started or stopped typing.
Definition typing.hpp:19
static BaseJob::Body buildBody(std::string userId, std::string roomId, bool typing, std::optional< int > timeout)
Definition typing.cpp:21
SetTypingJob withData(JsonWrap j) &&
Definition typing.cpp:61
static BaseJob::Query buildQuery()
Definition typing.cpp:13
static constexpr auto needsAuth()
Definition typing.hpp:32
Definition basejob.hpp:94
Definition basejob.hpp:68
::Kazv::Body Body
Definition basejob.hpp:103
Definition jsonwrap.hpp:23
Definition location.hpp:10
Definition location.hpp:10
Definition location.hpp:27
Definition basejob.hpp:49