Page MenuHomePhorge

location.hpp
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

location.hpp

/******************************************************************************
* 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

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)

Event Timeline