Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1037525
account-data.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
6 KB
Referenced Files
None
Subscribers
None
account-data.hpp
View Options
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#pragma once
#include
"basejob.hpp"
namespace
Kazv
::
Api
{
/*! \brief Set some account_data for the user.
*
* Set some account_data for the client. This config is only visible to the user
* that set the account_data. The config will be synced to clients in the
* top-level `account_data`.
*/
class
SetAccountDataJob
:
public
BaseJob
{
public
:
class
JobResponse
:
public
Response
{
public
:
JobResponse
(
Response
r
);
bool
success
()
const
;
};
static
constexpr
auto
needsAuth
()
{
return
true
;
}
// Construction/destruction
/*! \brief Set some account_data for the user.
*
* \param userId
* The ID of the user to set account_data for. The access token must be
* authorized to make requests for this user ID.
*
* \param type
* The event type of the account_data to set. Custom types should be
* namespaced to avoid clashes.
*
* \param content
* The content of the account_data
*/
explicit
SetAccountDataJob
(
std
::
string
serverUrl
,
std
::
string
_accessToken
,
std
::
string
userId
,
std
::
string
type
,
JsonWrap
content
=
{}
);
static
BaseJob
::
Query
buildQuery
(
);
static
BaseJob
::
Body
buildBody
(
std
::
string
userId
,
std
::
string
type
,
JsonWrap
content
);
SetAccountDataJob
withData
(
JsonWrap
j
)
&&
;
SetAccountDataJob
withData
(
JsonWrap
j
)
const
&
;
};
using
SetAccountDataResponse
=
SetAccountDataJob
::
JobResponse
;
}
namespace
nlohmann
{
using
namespace
Kazv
;
using
namespace
Kazv
::
Api
;
}
namespace
Kazv
::
Api
{
/*! \brief Get some account_data for the user.
*
* Get some account_data for the client. This config is only visible to the user
* that set the account_data.
*/
class
GetAccountDataJob
:
public
BaseJob
{
public
:
class
JobResponse
:
public
Response
{
public
:
JobResponse
(
Response
r
);
bool
success
()
const
;
};
static
constexpr
auto
needsAuth
()
{
return
true
;
}
// Construction/destruction
/*! \brief Get some account_data for the user.
*
* \param userId
* The ID of the user to get account_data for. The access token must be
* authorized to make requests for this user ID.
*
* \param type
* The event type of the account_data to get. Custom types should be
* namespaced to avoid clashes.
*/
explicit
GetAccountDataJob
(
std
::
string
serverUrl
,
std
::
string
_accessToken
,
std
::
string
userId
,
std
::
string
type
);
static
BaseJob
::
Query
buildQuery
(
);
static
BaseJob
::
Body
buildBody
(
std
::
string
userId
,
std
::
string
type
);
GetAccountDataJob
withData
(
JsonWrap
j
)
&&
;
GetAccountDataJob
withData
(
JsonWrap
j
)
const
&
;
};
using
GetAccountDataResponse
=
GetAccountDataJob
::
JobResponse
;
}
namespace
nlohmann
{
using
namespace
Kazv
;
using
namespace
Kazv
::
Api
;
}
namespace
Kazv
::
Api
{
/*! \brief Set some account_data for the user.
*
* Set some account_data for the client on a given room. This config is only
* visible to the user that set the account_data. The config will be synced to
* clients in the per-room `account_data`.
*/
class
SetAccountDataPerRoomJob
:
public
BaseJob
{
public
:
class
JobResponse
:
public
Response
{
public
:
JobResponse
(
Response
r
);
bool
success
()
const
;
};
static
constexpr
auto
needsAuth
()
{
return
true
;
}
// Construction/destruction
/*! \brief Set some account_data for the user.
*
* \param userId
* The ID of the user to set account_data for. The access token must be
* authorized to make requests for this user ID.
*
* \param roomId
* The ID of the room to set account_data on.
*
* \param type
* The event type of the account_data to set. Custom types should be
* namespaced to avoid clashes.
*
* \param content
* The content of the account_data
*/
explicit
SetAccountDataPerRoomJob
(
std
::
string
serverUrl
,
std
::
string
_accessToken
,
std
::
string
userId
,
std
::
string
roomId
,
std
::
string
type
,
JsonWrap
content
=
{}
);
static
BaseJob
::
Query
buildQuery
(
);
static
BaseJob
::
Body
buildBody
(
std
::
string
userId
,
std
::
string
roomId
,
std
::
string
type
,
JsonWrap
content
);
SetAccountDataPerRoomJob
withData
(
JsonWrap
j
)
&&
;
SetAccountDataPerRoomJob
withData
(
JsonWrap
j
)
const
&
;
};
using
SetAccountDataPerRoomResponse
=
SetAccountDataPerRoomJob
::
JobResponse
;
}
namespace
nlohmann
{
using
namespace
Kazv
;
using
namespace
Kazv
::
Api
;
}
namespace
Kazv
::
Api
{
/*! \brief Get some account_data for the user.
*
* Get some account_data for the client on a given room. This config is only
* visible to the user that set the account_data.
*/
class
GetAccountDataPerRoomJob
:
public
BaseJob
{
public
:
class
JobResponse
:
public
Response
{
public
:
JobResponse
(
Response
r
);
bool
success
()
const
;
};
static
constexpr
auto
needsAuth
()
{
return
true
;
}
// Construction/destruction
/*! \brief Get some account_data for the user.
*
* \param userId
* The ID of the user to set account_data for. The access token must be
* authorized to make requests for this user ID.
*
* \param roomId
* The ID of the room to get account_data for.
*
* \param type
* The event type of the account_data to get. Custom types should be
* namespaced to avoid clashes.
*/
explicit
GetAccountDataPerRoomJob
(
std
::
string
serverUrl
,
std
::
string
_accessToken
,
std
::
string
userId
,
std
::
string
roomId
,
std
::
string
type
);
static
BaseJob
::
Query
buildQuery
(
);
static
BaseJob
::
Body
buildBody
(
std
::
string
userId
,
std
::
string
roomId
,
std
::
string
type
);
GetAccountDataPerRoomJob
withData
(
JsonWrap
j
)
&&
;
GetAccountDataPerRoomJob
withData
(
JsonWrap
j
)
const
&
;
};
using
GetAccountDataPerRoomResponse
=
GetAccountDataPerRoomJob
::
JobResponse
;
}
namespace
nlohmann
{
using
namespace
Kazv
;
using
namespace
Kazv
::
Api
;
}
namespace
Kazv
::
Api
{
}
// namespace Kazv::Api
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Wed, May 14, 7:25 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
109353
Default Alt Text
account-data.hpp (6 KB)
Attached To
Mode
rL libkazv
Attached
Detach File
Event Timeline
Log In to Comment