Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2577685
location.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
location.hpp
View Options
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#pragma once
#include
"types.hpp"
namespace
Kazv
::
Api
{
struct
ThirdPartyLocation
{
/// An alias for a matrix room.
std
::
string
alias
;
/// The protocol ID that the third party location is a part of.
std
::
string
protocol
;
/// Information used to identify this third party location.
JsonWrap
fields
;
};
}
namespace
nlohmann
{
using
namespace
Kazv
;
using
namespace
Kazv
::
Api
;
template
<>
struct
adl_serializer
<
ThirdPartyLocation
>
{
static
void
to_json
(
json
&
jo
,
const
ThirdPartyLocation
&
pod
)
{
if
(
!
jo
.
is_object
())
{
jo
=
json
::
object
();
}
jo
[
"alias"
s
]
=
pod
.
alias
;
jo
[
"protocol"
s
]
=
pod
.
protocol
;
jo
[
"fields"
s
]
=
pod
.
fields
;
}
static
void
from_json
(
const
json
&
jo
,
ThirdPartyLocation
&
result
)
{
if
(
jo
.
contains
(
"alias"
s
))
{
result
.
alias
=
jo
.
at
(
"alias"
s
);
}
if
(
jo
.
contains
(
"protocol"
s
))
{
result
.
protocol
=
jo
.
at
(
"protocol"
s
);
}
if
(
jo
.
contains
(
"fields"
s
))
{
result
.
fields
=
jo
.
at
(
"fields"
s
);
}
}
};
}
namespace
Kazv
::
Api
{
}
// namespace Kazv::Api
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Tue, Jun 24, 12:11 PM (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
234854
Default Alt Text
location.hpp (1 KB)
Attached To
Mode
rL libkazv
Attached
Detach File
Event Timeline
Log In to Comment