Go to the documentation of this file.
19 class SetPresenceJob :
public BaseJob {
52 , std::string _accessToken
54 std::string userId , std::string presence , std::optional<std::string> statusMsg = std::nullopt
61 static BaseJob::Body buildBody(std::string userId, std::string presence, std::optional<std::string> statusMsg);
104 std::string presence()
const;
109 std::optional<int> lastActiveAgo()
const;
117 std::optional<bool> currentlyActive()
const;
134 , std::string _accessToken
156 using namespace Kazv;
static constexpr auto needsAuth()
Definition: presence.hpp:36
Definition: location.hpp:26
SetPresenceJob withData(JsonWrap j) &&
Definition: presence.cpp:63
Definition: location.hpp:10
SetPresenceJob(std::string serverUrl, std::string _accessToken, std::string userId, std::string presence, std::optional< std::string > statusMsg=std::nullopt)
Update this user's presence state.
Definition: presence.cpp:43
Definition: basejob.hpp:90
Definition: presence.hpp:28
Get this user's presence state.
Definition: presence.hpp:86
Definition: location.hpp:10
static BaseJob::Query buildQuery()
Definition: presence.cpp:15
JobResponse(Response r)
Definition: presence.cpp:77
Definition: jsonwrap.hpp:22
static BaseJob::Body buildBody(std::string userId, std::string presence, std::optional< std::string > statusMsg)
Definition: presence.cpp:23
Update this user's presence state.
Definition: presence.hpp:21
static constexpr auto needsAuth()
Definition: presence.hpp:120
Definition: basejob.hpp:76
bool success() const
Definition: presence.cpp:80
std::variant< std::string, JsonWrap, Null > Variant
Definition: types.hpp:112
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: presence.hpp:91
Definition: basejob.hpp:50