Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F21907150
homeserver.hpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
885 B
Referenced Files
None
Subscribers
None
homeserver.hpp
View Options
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#pragma once
#include
"types.hpp"
namespace
Kazv
{
/// Used by clients to discover homeserver information.
struct
HomeserverInformation
{
/// The base URL for the homeserver for client-server connections.
std
::
string
baseUrl
;
};
}
namespace
nlohmann
{
using
namespace
Kazv
;
template
<>
struct
adl_serializer
<
HomeserverInformation
>
{
static
void
to_json
(
json
&
jo
,
const
HomeserverInformation
&
pod
)
{
if
(
!
jo
.
is_object
())
{
jo
=
json
::
object
();
}
jo
[
"base_url"
s
]
=
pod
.
baseUrl
;
}
static
void
from_json
(
const
json
&
jo
,
HomeserverInformation
&
result
)
{
if
(
jo
.
contains
(
"base_url"
s
))
{
result
.
baseUrl
=
jo
.
at
(
"base_url"
s
);
}
}
};
}
namespace
Kazv
{
}
// namespace Kazv
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Dec 28, 1:41 AM (10 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
835346
Default Alt Text
homeserver.hpp (885 B)
Attached To
Mode
rL libkazv
Attached
Detach File
Event Timeline
Log In to Comment