mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-01-10 19:08:39 +00:00
30 lines
603 B
C++
30 lines
603 B
C++
/**
|
|
* Jingga
|
|
*
|
|
* @copyright Jingga
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
#ifndef COMS_MODELS_BASE_GEO_LOCATION_H
|
|
#define COMS_MODELS_BASE_GEO_LOCATION_H
|
|
|
|
#include "../../stdlib/Types.h"
|
|
#include "../../serialize/WebBinary.h"
|
|
|
|
struct GeoLocation {
|
|
f64 lat;
|
|
f64 lon;
|
|
};
|
|
|
|
constexpr WebBinaryValue GeoLocationSchemaStruct[] = {
|
|
WEB_BINARY_FIELD(GeoLocation, lat),
|
|
WEB_BINARY_FIELD(GeoLocation, lon)
|
|
};
|
|
|
|
constexpr auto GeoLocationSchema = web_binary_schema<
|
|
GeoLocationSchemaStruct,
|
|
ARRAY_COUNT(GeoLocationSchemaStruct)
|
|
>();
|
|
|
|
#endif |