BdtPolicyDataStoreApiImpl.h 1.52 KB
Newer Older
yangjian's avatar
yangjian committed
1
/**
2 3 4 5 6 7 8 9 10 11 12
 * Nudr_DataRepository API OpenAPI file
 * Unified Data Repository Service. © 2020, 3GPP Organizational Partners (ARIB,
 * ATIS, CCSA, ETSI, TSDSI, TTA, TTC). All rights reserved.
 *
 * The version of the OpenAPI document: 2.1.2
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator
 * (https://openapi-generator.tech). https://openapi-generator.tech Do not edit
 * the class manually.
 */
yangjian's avatar
yangjian committed
13 14

/*
15 16 17 18
 * BdtPolicyDataStoreApiImpl.h
 *
 *
 */
yangjian's avatar
yangjian committed
19 20 21 22 23 24 25 26 27 28 29 30 31

#ifndef BDT_POLICY_DATA_STORE_API_IMPL_H_
#define BDT_POLICY_DATA_STORE_API_IMPL_H_

#include <pistache/endpoint.h>
#include <pistache/http.h>
#include <pistache/router.h>
#include <memory>

#include <BdtPolicyDataStoreApi.h>

#include <pistache/optional.h>

32
#include <string>
yangjian's avatar
yangjian committed
33 34 35
#include "BdtPolicyData.h"
#include "ProblemDetails.h"

36
#include "udr_app.hpp"
37
namespace oai::udr::api {
yangjian's avatar
yangjian committed
38

39
using namespace oai::udr::model;
40
using namespace oai::udr::app;
yangjian's avatar
yangjian committed
41

42
class BdtPolicyDataStoreApiImpl : public oai::udr::api::BdtPolicyDataStoreApi {
43 44 45 46 47 48 49 50 51 52 53 54 55 56
 private:
  udr_app *m_udr_app;
  std::string m_address;

 public:
  BdtPolicyDataStoreApiImpl(std::shared_ptr<Pistache::Rest::Router>,
                            udr_app *udr_app_inst, std::string address);
  ~BdtPolicyDataStoreApiImpl() {}

  void read_bdt_policy_data(
      const Pistache::Optional<std::vector<std::string>> &bdtPolicyIds,
      const Pistache::Optional<std::vector<std::string>> &internalGroupIds,
      const Pistache::Optional<std::vector<std::string>> &supis,
      Pistache::Http::ResponseWriter &response);
yangjian's avatar
yangjian committed
57 58
};

59
}  // namespace oai::udr::api
yangjian's avatar
yangjian committed
60 61

#endif