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;
Definition: presence.hpp:92
Get this user's presence state.
Definition: presence.hpp:86
static constexpr auto needsAuth()
Definition: presence.hpp:120
Definition: presence.hpp:25
JobResponse(Response r)
Definition: presence.cpp:75
bool success() const
Definition: presence.cpp:78
Update this user's presence state.
Definition: presence.hpp:19
static BaseJob::Query buildQuery()
Definition: presence.cpp:13
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:41
static BaseJob::Body buildBody(std::string userId, std::string presence, std::optional< std::string > statusMsg)
Definition: presence.cpp:21
static constexpr auto needsAuth()
Definition: presence.hpp:32
SetPresenceJob withData(JsonWrap j) &&
Definition: presence.cpp:61
Definition: basejob.hpp:91
Definition: basejob.hpp:77
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: jsonwrap.hpp:23
Definition: location.hpp:10
Definition: location.hpp:10
std::variant< std::string, JsonWrap, Null > Variant
Definition: types.hpp:112
Definition: location.hpp:27
Definition: basejob.hpp:50