1 #ifndef XAPP_MODEL_SubscriptionParams_ClientEndpoint_H
2 #define XAPP_MODEL_SubscriptionParams_ClientEndpoint_H
8 struct SubscriptionParams_ClientEndpoint: ModelBase {
12 json validator_schema = R"(
14 "$schema": "http://json-schema.org/draft-07/schema#",
15 "title": "SubscriptionParams_ClientEndpoint",
16 "description": "xApp service address and port",
19 "description": "xApp HTTP service address port",
25 "description": "xApp service address name like service-ricxapp-xappname-http.ricxapp",
29 "description": "xApp RMR service address port",
43 virtual json get_validator_schema() const { return validator_schema; }
46 void from_json(const json& j, SubscriptionParams_ClientEndpoint& ref) {
48 std::cout << __PRETTY_FUNCTION__ << std::endl;
50 j.at("HTTPPort").get_to(ref.HTTPPort);
51 j.at("Host").get_to(ref.Host);
52 j.at("RMRPort").get_to(ref.RMRPort);
55 void to_json(json& j, const SubscriptionParams_ClientEndpoint& ref) {
57 {"HTTPPort", ref.HTTPPort},
59 {"RMRPort", ref.RMRPort},
65 #endif /*XAPP_MODEL_SubscriptionParams_ClientEndpoint_H*/