ParameterProvisionDocumentApiImpl.h 1.61 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
 * ParameterProvisionDocumentApiImpl.h
 *
 *
 */
yangjian's avatar
yangjian committed
19 20 21 22 23 24 25 26 27 28 29 30 31

#ifndef PARAMETER_PROVISION_DOCUMENT_API_IMPL_H_
#define PARAMETER_PROVISION_DOCUMENT_API_IMPL_H_

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

#include <ParameterProvisionDocumentApi.h>

#include <pistache/optional.h>

32
#include <string>
yangjian's avatar
yangjian committed
33 34 35
#include "PpData.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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
using namespace oai::udr::app;

class ParameterProvisionDocumentApiImpl
    : public oai::udr::api::ParameterProvisionDocumentApi {
 private:
  udr_app *m_udr_app;
  std::string m_address;

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

  void getpp_data(
      const std::string &ueId,
      const Pistache::Optional<std::string> &supportedFeatures,
      const Pistache::Optional<Pistache::Http::Header::Raw> &ifNoneMatch,
      const Pistache::Optional<Pistache::Http::Header::Raw> &ifModifiedSince,
      Pistache::Http::ResponseWriter &response);
yangjian's avatar
yangjian committed
59 60
};

61
}  // namespace oai::udr::api
yangjian's avatar
yangjian committed
62 63

#endif