47 , std::string _accessToken
49 std::string userId , std::optional<std::string> displayname = std::nullopt
140 using namespace Kazv;
183 , std::string _accessToken
185 std::string userId , std::optional<std::string> avatarUrl = std::nullopt
205 using namespace Kazv;
237std::optional<std::string>
avatarUrl()
const;
276 using namespace Kazv;
309std::optional<std::string>
avatarUrl()
const;
352 using namespace Kazv;
Definition profile.hpp:225
std::optional< std::string > avatarUrl() const
The user's avatar URL if they have set one, otherwise not present.
Definition profile.cpp:307
bool success() const
Definition profile.cpp:297
Get the user's avatar URL.
Definition profile.hpp:219
static BaseJob::Body buildBody(std::string userId)
Definition profile.cpp:248
static constexpr auto needsAuth()
Definition profile.hpp:240
static BaseJob::Query buildQuery()
Definition profile.cpp:240
GetAvatarUrlJob withData(JsonWrap j) &&
Definition profile.cpp:280
Definition profile.hpp:89
std::optional< std::string > displayname() const
The user's display name if they have set one, otherwise not present.
Definition profile.cpp:154
bool success() const
Definition profile.cpp:144
Get the user's display name.
Definition profile.hpp:83
static BaseJob::Body buildBody(std::string userId)
Definition profile.cpp:95
static constexpr auto needsAuth()
Definition profile.hpp:104
static BaseJob::Query buildQuery()
Definition profile.cpp:87
GetDisplayNameJob withData(JsonWrap j) &&
Definition profile.cpp:127
Definition profile.hpp:297
std::optional< std::string > displayname() const
The user's display name if they have set one, otherwise not present.
Definition profile.cpp:397
bool success() const
Definition profile.cpp:376
std::optional< std::string > avatarUrl() const
The user's avatar URL if they have set one, otherwise not present.
Definition profile.cpp:386
Get this user's profile information.
Definition profile.hpp:291
static BaseJob::Body buildBody(std::string userId)
Definition profile.cpp:327
static BaseJob::Query buildQuery()
Definition profile.cpp:319
static constexpr auto needsAuth()
Definition profile.hpp:316
GetUserProfileJob withData(JsonWrap j) &&
Definition profile.cpp:359
Definition profile.hpp:159
bool success() const
Definition profile.cpp:229
Set the user's avatar URL.
Definition profile.hpp:153
SetAvatarUrlJob withData(JsonWrap j) &&
Definition profile.cpp:212
static BaseJob::Body buildBody(std::string userId, std::optional< std::string > avatarUrl)
Definition profile.cpp:174
static BaseJob::Query buildQuery()
Definition profile.cpp:166
static constexpr auto needsAuth()
Definition profile.hpp:166
Definition profile.hpp:23
bool success() const
Definition profile.cpp:76
Set the user's display name.
Definition profile.hpp:17
static BaseJob::Body buildBody(std::string userId, std::optional< std::string > displayname)
Definition profile.cpp:21
static constexpr auto needsAuth()
Definition profile.hpp:30
static BaseJob::Query buildQuery()
Definition profile.cpp:13
SetDisplayNameJob withData(JsonWrap j) &&
Definition profile.cpp:59
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