libkazv
voip.hpp
Go to the documentation of this file.
1 /******************************************************************************
2  * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
3  */
4 
5 #pragma once
6 
7 #include "basejob.hpp"
8 
9 
10 namespace Kazv::Api {
11 
17 class GetTurnServerJob : public BaseJob {
18 public:
19 
20 
21 
22 class JobResponse : public Response
23 {
24 
25 public:
27  bool success() const;
28 
29  // Result properties
30 
31 
33 
34  JsonWrap data() const
35  {
36  return
37  std::move(jsonBody().get()).get<JsonWrap>()
38  ;
39  }
40 
41 
42 };
43  static constexpr auto needsAuth() {
44  return true
45  ;
46  }
47 
48 
49 // Construction/destruction
50 
52  explicit GetTurnServerJob(std::string serverUrl
53  , std::string _accessToken
54 
55 
56  );
57 
58 
60  );
61 
62  static BaseJob::Body buildBody();
63 
64 
65 
66 
67 
70  };
72  }
73  namespace nlohmann
74  {
75  using namespace Kazv;
76  using namespace Kazv::Api;
77 
78  }
79 
80  namespace Kazv::Api
81  {
82 
83 } // namespace Kazv::Api
JsonWrap data() const
The TURN server credentials.
Definition: voip.hpp:34
JobResponse(Response r)
Definition: voip.cpp:67
bool success() const
Definition: voip.cpp:70
Obtain TURN server credentials.
Definition: voip.hpp:17
GetTurnServerJob withData(JsonWrap j) &&
Definition: voip.cpp:53
static BaseJob::Body buildBody()
Definition: voip.cpp:21
static BaseJob::Query buildQuery()
Definition: voip.cpp:13
GetTurnServerJob(std::string serverUrl, std::string _accessToken)
Obtain TURN server credentials.
Definition: voip.cpp:33
static constexpr auto needsAuth()
Definition: voip.hpp:43
Definition: basejob.hpp:91
Definition: basejob.hpp:77
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: jsonwrap.hpp:23
const json & get() const
Definition: jsonwrap.hpp:38
Definition: location.hpp:10
Definition: location.hpp:10
Definition: location.hpp:27
Definition: basejob.hpp:50
JsonWrap jsonBody() const
Definition: basejob.cpp:139